This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [TI C6x] BUG: Incorrect assembly generated


Hi Timon,

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.


Cheers
  Nick



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