Commit 543144ed by Joseph Myers Committed by Joseph Myers

hpux.h (LINK_SPEC): Add -z.

	* config/ia64/hpux.h (LINK_SPEC): Add -z.
	* config/ia64/ia64.c (ia64_function_value): Return a REG not a
	PARALLEL for an empty structure.

From-SVN: r96004
parent 1eaea409
2005-03-07 Joseph S. Myers <joseph@codesourcery.com>
* config/ia64/hpux.h (LINK_SPEC): Add -z.
* config/ia64/ia64.c (ia64_function_value): Return a REG not a
PARALLEL for an empty structure.
2005-03-07 Kazu Hirata <kazu@cs.umass.edu> 2005-03-07 Kazu Hirata <kazu@cs.umass.edu>
* fold-const.c (fold_binary): Remove handling of RANGE_EXPR. * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
......
...@@ -75,7 +75,7 @@ do { \ ...@@ -75,7 +75,7 @@ do { \
#undef LINK_SPEC #undef LINK_SPEC
#define LINK_SPEC \ #define LINK_SPEC \
"+Accept TypeMismatch \ "-z +Accept TypeMismatch \
%{shared:-b} \ %{shared:-b} \
%{!shared: \ %{!shared: \
-u main \ -u main \
......
...@@ -3915,6 +3915,10 @@ ia64_function_value (tree valtype, tree func ATTRIBUTE_UNUSED) ...@@ -3915,6 +3915,10 @@ ia64_function_value (tree valtype, tree func ATTRIBUTE_UNUSED)
offset = 0; offset = 0;
bytesize = int_size_in_bytes (valtype); bytesize = int_size_in_bytes (valtype);
/* An empty PARALLEL is invalid here, but the return value
doesn't matter for empty structs. */
if (bytesize == 0)
return gen_rtx_REG (mode, GR_RET_FIRST);
for (i = 0; offset < bytesize; i++) for (i = 0; offset < bytesize; i++)
{ {
loc[i] = gen_rtx_EXPR_LIST (VOIDmode, loc[i] = gen_rtx_EXPR_LIST (VOIDmode,
......
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