🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6187

Need underscores for m68k/coff

#6187
From: Ronald F. Guilmette
Date: Mon, 25 Nov 1996 00:00
42 lines
1851 bytes

The longstanding and general tradition is that when/if you are using COFF,
all C language identifiers get an underscore prepended to them as they are
being changed into assembly-level names.

In gcc 2.7.2.1 however, the m68k-unknown-coff configuration fails to pro-
vide this effect.  The following patch fixes the problem.

-- rfg


*** ./config/m68k/coff.h	Thu Jun 15 12:04:25 1995
--- ./config/m68k/coff.h	Mon Nov 25 14:09:20 1996
***************
*** 35,42 ****
  #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
  
! /* COFF symbols don't start with an underscore.  */
  
  #undef USER_LABEL_PREFIX
! #define USER_LABEL_PREFIX ""
  
  /* Use a prefix for local labels, just to be on the save side.  */
--- 35,51 ----
  #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
  
! /* This is how to output a reference to a user-level label named NAME.
!    `assemble_name' uses this.                           
!     
!    For COFF, the convention is to prepend a leading
!    underscore onto user-level symbol names.  */
!     
! #undef ASM_OUTPUT_LABELREF
! #define ASM_OUTPUT_LABELREF(FILE,NAME) fprintf (FILE, "_%s", NAME)
! 
! /* COFF symbols *do* start with an underscore.  */
  
  #undef USER_LABEL_PREFIX
! #define USER_LABEL_PREFIX "_"
  
  /* Use a prefix for local labels, just to be on the save side.  */
Technical Details
Message-ID: <17741.848960224@segfault.monkeys.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,776b1ec6b1c212ea,start
X-Google-Attributes: gid113d02,public
From: "Ronald F. Guilmette" <rfg@monkeys.com>
Subject: Need underscores for m68k/coff
Date: 1996/11/25
Message-ID: <17741.848960224@segfault.monkeys.com>
X-Deja-AN: 200714031
sender: bug-gcc-request@prep.ai.mit.edu
x-gateway: relay6.UU.NET from bug-gcc to gnu.gcc.bug; Mon, 25 Nov 1996 17:55:46 EST
newsgroups: gnu.gcc.bug
x-tcpa-virtual-phone-number: 204.119.242.200