From 0af06385d3f521d4afc501b7ddc75d94120e17a1 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Fri, 23 Sep 2016 14:43:45 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/c-c++-common/ubsan/object-size-9.c | 4 ++++ 2 files changed, 10 insertions(+) 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; } -- 2.30.2