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

Bug 519462

Summary: flag-o-matic.eclass - request to add -fplugin* to ALLOWED_FLAGS in setup-allowed-flags()
Product: Gentoo Linux Reporter: PaX Team <pageexec>
Component: EclassesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description PaX Team 2014-08-08 22:43:39 UTC
when one wants to recompile the whole tree with a plugin the easiest way should be to add the necessary -fplugin* switches to CFLAGS. unfortunately setup-allowed-flags strips them away thus i'd like to request $subject. alternatively users should be able to easily extend this whitelist somehow as adding new switches to this list is quite tedious (overlay+forking the eclass).
Comment 1 PaX Team 2014-08-09 19:45:46 UTC
another issue is that test-flags-PROG in flag-o-matic.eclass will try each flag on its own which will not work for -fplugin-arg* as it's only valid with the corresponding -fplugin=* flag (and the order is important too but at least the test would preserve that much).
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2016-07-01 04:15:27 UTC
I added -fplugin*.  Sorry bout the wait, must have missed this one.

test-flags only handling one flag at a time is a known thing.  It's hard to special case all the flags that only make sense with another.
Comment 3 PaX Team 2016-07-04 23:17:41 UTC
thanks for the update. i wonder if test-flags could just be taught to not test -fplugin* at all and just add them to flags directly.