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
8a57ecff
Commit
8a57ecff
authored
May 18, 2017
by
Nathan Sidwell
Committed by
Nathan Sidwell
May 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-decl.c (pushdecl_top_level): Delete unused function.
From-SVN: r248199
parent
31ab89c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
28 deletions
+4
-28
gcc/c/ChangeLog
+4
-0
gcc/c/c-decl.c
+0
-28
No files found.
gcc/c/ChangeLog
View file @
8a57ecff
2017
-
05
-
18
Nathan
Sidwell
<
nathan
@acm
.
org
>
*
c
-
decl
.
c
(
pushdecl_top_level
)
:
Delete
unused
function
.
2017
-
05
-
18
Marek
Polacek
<
polacek
@redhat
.
com
>
2017
-
05
-
18
Marek
Polacek
<
polacek
@redhat
.
com
>
*
c
-
decl
.
c
(
match_builtin_function_types
)
:
Use
NULL_TREE
instead
of
0
.
*
c
-
decl
.
c
(
match_builtin_function_types
)
:
Use
NULL_TREE
instead
of
0
.
...
...
gcc/c/c-decl.c
View file @
8a57ecff
...
@@ -3089,34 +3089,6 @@ pushdecl (tree x)
...
@@ -3089,34 +3089,6 @@ pushdecl (tree x)
}
}
return
x
;
return
x
;
}
}
/* Record X as belonging to file scope.
This is used only internally by the Objective-C front end,
and is limited to its needs. duplicate_decls is not called;
if there is any preexisting decl for this identifier, it is an ICE. */
tree
pushdecl_top_level
(
tree
x
)
{
tree
name
;
bool
nested
=
false
;
gcc_assert
(
VAR_P
(
x
)
||
TREE_CODE
(
x
)
==
CONST_DECL
);
name
=
DECL_NAME
(
x
);
gcc_assert
(
TREE_CODE
(
x
)
==
CONST_DECL
||
!
I_SYMBOL_BINDING
(
name
));
if
(
TREE_PUBLIC
(
x
))
{
bind
(
name
,
x
,
external_scope
,
/*invisible=*/
true
,
/*nested=*/
false
,
UNKNOWN_LOCATION
);
nested
=
true
;
}
if
(
file_scope
)
bind
(
name
,
x
,
file_scope
,
/*invisible=*/
false
,
nested
,
UNKNOWN_LOCATION
);
return
x
;
}
/* Issue a warning about implicit function declaration. ID is the function
/* Issue a warning about implicit function declaration. ID is the function
...
...
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