summaryrefslogtreecommitdiffstats
path: root/gcc/config/m32c
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-07 14:48:02 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-07 14:48:02 +0000
commitd7ee9e9b2c64ba18bed14efcf05bec2ff8b2c824 (patch)
tree3854715e81aa3264e87605ef7883f359d39d6ea7 /gcc/config/m32c
parent75bad54c229bf201f98de053d0d30a6766f0aa93 (diff)
downloadppe42-gcc-d7ee9e9b2c64ba18bed14efcf05bec2ff8b2c824.tar.gz
ppe42-gcc-d7ee9e9b2c64ba18bed14efcf05bec2ff8b2c824.zip
* gcc.c (this_is_linker_script): New variable. Like
this_is_library_file but for the %T constructor. (end_going_arg): If this_is_linker_script is set then locate the script and insert a --script switch before it (do_spec_2): Initialise this_is_linker_script. (do_spec_1): Likewise. Handle %T construct. (eval_spec_function): Preserve this_is_linker_script. * doc/invoke.texi: Document %T construct in spec files. * config/m32c/m32c.h (LIB_SPEC): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151477 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m32c')
-rw-r--r--gcc/config/m32c/m32c.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/m32c/m32c.h b/gcc/config/m32c/m32c.h
index dea5b55b71a..ee092a56525 100644
--- a/gcc/config/m32c/m32c.h
+++ b/gcc/config/m32c/m32c.h
@@ -48,12 +48,12 @@
thing when no CPU is specified, which defaults to R8C. */
#undef LIB_SPEC
#define LIB_SPEC "-( -lc %{msim*:-lsim}%{!msim*:-lnosys} -) \
-%{msim*:%{!T*: %{mcpu=m32cm:-Tsim24.ld}%{mcpu=m32c:-Tsim24.ld} \
- %{!mcpu=m32cm:%{!mcpu=m32c:-Tsim16.ld}}}} \
-%{!T*:%{!msim*: %{mcpu=m16c:-Tm16c.ld} \
- %{mcpu=m32cm:-Tm32cm.ld} \
- %{mcpu=m32c:-Tm32c.ld} \
- %{!mcpu=m16c:%{!mcpu=m32cm:%{!mcpu=m32c:-Tr8c.ld}}}}} \
+%{msim*:%{!T*: %{mcpu=m32cm:%Tsim24.ld}%{mcpu=m32c:%Tsim24.ld} \
+ %{!mcpu=m32cm:%{!mcpu=m32c:%Tsim16.ld}}}} \
+%{!T*:%{!msim*: %{mcpu=m16c:%Tm16c.ld} \
+ %{mcpu=m32cm:%Tm32cm.ld} \
+ %{mcpu=m32c:%Tm32c.ld} \
+ %{!mcpu=m16c:%{!mcpu=m32cm:%{!mcpu=m32c:%Tr8c.ld}}}}} \
"
/* Run-time Target Specification */
OpenPOWER on IntegriCloud