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
04de7314
Commit
04de7314
authored
May 23, 2000
by
Zack Weinberg
Committed by
Zack Weinberg
May 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-decl.c (pushdecl): Invert sense of test for non-global types.
From-SVN: r34107
parent
a3afe920
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletions
+23
-1
gcc/ChangeLog
+4
-0
gcc/c-decl.c
+1
-1
gcc/testsuite/gcc.dg/ext-glob.c
+18
-0
No files found.
gcc/ChangeLog
View file @
04de7314
2000
-
05
-
23
Zack
Weinberg
<
zack
@wolery
.
cumb
.
org
>
*
c
-
decl
.
c
(
pushdecl
)
:
Invert
sense
of
test
for
non
-
global
types
.
Tue
May
23
18
:
11
:
42
2000
J
"orn Rennecke <amylaar@cygnus.co.uk>
* reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
gcc/c-decl.c
View file @
04de7314
...
...
@@ -2202,7 +2202,7 @@ pushdecl (x)
{
if
(
type
==
error_mark_node
)
break
;
if
(
!
TYPE_CONTEXT
(
type
))
if
(
TYPE_CONTEXT
(
type
))
{
warning_with_decl
(
x
,
"type of external `%s' is not global"
);
/* By exiting the loop early, we leave TYPE nonzero,
...
...
gcc/testsuite/gcc.dg/ext-glob.c
0 → 100644
View file @
04de7314
/* Test for the warning about external functions with non-global
types. In -traditional mode, these functions are globally visible
even if declared in an inner scope, so their return types should
also be visible. */
/* { dg-do compile } */
/* { dg-options -traditional } */
int
main
()
{
struct
foo
{
int
a
,
b
;
};
extern
struct
foo
*
bar
();
/* { dg-warning "type of external" "good warn" } */
extern
int
baz
();
/* { dg-bogus "type of external" "bad warn" } */
return
0
;
}
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