This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFA] SH: Problem when compiling with -O0
On Jan 9, 2003, kaz Kojima <kkojima@rr.iij4u.or.jp> wrote:
>> Sounds like a reasonable fix for now. I know we have other problems
>> in this area, especially when branch delay-slot filling is enabled,
>> but they're probably not related with this particular failure mode.
>> Patch pre-approved, with a comment explaining the situation.
> How about this?
Oh, wait! I thought you were talking about the call to
shorten_branches() in sh.c, that is protected by if (optimize). Now I
realize it couldn't possibly make a difference for the problem you
describe.
I can't approve patches for final.c, since it affects
machine-independent code. Perhaps it makes more sense to introduce a
target hook to control whether a non-optimizing build should do only
one pass in shorten_branches, such that other platforms don't have to
pay for the more stringent requirements of SH?
--
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