public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13343] New: [tree-ssa] self-pointing pointers are sometimes miscompiled
@ 2003-12-07 18:37 jim at phython dot shacknet dot nu
  2003-12-07 18:39 ` [Bug optimization/13343] " jim at phython dot shacknet dot nu
  2003-12-07 19:18 ` falk at debian dot org
  0 siblings, 2 replies; 3+ messages in thread
From: jim at phython dot shacknet dot nu @ 2003-12-07 18:37 UTC (permalink / raw)
  To: gcc-bugs

In the attached testcase v3 points to itself and is then assigned the value 123.
However, foo gets inlined at the rtl level in O1 or at the tree level in O2 and
causes the return value to be 20, on my machine, instead of 123 as is expected and
is returned on gcc 3.3 with and without optimizations.

-- 
           Summary: [tree-ssa] self-pointing pointers are sometimes
                    miscompiled
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jim at phython dot shacknet dot nu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-unknown-linux-gnu
  GCC host triplet: sparc-unknown-linux-gnu
GCC target triplet: sparc-unknown-linux-gnu


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


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

* [Bug optimization/13343] [tree-ssa] self-pointing pointers are sometimes miscompiled
  2003-12-07 18:37 [Bug optimization/13343] New: [tree-ssa] self-pointing pointers are sometimes miscompiled jim at phython dot shacknet dot nu
@ 2003-12-07 18:39 ` jim at phython dot shacknet dot nu
  2003-12-07 19:18 ` falk at debian dot org
  1 sibling, 0 replies; 3+ messages in thread
From: jim at phython dot shacknet dot nu @ 2003-12-07 18:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jim at phython dot shacknet dot nu  2003-12-07 18:39 -------
Created an attachment (id=5294)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5294&action=view)
testcase for self-pointing pointer


-- 


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


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

* [Bug optimization/13343] [tree-ssa] self-pointing pointers are sometimes miscompiled
  2003-12-07 18:37 [Bug optimization/13343] New: [tree-ssa] self-pointing pointers are sometimes miscompiled jim at phython dot shacknet dot nu
  2003-12-07 18:39 ` [Bug optimization/13343] " jim at phython dot shacknet dot nu
@ 2003-12-07 19:18 ` falk at debian dot org
  1 sibling, 0 replies; 3+ messages in thread
From: falk at debian dot org @ 2003-12-07 19:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From falk at debian dot org  2003-12-07 19:18 -------
This is an aliasing violation; your test case is invalid.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2003-12-07 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-07 18:37 [Bug optimization/13343] New: [tree-ssa] self-pointing pointers are sometimes miscompiled jim at phython dot shacknet dot nu
2003-12-07 18:39 ` [Bug optimization/13343] " jim at phython dot shacknet dot nu
2003-12-07 19:18 ` falk at debian dot 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).