This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug target/10412] Renesas SH - Incorrect code generation


On Jun 25, 2003, "Dhananjay R. Deshpande" <dhananjayd@KPITCummins.com> wrote:

> The patch below fixes the problem on 3.3 branch and mainline by
> removing MACL and MACH from fixed regs when -mhitachi option is
> passed.

I don't understand why this patch would fix the problem, and it's
definitely not correct in general.  At least MACH_REG must remain
fixed if the target happens to be SH1, per comments right before
FIXED_REGISTERS in sh.h.

I suspect your patch is just papering over a different problem, that
could still trigger with different testcases.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]