summaryrefslogtreecommitdiff
path: root/gcc/config/moxie
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-22 02:04:56 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-22 02:04:56 +0000
commit88fe75b72d18e350d20dd7668903acb1a02632dd (patch)
tree546e374dcbd6805d1662f042e376e640a7d811e1 /gcc/config/moxie
parentc0cab2ecdf1fe5a18a26bfdd695ad9c71650976b (diff)
downloadgcc-88fe75b72d18e350d20dd7668903acb1a02632dd.tar.gz
Add -mno-crt0 to moxie port
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191629 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/moxie')
-rw-r--r--gcc/config/moxie/moxie.h4
-rw-r--r--gcc/config/moxie/moxie.opt4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h
index 7604ac427a0..b01f568206e 100644
--- a/gcc/config/moxie/moxie.h
+++ b/gcc/config/moxie/moxie.h
@@ -1,5 +1,5 @@
/* Target Definitions for moxie.
- Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2009, 2010, 2012 Free Software Foundation, Inc.
Contributed by Anthony Green.
This file is part of GCC.
@@ -22,7 +22,7 @@
#define GCC_MOXIE_H
#undef STARTFILE_SPEC
-#define STARTFILE_SPEC "crt0%O%s crti.o%s crtbegin.o%s"
+#define STARTFILE_SPEC "%{!mno-crt0:crt0%O%s} crti.o%s crtbegin.o%s"
/* Provide an ENDFILE_SPEC appropriate for svr4. Here we tack on our own
magical crtend.o file (see crtstuff.c) which provides part of the
diff --git a/gcc/config/moxie/moxie.opt b/gcc/config/moxie/moxie.opt
index 00f3ff82cc8..3e6268a4ec1 100644
--- a/gcc/config/moxie/moxie.opt
+++ b/gcc/config/moxie/moxie.opt
@@ -25,3 +25,7 @@ Generate big-endian code
mel
Target RejectNegative Report Mask(LITTLE_ENDIAN)
Generate little-endian code
+
+; Ignored by the compiler
+mno-crt0
+Target RejectNegative