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
1f7586c1
Commit
1f7586c1
authored
Feb 10, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(duplicate_decls): Silently accept harmless mismatch
in type of 1st arg of builtin function. From-SVN: r3455
parent
c0ce409a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
gcc/c-decl.c
+22
-0
No files found.
gcc/c-decl.c
View file @
1f7586c1
...
@@ -1317,6 +1317,28 @@ duplicate_decls (newdecl, olddecl)
...
@@ -1317,6 +1317,28 @@ duplicate_decls (newdecl, olddecl)
if
(
types_match
)
if
(
types_match
)
TREE_TYPE
(
olddecl
)
=
newtype
;
TREE_TYPE
(
olddecl
)
=
newtype
;
}
}
/* Accept harmless mismatch in first argument type also.
This is for ffs. */
if
(
TYPE_ARG_TYPES
(
TREE_TYPE
(
newdecl
))
!=
0
&&
TYPE_ARG_TYPES
(
TREE_TYPE
(
olddecl
))
!=
0
&&
TREE_VALUE
(
TYPE_ARG_TYPES
(
TREE_TYPE
(
newdecl
)))
!=
0
&&
TREE_VALUE
(
TYPE_ARG_TYPES
(
TREE_TYPE
(
olddecl
)))
!=
0
&&
(
TYPE_MODE
(
TREE_VALUE
(
TYPE_ARG_TYPES
(
TREE_TYPE
(
newdecl
))))
==
TYPE_MODE
(
TREE_VALUE
(
TYPE_ARG_TYPES
(
TREE_TYPE
(
olddecl
))))))
{
/* Function types may be shared, so we can't just modify
the return type of olddecl's function type. */
tree
newtype
=
build_function_type
(
TREE_TYPE
(
TREE_TYPE
(
olddecl
)),
tree_cons
(
NULL_TREE
,
TREE_VALUE
(
TYPE_ARG_TYPES
(
TREE_TYPE
(
newdecl
))),
TREE_CHAIN
(
TYPE_ARG_TYPES
(
TREE_TYPE
(
olddecl
)))));
types_match
=
comptypes
(
TREE_TYPE
(
newdecl
),
newtype
);
if
(
types_match
)
TREE_TYPE
(
olddecl
)
=
newtype
;
}
}
}
if
(
!
types_match
)
if
(
!
types_match
)
{
{
...
...
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