mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2015-10-07 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||||
|
|
||||||
|
* stdio-common/tst-printf-bz18872.sh: Use attribute optimize
|
||||||
|
instead of #pragma optimize.
|
||||||
|
|
||||||
2015-10-07 Carlos O'Donell <carlos@redhat.com>
|
2015-10-07 Carlos O'Donell <carlos@redhat.com>
|
||||||
|
|
||||||
[BZ #17195]
|
[BZ #17195]
|
||||||
|
@ -30,9 +30,8 @@ cat <<'EOF'
|
|||||||
/*
|
/*
|
||||||
Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time
|
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 */
|
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)
|
int do_test (void)
|
||||||
{
|
{
|
||||||
mtrace ();
|
mtrace ();
|
||||||
@ -62,7 +61,6 @@ cat <<'EOF'
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#pragma GCC pop_options
|
|
||||||
|
|
||||||
#define TEST_FUNCTION do_test ()
|
#define TEST_FUNCTION do_test ()
|
||||||
#include "../test-skeleton.c"
|
#include "../test-skeleton.c"
|
||||||
|
Reference in New Issue
Block a user