Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Buglet in gcc 1.36 (or in install docs)

3 views
Skip to first unread message

Bennett Todd

unread,
Dec 18, 1989, 4:49:00 PM12/18/89
to
Sun 3/280, SunOS 3.5.
According to the installation docs:

5. Build the compiler. Just type `make' in the compiler directory.

Ignore any warnings you may see about ``statement not reached''
in the `insn-emit.c'; they are normal. Any other compilation
errors may represent bugs in the port to your machine or
operating system, and should be investigated and reported (*note
Bugs::.).

I hadn't made any changes to the Makefile. I used "config sun3-nfp".

I got the following errors, which seem to be due to the GNU stab setup
using an enum, as far as I can tell:

cc -c -g -I. -I. -I./config dbxout.c
"dbxout.c", line 626: warning: enumeration type clash, operator =
"dbxout.c", line 658: warning: enumeration type clash, operator =
"dbxout.c", line 706: warning: enumeration type clash, operator =
"dbxout.c", line 715: warning: enumeration type clash, operator =
"dbxout.c", line 719: warning: enumeration type clash, operator =
"dbxout.c", line 726: warning: enumeration type clash, operator =
"dbxout.c", line 733: warning: enumeration type clash, operator =
"dbxout.c", line 751: warning: enumeration type clash, operator =
"dbxout.c", line 756: warning: enumeration type clash, operator =
"dbxout.c", line 771: warning: enumeration type clash, operator =
"dbxout.c", line 778: warning: enumeration type clash, operator =
"dbxout.c", line 844: warning: enumeration type clash, operator =
"dbxout.c", line 891: warning: enumeration type clash, operator =
"dbxout.c", line 906: warning: enumeration type clash, operator =
"dbxout.c", line 956: warning: enumeration type clash, operator =
"dbxout.c", line 982: warning: enumeration type clash, operator =
"dbxout.c", line 1049: warning: enumeration type clash, operator =

This appears to be an unimportant warning. Either the code should be
changed to make it go away, or the installation docs should mention that
this is another benign error that may be ignored.

To the best of my knowledge I haven't make any changes to the system
software that would break the compiler or change the compilation
environment. Here's a script output that starts in a directory freshly
tar extracted from the archive I FTP-ed off prep.ai.mit.edu; I edited it
to remove control characters (^M at end-of-line and some spurious ^H
chars that bash threw in) and to explicitly break very long lines.

