Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 602724

Summary: Introduce armv4 use flag
Product: Gentoo Linux Reporter: Aric Belsito <lluixhi>
Component: ProfilesAssignee: Gentoo ARM Porters <arm>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kensington
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/gentoo/gentoo/pull/3105
Whiteboard:
Package list:
Runtime testing required: ---

Description Aric Belsito 2016-12-15 02:01:53 UTC
I'm currently updating a package (speex-1.2.0 https://bugs.gentoo.org/show_bug.cgi?id=596400), and as a configuration option, it has armv4 optimizations.

I'd like to add an armv4 use flag to base/use.mask and arch/arm/armv4*/use.mask so that other architectures can't accidentally enable it.

@mgorny suggested this be made into a global use flag, but it seems that other arm use flags (armv5te, armv6, armv6t2, armvfp) are not global use flags.

What is the policy on arm arch use flags?
Comment 1 SpanKY gentoo-dev 2017-03-06 23:05:03 UTC
i don't think armvX makes sense as USE flags.  it's like asking we make every option to -march= and -mcpu= a USE flag.  build systems should be able to detect the target ARM architecture with a compile time test.

#if __ARM_ARCH == 4
...do armv4 stuff...
#endif

same goes for armv5 & armv6.  the ffmpeg/libav behavior isn't something we should encourage.
Comment 2 SpanKY gentoo-dev 2017-03-06 23:06:39 UTC

*** This bug has been marked as a duplicate of bug 554526 ***