[PATCH] Scale DW_CFA_advance_loc[124] output values

Jakub Jelinek jakub@redhat.com
Tue Nov 18 15:53:00 GMT 2008


On Tue, Nov 18, 2008 at 04:23:01PM +0100, Andreas Schwab wrote:
> "John David Anglin" <dave@hiauly1.hia.nrc.ca> writes:
> 
> > The enclosed patch fixes GCC PR target/37610.  This was noticed
> > on hppa-unknown-linux-gnu because DWARF2_LINE_MIN_INSN_LENGTH is
> > defined to 4 in tc-hppa.h.  This resulted incorrect advances being
> > computed in the unwind process, resulting in the failure of the
> > g++.dg/eh/pr29166.C execution test.
> >
> > A fix to GCC is also needed to detect buggy assembler versions.
> >
> > Tested on hppa-unknown-linux-gnu.  Ok?
> 
> What about the uses in ehopt.c?

Yeah, seems ehopt.c is broken in many places too, at least in
check_eh_frame, eh_frame_estimate_size_before_relax and
eh_frame_convert_frag.  Fortunately gcc was always using code
alignment factor 1, so it didn't matter.

	Jakub



More information about the Binutils mailing list