This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

other/4307: Can't set -fleading-underscore for some ELF builds



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]