]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 25 Oct 2004 08:35:34 +0000 (08:35 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Mon, 25 Oct 2004 08:35:34 +0000 (08:35 +0000)
From-SVN: r89525

gcc/ChangeLog
gcc/config/frv/linux.h

index e216c9ac83c9d521bdff777d2227d7a4320b4d6f..039be86bbc45ca0a740f1b046b4565098e446d0e 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
+
+       * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
+
 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
 
        * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
index 6f0f1b27f677eeed846a5fce51f7377a449fb127..0f56e374b2190bbf1b63732ad3be8407e7fb501d 100644 (file)
@@ -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__ */