This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ARM code generation bug with -O2...
- To: law at cygnus dot com
- Subject: Re: ARM code generation bug with -O2...
- From: Scott Bambrough <scottb at netwinder dot org>
- Date: Thu, 29 Jun 2000 09:28:29 -0400
- CC: Philip Blundell <Philip dot Blundell at pobox dot com>, gcc bugs list <gcc-bugs at gcc dot gnu dot org>, Richard Earnshaw <richard dot earnshaw at arm dot com>, Nick Clifton <nickc at cygnus dot com>
- Organization: Rebel.com
- References: <6359.962240622@upchuck>
There was a testcase included in the message. The original problem was noticed
compiling nfscache.c in the ARM Linux kernel. I reduced the code that caused
the warning to about 15 lines of C code included in the message.
Compiling that with `gcc -c -O2 -save-temps scott.c` yields the warning and
assembler listing I included.
There shouldn't be a problem including it in the testsuite, the original file is
GPL'ed and I have a copyright assignment on file.
Scott
Jeffrey A Law wrote:
>
> In message <E137QAG-0000ys-00@kings-cross.london.uk.eu.org>you write:
> > >Should the compiler be generating this assembler construct?
> >
> > No. The generated code you quoted derives no advantage from the post-inc
> > and this construct is fairly clearly bogus. Do you have a testcase?
> And where does the testcase come from ;-) I'd like to see it added to
> our regression testsuite.
> jeff
--
Scott Bambrough - Software Engineer
REBEL.COM http://www.rebel.com
NetWinder http://www.netwinder.org