Commit a3f410a2 by Jie Zhang Committed by Jie Zhang

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
parent 1a3a6aec
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> 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/sol2.c: Include output.h. * config/sol2.c: Include output.h.
......
...@@ -136,7 +136,7 @@ function var_type(flags) ...@@ -136,7 +136,7 @@ function var_type(flags)
} }
# Return the type of variable that should be associated with the given 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. # type instead of int to save space.
function var_type_struct(flags) function var_type_struct(flags)
{ {
...@@ -146,7 +146,7 @@ function var_type_struct(flags) ...@@ -146,7 +146,7 @@ function var_type_struct(flags)
if (flag_set_p(".*Mask.*", flags)) if (flag_set_p(".*Mask.*", flags))
return "int " return "int "
else else
return "unsigned char " return "signed char "
} }
else else
return "const char *" return "const char *"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment