Patchwork Fix typo in SH spec matching -m4-340

login
register
mail settings
Submitter Joseph S. Myers
Date Feb. 17, 2011, 12:15 a.m.
Message ID <Pine.LNX.4.64.1102170015230.15478@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/83415/
State New
Headers show

Comments

Joseph S. Myers - Feb. 17, 2011, 12:15 a.m.
A stray '-' in a spec in config/sh/embed-elf.h means it would match an
option --m4-340 instead of the clearly intended -m4-340.  I've
committed as obvious this patch to fix this.  Tested building cc1 and
xgcc for cross to sh-elf.

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

	* config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
	--m4-340.

Patch

Index: gcc/config/sh/embed-elf.h
===================================================================
--- gcc/config/sh/embed-elf.h	(revision 170228)
+++ gcc/config/sh/embed-elf.h	(working copy)
@@ -1,6 +1,6 @@ 
 /* Definitions of target machine for GNU compiler for Renesas / SuperH SH 
    non-Linux embedded targets.
-   Copyright (C) 2002, 2003, 2007, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003, 2007, 2010, 2011 Free Software Foundation, Inc.
    Contributed by J"orn Rennecke <joern.rennecke@superh.com>
 
 This file is part of GCC.
@@ -29,7 +29,7 @@  along with GCC; see the file COPYING3.  
 #define LIBGCC_SPEC "%{!shared: \
   %{m4-100*:-lic_invalidate_array_4-100} \
   %{m4-200*:-lic_invalidate_array_4-200} \
-  %{m4-300*|-m4-340:-lic_invalidate_array_4a %{!Os: -lgcc-4-300}} \
+  %{m4-300*|m4-340:-lic_invalidate_array_4a %{!Os: -lgcc-4-300}} \
   %{m4a*:-lic_invalidate_array_4a}} \
   %{Os: -lgcc-Os-4-200} \
   -lgcc \