Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-devel/gcc forcing -O2? [fixed]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3775

PostPosted: Sun Sep 22, 2024 10:45 pm    Post subject: sys-devel/gcc forcing -O2? [fixed] Reply with quote

I have a feeling sys-devel/gcc forces -O2 as I recently failed trying to change it?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Mon Sep 23, 2024 6:24 am; edited 2 times in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22433

PostPosted: Sun Sep 22, 2024 11:34 pm    Post subject: Reply with quote

Per eclass/toolchain.eclass, if you do not USE=custom-cflags, then yes, this is forced, because too many people had problems with overly aggressive CFLAGS.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2813

PostPosted: Sun Sep 22, 2024 11:48 pm    Post subject: Reply with quote

Actually, it has a special rule for -O3 where it'll use the custom target "bootstrap-O3" and then filter it (this lets upstream handle using -O3 similarly to lto with bootstrap-lto). It should use -O3 for most of the build (regardless of custom-cflags), and seems to use it fine for me at a glance.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3775

PostPosted: Mon Sep 23, 2024 6:23 am    Post subject: Reply with quote

Well,
Code:
equery u
didn't show custom-flags for some reason.
Thus confused pov.

Target is to lower the value here.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum