mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
Handle pragma GCC optimize for clang
Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
799e686c88
commit
a69a0bb619
@ -19,7 +19,11 @@
|
||||
|
||||
/* Prevent putchar -> _IO_putc inline expansion. */
|
||||
#define __NO_INLINE__
|
||||
#pragma GCC optimize("O0")
|
||||
#ifdef __clang__
|
||||
# pragma clang optimize off
|
||||
#else
|
||||
# pragma GCC optimize("O0")
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,7 +18,11 @@
|
||||
|
||||
/* Prevent getchar -> getc inline expansion. */
|
||||
#define __NO_INLINE__
|
||||
#pragma GCC optimize ("O0")
|
||||
#ifdef __clang__
|
||||
# pragma clang optimize off
|
||||
#else
|
||||
# pragma GCC optimize("O0")
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user