[PATCH][PR debug/60655] Power/GCC: Reject cross-section symbol subtraction

Maciej W. Rozycki macro@codesourcery.com
Thu Sep 4 21:05:00 GMT 2014


On Thu, 4 Sep 2014, Alan Modra wrote:

> > In fact if you look at the corresponding location expression for
> > -fno-section-anchors code you get something quite screwy too.
> > 
> > 0000018f 00000108 00000114 (DW_OP_breg10 (r10): 0; DW_OP_addr: 144; DW_OP_plus; DW_OP_stack_value
> > 
> > which is (r10) + &modulus.
> 
> Fixed with this obvious patch.  Emitting part of a .debug_loc expression
> is worse than no expression.  Bootstrapped and regression tested
> x86_64-linux and committed revision 214899.
> 
> 	PR debug/60655
> 	* dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
> 	can't be output.

 Thanks for your analysis and the fix, unfortunately the test case still 
fails here, so it must be something else yet. :(

  Maciej



More information about the Gcc-patches mailing list