From: Richard Sandiford Date: Wed, 14 Jul 2004 07:35:44 +0000 (+0000) Subject: revert: mips.c (mips_pass_by_reference): Handle mode sizes correctly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7407dec26fd01951b5711768b10a2b1befab12f;p=gcc.git revert: mips.c (mips_pass_by_reference): Handle mode sizes correctly. Revert: 2004-07-13 Richard Henderson * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes correctly. From-SVN: r84677 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb1b88628fa..72602fe877d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-07-14 Richard Sandiford + + Revert: + 2004-07-13 Richard Henderson + * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes + correctly. + 2004-07-14 Paolo Bonzini * tree-dfa.c (make_rename_temp): Work just like diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 02231f39171..4e9b6b9c5eb 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -7339,11 +7339,7 @@ mips_pass_by_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED, if (type == NULL_TREE || mode == DImode || mode == DFmode) return 0; - if (type) - size = int_size_in_bytes (type); - else - size = GET_MODE_SIZE (mode); - + size = int_size_in_bytes (type); return size == -1 || size > UNITS_PER_WORD; } else