aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2022-12-19 15:00:47 +0100
committerJakub Jelinek <jakub@redhat.com>2022-12-19 15:00:47 +0100
commitde2b8c41b872c8638d70dff880ebe8e82628af09 (patch)
tree3722621d820adb8a237b63af551c53d5d5aadeb1 /gcc/rust
parent158b18ffa510105b239bd2f4a253ed33e21fcebc (diff)
downloadgcc-de2b8c41b872c8638d70dff880ebe8e82628af09.zip
gcc-de2b8c41b872c8638d70dff880ebe8e82628af09.tar.gz
gcc-de2b8c41b872c8638d70dff880ebe8e82628af09.tar.bz2
modula2: Don't treat % in Modula 2 messages specially
On top of the just posted patch, this patch makes sure that any % chars in message strings aren't treated as format chars. None of these functions take variable number of arguments, so for most of format specifiers there is nowhere to take arguments from, it is true that a couple of format specifiers don't take any arguments - %%, %m, %<, %>, %' - so it is actually possible to use them, but one needs to verify that no other are emitted and that what should be printed as % is really emitted as %%. If the FE does that, then please ignore this patch, otherwise I think it is safer to do this. 2022-12-19 Jakub Jelinek <jakub@redhat.com> * gm2-gcc/m2linemap.cc (m2linemap_ErrorAt, m2linemap_ErrorAtf, m2linemap_WarningAtf, m2linemap_NoteAtf, m2linemap_internal_error): Call functions with "%s", message rather than just message, so that % chars in message aren't treated as format specifiers.
Diffstat (limited to 'gcc/rust')
0 files changed, 0 insertions, 0 deletions