diff options
author | Andreas Krebbel <Andreas.Krebbel@de.ibm.com> | 2011-07-20 13:37:56 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2011-07-20 13:37:56 +0000 |
commit | c4100a35b87ee44400da49fbc187f5d95a8f30a3 (patch) | |
tree | 40d135157629df4e766463c7f4b14c0d6eef7586 /gcc | |
parent | c56db1005607c9d0fb552280c2065ecbe7bb2b23 (diff) | |
download | gcc-c4100a35b87ee44400da49fbc187f5d95a8f30a3.zip gcc-c4100a35b87ee44400da49fbc187f5d95a8f30a3.tar.gz gcc-c4100a35b87ee44400da49fbc187f5d95a8f30a3.tar.bz2 |
s390.c (s390_class_max_nregs): Fix return type.
2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_class_max_nregs): Fix return type.
* config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
From-SVN: r176511
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/s390/s390-protos.h | 2 | ||||
-rw-r--r-- | gcc/config/s390/s390.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6a9b143..ca0dfa0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> + + * config/s390/s390.c (s390_class_max_nregs): Fix return type. + * config/s390/s390-protos.h (s390_class_max_nregs): Likewise. + 2011-07-20 Richard Guenther <rguenther@suse.de> PR middle-end/18908 diff --git a/gcc/config/s390/s390-protos.h b/gcc/config/s390/s390-protos.h index 79fce84..01a3584 100644 --- a/gcc/config/s390/s390-protos.h +++ b/gcc/config/s390/s390-protos.h @@ -41,7 +41,7 @@ extern void s390_function_profiler (FILE *, int); extern void s390_set_has_landing_pad_p (bool); extern bool s390_hard_regno_mode_ok (unsigned int, enum machine_mode); extern bool s390_hard_regno_rename_ok (unsigned int, unsigned int); -extern bool s390_class_max_nregs (enum reg_class, enum machine_mode); +extern int s390_class_max_nregs (enum reg_class, enum machine_mode); #ifdef RTX_CODE extern int s390_extra_constraint_str (rtx, int, const char *); diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 5976b7f..d52765e 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -7572,7 +7572,7 @@ s390_hard_regno_rename_ok (unsigned int old_reg, unsigned int new_reg) /* Maximum number of registers to represent a value of mode MODE in a register of class RCLASS. */ -bool +int s390_class_max_nregs (enum reg_class rclass, enum machine_mode mode) { switch (rclass) |