diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2020-11-11 13:53:01 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2020-11-11 13:55:09 +0100 |
commit | 1f8fc1f458c4a66618c35d8e292fff6e9dce9f12 (patch) | |
tree | 540980b5d5baef54b3848408f3ba3ac8b6ede40f /gcc/ada/gcc-interface/decl.c | |
parent | 4ac93608d7e33a3e10bbd8d50259bc00a7d01237 (diff) | |
download | gcc-1f8fc1f458c4a66618c35d8e292fff6e9dce9f12.zip gcc-1f8fc1f458c4a66618c35d8e292fff6e9dce9f12.tar.gz gcc-1f8fc1f458c4a66618c35d8e292fff6e9dce9f12.tar.bz2 |
Fix internal error with Shift_Right operator on signed type
This is a regression present on the mainline and 10 branch in the form
of an ICE with a shift operator applied to a variable of a signed type,
and which is caused by a type mismatch.
gcc/ada/ChangeLog:
* gcc-interface/trans.c (gnat_to_gnu) <N_Op_Shift>: Also convert
GNU_MAX_SHIFT if the type of the operation has been changed.
* gcc-interface/utils.c (can_materialize_object_renaming_p): Add
pair of missing parentheses.
gcc/testsuite/ChangeLog:
* gnat.dg/shift1.adb: New test.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
0 files changed, 0 insertions, 0 deletions