ia64.c (ia64_promote_function_mode): Fix promotion when for_return is 2.

2011-03-28  Tristan Gingold  <gingold@adacore.com>

	* config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
	when for_return is 2.

From-SVN: r171608
This commit is contained in:
Tristan Gingold 2011-03-28 15:46:44 +00:00 committed by Tristan Gingold
parent 649beb33b6
commit 7450b54f84
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-03-28 Tristan Gingold <gingold@adacore.com>
* config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
when for_return is 2.
2011-03-28 Jeff Law <law@redhat.com>
* var-tracking.c (canonicalize_values_mark): Delete unused

View File

@ -11001,7 +11001,7 @@ ia64_promote_function_mode (const_tree type,
For all other types passed in the general registers, unused bits are
undefined." */
if (!AGGREGATE_TYPE_P (type)
if (for_return != 2
&& GET_MODE_CLASS (mode) == MODE_INT
&& GET_MODE_SIZE (mode) < UNITS_PER_WORD)
{