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
4f845465
Commit
4f845465
authored
Jul 29, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(special_symbol, do_xifdef): Don't access value.defn of a T_CONST.
From-SVN: r7819
parent
e5952538
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
gcc/cccp.c
+5
-2
No files found.
gcc/cccp.c
View file @
4f845465
...
...
@@ -3925,7 +3925,8 @@ special_symbol (hp, op)
goto
oops
;
if
(
hp
=
lookup
(
ip
->
bufp
,
-
1
,
-
1
))
{
if
(
pcp_outfile
&&
pcp_inside_if
&&
hp
->
value
.
defn
->
predefined
)
&&
(
hp
->
type
==
T_CONST
||
(
hp
->
type
==
T_MACRO
&&
hp
->
value
.
defn
->
predefined
)))
/* Output a precondition for this macro use. */
fprintf
(
pcp_outfile
,
"#define %s
\n
"
,
hp
->
name
);
buf
=
" 1 "
;
...
...
@@ -6790,7 +6791,9 @@ do_xifdef (buf, limit, op, keyword)
if
(
pcp_outfile
)
{
/* Output a precondition for this macro. */
if
(
hp
&&
hp
->
value
.
defn
->
predefined
)
if
(
hp
&&
(
hp
->
type
==
T_CONST
||
(
hp
->
type
==
T_MACRO
&&
hp
->
value
.
defn
->
predefined
)))
fprintf
(
pcp_outfile
,
"#define %s
\n
"
,
hp
->
name
);
else
{
U_CHAR
*
cp
=
buf
;
...
...
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