Fix powerpc-lynxos build

Joseph S. Myers joseph@codesourcery.com
Thu Dec 16 00:44:00 GMT 2010


In the course of testing another patch I found that powerpc-*-lynxos* 
included lynx.opt twice in extra_options and this broke the build.  It's a 
bug in the options awk scripts that it breaks the build (through duplicate 
field declarations of fields generated internally to describe target 
options without variables explicitly given in the .opt files), but also 
clearly the .opt file should not be listed twice.  I've committed this 
patch as obvious to remove the duplicate.

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 167883)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2010-12-16  Joseph Myers  <joseph@codesourcery.com>
+
+	* config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to
+	extra_options twice.
+
 2010-12-15  Joseph Myers  <joseph@codesourcery.com>
 
 	* doc/tm.texi.in (US_SOFTWARE_GOFAST): Don't document.
Index: config.gcc
===================================================================
--- config.gcc	(revision 167883)
+++ config.gcc	(working copy)
@@ -2162,7 +2162,6 @@
 	tmake_file="t-lynx rs6000/t-lynx"
 	extra_options="${extra_options} rs6000/sysv4.opt lynx.opt"
 	extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
-	extra_options="${extra_options} lynx.opt"
 	thread_file=lynx
 	gnu_ld=yes
 	gas=yes

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list