PR 43574
authorjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Mar 2010 09:57:03 +0000 (09:57 +0000)
committerjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Mar 2010 09:57:03 +0000 (09:57 +0000)
* opt-functions.awk (var_type_struct): Use signed char type
for simple variables.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157859 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/opt-functions.awk

index e1fd302..964204d 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 98414da..918fc6c 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 *"