diff options
author | Ben Elliston <bje@au.ibm.com> | 2008-04-10 22:43:35 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2008-04-11 08:43:35 +1000 |
commit | e47f8bba9ce987d62b82ec250940ac865b658649 (patch) | |
tree | 12fa65f7ef7bf0191aab239bd7c546516d49899d /gcc | |
parent | 4394b61e02706f4315e0cb68d728e2e5019788c4 (diff) | |
download | gcc-e47f8bba9ce987d62b82ec250940ac865b658649.zip gcc-e47f8bba9ce987d62b82ec250940ac865b658649.tar.gz gcc-e47f8bba9ce987d62b82ec250940ac865b658649.tar.bz2 |
* config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
From-SVN: r134181
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/spu/spu.c | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b2a307..3a3d622 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +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> * gcc/tree-vrp.c (extract_range_from_binary_expr): Don't handle diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index 8096b6fe..55868ac 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -4518,10 +4518,9 @@ spu_init_builtins (void) if (d->name == 0) continue; - /* find last parm */ + /* Find last parm. */ for (parm = 1; d->parm[parm] != SPU_BTI_END_OF_PARAMS; parm++) - { - } + ; p = void_list_node; while (parm > 1) @@ -4535,6 +4534,9 @@ spu_init_builtins (void) NULL, NULL_TREE); if (d->fcode == SPU_MASK_FOR_LOAD) TREE_READONLY (d->fndecl) = 1; + + /* These builtins don't throw. */ + TREE_NOTHROW (d->fndecl) = 1; } } |