Script started on Mon Dec 18 15:30:19 1989
george[1] printenv
HOME=/usr3/bet
SHELL=/usr/local/bin/bash
PATH=/bin:/usr/bin:/usr/ucb:/etc:/usr/etc:/usr/local/etc:/usr3/bet/bin:/usr/loc\
al/bin
TERM=mgr
USER=bet
LOGNAME=bet
PS1=george[\#]
PS2=>
SHLVL=2
BASH=/bin/sh
TAAC1=/usr/local/taac1
VOLUMES=/usr/local/taac1/demo/data/volume
IMAGES=/usr/local/taac1/demo/data/images
POINTS=/usr/local/taac1/demo/data/points
MANPATH=/usr/man:/usr/local/man:/usr/local/mgr/man:/usr3/bet/man
TERMCAP=px|mgr:am:li#55:co#80:bs:cl=^L:ce=\Ec:cd=\EC:cm=\E%r%d\054%dM:al=\Ea:dl\
=\Ed:ic=\EA:dc=\EE:ta=^I:up=\Eu:do=\Ef:nd=\Er:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:s\
o=\Ei:se=\En:vs=\EV:ve=\Ev:
PAGER=/usr/local/bin/less
EDITOR=/usr/local/bin/jove
ENSCRIPT=-l -p - -q -h
VISUAL=/usr/local/bin/jove
LESS=-cdmqsw
USER_IDENT=Bennett_Todd@Duke_U--+1-919-684-2711
CDPATH=.:/usr/local/src/bet:/usr/local/src/ge
george[2] ./config.gcc sun3-nfp
Linked `config.h' to `./config/xm-m68k.h'.
Linked `tm.h' to `./config/tm-sun3os3nf.h'.
Linked `md' to `./config/m68k.md'.
Linked `aux-output.c' to `./config/out-m68k.c'.
Links are now set up for use with a sun3-nfp.
george[3] make
rm -f stamp-gnulib2
rm -f tmpgnulib gnulib; \
for name in _eprintf _builtin_new _builtin_New _builtin_del _umulsi3 _mulsi3 _\
udivsi3 _divsi3 _umodsi3 _modsi3 _lshrsi3 _lshlsi3 _ashrsi3 _ashlsi3 _divdf3 \
_muldf3 _negdf2 _adddf3 _subdf3 _cmpdf2 _fixunsdfsi _fixdfsi _floatsidf _trunc\
dfsf2 _extendsfdf2 _addsf3 _negsf2 _subsf3 _cmpsf2 _mulsf3 _divsf3 _varargs; \
do \
echo ${name}; \
rm -f ${name}.c; \
cp ./gnulib.c ${name}.c; \
cc -O -I. -I. -I./config -c -DL${name} ${name}.c; \
ar qc tmpgnulib ${name}.o; \
rm -f ${name}.[co]; \
done
_eprintf
_builtin_new
_builtin_New
_builtin_del
_umulsi3
_mulsi3
_udivsi3
_divsi3
_umodsi3
_modsi3
_lshrsi3
_lshlsi3
_ashrsi3
_ashlsi3
_divdf3
_muldf3
_negdf2
_adddf3
_subdf3
_cmpdf2
_fixunsdfsi
_fixdfsi
_floatsidf
_truncdfsf2
_extendsfdf2
_addsf3
_negsf2
_subsf3
_cmpsf2
_mulsf3
_divsf3
_varargs
if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib tmpgnulib ;fi
mv tmpgnulib gnulib
cc -g -I. -I. -I./config \
-DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/\" \
-DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc-\" -c \
`echo ./gcc.c | sed 's,^\./,,'`
cc -c -g -I. -I. -I./config version.c
cc -c -g -I. -I. -I./config obstack.c
cc -g -o gccnew gcc.o version.o obstack.o
mv gccnew gcc
cc -c -g -I. -I. -I./config c-parse.tab.c
cc -c -g -I. -I. -I./config c-decl.c
cc -c -g -I. -I. -I./config c-typeck.c
cc -c -g -I. -I. -I./config c-convert.c
cc -c -g -I. -I. -I./config toplev.c
cc -c -g -I. -I. -I./config tree.c
cc -c -g -I. -I. -I./config print-tree.c
cc -c -g -I. -I. -I./config stor-layout.c
cc -c -g -I. -I. -I./config fold-const.c
cc -c -g -I. -I. -I./config rtl.c
cc -c -g -I. -I. -I./config rtlanal.c
cc -c -g -I. -I. -I./config genflags.c
cc -g -o genflags genflags.o rtl.o obstack.o
./genflags md > tmp-insn-flags.h
./move-if-change tmp-insn-flags.h insn-flags.h
touch stamp-flags.h
cc -c -g -I. -I. -I./config gencodes.c
cc -g -o gencodes gencodes.o rtl.o obstack.o
./gencodes md > tmp-insn-codes.h
./move-if-change tmp-insn-codes.h insn-codes.h
touch stamp-codes.h
cc -c -g -I. -I. -I./config genconfig.c
cc -g -o genconfig genconfig.o rtl.o obstack.o
./genconfig md > tmp-insn-config.h
./move-if-change tmp-insn-config.h insn-config.h
touch stamp-config.h
cc -c -g -I. -I. -I./config expr.c
cc -c -g -I. -I. -I./config stmt.c
cc -c -g -I. -I. -I./config expmed.c
cc -c -g -I. -I. -I./config explow.c
cc -c -g -I. -I. -I./config optabs.c
cc -c -g -I. -I. -I./config varasm.c
cc -c -g -I. -I. -I./config symout.c
cc -c -g -I. -I. -I./config dbxout.c
"dbxout.c", line 626: warning: enumeration type clash, operator =
"dbxout.c", line 658: warning: enumeration type clash, operator =
"dbxout.c", line 706: warning: enumeration type clash, operator =
"dbxout.c", line 715: warning: enumeration type clash, operator =
"dbxout.c", line 719: warning: enumeration type clash, operator =
"dbxout.c", line 726: warning: enumeration type clash, operator =
"dbxout.c", line 733: warning: enumeration type clash, operator =
"dbxout.c", line 751: warning: enumeration type clash, operator =
"dbxout.c", line 756: warning: enumeration type clash, operator =
"dbxout.c", line 771: warning: enumeration type clash, operator =
"dbxout.c", line 778: warning: enumeration type clash, operator =
"dbxout.c", line 844: warning: enumeration type clash, operator =
"dbxout.c", line 891: warning: enumeration type clash, operator =
"dbxout.c", line 906: warning: enumeration type clash, operator =
"dbxout.c", line 956: warning: enumeration type clash, operator =
"dbxout.c", line 982: warning: enumeration type clash, operator =
"dbxout.c", line 1049: warning: enumeration type clash, operator =
cc -c -g -I. -I. -I./config sdbout.c
cc -c -g -I. -I. -I./config emit-rtl.c
cc -c -g -I. -I. -I./config genemit.c
cc -g -o genemit genemit.o rtl.o obstack.o
./genemit md > tmp-insn-emit.c
./move-if-change tmp-insn-emit.c insn-emit.c
touch stamp-emit.c
cc -g -I. -I. -I./config -c insn-emit.c
"insn-emit.c", line 1604: warning: statement not reached
cc -c -g -I. -I. -I./config integrate.c
cc -c -g -I. -I. -I./config jump.c
cc -c -g -I. -I. -I./config cse.c
cc -c -g -I. -I. -I./config loop.c
cc -c -g -I. -I. -I./config flow.c
cc -c -g -I. -I. -I./config stupid.c
cc -c -g -I. -I. -I./config combine.c
cc -c -g -I. -I. -I./config regclass.c
cc -c -g -I. -I. -I./config local-alloc.c
cc -c -g -I. -I. -I./config global-alloc.c
cc -c -g -I. -I. -I./config reload.c
cc -c -g -I. -I. -I./config reload1.c
cc -c -g -I. -I. -I./config caller-save.c
cc -c -g -I. -I. -I./config genpeep.c
cc -g -o genpeep genpeep.o rtl.o obstack.o
./genpeep md > tmp-insn-peep.c
./move-if-change tmp-insn-peep.c insn-peep.c
touch stamp-peep.c
cc -g -I. -I. -I./config -c insn-peep.c
cc -c -g -I. -I. -I./config final.c
cc -c -g -I. -I. -I./config recog.c
cc -c -g -I. -I. -I./config genrecog.c
cc -g -o genrecog genrecog.o rtl.o obstack.o
./genrecog md > tmp-insn-recog.c
./move-if-change tmp-insn-recog.c insn-recog.c
touch stamp-recog.c
cc -g -I. -I. -I./config -c insn-recog.c
cc -c -g -I. -I. -I./config genextract.c
cc -g -o genextract genextract.o rtl.o obstack.o
./genextract md > tmp-insn-extract.c
./move-if-change tmp-insn-extract.c insn-extract.c
touch stamp-extract.c
cc -g -I. -I. -I./config -c insn-extract.c
cc -c -g -I. -I. -I./config genoutput.c
cc -g -o genoutput genoutput.o rtl.o obstack.o
./genoutput md > tmp-insn-output.c
./move-if-change tmp-insn-output.c insn-output.c
touch stamp-output.c
cc -g -I. -I. -I./config -c insn-output.c
cc -g -o cc1 c-parse.tab.o c-decl.o c-typeck.o c-convert.o toplev.o version.o\
tree.o print-tree.o stor-layout.o fold-const.o rtl.o rtlanal.o expr.o stmt.o \
expmed.o explow.o optabs.o varasm.o symout.o dbxout.o sdbout.o emit-rtl.o insn\
-emit.o integrate.o jump.o cse.o loop.o flow.o stupid.o combine.o regclass.o \
local-alloc.o global-alloc.o reload.o reload1.o caller-save.o insn-peep.o fina\
l.o recog.o insn-recog.o insn-extract.o insn-output.o obstack.o
cc -g -I. -I. -I./config \
-DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-include\" \
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \
-c `echo ./cccp.c | sed 's,^\./,,'`
cc -c -g -I. -I. -I./config cexp.c
cc -g -o cccp cccp.o cexp.o version.o obstack.o
rm -f cpp
ln cccp cpp
make hard-params
cp ./hard-params.c . > /dev/null 2>&1
*** Error code 1 (ignored)
cc -DNO_SC -c hard-params.c
cc hard-params.o -o hard-params
./hard-params -f > float.h
for name in _adddi3 _subdi3 _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 \
_anddi3 _iordi3 _xordi3 _lshrdi3 _lshldi3 _ashldi3 _ashrdi3 _one_cmpldi2 _bdi\
v _cmpdi2 _ucmpdi2 _fixunsdfdi _fixdfdi _floatdidf; \
do \
echo ${name}; \
./gcc -B./ -fstrength-reduce -O -I. -I. -I./config -c -DL${name} ./gnulib2.c\
-o ${name}.o; \
ar rc gnulib ${name}.o; \
rm -f ${name}.o; \
done
_adddi3
_subdi3
_muldi3
_divdi3
_moddi3
_udivdi3
_umoddi3
_negdi2
_anddi3
_iordi3
_xordi3
_lshrdi3
_lshldi3
_ashldi3
_ashrdi3
_one_cmpldi2
_bdiv
_cmpdi2
_ucmpdi2
_fixunsdfdi
_fixdfdi
_floatdidf
if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib gnulib ;fi
touch stamp-gnulib2
george[4]

script done on Mon Dec 18 16:38:00 1989

script done on Mon Dec 18 16:38:00 1989

Please let me know if there is any more info I could provide. I don't
know if this has already been reported; I was on info-gcc and bug-gcc
for a very short while; I asked to be put on, I got messages for a
couple of days, and then I didn't see anything more. I assume I've been
removed from the mailing list for some reason. If someone could put me
back on the info-* and bug-* lists for the GNU software I'd appreciate
it, as I am doing my best to install and support all of it on our
systems.

-Bennett
b...@orion.mc.duke.edu

KP KP

unread,
Aug 1, 2022, 7:17:04 PM8/1/22
to
You mean a fudlet
0 new messages