mirror of git://sourceware.org/git/glibc.git
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. */
|
/* Prevent putchar -> _IO_putc inline expansion. */
|
||||||
#define __NO_INLINE__
|
#define __NO_INLINE__
|
||||||
#pragma GCC optimize("O0")
|
#ifdef __clang__
|
||||||
|
# pragma clang optimize off
|
||||||
|
#else
|
||||||
|
# pragma GCC optimize("O0")
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,11 @@
|
||||||
|
|
||||||
/* Prevent getchar -> getc inline expansion. */
|
/* Prevent getchar -> getc inline expansion. */
|
||||||
#define __NO_INLINE__
|
#define __NO_INLINE__
|
||||||
#pragma GCC optimize ("O0")
|
#ifdef __clang__
|
||||||
|
# pragma clang optimize off
|
||||||
|
#else
|
||||||
|
# pragma GCC optimize("O0")
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue