Support for -msingle-pic-base for PPC was just added to gcc trunk. This is a backport to gcc 4.4 and gcc 4.5 -msingle-pic-base is primarly useful in embedded development. This option is mostly only useful with -fpic so one needs to add -fpic support to -mrelocatable too. Reproducible: Always
Created attachment 255933 [details] -msingle-pic-base for gcc <= 4.4.x
Created attachment 255935 [details] -msingle-pic-base for gcc >= 4.5.x
Created attachment 255937 [details] -fpic support for -mrelocatable
Now that 4.6 is out with support for the above mentioned features, perhaps these patches could be added to 4.5.5?
did you mean 4.5.3 and not 4.5.5 ? ive queued the -msingle-pic-base for 4.4.{4,5} and 4.5.{0,1,2}. i dont know what that fpic/mrelocatable patch is about ? has that been merged upstream as well ? http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.4.4/gentoo/30_all_gcc-4.4-ppc-msingle-pic-base.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.4.5/gentoo/30_all_gcc-4.4-ppc-msingle-pic-base.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.0/gentoo/30_all_gcc-4.5-ppc-msingle-pic-base.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.1/gentoo/30_all_gcc-4.5-ppc-msingle-pic-base.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.2/gentoo/30_all_gcc-4.5-ppc-msingle-pic-base.patch?rev=1.1
(In reply to comment #5) > did you mean 4.5.3 and not 4.5.5 ? I meant 4.5.5 > > ive queued the -msingle-pic-base for 4.4.{4,5} and 4.5.{0,1,2}. i dont know > what that fpic/mrelocatable patch is about ? has that been merged upstream as > well ? Yes, it is upstream and is needed to make single-pic-base useful. Earlier -mrelocatable always implied -fPIC, with this patch you get choose. > > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.4.4/gentoo/30_all_gcc-4.4-ppc-msingle-pic-base.patch?rev=1.1 > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.4.5/gentoo/30_all_gcc-4.4-ppc-msingle-pic-base.patch?rev=1.1 > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.0/gentoo/30_all_gcc-4.5-ppc-msingle-pic-base.patch?rev=1.1 > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.1/gentoo/30_all_gcc-4.5-ppc-msingle-pic-base.patch?rev=1.1 > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.2/gentoo/30_all_gcc-4.5-ppc-msingle-pic-base.patch?rev=1.1
(In reply to comment #6) > (In reply to comment #5) > > did you mean 4.5.3 and not 4.5.5 ? > > I meant 4.5.5 uhh, not thinking well today: 4.5.2 and 4.4.5 > > > > > ive queued the -msingle-pic-base for 4.4.{4,5} and 4.5.{0,1,2}. i dont know > > what that fpic/mrelocatable patch is about ? has that been merged upstream as > > well ? > > Yes, it is upstream and is needed to make single-pic-base useful. > Earlier -mrelocatable always implied -fPIC, with this patch you get > choose. > > > > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.4.4/gentoo/30_all_gcc-4.4-ppc-msingle-pic-base.patch?rev=1.1 > > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.4.5/gentoo/30_all_gcc-4.4-ppc-msingle-pic-base.patch?rev=1.1 > > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.0/gentoo/30_all_gcc-4.5-ppc-msingle-pic-base.patch?rev=1.1 > > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.1/gentoo/30_all_gcc-4.5-ppc-msingle-pic-base.patch?rev=1.1 > > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.2/gentoo/30_all_gcc-4.5-ppc-msingle-pic-base.patch?rev=1.1
ok, added that too http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.4.4/gentoo/31_all_gcc-4.4-ppc-fpic-mrelocatable.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.4.5/gentoo/31_all_gcc-4.4-ppc-fpic-mrelocatable.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.0/gentoo/31_all_gcc-4.4-ppc-fpic-mrelocatable.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.1/gentoo/31_all_gcc-4.4-ppc-fpic-mrelocatable.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.2/gentoo/31_all_gcc-4.4-ppc-fpic-mrelocatable.patch?rev=1.1
(In reply to comment #8) > ok, added that too > > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.4.4/gentoo/31_all_gcc-4.4-ppc-fpic-mrelocatable.patch?rev=1.1 > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.4.5/gentoo/31_all_gcc-4.4-ppc-fpic-mrelocatable.patch?rev=1.1 > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.0/gentoo/31_all_gcc-4.4-ppc-fpic-mrelocatable.patch?rev=1.1 > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.1/gentoo/31_all_gcc-4.4-ppc-fpic-mrelocatable.patch?rev=1.1 > http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.2/gentoo/31_all_gcc-4.4-ppc-fpic-mrelocatable.patch?rev=1.1 Looks good, are these included now if I rebuild gcc?
the patches are queued. next time a bump occurs, they'll be included.
Released in 4.4.5 p1.3.