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
2d3c34ad
Commit
2d3c34ad
authored
Dec 10, 1992
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(i_define, u_define, f_define): Add #undef before #define.
From-SVN: r2858
parent
a70c61d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
gcc/enquire.c
+4
-0
No files found.
gcc/enquire.c
View file @
2d3c34ad
...
...
@@ -19,6 +19,7 @@
Include sys/types.h before signal.h, Apr 92.
Support NO_LONG_DOUBLE_IO in f_define and f_rep; new fn fake_f_rep, Apr 92.
Enclose -f output in #ifndef _FLOAT_H___, Richard Stallman, May 92.
Add #undef before every #define, Jim Wilson, Dec 92.
COMPILING
With luck and a following wind, just the following will work:
...
...
@@ -780,6 +781,7 @@ Procedure i_define(desc, extra, sort, name, val, lim, req, mark)
char
*
desc
,
*
extra
,
*
sort
,
*
name
;
long
val
,
lim
,
req
;
char
*
mark
;
{
/* Produce a #define for a signed int type */
describe
(
desc
,
extra
);
printf
(
"#undef %s%s
\n
"
,
sort
,
name
);
if
(
val
>=
0
)
{
printf
(
"#define %s%s %ld%s
\n
"
,
sort
,
name
,
val
,
mark
);
}
else
if
(
val
+
lim
<
0
)
{
...
...
@@ -807,6 +809,7 @@ Procedure u_define(desc, extra, sort, name, val, req, mark)
char
*
desc
,
*
extra
,
*
sort
,
*
name
;
unsigned
long
val
,
req
;
char
*
mark
;
{
/* Produce a #define for an unsigned value */
describe
(
desc
,
extra
);
printf
(
"#undef %s%s
\n
"
,
sort
,
name
);
printf
(
"#define %s%s %lu%s%s
\n
"
,
sort
,
name
,
val
,
U
,
mark
);
if
(
val
!=
req
)
{
printf
(
"%s*** Verify failed for above #define!
\n
"
,
co
);
...
...
@@ -821,6 +824,7 @@ Procedure f_define(desc, extra, sort, name, precision, val, mark)
Long_double
val
;
char
*
mark
;
{
/* Produce a #define for a float/double/long double */
describe
(
desc
,
extra
);
printf
(
"#undef %s%s
\n
"
,
sort
,
name
);
if
(
stdc
)
{
#ifdef NO_LONG_DOUBLE_IO
static
int
union_defined
=
0
;
...
...
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