From 7450b54f8413bd7be5d0a822f42ad1a24b84582c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 28 Mar 2011 15:46:44 +0000 Subject: [PATCH] ia64.c (ia64_promote_function_mode): Fix promotion when for_return is 2. 2011-03-28 Tristan Gingold * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion when for_return is 2. From-SVN: r171608 --- gcc/ChangeLog | 5 +++++ gcc/config/ia64/ia64.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac86016629e..70b6506cf95 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-28 Tristan Gingold + + * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion + when for_return is 2. + 2011-03-28 Jeff Law * var-tracking.c (canonicalize_values_mark): Delete unused diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index b86c4d89857..5f22b17ef67 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -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) { -- 2.30.2