public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/45883] New: Incorrect store removal when compiling with -fstrict-aliasing
@ 2010-10-04 17:02 vegorov at chromium dot org
  2010-10-04 22:20 ` [Bug tree-optimization/45883] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vegorov at chromium dot org @ 2010-10-04 17:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45883

           Summary: Incorrect store removal when compiling with
                    -fstrict-aliasing
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vegorov@chromium.org


Created attachment 21958
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=21958
testcase

When attached test case is compiled with -O1 -fstrict-aliasing GCC removes
store to the GlobalObject::ctx_ field. 

GCC seems to be confused by BitCast<T**> in the Handle<T>::operator* but I see
no aliasing violation there.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tree-optimization/45883] Incorrect store removal when compiling with -fstrict-aliasing
  2010-10-04 17:02 [Bug tree-optimization/45883] New: Incorrect store removal when compiling with -fstrict-aliasing vegorov at chromium dot org
@ 2010-10-04 22:20 ` rguenth at gcc dot gnu.org
  2010-10-05  8:47 ` vegorov at chromium dot org
  2011-12-22  2:33 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-04 22:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45883

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-04 22:20:27 UTC ---
Looks related to PR42834 (-fno-builtin-memcpy fixes it)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tree-optimization/45883] Incorrect store removal when compiling with -fstrict-aliasing
  2010-10-04 17:02 [Bug tree-optimization/45883] New: Incorrect store removal when compiling with -fstrict-aliasing vegorov at chromium dot org
  2010-10-04 22:20 ` [Bug tree-optimization/45883] " rguenth at gcc dot gnu.org
@ 2010-10-05  8:47 ` vegorov at chromium dot org
  2011-12-22  2:33 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: vegorov at chromium dot org @ 2010-10-05  8:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45883

--- Comment #2 from Vyacheslav Egorov <vegorov at chromium dot org> 2010-10-05 08:47:19 UTC ---
Richard I can confirm that test case passes when compiled with -O1
-fstrict-aliasing -fno-builtin-memcpy.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug tree-optimization/45883] Incorrect store removal when compiling with -fstrict-aliasing
  2010-10-04 17:02 [Bug tree-optimization/45883] New: Incorrect store removal when compiling with -fstrict-aliasing vegorov at chromium dot org
  2010-10-04 22:20 ` [Bug tree-optimization/45883] " rguenth at gcc dot gnu.org
  2010-10-05  8:47 ` vegorov at chromium dot org
@ 2011-12-22  2:33 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-22  2:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45883

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |4.4.3, 4.7.0
         Resolution|                            |DUPLICATE

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-22 02:28:15 UTC ---
Fixed.

*** This bug has been marked as a duplicate of bug 42834 ***


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-22  2:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-04 17:02 [Bug tree-optimization/45883] New: Incorrect store removal when compiling with -fstrict-aliasing vegorov at chromium dot org
2010-10-04 22:20 ` [Bug tree-optimization/45883] " rguenth at gcc dot gnu.org
2010-10-05  8:47 ` vegorov at chromium dot org
2011-12-22  2:33 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).