This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Latest .weakext patch to mips/iris6.h
- To: Jason Merrill <jason at cygnus dot com>
- Subject: Re: Latest .weakext patch to mips/iris6.h
- From: Martin Knoblauch <knobi at rocketmail dot com>
- Date: Thu, 15 Oct 1998 00:57:44 -0700 (PDT)
- Cc: egcs at cygnus dot com, egcs-patches at cygnus dot com
- Reply-To: knobi at knobisoft dot de
---Jason Merrill <jason@cygnus.com> wrote:
>
> >>>>> Martin Knoblauch <knobi@rocketmail.com> writes:
>
> > after looking at your change to mips/iris6.h, I believe
> > the ASM_OUTPUT_LABEL belongs into the ASM_WEAKEN_LABEL macro
> > insted of the ASM_OUTPUT_WEAK_ALIAS macro. If you want to put
> > it there, it belongs into the case where VALUE is NULL.
> > With the current version, the mipsPRO assembler may complain
> > about multiple ".globl" definitions if VALUE is non-NULL.
>
> Huh? The .globl is for the alias (NAME) symbol, not the real (VALUE)
> symbol.
>
> Jason
>
Jason,
if you use the ".weakext NAME,VALUE" version, you do not need
a ".globl NAME". It is assumed that there is a ".globl VALUE"
somewhere in the code.
I have no idea what actually happens if you do a:
.globl NAME
.globl VALUE
.weakext NAME,VALUE
It may cause no hurt, but I find it inelegant :-) I
will check it tonight.
Martin
===
------------------------------------------------------
Martin Knoblauch
email: knobi@knobisoft.de or knobi@rocketmail.com
www: http://www.knobisoft.de
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com