From mboxrd@z Thu Jan 1 00:00:00 1970 From: dberger@SoftwareConstruction.com To: gcc-gnats@gcc.gnu.org Subject: other/4307: Can't set -fleading-underscore for some ELF builds Date: Wed, 12 Sep 2001 10:46:00 -0000 Message-id: <20010912173857.30974.qmail@sourceware.cygnus.com> X-SW-Source: 2001-09/msg00250.html List-Id: >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: