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
e3406b2a
Commit
e3406b2a
authored
Jan 15, 2001
by
Mark Mitchell
Committed by
Mark Mitchell
Jan 15, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* varasm.c (make_decl_rtl): Fix typo in last change.
From-SVN: r39026
parent
357c6a4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletions
+19
-1
gcc/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/compile/20010112-1.c
+14
-0
gcc/varasm.c
+1
-1
No files found.
gcc/ChangeLog
View file @
e3406b2a
2001-01-12 Mark Mitchell <mark@codesourcery.com>
* varasm.c (make_decl_rtl): Fix typo in last change.
2001-01-14 Jeffrey Oldham <oldham@codesourcery.com>
* defaults.h (SUPPORTS_INIT_PRIORITY): New macro to indicate the
...
...
gcc/testsuite/gcc.c-torture/compile/20010112-1.c
0 → 100644
View file @
e3406b2a
/* Test that putting an initialized variable in a register works. */
#ifdef __i386__
#define REGISTER asm ("eax")
#elif defined (__arm__)
#define REGISTER asm ("r0")
#else
/* Put examples for other architectures here. */
#define REGISTER
#endif
void
f
()
{
register
int
i
REGISTER
=
3
;
}
gcc/varasm.c
View file @
e3406b2a
...
...
@@ -663,7 +663,7 @@ make_decl_rtl (decl, asmspec)
{
int
nregs
;
if
(
DECL_INITIAL
(
decl
)
!=
0
&&
!
TREE_STATIC
(
decl
))
if
(
DECL_INITIAL
(
decl
)
!=
0
&&
TREE_STATIC
(
decl
))
{
DECL_INITIAL
(
decl
)
=
0
;
error
(
"global register variable has initial value"
);
...
...
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