about summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2015-10-07 23:17:33 -0700
committerPaul Pluzhnikov <ppluzhnikov@google.com>2015-10-07 23:17:33 -0700
commitab382c88944a3491c57a2cee21b55b90442e6250 (patch)
treec836425ad61bf7cfe0e73b95b6be3bc809be4e59 /stdio-common
parente4bc326dbbf7328775fe7dd39de1178821363e0a (diff)
downloadglibc-ab382c88944a3491c57a2cee21b55b90442e6250.tar.gz
glibc-ab382c88944a3491c57a2cee21b55b90442e6250.tar.xz
glibc-ab382c88944a3491c57a2cee21b55b90442e6250.zip
stdio-common/tst-printf-bz18872.sh: Use attribute optimize instead of
This fixes build problems on arm, aarch64 and s390, which failed due to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59884.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/tst-printf-bz18872.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh
index 0127e73024..2517e8319e 100644
--- a/stdio-common/tst-printf-bz18872.sh
+++ b/stdio-common/tst-printf-bz18872.sh
@@ -30,9 +30,8 @@ cat <<'EOF'
 /*
   Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
   to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396  */
-#pragma GCC push_options
-#pragma GCC optimize ("-O0")
 
+__attribute__ ((optimize ("-O0")))
 int do_test (void)
 {
     mtrace ();
@@ -62,7 +61,6 @@ cat <<'EOF'
 
   return 0;
 }
-#pragma GCC pop_options
 
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"