]> Savannah Git Hosting - gnulib.git/commit
verify: improve diagnostic quality in recent GCC
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Aug 2019 21:57:08 +0000 (14:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Aug 2019 21:58:06 +0000 (14:58 -0700)
commit96443cc734f3486014b10f4351fc84cae17f9165
tree32b69b45d5663efa9498eda35acd7ee4e3a01b17
parent6430babe47ece6953cf18ef07c1d8642c8588e89
verify: improve diagnostic quality in recent GCC

If ‘verify’ fails in a deeply-nested macro, GCC does not output a
useful line number containing the top-level caller of the macro.
So, bring back the older way of issuing a diagnostic containing
the top-level call’s arg, so that it is easier to diagnose
‘verify’ failures with recent GCC.
* lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
Bring back DIAGNOSTIC arg.  All callers changed.
(verify): Just use _GL_VERIFY.
ChangeLog
lib/verify.h