This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: pr14516 and GCC 3.4
- From: Ian Lance Taylor <ian at airs dot com>
- To: Gunther Nikl <gni at gecko dot de>
- Cc: gcc at gcc dot gnu dot org, mmitchel at gcc dot gnu dot org, geoffk at geoffk dot org
- Date: 30 Nov 2005 09:14:31 -0800
- Subject: Re: pr14516 and GCC 3.4
- References: <20051130150640.GA38406@lorien.int.gecko.de>
Gunther Nikl <gni@gecko.de> 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