This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: special keyword for silent wrong-code bugs
- From: Joern Rennecke <joernr at arc dot com>
- To: Thomas Koenig <tkoenig at alice-dsl dot net>
- Cc: Paul Brook <paul at codesourcery dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 29 May 2007 20:06:06 +0100
- Subject: Re: special keyword for silent wrong-code bugs
> If we segfault for printf("%d\n", 2+2), the bug would not be in this
> category. If we printed 5, it would be.
So what if the printf statement is executed only once every leap year?
What if it segfaults only if you have one out of several thousand
address space randomization patterns?
Your distinction has no practical value when considering miscompilations of
single translation units, since the triggering of the bug depends on the
miscompiled function being called, and being called with just the right
preconditions to trigger the bug.