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
This commit is contained in:
Jie Zhang 2010-03-31 09:57:03 +00:00 committed by Jie Zhang
parent 1a3a6aec20
commit a3f410a214
2 changed files with 8 additions and 2 deletions

View 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.

View 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 *"