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

Bug 926058

Summary: flag-o-matic.eclass: filter-lto should filter -fvirtual-function-elimination
Product: Gentoo Linux Reporter: Blacktea Hamburger <blackteahamburger>
Component: EclassesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: normal CC: blackteahamburger, eschwartz93
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=926784
Whiteboard:
Package list:
Runtime testing required: ---

Description Blacktea Hamburger 2024-03-03 01:22:35 UTC
-fwhole-program-vtables requires -flto, -fvirtual-function-elimination requires -flto=full. If they are not filtered with filter-lto, clang will report errors:

x86_64-pc-linux-gnu-clang: error: invalid argument '-fvirtual-function-elimination' only allowed with '-flto=full'
x86_64-pc-linux-gnu-clang: error: invalid argument '-fwhole-program-vtables' only allowed with '-flto'

Reproducible: Always
Comment 1 Blacktea Hamburger 2024-03-10 01:00:40 UTC
(In reply to Blacktea Hamburger from comment #0)
> -fwhole-program-vtables requires -flto, -fvirtual-function-elimination
> requires -flto=full. If they are not filtered with filter-lto, clang will
> report errors:
> 
> x86_64-pc-linux-gnu-clang: error: invalid argument
> '-fvirtual-function-elimination' only allowed with '-flto=full'
> x86_64-pc-linux-gnu-clang: error: invalid argument '-fwhole-program-vtables'
> only allowed with '-flto'
> 
> Reproducible: Always

-fwhole-program-vtables can already be filtered by filter-lto.