This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
other/4307: Can't set -fleading-underscore for some ELF builds
- To: gcc-gnats at gcc dot gnu dot org
- Subject: other/4307: Can't set -fleading-underscore for some ELF builds
- From: dberger at SoftwareConstruction dot com
- Date: 12 Sep 2001 17:38:57 -0000
- Reply-To: dberger at SoftwareConstruction dot com
>Number: 4307
>Category: other
>Synopsis: Can't set -fleading-underscore for some ELF builds
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 12 10:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: dberger@SoftwareConstruction.com
>Release: gcc-2.95.3-5
>Organization:
>Environment:
Solaris and Windows 2000
>Description:
The file elfos.h in gcc/config defines the macro ASM_OUTPUT_LABELREF(). This should NOT be done. If the definition in defaults.h is used, then the default will be to prefix "" to symbol names, which is the normal output, but it also allows for the -fleading-underscore flag to be set to override this behavior. With the definition in elfos.h, that is impossible.
>How-To-Repeat:
Create an m68k compiler with the target as m68k-wrs-elf. Then try to compile something with and without the -fleading-underscore flag.
>Fix:
Remove the definition of ASM_OUTPUT_LABELREF() from gcc/config/elfos.h
>Release-Note:
>Audit-Trail:
>Unformatted: