[PATCH, i386]: Fix cut-n-pasto in ix86_target_string

Uros Bizjak ubizjak@gmail.com
Sun May 2 19:51:00 GMT 2010


Hello!

Found while staring at format string changes.

2010-05-02  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
	when processing flag options.

Tested on x86_64-pc-linux-gnu, bug doesn't (yet) trigger.

Committed to mainline, will be backported to 4.5.

Uros.

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c	(revision 158978)
+++ config/i386/i386.c	(working copy)
@@ -2529,7 +2529,7 @@ ix86_target_string (int isa, int flags,
   if (flags && add_nl_p)
     {
       opts[num++][0] = target_other;
-      sprintf (target_other, "(other flags: %#x)", isa);
+      sprintf (target_other, "(other flags: %#x)", flags);
     }

   /* Add -fpmath= option.  */



More information about the Gcc-patches mailing list