Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!uwm.edu!rpi!herodotus.rdrc.rpi.edu!kyriazis From: kyriazis@herodotus.rdrc.rpi.edu (George Kyriazis) Newsgroups: comp.lang.c Subject: Re: Bug in DEC's C compiler(s) Message-ID: <6-HQ+=@rpi.edu> Date: 2 Jan 90 18:38:01 GMT References: <1528@utkcs2.cs.utk.edu> Reply-To: kyriazis@herodotus.rdrc.rpi.edu.UUCP (George Kyriazis) Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 29 In article <1528@utkcs2.cs.utk.edu> battle@alphard.cs.utk.edu (David Battle) writes: >I seem to have discovered a bug in DEC's Ultrix C compilers. The bug >exhibits itself on both vax and mips architectures. The problem is that >it seems to ignore objects declared as "void *". Here is an example, >straight out of K&R2 (page 121): > [ lots of interesting bechmarks ] > >Am I missing something here, or is this a real bug? > Last year I had the same problem with a uVAX II C compiler and I think it is a bug. The program compiled fine on suns. I got around it with a useless: '#define void char' and now it works in both architectures. Since char *'s have the smaller stride size (1 byte) everything should work fine. I wonder what DEC people have to say about that though.. > > -David L. Battle > battle@battle.esd.ornl.gov > battle@utkux1.utk.edu George Kyriazis kyriazis@turing.cs.rpi.edu kyriazis@rdrc.rpi.edu ------------------------------