This is the mail archive of the gcc-bugs@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]

Re: ARM code generation bug with -O2...


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

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