diff options
author | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-22 02:04:56 +0000 |
---|---|---|
committer | green <green@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-22 02:04:56 +0000 |
commit | 88fe75b72d18e350d20dd7668903acb1a02632dd (patch) | |
tree | 546e374dcbd6805d1662f042e376e640a7d811e1 | |
parent | c0cab2ecdf1fe5a18a26bfdd695ad9c71650976b (diff) | |
download | gcc-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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/moxie/moxie.h | 4 | ||||
-rw-r--r-- | gcc/config/moxie/moxie.opt | 4 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 6 |
4 files changed, 17 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index daca3ed7d68..c1c024d7ed8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-09-21 Anthony Green <green@moxielogic.com> + + * config/moxie/moxie.opt: Add -mno-crt0 option. + * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option. + * doc/invoke.texi (Option Summary): Document -mno-crt0 option. + 2012-09-20 Walter Lee <walt@tilera.com> * configure.ac: Add tilegx to list of targets that support gold. 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 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index e5ffdc993e0..c1f9e515562 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -777,7 +777,7 @@ Objective-C and Objective-C++ Dialects}. -mno-crt0 -mrelax -mliw -msetlb} @emph{Moxie Options} -@gccoptlist{-meb -mel} +@gccoptlist{-meb -mel -mno-crt0} @emph{PDP-11 Options} @gccoptlist{-mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10 @gol @@ -16476,6 +16476,10 @@ configurations. @opindex mel Generate little-endian code. +@item -mno-crt0 +@opindex mno-crt0 +Do not link in the C run-time initialization object file. + @end table @node PDP-11 Options |