On Mon, Aug 23, 2004 at 07:11:59PM -0700, Mark Mitchell wrote:
This patch fixes PR c/14492, a crash in the debug-generators with
VLAs.
The code in loc_descriptor_from_tree aborts if it runs into a
tree-code it doesn't recognize. This is fine for the development
branch; we want to find out about these things and add support for
them. But, it's foolish for a release branch, since it's easy to
degrade gracefully. Our users would rather have their code compile,
and find out later than they can't print out an array bound in the
debugger, than have the code fail to compile at all.
Tested on i686-pc-linux-gnu, applied on the 3.4 branch and on the
mainline.
Is this really a good idea? It's something that is unsupported - an
internal error. It'd take hours to work out that the compiler had
bizarrely punted on debug information for some variable.
This is more like Nathan's proposed switch for --disable-asserts, than
it is like the existing --disable-checking, IMO.