From d4c32b6fcae6547e1ab8ab8c36faa59389ef54c2 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 18 Nov 2003 23:59:08 -0800 Subject: [PATCH] i386.c (print_reg): Handle QI and HI modes for non Q regs. * config/i386/i386.c (print_reg): Handle QI and HI modes for non Q regs. From-SVN: r73730 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0184f435447..931f74c2aeb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-19 Richard Henderson + + * config/i386/i386.c (print_reg): Handle QI and HI modes for + non Q regs. + 2003-11-19 Andreas Tobler * config/config.gcc (powerpc-*-darwin*): Add libgcc build diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 744f5213c9a..80603716cb5 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -7072,12 +7072,17 @@ print_reg (rtx x, int code, FILE *file) /* FALLTHRU */ case 16: case 2: + normal: fputs (hi_reg_name[REGNO (x)], file); break; case 1: + if (REGNO (x) >= ARRAY_SIZE (qi_reg_name)) + goto normal; fputs (qi_reg_name[REGNO (x)], file); break; case 0: + if (REGNO (x) >= ARRAY_SIZE (qi_high_reg_name)) + goto normal; fputs (qi_high_reg_name[REGNO (x)], file); break; default: -- 2.30.2