summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-02-28 11:11:47 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2003-02-28 10:11:47 +0000
commit10a3fdd92639518f67976f894a58df753f6eb858 (patch)
tree90126b3c24f149851de417e946284822a2bf0b58 /gcc/combine.c
parente459243b87904cd66d4bb85892eb831d9e006c2c (diff)
downloadgcc-10a3fdd92639518f67976f894a58df753f6eb858.tar.gz
combine.c (gen_lowpart_for_combine): Update handling of subregs_of_mode
* combine.c (gen_lowpart_for_combine): Update handling of subregs_of_mode * flow.c (life_analysis, mark_used_regs): Likewise. * regclass.c (subregs_of_mode): Turn into single bitmap. (cannot_change-mode_set_regs, invalid_mode_change_p): Update dealing with subregs_of_mode * regs.h (subregs_of_mode): Update prototype. From-SVN: r63552
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 50b1876eb58..e1933870251 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -10201,8 +10201,9 @@ gen_lowpart_for_combine (mode, x)
&& GET_CODE (result) == SUBREG
&& GET_CODE (SUBREG_REG (result)) == REG
&& REGNO (SUBREG_REG (result)) >= FIRST_PSEUDO_REGISTER)
- SET_REGNO_REG_SET (&subregs_of_mode[GET_MODE (result)],
- REGNO (SUBREG_REG (result)));
+ bitmap_set_bit (&subregs_of_mode, REGNO (SUBREG_REG (result))
+ * MAX_MACHINE_MODE
+ + GET_MODE (result));
#endif
if (result)