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
abdb813b
Commit
abdb813b
authored
May 28, 2019
by
Eric Botcazou
Committed by
Eric Botcazou
May 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc-interface/utils.c (handle_stack_protect_attribute): Move around.
From-SVN: r271694
parent
5ca5ef68
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
gcc/ada/ChangeLog
+4
-0
gcc/ada/gcc-interface/utils.c
+16
-16
No files found.
gcc/ada/ChangeLog
View file @
abdb813b
2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (handle_stack_protect_attribute): Move around.
2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
* doc/gnat_rm/implementation_defined_pragmas.rst (Machine_Attribute):
Document additional optional parameters.
* sem_prag.adb (Analyze_Pragma) <Pragma_Machine_Attribute>: Accept
...
...
gcc/ada/gcc-interface/utils.c
View file @
abdb813b
...
...
@@ -6364,6 +6364,22 @@ handle_noreturn_attribute (tree *node, tree name, tree ARG_UNUSED (args),
return
NULL_TREE
;
}
/* Handle a "stack_protect" attribute; arguments as in
struct attribute_spec.handler. */
static
tree
handle_stack_protect_attribute
(
tree
*
node
,
tree
name
,
tree
,
int
,
bool
*
no_add_attrs
)
{
if
(
TREE_CODE
(
*
node
)
!=
FUNCTION_DECL
)
{
warning
(
OPT_Wattributes
,
"%qE attribute ignored"
,
name
);
*
no_add_attrs
=
true
;
}
return
NULL_TREE
;
}
/* Handle a "noinline" attribute; arguments as in
struct attribute_spec.handler. */
...
...
@@ -6392,22 +6408,6 @@ handle_noinline_attribute (tree *node, tree name,
return
NULL_TREE
;
}
/* Handle a "stack_protect" attribute; arguments as in
struct attribute_spec.handler. */
static
tree
handle_stack_protect_attribute
(
tree
*
node
,
tree
name
,
tree
,
int
,
bool
*
no_add_attrs
)
{
if
(
TREE_CODE
(
*
node
)
!=
FUNCTION_DECL
)
{
warning
(
OPT_Wattributes
,
"%qE attribute ignored"
,
name
);
*
no_add_attrs
=
true
;
}
return
NULL_TREE
;
}
/* Handle a "noclone" attribute; arguments as in
struct attribute_spec.handler. */
...
...
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