This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR 17946: warning message for suspect "a && MASK"


On Tue, 12 Oct 2004, Thomas R. Truscott wrote:

> There is an ugly aspect to the patch.
> c-parse.in converts A to truth value (A != 0) to update "skip_evaluation".
> But the unconverted A is needed for this warning check.
> To get around this, the patch does a temporary conversion. Twice. Yuck.

I think this may lead to duplicate diagnostics from truthvalue_conversion 
if the expression being used as a truth value isn't valid as such.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]