re PR testsuite/77411 (object-size-9.c -fpic -m32 failure)
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 23 Sep 2016 14:43:45 +0000 (14:43 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Fri, 23 Sep 2016 14:43:45 +0000 (14:43 +0000)
2016-09-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
            Tom de Vries  <tom@codesourcery.com>

        PR testsuite/77411
        * c-c++-common/ubsan/object-size-9.c: Call __builtin_exit in C++.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>
From-SVN: r240437

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/object-size-9.c

index 48b56b4b2c0467877535863d27d3ddf576b27287..12bbd22d3140e7e2103f2695fd41c09df1ae3a9b 100644 (file)
@@ -1,3 +1,9 @@
+2016-09-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+           Tom de Vries  <tom@codesourcery.com>
+
+       PR testsuite/77411
+       * c-c++-common/ubsan/object-size-9.c: Call __builtin_exit in C++.
+
 2016-09-23  Marek Polacek  <polacek@redhat.com>
 
        * c-c++-common/gomp/atomic-12.c: Skip for C++1z.
index 46f1fb9f9b45ee4135bda9c656e7df040b1443c8..3684bbe22fb5f2f393f3efd02ac39aacb86fdebd 100644 (file)
@@ -93,5 +93,9 @@ main (void)
 #endif
   f4 (12);
   f5 (12);
+#ifdef __cplusplus
+  /* Stack may be smashed by f2/f3 above.  */
+  __builtin_exit (0);
+#endif
   return 0;
 }