Path: utzoo!utgpu!watserv1!watdragon!watfun!grwalter From: grwalter@watfun.waterloo.edu (Fred Walter) Newsgroups: comp.sys.amiga.tech Subject: Is this Lattice 5.04 bug still in 5.05 ? Message-ID: <22147@watdragon.waterloo.edu> Date: 18 Mar 90 15:46:21 GMT Sender: daemon@watdragon.waterloo.edu Distribution: comp Lines: 65 Lattice 5.04 has a bug with the -ms option. In some situations, like those found in p2c :-(, Lattice 5.04 produces incorrect code. I hate finding compiler bugs :-( The following program demonstrates this bug. Is this bug still in Lattice 5.05 ? On a related topic, is the 5.05 update being shipped automatically, or do you have to phone in and ask for it ? fred --------------cut here and unshar, or run newsbreak instead---------- #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh 'Makefile' <<'END_OF_FILE' Xall: X lc -ms -d2 -L bug.c X Xclean: X delete bug.lnk bug.o bug END_OF_FILE if test 60 -ne `wc -c <'Makefile'`; then echo shar: \"'Makefile'\" unpacked with wrong size! fi # end of 'Makefile' fi if test -f 'bug.c' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'bug.c'\" else echo shar: Extracting \"'bug.c'\" \(79 characters\) sed "s/^X//" >'bug.c' <<'END_OF_FILE' X#define FUNCBREAK 0x7000 X Xint main() X{ X long temp; X X temp = FUNCBREAK; X} END_OF_FILE if test 79 -ne `wc -c <'bug.c'`; then echo shar: \"'bug.c'\" unpacked with wrong size! fi # end of 'bug.c' fi echo shar: End of shell archive. exit 0 grwalter@watmath.uwaterloo.ca (Canadian domain) grwalter@watmath.waterloo.edu (US Internet, including CSNET) grwalter@watmath.waterloo.cdn (CDNnet and some European nets) watmath!grwalter (UUCP)