Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
f80d6fd7
Commit
f80d6fd7
authored
Feb 12, 1999
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Feb 12, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* system.h: Provide a definition for HOST_WIDEST_INT, etc.
From-SVN: r25164
parent
21034cc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
gcc/ChangeLog
+4
-0
gcc/system.h
+28
-0
No files found.
gcc/ChangeLog
View file @
f80d6fd7
Fri
Feb
12
09
:
24
:
26
1999
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
system
.
h
:
Provide
a
definition
for
HOST_WIDEST_INT
,
etc
.
Fri
Feb
12
23
:
37
:
26
1999
Michael
Hayes
<
m
.
hayes
@elec
.
canterbury
.
ac
.
nz
>
*
config
/
c4x
/
c4x
.
c
(
c4x_address_cost
)
:
Revert
9
Feb
change
.
...
...
gcc/system.h
View file @
f80d6fd7
...
...
@@ -159,6 +159,34 @@ extern int errno;
# include <limits.h>
#endif
/* Find HOST_WIDEST_INT and set its bit size, type and print macros.
It will be the largest integer mode supported by the host which may
(or may not) be larger than HOST_WIDE_INT. This must appear after
<limits.h> since we only use `long long' if its bigger than a
`long' and also if it is supported by macros in limits.h. For old
hosts which don't have a limits.h (and thus won't include it in
stage2 cause we don't rerun configure) we assume gcc supports long
long.) Note, you won't get these defined if you don't include
{ht}config.h before this file to set the HOST_BITS_PER_* macros. */
#ifndef HOST_WIDEST_INT
# if defined (HOST_BITS_PER_LONG) && defined (HOST_BITS_PER_LONGLONG)
# if (HOST_BITS_PER_LONGLONG > HOST_BITS_PER_LONG) && (defined (LONG_LONG_MAX) || defined (LONGLONG_MAX) || defined (LLONG_MAX) || defined (__GNUC__))
# define HOST_BITS_PER_WIDEST_INT HOST_BITS_PER_LONGLONG
# define HOST_WIDEST_INT long long
# define HOST_WIDEST_INT_PRINT_DEC "%lld"
# define HOST_WIDEST_INT_PRINT_UNSIGNED "%llu"
# define HOST_WIDEST_INT_PRINT_HEX "0x%llx"
# else
# define HOST_BITS_PER_WIDEST_INT HOST_BITS_PER_LONG
# define HOST_WIDEST_INT long
# define HOST_WIDEST_INT_PRINT_DEC "%ld"
# define HOST_WIDEST_INT_PRINT_UNSIGNED "%lu"
# define HOST_WIDEST_INT_PRINT_HEX "0x%lx"
# endif
/*(long long>long) && (LONG_LONG_MAX||LONGLONG_MAX||LLONG_MAX||GNUC)*/
# endif
/* defined(HOST_BITS_PER_LONG) && defined(HOST_BITS_PER_LONGLONG) */
#endif
/* ! HOST_WIDEST_INT */
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment