Re: Compiler support for forbidding certain methods from being called

2025-04-15 Thread Julian Waters via Gcc
Hi Jonathan, Thanks for the suggestion, it seems promising. I switched out the error attribute for the warning attribute at first, since they should be equivalent except warning just warns instead of erroring. This results in the link step failing if LTO is enabled for some reason though. I then c

Re: Does gcc have different inlining heuristics on different platforms?

2025-04-15 Thread Julian Waters via Gcc
Hi, sorry for bumping this again I forgot to mention that Windows inlining, from what I remember, was ok before gcc 14 landed. It seemed that only once gcc 14 came about that the insane inlining started happening. This might point to the inlining heuristics having changed, but unfortunately gcc 13