aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorCharles Hannum <mycroft@gnu.org>1992-07-02 19:51:49 +0000
committerCharles Hannum <mycroft@gnu.org>1992-07-02 19:51:49 +0000
commit52d3ac7640841d8015c68520b3c97c4973f7bdba (patch)
tree9e8e9cc0df52de3e243ea95e071804be88e711c7 /gcc
parent3a5babacd9f34ceb94ae707696fd0ffeae85f7ca (diff)
downloadgcc-52d3ac7640841d8015c68520b3c97c4973f7bdba.zip
gcc-52d3ac7640841d8015c68520b3c97c4973f7bdba.tar.gz
gcc-52d3ac7640841d8015c68520b3c97c4973f7bdba.tar.bz2
entered into RCS
From-SVN: r1391
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/osfrose.h37
1 files changed, 31 insertions, 6 deletions
diff --git a/gcc/config/i386/osfrose.h b/gcc/config/i386/osfrose.h
index ee20eec..887339e 100644
--- a/gcc/config/i386/osfrose.h
+++ b/gcc/config/i386/osfrose.h
@@ -65,16 +65,41 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
%{.cxx: -D__LANGUAGE_C_PLUS_PLUS} \
%{.C: -D__LANGUAGE_C_PLUS_PLUS} \
%{.m: -D__LANGUAGE_OBJECTIVE_C} \
-%{!.S: -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}"
+%{!.S: -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 }}}"
#ifdef CC1_SPEC
#undef CC1_SPEC
#endif
-#define CC1_SPEC \
- "%{pic-none: -mno-half-pic} \
- %{pic-lib: -mhalf-pic} \
- %{pic-extern: -mhalf-pic} \
- %{pic-calls: -mhalf-pic}"
+
+#ifdef HAVE_HALF_PIC
+/* 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: }"
+
+#else
+/* Turn on -fno-builtin by default. */
+#define CC1_SPEC "\
+%{O*: %{!mno-gpOPT:%{!mno-gpopt: -mgpopt}}} \
+%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
+%{G*} \
+%{!fbuiltin: %{!fno-builtin: -fno-builtin}} \
+%{save-temps: }"
+#endif
#ifdef ASM_SPEC
#undef ASM_SPEC