diff options
author | Bob Wilson <bob.wilson@acm.org> | 2004-01-22 21:42:33 +0000 |
---|---|---|
committer | Bob Wilson <bwilson@gcc.gnu.org> | 2004-01-22 21:42:33 +0000 |
commit | b16417d6156db62e5135262b3ab7da4bfa01ba48 (patch) | |
tree | ec908692ab5d6c4294397b7b7a2ef16ffcd6a143 /gcc/config/xtensa | |
parent | 0dce1c0fcb90265b98cb72aa086b40b0edd75d08 (diff) | |
download | gcc-b16417d6156db62e5135262b3ab7da4bfa01ba48.zip gcc-b16417d6156db62e5135262b3ab7da4bfa01ba48.tar.gz gcc-b16417d6156db62e5135262b3ab7da4bfa01ba48.tar.bz2 |
xtensa.c (function_arg): Generalize logic so that it handles complex and vector modes.
* config/xtensa/xtensa.c (function_arg): Generalize logic so that it
handles complex and vector modes.
From-SVN: r76373
Diffstat (limited to 'gcc/config/xtensa')
-rw-r--r-- | gcc/config/xtensa/xtensa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index e8926c9..d7e2902 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -1753,12 +1753,12 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type, result_mode = (mode == BLKmode ? TYPE_MODE (type) : mode); /* We need to make sure that references to a7 are represented with - rtx that is not equal to hard_frame_pointer_rtx. For BLKmode and - modes bigger than 2 words (because we only have patterns for - modes of 2 words or smaller), we can't control the expansion - unless we explicitly list the individual registers in a PARALLEL. */ + rtx that is not equal to hard_frame_pointer_rtx. For multi-word + modes for which we don't define move patterns, we can't control + the expansion unless we explicitly list the individual registers + in a PARALLEL. */ - if ((mode == BLKmode || words > 2) + if (mode != DImode && mode != DFmode && regno < A7_REG && regno + words > A7_REG) { |