diff options
author | Ronan Desplanques <desplanques@adacore.com> | 2024-02-14 16:02:48 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-05-14 10:19:57 +0200 |
commit | f5798041ac97347e52d985be37f049c6d902d282 (patch) | |
tree | ef232c622a269dbff39534177e2508d92565a55b /gcc/expr.cc | |
parent | faf462cfe686228113fc9d968809dd4f40395dde (diff) | |
download | gcc-f5798041ac97347e52d985be37f049c6d902d282.zip gcc-f5798041ac97347e52d985be37f049c6d902d282.tar.gz gcc-f5798041ac97347e52d985be37f049c6d902d282.tar.bz2 |
ada: Fix pragma Compile_Time_Error and -gnatdJ crash
This patch makes it so the diagnostics coming from occurrences of
pragma Compile_Time_Error and Compile_Time_Warning are emitted with
a node parameter so they don't cause a crash when -gnatdJ is enabled.
gcc/ada/
* errout.ads (Error_Msg): Add node parameter.
* errout.adb (Error_Msg): Add parameter and pass it to
the underlying call.
* sem_prag.adb (Validate_Compile_Time_Warning_Or_Error): Pass
pragma node when emitting errors.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions