Fix rx LIB_SPEC to match -msim not -msim*

Submitted by Joseph S. Myers on Feb. 16, 2011, 11:54 p.m.

Details

Message ID Pine.LNX.4.64.1102162353070.15478@digraph.polyomino.org.uk
State New
Headers show

Commit Message

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*.

Comments

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 hide | download patch | download mbox

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