Commit e47f8bba by Ben Elliston Committed by Ben Elliston

* config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.

From-SVN: r134181
parent 4394b61e
2008-04-11 Ben Elliston <bje@au.ibm.com>
* config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
2008-04-10 Rafael Espindola <espindola@google.com> 2008-04-10 Rafael Espindola <espindola@google.com>
* gcc/tree-vrp.c (extract_range_from_binary_expr): Don't handle * gcc/tree-vrp.c (extract_range_from_binary_expr): Don't handle
......
...@@ -4518,10 +4518,9 @@ spu_init_builtins (void) ...@@ -4518,10 +4518,9 @@ spu_init_builtins (void)
if (d->name == 0) if (d->name == 0)
continue; continue;
/* find last parm */ /* Find last parm. */
for (parm = 1; d->parm[parm] != SPU_BTI_END_OF_PARAMS; parm++) for (parm = 1; d->parm[parm] != SPU_BTI_END_OF_PARAMS; parm++)
{ ;
}
p = void_list_node; p = void_list_node;
while (parm > 1) while (parm > 1)
...@@ -4535,6 +4534,9 @@ spu_init_builtins (void) ...@@ -4535,6 +4534,9 @@ spu_init_builtins (void)
NULL, NULL_TREE); NULL, NULL_TREE);
if (d->fcode == SPU_MASK_FOR_LOAD) if (d->fcode == SPU_MASK_FOR_LOAD)
TREE_READONLY (d->fndecl) = 1; TREE_READONLY (d->fndecl) = 1;
/* These builtins don't throw. */
TREE_NOTHROW (d->fndecl) = 1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment