Re: eliminating code at link-time, using a CRT built with -flto

2025-06-30 Thread Richard Biener via Gcc
On Mon, Jun 30, 2025 at 8:59 AM Iain Sandoe wrote: > > Hi > > I am investigating the following; > > in the program code I have calls like > > uint16_t x = __crt_func ( 10 ); > > where the argument is guaranteed to be a compile-time uint16_t literal. > > So I’ve arranged a series of crts (built wi

eliminating code at link-time, using a CRT built with -flto

2025-06-29 Thread Iain Sandoe
Hi I am investigating the following; in the program code I have calls like uint16_t x = __crt_func ( 10 ); where the argument is guaranteed to be a compile-time uint16_t literal. So I’ve arranged a series of crts (built with -flto) where one is like 1/ uint16_t __crt_func (const uint16_t