]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix host/target confusion for attribute To_Address
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 23 Apr 2020 14:22:28 +0000 (16:22 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 18 Jun 2020 09:08:29 +0000 (05:08 -0400)
commit5b3950bed95136ad2b5e037e29daf3a464dc7cd5
tree5380f76c098483c4b7931e4880918d29475b1295
parent0c32ab8232a40d8bb982c0ac13864d2290dc9336
[Ada] Fix host/target confusion for attribute To_Address

2020-06-18  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* sem_attr.adb (Analyze_Attribute) <To_Address>: Use the address
size of the target instead of the host when checking the value of
a static expression.  Also use standard idiom for exponentiation.
gcc/ada/sem_attr.adb