public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58955] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu
       [not found] <bug-58955-4@http.gcc.gnu.org/bugzilla/>
@ 2013-11-01  7:47 ` mpolacek at gcc dot gnu.org
  2013-11-03  0:55 ` su at cs dot ucdavis.edu
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-11-01  7:47 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-11-01
                 CC|                            |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |4.9.0
            Summary|wrong code at -O3 on        |[4.9 Regression] wrong code
                   |x86_64-linux-gnu            |at -O3 on x86_64-linux-gnu
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.  Goes away with -fno-tree-loop-distribute-patterns.


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

* [Bug tree-optimization/58955] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu
       [not found] <bug-58955-4@http.gcc.gnu.org/bugzilla/>
  2013-11-01  7:47 ` [Bug tree-optimization/58955] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu mpolacek at gcc dot gnu.org
@ 2013-11-03  0:55 ` su at cs dot ucdavis.edu
  2013-11-04 14:37 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: su at cs dot ucdavis.edu @ 2013-11-03  0:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Zhendong Su <su at cs dot ucdavis.edu> ---
Here is another testcase that seems related (also goes away with
-fno-tree-loop-distribute-patterns.  


--------------------------------

int printf (const char *, ...);

int a, b[10];

int
main ()
{
  for (; a < 2; a++)
    {
      b[a] = 1;
      b[a + 1] = 0;
    }
  printf ("%d\n", b[1]);
  return 0;
}


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

* [Bug tree-optimization/58955] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu
       [not found] <bug-58955-4@http.gcc.gnu.org/bugzilla/>
  2013-11-01  7:47 ` [Bug tree-optimization/58955] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu mpolacek at gcc dot gnu.org
  2013-11-03  0:55 ` su at cs dot ucdavis.edu
@ 2013-11-04 14:37 ` rguenth at gcc dot gnu.org
  2013-11-05 15:10 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-04 14:37 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.


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

* [Bug tree-optimization/58955] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu
       [not found] <bug-58955-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2013-11-04 14:37 ` rguenth at gcc dot gnu.org
@ 2013-11-05 15:10 ` rguenth at gcc dot gnu.org
  2013-11-05 15:12 ` rguenth at gcc dot gnu.org
  2013-11-08  8:44 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-05 15:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Nov  5 15:08:43 2013
New Revision: 204398

URL: http://gcc.gnu.org/viewcvs?rev=204398&root=gcc&view=rev
Log:
2013-11-05  Richard Biener  <rguenther@suse.de>

    PR tree-optimization/58955
    * tree-loop-distribution.c (pg_add_dependence_edges): Fix
    edge direction.

    * gcc.dg/torture/pr58955-1.c: New testcase.
    * gcc.dg/torture/pr58955-2.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr58955-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr58955-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-loop-distribution.c


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

* [Bug tree-optimization/58955] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu
       [not found] <bug-58955-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2013-11-05 15:10 ` rguenth at gcc dot gnu.org
@ 2013-11-05 15:12 ` rguenth at gcc dot gnu.org
  2013-11-08  8:44 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-05 15:12 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.


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

* [Bug tree-optimization/58955] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu
       [not found] <bug-58955-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2013-11-05 15:12 ` rguenth at gcc dot gnu.org
@ 2013-11-08  8:44 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-08  8:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Fri Nov  8 08:44:02 2013
New Revision: 204561

URL: http://gcc.gnu.org/viewcvs?rev=204561&root=gcc&view=rev
Log:
2013-11-08  Richard Biener  <rguenther@suse.de>

    PR tree-optimization/59038
    PR tree-optimization/58955
    * tree-loop-distribution.c (pg_add_dependence_edges): Revert
    previous change.  Handle known dependences correctly.

    * gcc.dg/torture/pr59038.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr59038.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-loop-distribution.c


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

end of thread, other threads:[~2013-11-08  8:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-58955-4@http.gcc.gnu.org/bugzilla/>
2013-11-01  7:47 ` [Bug tree-optimization/58955] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu mpolacek at gcc dot gnu.org
2013-11-03  0:55 ` su at cs dot ucdavis.edu
2013-11-04 14:37 ` rguenth at gcc dot gnu.org
2013-11-05 15:10 ` rguenth at gcc dot gnu.org
2013-11-05 15:12 ` rguenth at gcc dot gnu.org
2013-11-08  8:44 ` rguenth 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).