https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100407
Peter Bergner <bergner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at gcc dot gnu.org
--- Comment #11 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #10)
> (In reply to seurer from comment #9)
> >
> > seurer@gcc1-power7:~/gcc/git/build/gcc-test$ grep .rodata attr-retain-1.s
> > .string "used_rodata2"
> > .string "unused_rodata"
> > .string "used_rodata"
> > .globl used_rodata2
> > .globl unused_rodata
> > .globl used_rodata
> > .type unused_rodata, @object
> > .size unused_rodata, 4
> > unused_rodata:
> > .section .sdata.used_rodata,"awR"
> ^^^^^^^^^^^^^^^^^^^^^^^^^
> used_rodata is in a writable section. Is this intentional? -m64 generates
>
> .section .rodata.used_rodata,"aR"
> .align 2
> .type used_rodata, @object
> .size used_rodata, 4
> used_rodata:
> .long 2
>
> which looks correct. If it is intentional, test should exclude -m32 for
> powerpc64-linux-gnu.
Adding Alan for his input here.