This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [ARM] Fix minipool handling of aligned labels


On 11/08/11 12:56, Richard Sandiford wrote:
> Trying to compile a certain embedded benchmark with -falign-loops=8
> or above fails due to out-of-range references to the literal pool.
> This is because arm_reorg doesn't take label alignment into account.
> 
> Fixed with the patch below.  Tested on arm-linux-gnueabi.  I also
> tried compiling libav with and without the patch (not using -falign-loops
> for either run).  As hoped, there were no changes in assembly output.
> OK to install?
> 
> Richard
> 
> 
> gcc/
> 	* config/arm/arm.c (get_label_padding): New function.
> 	(create_fix_barrier, md_reorg): Likewise.
> 

OK.

R.


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