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: [Patch, PR 60158] Generate .fixup sections for .data.rel.ro.local entries.


On Fri, Apr 25, 2014 at 02:57:38PM +0000, rohitarulraj@freescale.com wrote:
> Source file: gcc-4.8.2/gcc/varasm.c
> @@ -7120,7 +7120,7 @@
>        if (CONSTANT_POOL_ADDRESS_P (symbol))
>         {
>           desc = SYMBOL_REF_CONSTANT (symbol);
>           output_constant_pool_1 (desc, 1);                             ------------- (A)
>           offset += GET_MODE_SIZE (desc->mode);

I think the reason 1 is passed here for align is that with
-fsection-anchors, in output_object_block we've already laid out
everything in the block, assigning offsets from the start of the
block.  Aligning shouldn't be necessary, because we've already done
that..  OTOH, it shouldn't hurt to align again.

-- 
Alan Modra
Australia Development Lab, IBM


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