summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/egcs/gcc')
-rw-r--r--gnu/egcs/gcc/config/sparc/openbsd64.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/config/sparc/openbsd64.h b/gnu/egcs/gcc/config/sparc/openbsd64.h
index 9b0e35c9747..2a72bf884bc 100644
--- a/gnu/egcs/gcc/config/sparc/openbsd64.h
+++ b/gnu/egcs/gcc/config/sparc/openbsd64.h
@@ -53,6 +53,10 @@ Boston, MA 02111-1307, USA. */
%{assert*} \
%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}"
+/* For profiled binaries we have to change the memory model. */
+#undef CC1_SPEC
+#define CC1_SPEC "%{p*:-mcmodel=medlow} %{p:-mcmodel=medlow}"
+
/* As an elf system, we need crtbegin/crtend stuff. */
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "\