Reinstall Apr 24th fix, lost during May 6th gcc2 merge:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 31 Oct 1998 07:50:34 +0000 (07:50 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 31 Oct 1998 07:50:34 +0000 (07:50 +0000)
        * c-common.c (check_format_info): Don't check for the 'x'
        format character twice, instead check for 'x' and 'X'

From-SVN: r23472

gcc/ChangeLog
gcc/c-common.c

index b1bc6b3906651e4340f40840381816197683d6cf..70c5155d30d0cf019b8c2a5a6894af433f90448f 100644 (file)
@@ -1,3 +1,9 @@
+Sat Oct 31 10:23:14 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       Reinstall Apr 24th fix, lost during May 6th gcc2 merge:
+        * c-common.c (check_format_info): Don't check for the 'x'
+       format character twice, instead check for 'x' and 'X'
+
 Fri Oct 30 14:50:25 1998  Jeffrey A Law  (law@cygnus.com)
 
        * configure.in (assembler features): Also make gas is configured if
index ddb87cd4a004370f0bb3f7312df72698f3b85f7b..c9023585f3c2c3d56fd0c59593a999fb95d9dfb2 100644 (file)
@@ -1803,7 +1803,7 @@ check_format_info (info, params)
       if (precise && index (flag_chars, '0') != 0
          && (format_char == 'd' || format_char == 'i'
              || format_char == 'o' || format_char == 'u'
-             || format_char == 'x' || format_char == 'x'))
+             || format_char == 'x' || format_char == 'X'))
        warning ("`0' flag ignored with precision specifier and `%c' format",
                 format_char);
       switch (length_char)