On 8 Jan 2003, Mike Hearn wrote: [...]
The only other way would be to compile a little test app then run objdump on it to figure out if stabs data was included, but testing the GCC version would be faster.
Or you could try to compile a small program with -gstabs+ and if the compile does not fail then it seems safe to use the flag.
The main thing is that some people may want to use the new dwarf debugging format for one reason or another... (e.g. for using with the remote gdb feature). So this test should probably be overridable maybe using a --disable-gstabs or something.