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
47500756
Commit
47500756
authored
Aug 30, 2013
by
Jan Hubicka
Committed by
Jan Hubicka
Aug 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree.c (set_call_expr_flags): Fix handling of TM_PURE.
From-SVN: r202098
parent
6e8dad05
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
gcc/ChangeLog
+4
-0
gcc/tree.c
+5
-3
No files found.
gcc/ChangeLog
View file @
47500756
2013-08-29 Jan Hubicka <jh@suse.cz>
* tree.c (set_call_expr_flags): Fix handling of TM_PURE.
2013-08-30 Richard Biener <rguenther@suse.de>
2013-08-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/58228
PR tree-optimization/58228
...
...
gcc/tree.c
View file @
47500756
...
@@ -9794,7 +9794,10 @@ build_common_tree_nodes (bool signed_char, bool short_double)
...
@@ -9794,7 +9794,10 @@ build_common_tree_nodes (bool signed_char, bool short_double)
}
}
}
}
/* Modify DECL for given flags. */
/* Modify DECL for given flags.
TM_PURE attribute is set only on types, so the function will modify
DECL's type when ECF_TM_PURE is used. */
void
void
set_call_expr_flags
(
tree
decl
,
int
flags
)
set_call_expr_flags
(
tree
decl
,
int
flags
)
{
{
...
@@ -9818,8 +9821,7 @@ set_call_expr_flags (tree decl, int flags)
...
@@ -9818,8 +9821,7 @@ set_call_expr_flags (tree decl, int flags)
DECL_ATTRIBUTES
(
decl
)
=
tree_cons
(
get_identifier
(
"leaf"
),
DECL_ATTRIBUTES
(
decl
)
=
tree_cons
(
get_identifier
(
"leaf"
),
NULL
,
DECL_ATTRIBUTES
(
decl
));
NULL
,
DECL_ATTRIBUTES
(
decl
));
if
((
flags
&
ECF_TM_PURE
)
&&
flag_tm
)
if
((
flags
&
ECF_TM_PURE
)
&&
flag_tm
)
DECL_ATTRIBUTES
(
decl
)
=
tree_cons
(
get_identifier
(
"transaction_pure"
),
apply_tm_attr
(
decl
,
get_identifier
(
"transaction_pure"
));
NULL
,
DECL_ATTRIBUTES
(
decl
));
/* Looping const or pure is implied by noreturn.
/* Looping const or pure is implied by noreturn.
There is currently no way to declare looping const or looping pure alone. */
There is currently no way to declare looping const or looping pure alone. */
gcc_assert
(
!
(
flags
&
ECF_LOOPING_CONST_OR_PURE
)
gcc_assert
(
!
(
flags
&
ECF_LOOPING_CONST_OR_PURE
)
...
...
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