Summary: | Enhancement: Intrinsic to read CARRY and OVERFLOW flags (where applicable) | ||
---|---|---|---|
Product: | gcc | Reporter: | Jeffrey Walton <noloader> |
Component: | c | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | enhancement | CC: | manu, Martin.vGagern, noloader |
Priority: | P3 | ||
Version: | unknown | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
Jeffrey Walton
2011-06-19 02:48:15 UTC
The proposed interface, with its references to global flags set by operations that otherwise have values but no side effects, is not a good match to the nature of C as a high-level language; the source code arithmetic operations should not be presumed to have any particular correspondence to machine instructions that might set flags. Instead, I proposed a more appropriate interface for operations with explicit overflow behavior in bug 48580. *** This bug has been marked as a duplicate of bug 48580 *** Perhaps bug #59708 is a better candidate for this issue here than bug #48580, particularly in the light of bug #48580 comment #18 and #19. Can someone change the resolution of this here to duplicate that instead? |