[Bug target/51793] pragma GCC optimize wrapv leads to invalid code on Solaris
bruno at clisp dot org
gcc-bugzilla@gcc.gnu.org
Thu Apr 29 01:14:08 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51793
Bruno Haible <bruno at clisp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail| |4.5.4, 4.6.4, 4.7.3, 4.8.5,
| |4.9.4
Known to work| |10.3.0, 11.1.0, 5.5.0,
| |6.5.0, 7.5.0, 8.4.0, 9.3.0
Resolution|--- |FIXED
--- Comment #3 from Bruno Haible <bruno at clisp dot org> ---
It works fine on
- Solaris 11.4 (gcc 7.3.0): foo.s contains '.p2align 4,,15'
- Solaris 11 OpenIndiana (gcc 7.2.0): likewise
- Solaris 11 OmniOS (gcc 9.3.0): foo.s does not contain .p2align directives any
more
More details by testing various versions on i386-pc-linux-gnu:
4.5.4 -> .p2align 4,,-1
4.6.4 -> .p2align 4,,-1
4.7.3 -> .p2align 4,,-1
4.8.5 -> .p2align 4,,-1
4.9.4 -> .p2align 4,,-1
5.5.0 -> no .p2align any more
6.5.0 -> .p2align 4,,15
7.5.0 -> .p2align 4,,15
8.4.0 -> .p2align 4,,15
9.3.0 -> .p2align 4
10.3.0 -> .p2align 4
11.1.0 -> .p2align 4
In summary, it appears to be fixed since GCC version 5.x.
More information about the Gcc-bugs
mailing list