Object file questions

Mike via D.gnu d.gnu at puremagic.com
Sun Aug 17 02:55:53 PDT 2014


On Saturday, 16 August 2014 at 11:16:09 UTC, Artur Skawina via
D.gnu wrote:

> A `@nocode` attribute would be a good idea, yes, but there's no 
> need
> to make it implicit for `@inline`.
>
>> But this situation demonstrates why having an intelligent 
>> linker is a better solution than decorating with attributes.  
>> The linker should know if you took an address of an 
>> always-inlined function or not and decide whether or not to 
>> remove it from the binary.
>
> It already does. Apparently there are some kind of problems with
> certain setups, but, instead of addressing those problems, more 
> and
> more /language/ hacks are proposed...
>

Do you mean the problems with --gc-sections breaking code?

Mike


More information about the D.gnu mailing list