[Bug middle-end/37042] Strict-aliasing warnings are printed for _mm_load_si128, even though __m128i is __attribute__((__may_alias__)).
--- Comment #7 from lennox at cs dot columbia dot edu 2008-08-11 14:11 --- The fact that the function returns the vector is not an essential part of the test; the return value of the load function just needs not to be optimized out as unused. So changing the test for broader compatibility is fine as far as I'm concerned. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37042
[Bug middle-end/37042] Strict-aliasing warnings are printed for _mm_load_si128, even though __m128i is __attribute__((__may_alias__)).
--- Comment #6 from pinskia at gcc dot gnu dot org 2008-08-10 20:19 --- Note this testcase fails on powerpc64-linux-gnu with the following warning: /home/apinski/src/local/gcc/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c:8: warning: GCC vector returned by reference: non-standard ABI extension with no compatibility guarantee -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37042
[Bug middle-end/37042] Strict-aliasing warnings are printed for _mm_load_si128, even though __m128i is __attribute__((__may_alias__)).
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-08-07 08:50 --- Confirmed. This is the other machinery. typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__)); extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_load_si128 (__m128i const *__P) { return *__P; } static const short __attribute__((__aligned__(16))) tbl[8] = { 1, 2, 3, 4, 5, 6, 7, 8}; __m128i get_vec(void) { __m128i ret; ret = _mm_load_si128((__m128i *)tbl); return ret; } -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords||diagnostic Last reconfirmed|-00-00 00:00:00 |2008-08-07 08:50:50 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37042
[Bug middle-end/37042] Strict-aliasing warnings are printed for _mm_load_si128, even though __m128i is __attribute__((__may_alias__)).
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-08-07 08:51 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2008-08-07 08:50:50 |2008-08-07 08:51:06 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37042
[Bug middle-end/37042] Strict-aliasing warnings are printed for _mm_load_si128, even though __m128i is __attribute__((__may_alias__)).
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-08-07 10:01 --- Subject: Bug 37042 Author: rguenth Date: Thu Aug 7 09:59:58 2008 New Revision: 138836 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=138836 Log: 2008-08-07 Richard Guenther [EMAIL PROTECTED] PR middle-end/37042 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all pointers can access anything. * gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: New testcase. Added: branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c Modified: branches/gcc-4_3-branch/gcc/ChangeLog branches/gcc-4_3-branch/gcc/testsuite/ChangeLog branches/gcc-4_3-branch/gcc/tree-ssa-alias-warnings.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37042
[Bug middle-end/37042] Strict-aliasing warnings are printed for _mm_load_si128, even though __m128i is __attribute__((__may_alias__)).
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-08-07 10:02 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.3.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37042
[Bug middle-end/37042] Strict-aliasing warnings are printed for _mm_load_si128, even though __m128i is __attribute__((__may_alias__)).
--- Comment #5 from rguenth at gcc dot gnu dot org 2008-08-07 10:03 --- Subject: Bug 37042 Author: rguenth Date: Thu Aug 7 10:01:48 2008 New Revision: 138837 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=138837 Log: 2008-08-07 Richard Guenther [EMAIL PROTECTED] PR middle-end/37042 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all pointers can access anything. * gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-alias-warnings.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37042