Commit c6b74046 by John David Anglin Committed by John David Anglin

varasm.c (output_constant_def_contents): Use for the length of a string constant…

varasm.c (output_constant_def_contents): Use for the length of a string constant either its TREE_STRING_LENGTH or its...

	* varasm.c (output_constant_def_contents): Use for the length of a
	string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
	depending on which is larger.

From-SVN: r44604
parent adfcce61
2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
* varasm.c (output_constant_def_contents): Use for the length of a
string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
depending on which is larger.
2001-07-16 Daniel Berlin <dan@cgsoftware.com> 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
* gcse.c: Include df.h for use as a dataflow analyzer. * gcse.c: Include df.h for use as a dataflow analyzer.
......
...@@ -3116,7 +3116,8 @@ output_constant_def_contents (exp, reloc, labelno) ...@@ -3116,7 +3116,8 @@ output_constant_def_contents (exp, reloc, labelno)
/* Output the value of EXP. */ /* Output the value of EXP. */
output_constant (exp, output_constant (exp,
(TREE_CODE (exp) == STRING_CST (TREE_CODE (exp) == STRING_CST
? TREE_STRING_LENGTH (exp) ? MAX (TREE_STRING_LENGTH (exp),
int_size_in_bytes (TREE_TYPE (exp)))
: int_size_in_bytes (TREE_TYPE (exp)))); : int_size_in_bytes (TREE_TYPE (exp))));
} }
......
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