Gunther Nikl <[EMAIL PROTECTED]> writes:

> This PR is about missing USER_LABEL_PREFIX for static variables. The issue
> was fixed for 4.0, but for 3.4 there won't be a fix as stated in the audit
> trail by Mark Mitchell in comment #15. He probably based his decision on
> comment #14, where Geoff Keating states that this bug does only affect
> debugging programs that don't have full debugging info. That conclusion is
> wrong, the bug has a much more severe impact! A missing USER_LABEL_PREFIX
> can led to assembler errors if the variable name matches the name of
> a machine register if registers are used without a prefix and thats the
> default for a.out systems. This bug prevents using GCC 3.4 on targets
> with a nonzero USER_LABEL_PREFIX safely. Since 3.4 is the last 3.x
> version it should be usable on such system safely.
> 
> A proposed patch in comment #7 was rejected in comment #8 without giving
> any details what problems the patch might cause. Can this bug get fixed
> with minimal efforts?

There are more details about this here:
    http://sourceware.org/ml/binutils/2005-11/msg00385.html

Basically, for an m68k-aout target, gcc 3.4 apparently does not emit a
leading underscore for static variables.

Ian

Reply via email to