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
This commit is contained in:
Joseph Myers 2005-03-07 03:28:13 +00:00 committed by Joseph Myers
parent 1eaea40908
commit 543144ed5d
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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>
* fold-const.c (fold_binary): Remove handling of RANGE_EXPR.

View File

@ -75,7 +75,7 @@ do { \
#undef LINK_SPEC
#define LINK_SPEC \
"+Accept TypeMismatch \
"-z +Accept TypeMismatch \
%{shared:-b} \
%{!shared: \
-u main \

View File

@ -3915,6 +3915,10 @@ ia64_function_value (tree valtype, tree func ATTRIBUTE_UNUSED)
offset = 0;
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++)
{
loc[i] = gen_rtx_EXPR_LIST (VOIDmode,