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
1d00bef8
Commit
1d00bef8
authored
Jul 02, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(duplicate_decls): When make void* match char*, set
DECL_IN_SYSTEM_HEADER. From-SVN: r7645
parent
a516ce54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
gcc/c-decl.c
+4
-0
No files found.
gcc/c-decl.c
View file @
1d00bef8
...
@@ -1472,6 +1472,10 @@ duplicate_decls (newdecl, olddecl)
...
@@ -1472,6 +1472,10 @@ duplicate_decls (newdecl, olddecl)
/* Make sure we keep void * as ret type, not char *. */
/* Make sure we keep void * as ret type, not char *. */
if
(
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
TREE_TYPE
(
oldtype
)))
==
void_type_node
)
if
(
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
TREE_TYPE
(
oldtype
)))
==
void_type_node
)
TREE_TYPE
(
newdecl
)
=
newtype
=
oldtype
;
TREE_TYPE
(
newdecl
)
=
newtype
=
oldtype
;
/* Set DECL_IN_SYSTEM_HEADER, so that if we see another declaration
we will come back here again. */
DECL_IN_SYSTEM_HEADER
(
newdecl
)
=
1
;
}
}
else
if
(
!
types_match
else
if
(
!
types_match
/* Permit char *foo (int, ...); followed by char *foo ();
/* Permit char *foo (int, ...); followed by char *foo ();
...
...
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