aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorRonan Desplanques <desplanques@adacore.com>2024-02-14 16:02:48 +0100
committerMarc Poulhiès <poulhies@adacore.com>2024-05-14 10:19:57 +0200
commitf5798041ac97347e52d985be37f049c6d902d282 (patch)
treeef232c622a269dbff39534177e2508d92565a55b /gcc/expr.cc
parentfaf462cfe686228113fc9d968809dd4f40395dde (diff)
downloadgcc-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