mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Handle pragma GCC optimize for clang
Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
799e686c88
commit
a69a0bb619
2 changed files with 10 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue