public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
@ 2011-02-17 11:43 zsojka at seznam dot cz
  2011-02-17 16:50 ` [Bug debug/47780] " jakub at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: zsojka at seznam dot cz @ 2011-02-17 11:43 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: -fcompare-debug failure with -O -fgcse -fgcse-las
                    -fstack-protector-all
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
                CC: aoliva@gcc.gnu.org
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


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

Compiler output:
$ gcc -O -fgcse -fgcse-las -fstack-protector-all -fno-tree-ccp
-fno-tree-dominator-opts -fcompare-debug testcase.c                     
testcase.c: In function 'foo':
testcase.c:3:6: note: The ABI for passing parameters with 128-byte alignment
has changed in GCC 4.6
gcc: error: testcase.c: -fcompare-debug failure (length)

Generated code is different with/without -g.

Tested revisions:
r170243 - fail
4.5 r170013 - fail


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

* [Bug debug/47780] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
@ 2011-02-17 16:50 ` jakub at gcc dot gnu.org
  2011-02-17 16:57 ` [Bug debug/47780] [4.5/4.6 Regression] " jakub at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-17 16:50 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.02.17 16:43:06
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-17 16:43:06 UTC ---
Created attachment 23383
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23383
gcc46-pr47780.patch

Untested fix.


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

* [Bug debug/47780] [4.5/4.6 Regression] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
  2011-02-17 16:50 ` [Bug debug/47780] " jakub at gcc dot gnu.org
@ 2011-02-17 16:57 ` jakub at gcc dot gnu.org
  2011-02-18 10:50 ` jakub at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-17 16:57 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.0
            Summary|-fcompare-debug failure     |[4.5/4.6 Regression]
                   |with -O -fgcse -fgcse-las   |-fcompare-debug failure
                   |-fstack-protector-all       |with -O -fgcse -fgcse-las
                   |                            |-fstack-protector-all


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

* [Bug debug/47780] [4.5/4.6 Regression] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
  2011-02-17 16:50 ` [Bug debug/47780] " jakub at gcc dot gnu.org
  2011-02-17 16:57 ` [Bug debug/47780] [4.5/4.6 Regression] " jakub at gcc dot gnu.org
@ 2011-02-18 10:50 ` jakub at gcc dot gnu.org
  2011-02-18 11:06 ` [Bug debug/47780] [4.5 " jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-18 10:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-18 10:42:51 UTC ---
Author: jakub
Date: Fri Feb 18 10:42:48 2011
New Revision: 170270

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170270
Log:
    PR debug/47780
    * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
    avoid invalid rtx sharing.

    * gcc.target/i386/pr47780.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr47780.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfgexpand.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug debug/47780] [4.5 Regression] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2011-02-18 10:50 ` jakub at gcc dot gnu.org
@ 2011-02-18 11:06 ` jakub at gcc dot gnu.org
  2011-03-25 20:06 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-18 11:06 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.6.0
            Summary|[4.5/4.6 Regression]        |[4.5 Regression]
                   |-fcompare-debug failure     |-fcompare-debug failure
                   |with -O -fgcse -fgcse-las   |with -O -fgcse -fgcse-las
                   |-fstack-protector-all       |-fstack-protector-all
      Known to fail|4.6.0                       |

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-18 10:50:27 UTC ---
Fixed on the trunk so far.


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

* [Bug debug/47780] [4.5 Regression] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2011-02-18 11:06 ` [Bug debug/47780] [4.5 " jakub at gcc dot gnu.org
@ 2011-03-25 20:06 ` jakub at gcc dot gnu.org
  2011-06-27 16:23 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-25 20:06 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.0                       |4.6.1

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-25 19:53:11 UTC ---
GCC 4.6.0 is being released, adjusting target milestone.


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

* [Bug debug/47780] [4.5 Regression] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2011-03-25 20:06 ` jakub at gcc dot gnu.org
@ 2011-06-27 16:23 ` jakub at gcc dot gnu.org
  2011-10-10 12:44 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-06-27 16:23 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.1                       |4.6.2

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-27 12:33:12 UTC ---
GCC 4.6.1 is being released.


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

* [Bug debug/47780] [4.5 Regression] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
                   ` (5 preceding siblings ...)
  2011-06-27 16:23 ` jakub at gcc dot gnu.org
@ 2011-10-10 12:44 ` rguenth at gcc dot gnu.org
  2012-06-20 12:54 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-10 12:44 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.2                       |4.5.4


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

* [Bug debug/47780] [4.5 Regression] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
                   ` (6 preceding siblings ...)
  2011-10-10 12:44 ` rguenth at gcc dot gnu.org
@ 2012-06-20 12:54 ` rguenth at gcc dot gnu.org
  2012-06-20 13:56 ` rguenth at gcc dot gnu.org
  2012-06-20 14:47 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-20 12:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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

* [Bug debug/47780] [4.5 Regression] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
                   ` (7 preceding siblings ...)
  2012-06-20 12:54 ` rguenth at gcc dot gnu.org
@ 2012-06-20 13:56 ` rguenth at gcc dot gnu.org
  2012-06-20 14:47 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-20 13:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-20 13:56:01 UTC ---
Author: rguenth
Date: Wed Jun 20 13:55:44 2012
New Revision: 188834

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188834
Log:
2012-06-20  Richard Guenther  <rguenther@suse.de>

    Backport from mainline
    2010-12-18  Jakub Jelinek  <jakub@redhat.com>

    PR tree-optimization/46985
    * tree-scalar-evolution.c (instantiate_scev_r): If chrec is NULL,
    return it immediately.

    * gfortran.dg/pr46985.f90: New test.

    2011-02-18  Jakub Jelinek  <jakub@redhat.com>

    PR debug/47780
    * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
    avoid invalid rtx sharing.

    * gcc.target/i386/pr47780.c: New test.

    2011-02-27  Jakub Jelinek  <jakub@redhat.com>

    PR middle-end/47903
    * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
    MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
    r isn't op0 nor op1.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.target/i386/pr47780.c
    branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/pr46985.f90
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/cfgexpand.c
    branches/gcc-4_5-branch/gcc/real.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/gcc/tree-scalar-evolution.c


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

* [Bug debug/47780] [4.5 Regression] -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all
  2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
                   ` (8 preceding siblings ...)
  2012-06-20 13:56 ` rguenth at gcc dot gnu.org
@ 2012-06-20 14:47 ` rguenth at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-20 14:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-20 14:47:13 UTC ---
Fixed.


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

end of thread, other threads:[~2012-06-20 14:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-17 11:43 [Bug debug/47780] New: -fcompare-debug failure with -O -fgcse -fgcse-las -fstack-protector-all zsojka at seznam dot cz
2011-02-17 16:50 ` [Bug debug/47780] " jakub at gcc dot gnu.org
2011-02-17 16:57 ` [Bug debug/47780] [4.5/4.6 Regression] " jakub at gcc dot gnu.org
2011-02-18 10:50 ` jakub at gcc dot gnu.org
2011-02-18 11:06 ` [Bug debug/47780] [4.5 " jakub at gcc dot gnu.org
2011-03-25 20:06 ` jakub at gcc dot gnu.org
2011-06-27 16:23 ` jakub at gcc dot gnu.org
2011-10-10 12:44 ` rguenth at gcc dot gnu.org
2012-06-20 12:54 ` rguenth at gcc dot gnu.org
2012-06-20 13:56 ` rguenth at gcc dot gnu.org
2012-06-20 14:47 ` 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).