[Bug c/78135] In an unsigned long (64 bit) 1<<31 gives rubbish

2016-10-27 Thread jmdh01 at btinternet dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78135 --- Comment #4 from John Hunter --- The annotation of Constants with `ul' is a fudge. In the specimen program, a constant (1) is assigned to an unsigned long variable (wk) which forces it to be `ul'. The optimiser, in trying to eliminate a local

[Bug c/78135] In an unsigned long (64 bit) 1<<31 gives rubbish

2016-10-27 Thread jmdh01 at btinternet dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78135 John Hunter changed: What|Removed |Added CC||jmdh01 at btinternet dot com --- Comment

[Bug c/78135] New: In an unsigned long (64 bit) 1<<31 gives rubbish

2016-10-27 Thread jmdh01 at btinternet dot com
ponent: c Assignee: unassigned at gcc dot gnu.org Reporter: jmdh01 at btinternet dot com Target Milestone: --- Created attachment 39911 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39911&action=edit gcc_version+specimen.c+specimen.i example program demonstrating