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
af05e6e5
Commit
af05e6e5
authored
Jun 26, 2015
by
Marek Polacek
Committed by
Marek Polacek
Jun 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
From-SVN: r224996
parent
7318e44f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
gcc/c-family/ChangeLog
+4
-0
gcc/c-family/c-common.c
+1
-2
No files found.
gcc/c-family/ChangeLog
View file @
af05e6e5
2015
-
06
-
26
Marek
Polacek
<
polacek
@
redhat
.
com
>
*
c
-
common
.
c
(
handle_unused_attribute
):
Use
VAR_OR_FUNCTION_DECL_P
.
2015
-
06
-
25
Andrew
MacLeod
<
amacleod
@
redhat
.
com
>
2015
-
06
-
25
Andrew
MacLeod
<
amacleod
@
redhat
.
com
>
*
c
-
common
.
c
:
Remove
ipa
-
ref
.
h
and
plugin
-
api
.
h
from
include
list
.
*
c
-
common
.
c
:
Remove
ipa
-
ref
.
h
and
plugin
-
api
.
h
from
include
list
.
...
...
gcc/c-family/c-common.c
View file @
af05e6e5
...
@@ -7376,8 +7376,7 @@ handle_unused_attribute (tree *node, tree name, tree ARG_UNUSED (args),
...
@@ -7376,8 +7376,7 @@ handle_unused_attribute (tree *node, tree name, tree ARG_UNUSED (args),
tree
decl
=
*
node
;
tree
decl
=
*
node
;
if
(
TREE_CODE
(
decl
)
==
PARM_DECL
if
(
TREE_CODE
(
decl
)
==
PARM_DECL
||
VAR_P
(
decl
)
||
VAR_OR_FUNCTION_DECL_P
(
decl
)
||
TREE_CODE
(
decl
)
==
FUNCTION_DECL
||
TREE_CODE
(
decl
)
==
LABEL_DECL
||
TREE_CODE
(
decl
)
==
LABEL_DECL
||
TREE_CODE
(
decl
)
==
TYPE_DECL
)
||
TREE_CODE
(
decl
)
==
TYPE_DECL
)
{
{
...
...
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