diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1992-07-02 22:38:01 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1992-07-02 22:38:01 +0000 |
commit | f128d673af96f487006336ba3fd432b27e05c3db (patch) | |
tree | d1ed737e89717a8913c454738b6a9568431b8c40 | |
parent | 83fd3146458b0a9d844491310d46bc6ebc422707 (diff) | |
download | gcc-f128d673af96f487006336ba3fd432b27e05c3db.zip gcc-f128d673af96f487006336ba3fd432b27e05c3db.tar.gz gcc-f128d673af96f487006336ba3fd432b27e05c3db.tar.bz2 |
By default turn on -fno-builtin, but #define the memory/string functions as __builtin_<func>
From-SVN: r1394
-rw-r--r-- | gcc/config/mips/osfrose.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/gcc/config/mips/osfrose.h b/gcc/config/mips/osfrose.h index e8c5d8c..74df8f2 100644 --- a/gcc/config/mips/osfrose.h +++ b/gcc/config/mips/osfrose.h @@ -55,7 +55,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{.cxx: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \ %{.C: -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS} \ %{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \ -%{!.S: -D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}" +%{!.S: -D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}} \ +%{!fbuiltin: %{!fno-builtin: %{O*: \ + -Dmemcpy=__builtin_memcpy \ + -Dmemcmp=__builtin_memcmp \ + -Dstrcpy=__builtin_strcpy \ + -Dstrcmp=__builtin_strcmp \ + -Dstrlen=__builtin_strlen }}}" #define LINK_SPEC "\ %{G*} \ @@ -83,6 +89,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define MD_STARTFILE_PREFIX "/usr/ccs/lib/" #endif +/* Turn on -mpic-extern and -fno-builtin by default. */ +#define CC1_SPEC "\ +%{O*: %{!mno-gpOPT:%{!mno-gpopt: -mgpopt}}} \ +%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \ +%{G*} \ +%{pic-none: -mno-half-pic} \ +%{pic-lib: -mhalf-pic} \ +%{pic-extern: -mhalf-pic} \ +%{pic-calls: -mhalf-pic} \ +%{!pic-*: -mhalf-pic} \ +%{!fbuiltin: %{!fno-builtin: -fno-builtin}} \ +%{save-temps: }" + /* Specify size_t, ptrdiff_t, and wchar_t types. */ #define SIZE_TYPE "long unsigned int" #define PTRDIFF_TYPE "int" |