From: Bernd Edlinger Date: Fri, 23 Sep 2016 14:43:45 +0000 (+0000) Subject: re PR testsuite/77411 (object-size-9.c -fpic -m32 failure) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0af06385d3f521d4afc501b7ddc75d94120e17a1;p=gcc.git re PR testsuite/77411 (object-size-9.c -fpic -m32 failure) 2016-09-23 Bernd Edlinger Tom de Vries PR testsuite/77411 * c-c++-common/ubsan/object-size-9.c: Call __builtin_exit in C++. Co-Authored-By: Tom de Vries From-SVN: r240437 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 48b56b4b2c0..12bbd22d314 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-09-23 Bernd Edlinger + Tom de Vries + + PR testsuite/77411 + * c-c++-common/ubsan/object-size-9.c: Call __builtin_exit in C++. + 2016-09-23 Marek Polacek * c-c++-common/gomp/atomic-12.c: Skip for C++1z. diff --git a/gcc/testsuite/c-c++-common/ubsan/object-size-9.c b/gcc/testsuite/c-c++-common/ubsan/object-size-9.c index 46f1fb9f9b4..3684bbe22fb 100644 --- a/gcc/testsuite/c-c++-common/ubsan/object-size-9.c +++ b/gcc/testsuite/c-c++-common/ubsan/object-size-9.c @@ -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; }