[PATCH] Outwit compiler dead code elimination in break.exp test (revised patch)

Andrew Cagney cagney@gnu.org
Mon Dec 8 00:31:00 GMT 2003


> On Monday 01 December 2003 10:52, Andrew Cagney wrote:
> 
>> As for stopping GCC from eliminating code - last time this came up (ref
>> store.exp) it was recommended that the .c files be split so that GCC
>> couldn't see the potential optimization.
> 
> 
> OK.  I've revised the patch to split the source file.  This is
> pretty ugly though as there are a half dozen tests that have
> to be modified to accomodate two source files.
> 
> I've attached the patch for review/approval.

Wow, thanks for doing this!  I was thinking that just one test needed 
changes.  Anyway, perhaphs wait for michaelc to put it through his test 
harness before committing.

Andrew




More information about the Gdb-patches mailing list