From: Andreas Krebbel Date: Wed, 20 Jul 2011 13:37:56 +0000 (+0000) Subject: s390.c (s390_class_max_nregs): Fix return type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4100a35b87ee44400da49fbc187f5d95a8f30a3;p=gcc.git s390.c (s390_class_max_nregs): Fix return type. 2011-07-20 Andreas Krebbel * config/s390/s390.c (s390_class_max_nregs): Fix return type. * config/s390/s390-protos.h (s390_class_max_nregs): Likewise. From-SVN: r176511 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6a9b143b96c..ca0dfa0a170 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-20 Andreas Krebbel + + * 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 PR middle-end/18908 diff --git a/gcc/config/s390/s390-protos.h b/gcc/config/s390/s390-protos.h index 79fce849a16..01a3584fe86 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 5976b7fd328..d52765eb035 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)