LDC, ARM (seems like x86 too) bug?

Johan j at j.nl
Wed Sep 20 15:50:39 UTC 2017

On Wednesday, 20 September 2017 at 06:57:19 UTC, Jack Applegame 
> On Tuesday, 19 September 2017 at 21:21:41 UTC, Johan Engelen 
> wrote:
>> This is a question of spec details. We are assuming C 
>> semantics for extern variables: just like normal variables, 
>> they cannot alias.
>> See also: 
>> https://stackoverflow.com/questions/5559281/c-externs-that-alias-the-same-address
>> LLVM optimizes these cases more aggressively than GCC: 
>> https://godbolt.org/g/yJdp9P
>> -Johan
> Thank you for explanation.

Is it important for you to be able to alias external symbols?
(ARM's compiler and others have __attribute__((alias)) for it)


More information about the digitalmars-d-ldc mailing list