🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1616

since when is @ a symbol for a C identifier?

#1616
From: Marty Leisner
Date: Fri, 08 Jan 1993 15:40
51 lines
1946 bytes
I'm running gcc 2.3.2 on sparcs...

What does the @ symbol mean to a C compiler? (I don't recall)

This program got an assembler error:
main()
{
        foo@();
}

This produced:

gcc2_compiled.:
text
        .align 4
        .global _main
        .proc   04
_main:
        !#PROLOGUE# 0
        save %sp,-136,%sp
        !#PROLOGUE# 1
        call ___main,0
        nop
        call _foo@,0
        nop
L1:
        ret
        restore

Here's a copy of the run:

gcc version 2.3.2
 /usr/gnu/lib/gcc-lib/sparc/2.3.2/cpp -lang-c -v -undef -D__GNUC__=2 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix identifier.c /usr/tmp/cca02981.i
GNU CPP version 2.3.2 (sparc)
 /usr/gnu/lib/gcc-lib/sparc/2.3.2/cc1 /usr/tmp/cca02981.i -quiet -dumpbase identifier.c -version -o /usr/tmp/cca02981.s
GNU C version 2.3.2 (sparc) compiled by GNU C version 2.3.2.
 as -o /usr/tmp/cca029811.o /usr/tmp/cca02981.s
/usr/tmp/cca02981.s:12:Illegal operands
 /usr/gnu/lib/gcc-lib/sparc/2.3.2/ld -e start -dc -dp /lib/crt0.o -L/usr/gnu/lib/gcc-lib/sparc/2.3.2 -L/usr/gnu/lib /usr/tmp/cca029811.o -lgcc -lc -lgcc
ld: Undefined symbol 
   _foo 
collect: /usr/bin/ld returned 2 exit status

In a large project, the make stopped after the assembler error...in this example, after the assembler error,
the link was attempted...


--
marty
leisner.henr801c@xerox.com  leisner@eso.mc.xerox.com
Member of the League for Programming Freedom
Technical Details
Message-ID: <1993Jan8.154005.18066@spectrum.xerox.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!wrc.xerox.COM!leisner

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!wrc.xerox.COM!leisner
From: leisner@wrc.xerox.COM ( Marty Leisner)
Subject: since when is @ a symbol for a C identifier?
Message-ID: <1993Jan8.154005.18066@spectrum.xerox.com>
Sender: gnulists@ai.mit.edu
Reply-To: leisner@eso.mc.xerox.com
Organization: Xerox
Distribution: gnu
Date: Fri, 8 Jan 1993 15:40:05 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 52