kendall%saber@HARVARD.HARVARD.EDU (Sam Kendall) (11/01/88)
This is gcc 1.30. I got the distribution, configured it with "config.gcc sparc", and performed the steps in INSTALL. On stage 8 (recompile the compiler with itself), the command (executed by make): stage1/gcc -g -O -Bstage1/ -c obstack.c gets these messages: as: "/tmp/cca06620.s", line 78: error: statement syntax as: "/tmp/cca06620.s", line 151: error: statement syntax as: "/tmp/cca06620.s", line 250: error: statement syntax I recompiled with the -S option, both with -O and without. In either case all three of these messages are the result of this line in the generated code: call %o1,0 The ",0" isn't legal syntax. Let me know if there's anything else I can do to help you chase down the problem. I have no need for gcc on the Sun-4, so I'm going to abandon the effort for now. ---- Sam Kendall Saber Software, Inc. kendall%saber@harvard.edu harvard!saber!kendall (617) 876-7636
hikichi@WHEATIES.AI.MIT.EDU (11/02/88)
>This is gcc 1.30. I got the distribution, configured it with >"config.gcc sparc", and performed the steps in INSTALL. On stage 8 >(recompile the compiler with itself), the command (executed by make): > stage1/gcc -g -O -Bstage1/ -c obstack.c >gets these messages: > as: "/tmp/cca06620.s", line 78: error: statement syntax > : Please try to use gcc version 1.27 for fix it with following patches. 1. Tieman's patch in prep:/u/emacs/g++.tar-1.27.0.Z 2. my modification for Tieman's patch in Sun-4 running Sys4-3.2_REV2(about 10 K byte in context diff format. If you wish to try this, please mail me.) This problem is cased in diffirect function call protocol between gcc-1.27(also gcc-1.30) and standard sun cc as following. * call instruction problem. <cc> call .ptr_call,1 # second args is # of args. adr is in %g1. nop # %o0 arg1, %o1 arg2,.. <gcc> call %o1,0 # %o0 arg1, %o1 arg2,.. %on arg(n+1), %o(n+1) call addr nop # first arg is %o(n+1) Nobuyuki Hikichi in Free Software Foundation ARPANET: hikichi@wheaties.ai.mit.edu