diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2022-01-16 14:09:20 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-19 14:05:32 +0000 |
commit | 8630f50feeb78d4a69eaeabf520b734a67bfe32b (patch) | |
tree | 503ee06455cc1d6cca648adac3e381fd0548451c /gcc/ada/cstand.adb | |
parent | 0d9583573b7fbb4ee3fc769f962dfdde8684d795 (diff) | |
download | gcc-8630f50feeb78d4a69eaeabf520b734a67bfe32b.zip gcc-8630f50feeb78d4a69eaeabf520b734a67bfe32b.tar.gz gcc-8630f50feeb78d4a69eaeabf520b734a67bfe32b.tar.bz2 |
[Ada] Preserve unchecked conversion of string constant
This makes it possible to pass the result to a C function directly.
gcc/ada/
* gcc-interface/utils.cc (unchecked_convert): Do not fold a string
constant if the target type is pointer to character.
Diffstat (limited to 'gcc/ada/cstand.adb')
0 files changed, 0 insertions, 0 deletions