Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926058 - flag-o-matic.eclass: filter-lto should filter -fvirtual-function-elimination
Summary: flag-o-matic.eclass: filter-lto should filter -fvirtual-function-elimination
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-03 01:22 UTC by Blacktea Hamburger
Modified: 2024-03-11 22:28 UTC (History)
2 users (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 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.