grwalter@watfun.waterloo.edu (Fred Walter) (03/18/90)
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 <file", e.g.. If this archive is complete, you # will see the following message at the end: # "End of shell archive." # Contents: Makefile bug.c # Wrapped by grwalter@watfun on Sun Mar 18 10:41:24 1990 PATH=/bin:/usr/bin:/usr/ucb ; export PATH if test -f 'Makefile' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'Makefile'\" else echo shar: Extracting \"'Makefile'\" \(60 characters\) sed "s/^X//" >'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)