Patchwork Fix rx LIB_SPEC to match -msim not -msim*

login
register
mail settings
Submitter Joseph S. Myers
Date Feb. 16, 2011, 11:54 p.m.
Message ID <Pine.LNX.4.64.1102162353070.15478@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/83413/
State New
Headers show

Comments

Joseph S. Myers - Feb. 16, 2011, 11:54 p.m.
rx's LIB_SPEC matches -msim* in various places, but the option is just
-msim according to rx.opt, with no optional joined argument.  This
patch restricts the spec to match the .opt file (the alternative would
be to use JoinedOrMissing on the option in rx.opt).

Tested building cc1 and xgcc for cross to rx-elf.  OK to commit?

(This is the same issue for rx as was addressed for m32c by
<http://gcc.gnu.org/ml/gcc-patches/2011-02/msg01083.html>.)

2011-02-16  Joseph Myers  <joseph@codesourcery.com>

	* config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
Nick Clifton - Feb. 17, 2011, 3:30 p.m.
Hi Joseph,

> 2011-02-16  Joseph Myers<joseph@codesourcery.com>
>
> 	* config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.

Approved - please apply.

Cheers
   Nick

Patch

Index: gcc/config/rx/rx.h
===================================================================
--- gcc/config/rx/rx.h	(revision 170228)
+++ gcc/config/rx/rx.h	(working copy)
@@ -85,10 +85,10 @@  extern enum rx_cpu_types  rx_cpu_type;
 #define LIB_SPEC "					\
 --start-group						\
 -lc							\
-%{msim*:-lsim}%{!msim*:-lnosys}				\
+%{msim:-lsim}%{!msim:-lnosys}				\
 %{fprofile-arcs|fprofile-generate|coverage:-lgcov} 	\
 --end-group					   	\
-%{!T*: %{msim*:%Trx-sim.ld}%{!msim*:%Trx.ld}}		\
+%{!T*: %{msim:%Trx-sim.ld}%{!msim:%Trx.ld}}		\
 "
 
 #undef  LINK_SPEC