Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Marty Leisner
Fri, 08 Jan 1993 15:40
since when is @ a symbol for a C identifier?
Author: Marty Leisner
Date: Fri, 08 Jan 1993 15:40
Date: Fri, 08 Jan 1993 15:40
51 lines
1946 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads