This is the mail archive of the
mailing list for the binutils project.
Re: [TI C6x] BUG: Incorrect assembly generated
- From: nick clifton <nickc at redhat dot com>
- To: Timon ter Braak <timon at terbraak dot org>, binutils at sourceware dot org
- Date: Thu, 14 Mar 2013 09:40:19 +0000
- Subject: Re: [TI C6x] BUG: Incorrect assembly generated
- References: <513F0A76.email@example.com> <513F0C1F.firstname.lastname@example.org>
I found that compiling with -O0 does work fine. Even -O1 gives the
reported issue. As this is an optimization-related issue, should it be
directed to GCC?
This does sound like a GCC bug.
In the incorrect assembly, at address 0xed0, register b2 is reused,
showing a behavior like 'return (*val == (*val == current));'.
So you have a bug that is in the assembler instructions *generated* by
the compiler, not a bug in the object file that is produced by the
assembler assembling the compiler's output. Correct ? In which case
this is definitely a GCC bug.