Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* dec mips compilers easily core dump
@ 1992-01-29 16:46 Joern Amundsen
  1992-01-30  8:32 ` Burkhard Neidecker-Lutz
  0 siblings, 1 reply; 2+ messages in thread
From: Joern Amundsen @ 1992-01-29 16:46 UTC (permalink / raw)



Any smaller piece of code to make the mips C compiler core dump !?

	typedef enum {a;b} c;
	#include <unistd.h>

nazgul$ cc tt.c
ccom: Error: tt.c, line 1: syntax error
...
pid 25885 (ccom2.1) was killed on an unaligned access, at pc 0x420d30
Fatal error in: /usr/lib/cmplrs/cc/ccom Bus error - core dumped

The sgi mips compiler (I only have v. 2.0 :-() does not core dump. This is
very often the case, also with dec mips f77 vs sgi mips f77.

Is it just the dec front end which is that bugious !? --joern
--
  +---------------------------------------+-------------------------------+
  | Joern Amundsen                        |  email joern@imf.unit.no or   |
  | Department of Mathematical Sciences   |        joern@sima.sintef.no   |
  | The Norwegian Institute of Technology |  phone +47-7-59-2092          |
  | N-7034 Trondheim, Norway              |  fax   +47-7-59-2971 or -3524 |
  +---------------------------------------+-------------------------------+


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dec mips compilers easily core dump
  1992-01-29 16:46 dec mips compilers easily core dump Joern Amundsen
@ 1992-01-30  8:32 ` Burkhard Neidecker-Lutz
  0 siblings, 0 replies; 2+ messages in thread
From: Burkhard Neidecker-Lutz @ 1992-01-30  8:32 UTC (permalink / raw)



It's a bug, definitely. In the mean time, use c89, which is the DEC C
compiler (the license is bundled with the OS, so you get it for free).
Full ANSI C and will handle your program nicely:

	% cat bug.c
	typedef enum {a;b} c;
	#include <unistd.h>

	% c89 bug.c
        bug.c:1: error: Missing "}".
        Compilation terminated with errors.

Most of the time the MIPS compilers *do* work though...



		Burkhard Neidecker-Lutz

Multimedia Engineering, CEC Karlsruhe
Software Motion Pictures
Digital Equipment Corporation
neidecker@nestvx.enet.dec.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1992-01-30  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-01-29 16:46 dec mips compilers easily core dump Joern Amundsen
1992-01-30  8:32 ` Burkhard Neidecker-Lutz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox