public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/47684] New: -fcompare-debug failure with -O3
@ 2011-02-10 18:27 zsojka at seznam dot cz
  2011-02-10 19:24 ` [Bug debug/47684] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2011-02-10 18:27 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: -fcompare-debug failure with -O3
           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 23297
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23297
reduced testcase

Compiler output:
$ gcc -O3 -fcompare-debug testcase.c
gcc: error: testcase.c: -fcompare-debug failure (length)

The generated code is very different with/without debug.

Tested revisions:
r169997 - fail
4.5 r168785 - fail


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

* [Bug debug/47684] -fcompare-debug failure with -O3
  2011-02-10 18:27 [Bug debug/47684] New: -fcompare-debug failure with -O3 zsojka at seznam dot cz
@ 2011-02-10 19:24 ` jakub at gcc dot gnu.org
  2011-02-10 19:36 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-10 19:24 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.6.0

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-10 19:13:07 UTC ---
No problems until predictive commoning, which makes different choices in
between -g and -g0 compilations.


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

* [Bug debug/47684] -fcompare-debug failure with -O3
  2011-02-10 18:27 [Bug debug/47684] New: -fcompare-debug failure with -O3 zsojka at seznam dot cz
  2011-02-10 19:24 ` [Bug debug/47684] " jakub at gcc dot gnu.org
@ 2011-02-10 19:36 ` jakub at gcc dot gnu.org
  2011-02-11 14:27 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-10 19:36 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.02.10 19:31:41
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-10 19:31:41 UTC ---
Created attachment 23299
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23299
gcc46-pr47684.patch

Untested fix.


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

* [Bug debug/47684] -fcompare-debug failure with -O3
  2011-02-10 18:27 [Bug debug/47684] New: -fcompare-debug failure with -O3 zsojka at seznam dot cz
  2011-02-10 19:24 ` [Bug debug/47684] " jakub at gcc dot gnu.org
  2011-02-10 19:36 ` jakub at gcc dot gnu.org
@ 2011-02-11 14:27 ` jakub at gcc dot gnu.org
  2011-02-11 14:35 ` jakub at gcc dot gnu.org
  2011-02-14 12:30 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-11 14:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-11 14:24:30 UTC ---
Author: jakub
Date: Fri Feb 11 14:24:26 2011
New Revision: 170051

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170051
Log:
    PR debug/47684
    * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.

    * gcc.dg/pr47684.c: New test.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog


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

* [Bug debug/47684] -fcompare-debug failure with -O3
  2011-02-10 18:27 [Bug debug/47684] New: -fcompare-debug failure with -O3 zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2011-02-11 14:27 ` jakub at gcc dot gnu.org
@ 2011-02-11 14:35 ` jakub at gcc dot gnu.org
  2011-02-14 12:30 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-11 14:35 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-11 14:27:39 UTC ---
The actual fix was also http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170050
I've just committed wrong ChangeLog entries and commit message.

Fixed.


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

* [Bug debug/47684] -fcompare-debug failure with -O3
  2011-02-10 18:27 [Bug debug/47684] New: -fcompare-debug failure with -O3 zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2011-02-11 14:35 ` jakub at gcc dot gnu.org
@ 2011-02-14 12:30 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-14 12:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-14 12:25:35 UTC ---
*** Bug 47415 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2011-02-14 12:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-10 18:27 [Bug debug/47684] New: -fcompare-debug failure with -O3 zsojka at seznam dot cz
2011-02-10 19:24 ` [Bug debug/47684] " jakub at gcc dot gnu.org
2011-02-10 19:36 ` jakub at gcc dot gnu.org
2011-02-11 14:27 ` jakub at gcc dot gnu.org
2011-02-11 14:35 ` jakub at gcc dot gnu.org
2011-02-14 12:30 ` jakub 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).