diff options
author | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-07 19:01:45 +0000 |
---|---|---|
committer | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-07 19:01:45 +0000 |
commit | 8364148daca6563ebe3f65e58aba760deee71cee (patch) | |
tree | f479c36e8fe7a7cdbd7377e05a683d090bd9cb91 /gcc/config/s390 | |
parent | e8e2764693bd76d9eb22d309c522ba06718f56e2 (diff) | |
download | gcc-8364148daca6563ebe3f65e58aba760deee71cee.tar.gz |
2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
* config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132172 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/s390')
-rw-r--r-- | gcc/config/s390/s390.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h index a19cdd4920f..391ac1ce5e7 100644 --- a/gcc/config/s390/s390.h +++ b/gcc/config/s390/s390.h @@ -636,10 +636,11 @@ CUMULATIVE_ARGS; #define FUNCTION_ARG(CUM, MODE, TYPE, NAMED) \ s390_function_arg (&CUM, MODE, TYPE, NAMED) -/* Arguments can be placed in general registers 2 to 6, - or in floating point registers 0 and 2. */ +/* Arguments can be placed in general registers 2 to 6, or in floating + point registers 0 and 2 for 31 bit and fprs 0, 2, 4 and 6 for 64 + bit. */ #define FUNCTION_ARG_REGNO_P(N) (((N) >=2 && (N) <7) || \ - (N) == 16 || (N) == 17) + (N) == 16 || (N) == 17 || (TARGET_64BIT && ((N) == 18 || (N) == 19))) /* Scalar return values. */ |