How to use gcc assembler?

Jack Zou jzou@prc.sun.com
Sat Apr 29 20:21:00 GMT 2000


I have installed gcc.295.2 and use it to compile wine-20000326. But the
assember code embeded in winedbg.c cannot generate corrected assembly
code for Sun Workshop Assembler. Is that a bug or Could you kindly tell
me how to use the gcc assember?

Regards,
Jack

# uname -a
SunOS tdc5 5.7 Generic_106542-02 i86pc i386 i86pc
#
# make
gcc -c -I. -I. -I../include -I../include -g -O2 -Wall -D__WINE__
-DLIBDIR="\"/usr/local/lib\"" -D_REENTRANT -I/export/home0/xpm-3.4k/X11
-o winedbg.o winedbg.c
Assembler: winedbg.c
        aline 11476     : syntax error
        aline 11523     : syntax error
        aline 11526     : syntax error
make: *** [winedbg.o] Error 1
#
then I generate the .s file.
# as winedbg.s
Assembler: winedbg.c
        aline 11476     : syntax error
        aline 11523     : syntax error
        aline 11526     : syntax error
#
# as -V
as: WorkShop Compilers 4.2 30 Oct 1996
Usage: as [options] file
#
other version I have tried with same result.
# /opt/SUNWspro/SC4.2/bin/as -V
as: WorkShop Compilers 4.2 30 Oct 1996
Usage: as [options] file
#
# /opt/SUNWspro/SC4.2/bin/as winedbg.s
Assembler: winedbg.c
        aline 11476     : syntax error
        aline 11523     : syntax error
        aline 11526     : syntax error
#




More information about the Gcc-bugs mailing list