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
f7fa6ef9
Commit
f7fa6ef9
authored
Jan 04, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(staticp, case COMPONENT_REF, BIT_FIELD_REF): Not static if bitfield.
From-SVN: r13376
parent
0d15e60c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
gcc/tree.c
+6
-1
No files found.
gcc/tree.c
View file @
f7fa6ef9
...
@@ -2174,9 +2174,14 @@ staticp (arg)
...
@@ -2174,9 +2174,14 @@ staticp (arg)
case
STRING_CST
:
case
STRING_CST
:
return
1
;
return
1
;
/* If we are referencing a bitfield, we can't evaluate an
ADDR_EXPR at compile time and so it isn't a constant. */
case
COMPONENT_REF
:
case
COMPONENT_REF
:
return
(
!
DECL_BIT_FIELD
(
TREE_OPERAND
(
arg
,
1
))
&&
staticp
(
TREE_OPERAND
(
arg
,
0
)));
case
BIT_FIELD_REF
:
case
BIT_FIELD_REF
:
return
staticp
(
TREE_OPERAND
(
arg
,
0
))
;
return
0
;
#if 0
#if 0
/* This case is technically correct, but results in setting
/* This case is technically correct, but results in setting
...
...
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