Path: utzoo!telly!ddsw1!mcdchg!rutgers!mailrus!cwjcc!tut.cis.ohio-state.edu!ARIZONA.EDU!gmt From: gmt@ARIZONA.EDU ("Gregg Townsend") Newsgroups: gnu.gcc.bug Subject: gcc 1.30 gets warning from Vax (BSD) assembler Message-ID: <8811160028.AA15698@megaron.arizona.edu> Date: 16 Nov 88 00:28:17 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 18 /* gcc v1.30, on a Vax 8650, Mt Xinu 4.3 BSD, gets: * * Assembler: * "/tmp/cc015302.s", line 15: WARNING: * Immediate constant type long mismatches instruction type byte * * This is for a simple "gcc xxx.c" with no special options. * The generated code does work, however, and prints 254 as expected. */ unsigned char c; char *x = (char *) &c; main() { * (unsigned char *) x = 254; printf("%d\n",c); }