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
678566a5
Commit
678566a5
authored
Apr 11, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(duplicate_decls, pushdecl, builtin_function): Use DECL_FUNCTION_CODE
instead of DECL_SET_FUNCTION_CODE. From-SVN: r7025
parent
73f3c7c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/c-decl.c
+3
-3
No files found.
gcc/c-decl.c
View file @
678566a5
...
@@ -1761,7 +1761,7 @@ duplicate_decls (newdecl, olddecl)
...
@@ -1761,7 +1761,7 @@ duplicate_decls (newdecl, olddecl)
if
(
DECL_BUILT_IN
(
olddecl
))
if
(
DECL_BUILT_IN
(
olddecl
))
{
{
DECL_BUILT_IN
(
newdecl
)
=
1
;
DECL_BUILT_IN
(
newdecl
)
=
1
;
DECL_
SET_FUNCTION_CODE
(
newdecl
,
DECL_FUNCTION_CODE
(
olddecl
)
);
DECL_
FUNCTION_CODE
(
newdecl
)
=
DECL_FUNCTION_CODE
(
olddecl
);
}
}
else
else
DECL_FRAME_SIZE
(
newdecl
)
=
DECL_FRAME_SIZE
(
olddecl
);
DECL_FRAME_SIZE
(
newdecl
)
=
DECL_FRAME_SIZE
(
olddecl
);
...
@@ -2090,7 +2090,7 @@ pushdecl (x)
...
@@ -2090,7 +2090,7 @@ pushdecl (x)
if
(
DECL_BUILT_IN
(
oldglobal
))
if
(
DECL_BUILT_IN
(
oldglobal
))
{
{
DECL_BUILT_IN
(
x
)
=
DECL_BUILT_IN
(
oldglobal
);
DECL_BUILT_IN
(
x
)
=
DECL_BUILT_IN
(
oldglobal
);
DECL_
SET_FUNCTION_CODE
(
x
,
DECL_FUNCTION_CODE
(
oldglobal
)
);
DECL_
FUNCTION_CODE
(
x
)
=
DECL_FUNCTION_CODE
(
oldglobal
);
}
}
/* Keep the arg types from a file-scope fcn defn. */
/* Keep the arg types from a file-scope fcn defn. */
if
(
TYPE_ARG_TYPES
(
TREE_TYPE
(
oldglobal
))
!=
0
if
(
TYPE_ARG_TYPES
(
TREE_TYPE
(
oldglobal
))
!=
0
...
@@ -3125,7 +3125,7 @@ builtin_function (name, type, function_code, library_name)
...
@@ -3125,7 +3125,7 @@ builtin_function (name, type, function_code, library_name)
if
(
function_code
!=
NOT_BUILT_IN
)
if
(
function_code
!=
NOT_BUILT_IN
)
{
{
DECL_BUILT_IN
(
decl
)
=
1
;
DECL_BUILT_IN
(
decl
)
=
1
;
DECL_
SET_FUNCTION_CODE
(
decl
,
function_code
)
;
DECL_
FUNCTION_CODE
(
decl
)
=
function_code
;
}
}
/* Warn if a function in the namespace for users
/* Warn if a function in the namespace for users
is used without an occasion to consider it declared. */
is used without an occasion to consider it declared. */
...
...
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