[Bug target/85744] Returning INT_FAST64_MIN become zero

2018-05-11 Thread cerlane at nscc dot sg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85744 --- Comment #7 from cerlane --- (In reply to Jonathan Wakely from comment #5) > You should have read https://gcc.gnu.org/bugs/ which explains what we need > for a valid bug report, and would have done that before reporting it. > > You probably f

[Bug target/85744] Returning INT_FAST64_MIN become zero

2018-05-11 Thread cerlane at nscc dot sg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85744 cerlane changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/85744] Returning INT_FAST64_MIN become zero

2018-05-10 Thread cerlane at nscc dot sg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85744 --- Comment #2 from cerlane --- (In reply to Andrew Pinski from comment #1) > Try 0x8000ULL No unfortunately, it still returns 0x0.

[Bug c/85744] New: Returning INT_FAST64_MIN become zero

2018-05-10 Thread cerlane at nscc dot sg
Assignee: unassigned at gcc dot gnu.org Reporter: cerlane at nscc dot sg Target Milestone: --- When returning the value 0x8000LL from a function (return type int_fast64_t), the value becomes zero (0x0). Is this a feature to guard against underflowing? If so, how can I