summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-09-24 13:17:16 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-09-24 13:17:16 +0000
commita40100271bf7ea229d248af8d71c26b9a4b70eab (patch)
tree606372bc80715030e4c89fcaa3a5c3cde43e6b1e /gnu/egcs/gcc
parentf8843ffb2f2d1bfd7de2cfe1c6e4f8abb796e7bc (diff)
Force memory model to medlow for profiling.
espie@ ok.
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 "\