simon-svn: puzzles: simon
tartarus-commits at lists.tartarus.org
tartarus-commits at lists.tartarus.org
Mon Dec 26 23:24:10 GMT 2005
SVN root: svn://ixion.tartarus.org/main
Changes by: simon
Revision: 6508
Date: 2005-12-26 23:24:09 +0000 (Mon, 26 Dec 2005)
Log message (14 lines):
Laurent Thioudellet reports that gcc4's ultra-cautious data flow
warnings require two more variables to be explicitly initialised. In
fact these variables are reliably initialised by a subfunction; gcc3
was happy to assume I knew what I was doing when it couldn't prove
they were definitely used uninitialised, whereas gcc4 apparently
takes the view that the onus is on me to allow it to prove they
_aren't_. I regard this as a step backwards, since the effect will
be to make explicit initialisation commonplace in cases where the
initialiser value is chosen arbitrarily and never expected to be
used, at which point (a) it will be less clear which initialisers
have genuine purpose and which are compiler-placating fluff, and (b)
valgrind's run-time uninitialised-data tracking will become less
useful. Still, the effect doesn't seem great as yet, so here's the
gcc4-placating checkin.
Modified files:
U puzzles/bridges.c
Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=6508&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/puzzles/bridges.c?rev=6508&r1=6507&r2=6508
More information about the tartarus-commits
mailing list