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
1d306530
Commit
1d306530
authored
Mar 22, 1995
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mips_select_section): Apply constant DEC_INITIAL tests
only to VAR_DECLs. From-SVN: r9221
parent
6f1a5942
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gcc/config/mips/mips.c
+4
-2
No files found.
gcc/config/mips/mips.c
View file @
1d306530
...
@@ -5417,7 +5417,8 @@ mips_select_section (decl, reloc)
...
@@ -5417,7 +5417,8 @@ mips_select_section (decl, reloc)
/* For embedded applications, always put an object in read-only data
/* For embedded applications, always put an object in read-only data
if possible, in order to reduce RAM usage. */
if possible, in order to reduce RAM usage. */
if
(((
TREE_READONLY
(
decl
)
&&
!
TREE_SIDE_EFFECTS
(
decl
)
if
(((
TREE_CODE
(
decl
)
==
VAR_DECL
&&
TREE_READONLY
(
decl
)
&&
!
TREE_SIDE_EFFECTS
(
decl
)
&&
DECL_INITIAL
(
decl
)
&&
DECL_INITIAL
(
decl
)
&&
(
DECL_INITIAL
(
decl
)
==
error_mark_node
&&
(
DECL_INITIAL
(
decl
)
==
error_mark_node
||
TREE_CONSTANT
(
DECL_INITIAL
(
decl
))))
||
TREE_CONSTANT
(
DECL_INITIAL
(
decl
))))
...
@@ -5439,7 +5440,8 @@ mips_select_section (decl, reloc)
...
@@ -5439,7 +5440,8 @@ mips_select_section (decl, reloc)
if
(
size
>
0
&&
size
<=
mips_section_threshold
)
if
(
size
>
0
&&
size
<=
mips_section_threshold
)
sdata_section
();
sdata_section
();
else
if
(((
TREE_READONLY
(
decl
)
&&
!
TREE_SIDE_EFFECTS
(
decl
)
else
if
(((
TREE_CODE
(
decl
)
==
VAR_DECL
&&
TREE_READONLY
(
decl
)
&&
!
TREE_SIDE_EFFECTS
(
decl
)
&&
DECL_INITIAL
(
decl
)
&&
DECL_INITIAL
(
decl
)
&&
(
DECL_INITIAL
(
decl
)
==
error_mark_node
&&
(
DECL_INITIAL
(
decl
)
==
error_mark_node
||
TREE_CONSTANT
(
DECL_INITIAL
(
decl
))))
||
TREE_CONSTANT
(
DECL_INITIAL
(
decl
))))
...
...
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