re PR middle-end/43574 (Revision 157795 failed gcc.dg/lto/20090914-1 c_lto_20090914...
authorJie Zhang <jie@codesourcery.com>
Wed, 31 Mar 2010 09:57:03 +0000 (09:57 +0000)
committerJie Zhang <jiez@gcc.gnu.org>
Wed, 31 Mar 2010 09:57:03 +0000 (09:57 +0000)
PR 43574
* opt-functions.awk (var_type_struct): Use signed char type
for simple variables.

From-SVN: r157859

gcc/ChangeLog
gcc/opt-functions.awk

index e1fd302656bfd87e634317d1a75c9720bf5e19de..964204d008e8f09ca55d069fb55f4ac64ea98a6e 100644 (file)
@@ -1,3 +1,9 @@
+2010-03-31  Jie Zhang  <jie@codesourcery.com>
+
+       PR 43574
+       * opt-functions.awk (var_type_struct): Use signed char type
+       for simple variables.
+
 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * config/sol2.c: Include output.h.
index 98414dae9a95bb0b19e537ec86b38ebd0cd31e62..918fc6c51423b3915d135f757ee5cd9413e925aa 100644 (file)
@@ -136,7 +136,7 @@ function var_type(flags)
 }
 
 # Return the type of variable that should be associated with the given flags
-# for use within a structure.  Simple variables are changed to unsigned char
+# for use within a structure.  Simple variables are changed to signed char
 # type instead of int to save space.
 function var_type_struct(flags)
 {
@@ -146,7 +146,7 @@ function var_type_struct(flags)
                if (flag_set_p(".*Mask.*", flags))
                        return "int "
                else
-                       return "unsigned char "
+                       return "signed char "
        }
        else
                return "const char *"