aboutsummaryrefslogtreecommitdiff
path: root/gcc/targhooks.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-12-21 21:38:11 +0000
committerEric Botcazou <ebotcazou@adacore.com>2012-12-21 21:38:11 +0000
commit14f0dad332aef03db11f38f95117707daf29dd86 (patch)
treeaa471bb608b713f86590a8f15f209ec14179168c /gcc/targhooks.c
parent440bc8b2da0862dd0548380e82b3b878ebe1ff20 (diff)
* rtlanal.c (volatile_insn_p): Delete commented out code.
(side_effects_p): Likewise. (may_trap_p_1) <UNSPEC_VOLATILE>: Return 1 again. * target.def (unspec_may_trap_p): Adjust comment. * targhooks.c (default_unspec_may_trap_p): Don't handle UNSPEC_VOLATILE. * config/ia64/ia64.c (ia64_unspec_may_trap_p): Adjust to above change. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@194681 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r--gcc/targhooks.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index 241c1cce577..954cdb9d1be 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -102,10 +102,8 @@ default_unspec_may_trap_p (const_rtx x, unsigned flags)
{
int i;
- if (GET_CODE (x) == UNSPEC_VOLATILE
- /* Any floating arithmetic may trap. */
- || (SCALAR_FLOAT_MODE_P (GET_MODE (x))
- && flag_trapping_math))
+ /* Any floating arithmetic may trap. */
+ if ((SCALAR_FLOAT_MODE_P (GET_MODE (x)) && flag_trapping_math))
return 1;
for (i = 0; i < XVECLEN (x, 0); ++i)