LDC, ARM (seems like x86 too) bug?

Jack Applegame japplegame at gmail.com
Wed Sep 20 06:57:19 UTC 2017


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.


More information about the digitalmars-d-ldc mailing list