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
c1bbfd3c
Commit
c1bbfd3c
authored
Sep 14, 2004
by
Dale Johannesen
Committed by
Dale Johannesen
Sep 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PR 17408 and PR 17409.
From-SVN: r87468
parent
3590f0a6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
2 deletions
+21
-2
gcc/ChangeLog
+7
-0
gcc/c-decl.c
+5
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/compile/pr17408.c
+5
-0
No files found.
gcc/ChangeLog
View file @
c1bbfd3c
2004
-
09
-
13
Dale
Johannesen
<
dalej
@
apple
.
com
>
PR
17408
PR
17409
*
c
-
decl
.
c
(
start_decl
):
Repair
TREE_STATIC
for
initialized
objects
declared
extern
.
2004
-
09
-
14
Paul
Brook
<
paul
@
codesourcery
.
com
>
*
config
/
arm
/
arm
.
c
(
arm_expand_prologue
):
Make
args_to_push
a
...
...
gcc/c-decl.c
View file @
c1bbfd3c
...
...
@@ -3012,8 +3012,11 @@ start_decl (struct c_declarator *declarator, struct c_declspecs *declspecs,
TEM may equal DECL or it may be a previous decl of the same name. */
tem
=
pushdecl
(
decl
);
if
(
initialized
)
DECL_EXTERNAL
(
tem
)
=
0
;
if
(
initialized
&&
DECL_EXTERNAL
(
tem
))
{
DECL_EXTERNAL
(
tem
)
=
0
;
TREE_STATIC
(
tem
)
=
1
;
}
return
tem
;
}
...
...
gcc/testsuite/ChangeLog
View file @
c1bbfd3c
2004
-
09
-
13
Dale
Johannesen
<
dalej
@apple
.
com
>
*
gcc
.
c
-
torture
/
compile
/
pr17408
.
c
:
New
test
case
.
2004
-
09
-
13
Mark
Mitchell
<
mark
@codesourcery
.
com
>
PR
c
++/
16716
...
...
gcc/testsuite/gcc.c-torture/compile/pr17408.c
0 → 100644
View file @
c1bbfd3c
/* PRs 17408 and 17409, with different options. */
extern
int
t
;
extern
int
t
=
0
;
void
f
(){
t
=
0
;}
void
g
(){
h
(
&
t
);}
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