Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347281 - sys-devel/gcc-4.5.2: backport PowerPC -msingle-pic-base support
Summary: sys-devel/gcc-4.5.2: backport PowerPC -msingle-pic-base support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-30 12:28 UTC by Joakim Tjernlund
Modified: 2011-07-03 03:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
-msingle-pic-base for gcc <= 4.4.x (0001-PowerPC-Add-msingle-pic-base-option-gcc-4.4.patch,3.48 KB, text/plain)
2010-11-30 12:30 UTC, Joakim Tjernlund
Details
-msingle-pic-base for gcc >= 4.5.x (0001-PowerPC-Add-msingle-pic-base-option-gcc-4.5.patch,3.34 KB, text/plain)
2010-11-30 12:31 UTC, Joakim Tjernlund
Details
-fpic support for -mrelocatable (fpic-mrelocatable.patch,767 bytes, text/plain)
2010-11-30 12:31 UTC, Joakim Tjernlund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2010-11-30 12:28:44 UTC
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
Comment 1 Joakim Tjernlund 2010-11-30 12:30:32 UTC
Created attachment 255933 [details]
-msingle-pic-base for gcc <= 4.4.x
Comment 2 Joakim Tjernlund 2010-11-30 12:31:10 UTC
Created attachment 255935 [details]
-msingle-pic-base for gcc >= 4.5.x
Comment 3 Joakim Tjernlund 2010-11-30 12:31:56 UTC
Created attachment 255937 [details]
-fpic support for -mrelocatable
Comment 4 Joakim Tjernlund 2011-04-08 15:10:18 UTC
Now that 4.6 is out with support for the above mentioned features, perhaps
these patches could be added to 4.5.5?
Comment 6 Joakim Tjernlund 2011-04-10 16:48:26 UTC
(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
Comment 7 Joakim Tjernlund 2011-04-10 17:19:46 UTC
(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
Comment 10 SpanKY gentoo-dev 2011-04-10 19:56:04 UTC
the patches are queued.  next time a bump occurs, they'll be included.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2011-07-03 03:18:13 UTC
Released in 4.4.5 p1.3.