aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorSa Liu <saliu@de.ibm.com>2006-12-11 00:53:42 +0000
committerBen Elliston <bje@gcc.gnu.org>2006-12-11 11:53:42 +1100
commitcc8d70cd9dd4719e408ab89a1648668a54ac31af (patch)
treec33fcffc2506173c3323aa787571eeea10689c11 /gcc/doc
parentea6f5c57de65853ab17c8db9bc594c06817b97b7 (diff)
downloadgcc-cc8d70cd9dd4719e408ab89a1648668a54ac31af.zip
gcc-cc8d70cd9dd4719e408ab89a1648668a54ac31af.tar.gz
gcc-cc8d70cd9dd4719e408ab89a1648668a54ac31af.tar.bz2
spu-elf.h (STARTFILE_SPEC): Update.
* config/spu/spu-elf.h (STARTFILE_SPEC): Update. (ENDFILE_SPEC): Likewise. * config/spu/spu.opt (mstdmain): New option. * config/spu/crti.asm: Remove. * config/spu/crtn.asm: Likewise. * config/spu/crt0.c: Likewise. * config/spu/crtend.c: Likewise. * config/spu/t-spu-elf (EXTRA_MULTILIB_PARTS): Remove crt0 files listed above. ($(T)crti.o, $(T)crtn.o, $(T)crt1.o, $(T)crtend1.o): Remove. * doc/invoke.texi (SPU Options): Document -mstdmain. Co-Authored-By: Ben Elliston <bje@au.ibm.com> From-SVN: r119727
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 2baf3c3..942ee90 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -733,7 +733,7 @@ See RS/6000 and PowerPC Options.
@gccoptlist{-mwarn-reloc -merror-reloc @gol
-msafe-dma -munsafe-dma @gol
-mbranch-hints @gol
--msmall-mem -mlarge-mem}
+-msmall-mem -mlarge-mem -mstdmain}
@emph{System V Options}
@gccoptlist{-Qy -Qn -YP,@var{paths} -Ym,@var{dir}}
@@ -12920,6 +12920,15 @@ By default, GCC generates code assuming that addresses are never larger
than 18 bits. With @option{-mlarge-mem} code is generated that assumes
a full 32 bit address.
+@item -mstdmain
+@opindex mstdmain
+
+By default, GCC links against startup code that assumes the SPU-style
+main function interface (which has an unconventional parameter list).
+With @option{-mstdmain}, GCC will link your program against startup
+code that assumes a C99-style interface to @code{main}, including a
+local copy of @code{argv} strings.
+
@end table
@node System V Options