Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292866 - sys-devel/gcc: add USE flag for enabling double precision FP on PPC e500 platforms
Summary: sys-devel/gcc: add USE flag for enabling double precision FP on PPC e500 plat...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High enhancement
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-12 02:29 UTC by Alexander Dubov
Modified: 2017-12-09 20:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Dubov 2009-11-12 02:29:52 UTC
When building for powerpc-linux-gnuspe target (e500 based platforms) gcc defaults to producing both compiler and binaries with only single precision FP instructions. To get it build with proper double precision FP, an additional switch should be passed to "configure": "--enable-e500-double". Given that all recent e500 are double precision capable, can we add an appropriate USE flag to gcc ebuild?

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2009-11-13 03:53:38 UTC
you can use EXTRA_ECONF in per-package env settings
Comment 2 Alexander Dubov 2009-11-13 04:47:53 UTC
I can use a lot of things, manual compilation included. :-)
Considering that e500 constitute a visible part of deployed PPC machines and that it requires a complete rebuilding of the world (it has an incompatible FP architecture), USE flag is the least we can do.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2017-08-06 10:06:10 UTC
@ppc: does this still make sense?
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-06 12:58:43 UTC
I think the problem with 'powerpc-linux-gnuspe' triplet is nobody
(gcc, glibc, binutils) understands why it should have 'double' support.

Something like 'crossdev powerpc-e500v2-linux-gnuspe' should force eclasses
to pass that flags:
    https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/toolchain.eclass#n1134
Comment 5 Alexander Dubov 2017-08-07 02:55:31 UTC
A sudden activity on this bug report made me feel nostalgic. :-)

Some e500v2 chips are probably still around, but Freescale had decided not to pursue the development of that ISA (switching back to normal PPC with all subsequent cores), so it's rather unlikely that people may need this in the future (which happens to be now).
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2017-12-09 20:49:16 UTC
(In reply to Alexander Dubov from comment #5)
> A sudden activity on this bug report made me feel nostalgic. :-)
> 
> Some e500v2 chips are probably still around, but Freescale had decided not
> to pursue the development of that ISA (switching back to normal PPC with all
> subsequent cores), so it's rather unlikely that people may need this in the
> future (which happens to be now).

Ack. Let's forget about it then. Thank you! :)