🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1944

gcc 1.30 gets warning from Vax (BSD) assembler

#1944
From: "Gregg Townsend"
Date: Wed, 16 Nov 1988 00:28
18 lines
846 bytes
/*  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);
}
Technical Details
Message-ID: <8811160028.AA15698@megaron.arizona.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!mailrus!cwjcc!tut.cis.ohio-state.edu!ARIZONA.EDU!gmt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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