On 11/18/13, 10:01 AM, Andrew Pinski wrote:
> On Mon, Nov 18, 2013 at 9:58 AM, Cesar Philippidis
> <ce...@codesourcery.com> wrote:
>> This patch addresses the failures caused by the
>> gcc.c-torture/execute/20101011-1.c test on aarch64. The reason why this
>> test fails is because aarch64 does not trap on integer division by zero.
>>
>> Is this OK for trunk? If so, please commit it because I do not have an
>> svn account.
> 
> ENOPATCH

Sorry about that. I attached the patch this time.

Thanks,
Cesar

2013-11-18  Cesar Philippidis  <ce...@codesourcery.com>

        gcc/testsuite/
        * gcc.c-torture/execute/20101011-c (DO_TEST): Define as 0 
        for aarch64 since it does not trap on integer division.

Index: gcc/testsuite/gcc.c-torture/execute/20101011-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/execute/20101011-1.c    (revision 204752)
+++ gcc/testsuite/gcc.c-torture/execute/20101011-1.c    (working copy)
@@ -12,10 +12,9 @@
 #elif defined (__sh__)
   /* On SH division by zero does not trap.  */
 # define DO_TEST 0
-#elif defined (__aarch64__) && !defined(__linux__)
-  /* AArch64 divisions do trap by default, but libgloss targets do not
-     intercept the trap and raise a SIGFPE. So restrict the test to
-     AArch64 systems that use the Linux kernel.  */
+#elif defined (__aarch64__)
+  /* On AArch64 integer division by zero does not trap.  */
+# define DO_TEST 0
 #elif defined (__TMS320C6X__)
   /* On TI C6X division by zero does not trap.  */
 # define DO_TEST 0

Reply via email to