diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-25 08:35:34 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-25 08:35:34 +0000 |
commit | 3ade79a060371ee8a25766849b56c579bf654def (patch) | |
tree | 8319593c6bb165d1856638c586b025b1313f1529 /gcc/config/frv | |
parent | b04eca11a3b3f9941cec6537d0ab9fd1d170fb7b (diff) | |
download | gcc-3ade79a060371ee8a25766849b56c579bf654def.tar.gz |
* config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89525 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/frv')
-rw-r--r-- | gcc/config/frv/linux.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/config/frv/linux.h b/gcc/config/frv/linux.h index 6f0f1b27f67..0f56e374b21 100644 --- a/gcc/config/frv/linux.h +++ b/gcc/config/frv/linux.h @@ -71,4 +71,19 @@ asm (TEXT_SECTION_ASM_OP); #undef Twrite #define Twrite __write +/* uClibc doesn't support many of the C90-reserved C99-defined math + functions. Make sure we don't implicitly generate them unless C99 + support is explicitly requested. This will affect both frv-linux + and frv-uclinux. Even though the glibc, the primary library for + frv-linux, would enable better code to be generated with + TARGET_C99_FUNCTIONS defined to 1, uClinux can be used as the + library for frv-linux as well, and we'd better have that work + correctly. Maybe we move this to a uclibc.h header in the future, + and use that for frv-uclinux and frv-linux-uclibc? Define it here + for now, such that we can still get exactly the same code out of + both frv-linux-gcc and frv-uclinux-gcc, when feeding them the same + preprocessed sources. */ +#undef TARGET_C99_FUNCTIONS +#define TARGET_C99_FUNCTIONS 0 + #endif /* __FRV_LINUX_H__ */ |