Article View: gnu.gcc.bug
Article #650bug001 gcc1.36 (resend)
From: rajeevc
Date: Wed, 27 Sep 1989 21:54
Date: Wed, 27 Sep 1989 21:54
41 lines
1058 bytes
1058 bytes
--bug001
/*
no casting done in explicit casting expression
prints : d=f2db93e d=f2db93e
should print : d=f2db93e d=3e
*/
int c;
int d;
main()
{
c = (unsigned char) (d = 0xf2db93e);
printf("\
d=%x\n\
c=%x\n\
",
d, c);
}
.file "bug001.c"
.version "GNU C 1.36"
.optim
gcc_compiled.:
.text
.align 4
.LC0:
.byte 0x9,0x9,0x9,0x64,0x3d,0x25,0x78,0xa,0x9,0x9
.byte 0x9,0x63,0x3d,0x25,0x78,0xa,0x9,0x9,0x9,0x0
.align 4
.globl main
main:
movl $254654782,d
movl $254654782,c / this is wrong
pushl $254654782
pushl $254654782
pushl $.LC0
call printf
addl $12,%esp
ret
.comm d,4
.comm c,4
Technical Details
Message-ID:
<8909272154.AA02118@oriley>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!oriley.intel.com!rajeevcShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!oriley.intel.com!rajeevc From: rajeevc@oriley.intel.com Newsgroups: gnu.gcc.bug Subject: bug001 gcc1.36 (resend) Message-ID: <8909272154.AA02118@oriley> Date: 27 Sep 89 21:54:17 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 41