[tree-ssa] Thoughts on live-on-entry variables
Joern Rennecke
joern.rennecke@superh.com
Mon Jun 16 18:32:00 GMT 2003
> an uninitialized variable. This pass would run at the end of the
> optimization pipeline, which would minimize (eliminate?) false
> positives.
If you manage to get the optimizers to a point that they eliminate
false positives, you will cause quite a stir in computing science.
consider:
int
f (void (*fun)(void))
{
int u;
(*fun) ();
return u;
}
If f is linked statically with a caller that passes a pointer to a
function that doesn't terminate, no warning is issued.
If it is statically linked to a caller that passes a pointer to a
function that terminates, a warning about 'u' being used
uninitialized is issued. Hence, you have solved the halting problem.
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658
More information about the Gcc
mailing list