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
0bcc6fc7
Commit
0bcc6fc7
authored
Oct 28, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(make_decl_rtl,assemble_variable): Allow named sections for
uninitialized variables. From-SVN: r13053
parent
5507b94b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
gcc/varasm.c
+3
-13
No files found.
gcc/varasm.c
View file @
0bcc6fc7
...
@@ -706,23 +706,13 @@ make_decl_rtl (decl, asmspec, top_level)
...
@@ -706,23 +706,13 @@ make_decl_rtl (decl, asmspec, top_level)
globalize_reg
(
reg_number
+
--
nregs
);
globalize_reg
(
reg_number
+
--
nregs
);
}
}
}
}
/* Specifying a section attribute on an uninitialized variable does not
/* Specifying a section attribute on a variable forces it into a
(and cannot) cause it to be put in the given section. The linker
non-.bss section, and thus it cannot be common. */
can only put initialized objects in specific sections, everything
else goes in bss for the linker to sort out later (otherwise the
linker would give a duplicate definition error for each compilation
unit that behaved thusly). So warn the user. */
else
if
(
TREE_CODE
(
decl
)
==
VAR_DECL
else
if
(
TREE_CODE
(
decl
)
==
VAR_DECL
&&
DECL_SECTION_NAME
(
decl
)
!=
NULL_TREE
&&
DECL_SECTION_NAME
(
decl
)
!=
NULL_TREE
&&
DECL_INITIAL
(
decl
)
==
NULL_TREE
&&
DECL_INITIAL
(
decl
)
==
NULL_TREE
&&
DECL_COMMON
(
decl
))
&&
DECL_COMMON
(
decl
))
{
DECL_COMMON
(
decl
)
=
0
;
warning_with_decl
(
decl
,
"section attribute ignored for uninitialized variable `%s'"
);
/* Remove the section name so subsequent declarations won't see it.
We are ignoring it, remember. */
DECL_SECTION_NAME
(
decl
)
=
NULL_TREE
;
}
/* Now handle ordinary static variables and functions (in memory).
/* Now handle ordinary static variables and functions (in memory).
Also handle vars declared register invalidly. */
Also handle vars declared register invalidly. */
...
...
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