This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Scale DW_CFA_advance_loc[124] output values
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: jakub at redhat dot com
- Cc: schwab at suse dot de, binutils at sourceware dot org
- Date: Wed, 19 Nov 2008 10:00:19 -0500 (EST)
- Subject: Re: [PATCH] Scale DW_CFA_advance_loc[124] output values
> > I'm thinking the optimization in check_eh_frame is only valid when
> > the code alignment factor is 1. That's the only time the advance
> > can be represented as a difference of symbols.
>
> The optimization is valid for any code alignment factor, just it behaves
> incorrectly ATM for factor > 1.
The file was written to optimize GCC generated EH data and I believe
GCC hard codes the factor to 1. So, fixing this optimization is less
pressing than the other bug.
Jakub, would you take this? I only have time for GCC work on weekends.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)