diff options
author | Julian Brown <julian@codesourcery.com> | 2012-08-17 15:06:06 +0000 |
---|---|---|
committer | Julian Brown <jules@gcc.gnu.org> | 2012-08-17 15:06:06 +0000 |
commit | a508e1a8cb73ecd40946610bb612d8296ae2156c (patch) | |
tree | a4aab7b6801f4dae3cd156e8ea735e4383a8807b /gcc | |
parent | 5615a07d0ca68ca60d096661ff8c618b666eaba0 (diff) | |
download | gcc-a508e1a8cb73ecd40946610bb612d8296ae2156c.zip gcc-a508e1a8cb73ecd40946610bb612d8296ae2156c.tar.gz gcc-a508e1a8cb73ecd40946610bb612d8296ae2156c.tar.bz2 |
Makefile.in (LIB2_DIVMOD_EXCEPTION_FLAGS): Default to -fexceptions -fnon-call-exceptions if not defined.
libgcc/
* Makefile.in (LIB2_DIVMOD_EXCEPTION_FLAGS): Default to
-fexceptions -fnon-call-exceptions if not defined.
($(lib2-divmod-o), $(lib2-divmod-s-o)): Use above.
* config/arm/t-bpabi (LIB2_DIVMOD_EXCEPTION_FLAGS): Define.
gcc/testsuite/
* gcc.target/arm/div64-unwinding.c: New test.
From-SVN: r190483
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/div64-unwinding.c | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e680b76..3936642 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-08-17 Julian Brown <julian@codesourcery.com> + + * gcc.target/arm/div64-unwinding.c: New test. + 2012-08-17 Jakub Jelinek <jakub@redhat.com> * gcc.dg/torture/Wsizeof-pointer-memaccess1.c: New test. diff --git a/gcc/testsuite/gcc.target/arm/div64-unwinding.c b/gcc/testsuite/gcc.target/arm/div64-unwinding.c new file mode 100644 index 0000000..b7ed891 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/div64-unwinding.c @@ -0,0 +1,24 @@ +/* Performing a 64-bit division should not pull in the unwinder. */ + +/* { dg-do run } */ +/* { dg-options "-O0" } */ + +#include <stdlib.h> + +long long +foo (long long c, long long d) +{ + return c/d; +} + +long long x = 0; +long long y = 1; + +extern int (*_Unwind_RaiseException) (void *) __attribute__((weak)); + +int main(void) +{ + if (&_Unwind_RaiseException != NULL) + abort ();; + return foo (x, y); +} |