aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJie Zhang <jie@codesourcery.com>2010-03-31 09:57:03 +0000
committerJie Zhang <jiez@gcc.gnu.org>2010-03-31 09:57:03 +0000
commita3f410a2146cce18fc027f8cb3ad1496cb4a64ac (patch)
treec6603407630c8339e8a56e0f1dd13d45086e4650
parent1a3a6aec20544743048edbac859180178b1ac20e (diff)
downloadgcc-a3f410a2146cce18fc027f8cb3ad1496cb4a64ac.zip
gcc-a3f410a2146cce18fc027f8cb3ad1496cb4a64ac.tar.gz
gcc-a3f410a2146cce18fc027f8cb3ad1496cb4a64ac.tar.bz2
re PR middle-end/43574 (Revision 157795 failed gcc.dg/lto/20090914-1 c_lto_20090914-1_0.o)
PR 43574 * opt-functions.awk (var_type_struct): Use signed char type for simple variables. From-SVN: r157859
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/opt-functions.awk4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e1fd302..964204d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/opt-functions.awk b/gcc/opt-functions.awk
index 98414da..918fc6c 100644
--- a/gcc/opt-functions.awk
+++ b/gcc/opt-functions.awk
@@ -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 *"