This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
In the meantime I learned that the problem is not limited to DJGPP. Linux GCC shows similar behaviour. --- Forwarded Message --- Date: Mon, 12 Nov 2001 14:26:33 +0100 (MET) From: ahelm@gmx.net To: djgpp@delorie.com Subject: Optimiser problem in DJGPP port of GCC v3.0.2 > Hi, > > The attached example produces correct results when > compiled without optimisation but using any optimisation > level greater than 0 causes incorrect results. > > The hexadecimal output of the result shows that the > higher 32 bits are incorrectly set to 1 when assigning > a positive literal (long or long long) to a long long > variable (in the "else" clause). > > This did work correctly in gcc v2.95.3 and also works > in v3.0.2 on Solaris. So I suspect this is a DJGPP specific > problem. > > Regards, > > Tony > -- __________________________ Anton Helm Farnborough, Hampshire, UK mailto:ahelm@gmx.net phoneto:+44-1252-867200 Sent through GMX FreeMail - http://www.gmx.net
Attachment:
O.c
Description: application/unknown-content-type-pfe32
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |