No speical reason.  There’s more than one way to do things.  It wasn’t 
obvious to me when I wrote them that one way was better than another.



All these suggestions do nothing to help me modify 800 or so programs.  If I 
could change one every 12 minutes that’s 20 workdays of modifications.



From: Simon Sobisch <simonsobi...@gnu.org>
Sent: Tuesday, March 18, 2025 01:45
To: rdub...@symas.com
Cc: gcc-patches@gcc.gnu.org
Subject: Re: Re: [PATCH] cobol: Fifteen new cobol.dg testscases.



Is there a compelling reason for all this output?

As a rule of thumb I'd suggest to only output if the data has an unexpected 
value or if the test is about DISPLAY.

... maybe the compiler is expected (and already capable?) to know the data 
values and optimize all comparisons away - in this case a double test 
(compiler optimizes away, however that would be checked next to the actual 
DISPLAY test) would be useful.

... just wondering.

Simon

Reply via email to