public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/46799] New: -fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce
@ 2010-12-04 14:59 zsojka at seznam dot cz
  2010-12-04 17:09 ` [Bug debug/46799] [4.6 Regression] " hjl.tools at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2010-12-04 14:59 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: -fcompare-debug failure (length) with
                    -ftree-parallelize-loops=2 -fno-tree-dce
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


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

Compiler output:
$ gcc -O -ftree-parallelize-loops=2 -fno-tree-dce -ftree-pre -fcompare-debug
pr46799.c 
gcc: error: pr46799.c: -fcompare-debug failure (length)
$ diff pr46799.*gkd
204c204
<         (reg:DI 6 bp))# {*pushdi2_rex64}
---
>         (reg:DI 6 bp)) pr46799.c:1# {*pushdi2_rex64}
208c208
<         (reg:DI 3 bx))# {*pushdi2_rex64}
---
>         (reg:DI 3 bx)) pr46799.c:1# {*pushdi2_rex64}
217c217
<         ])# {pro_epilogue_adjust_stack_di_add}
---
>         ]) pr46799.c:1# {pro_epilogue_adjust_stack_di_add}
227c227
<                 (const_int 8 [0x8])) [ .paral_data_load.11_3->D.xxxx+0 S4
A32])) pr46799.c:33554427# {*movsi_internal}
---
>                 (const_int 8 [0x8])) [ .paral_data_load.11_3->D.xxxx+0 S4 A32])) pr46799.c:1# {*movsi_internal}


Tested revisions:
r167424 - fail
r153685 - OK
4.5 r166509 - fail


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

* [Bug debug/46799] [4.6 Regression] -fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce
  2010-12-04 14:59 [Bug debug/46799] New: -fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce zsojka at seznam dot cz
@ 2010-12-04 17:09 ` hjl.tools at gmail dot com
  2010-12-06 10:11 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2010-12-04 17:09 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.12.04 17:08:54
                 CC|                            |matz at suse dot de
   Target Milestone|---                         |4.6.0
            Summary|-fcompare-debug failure     |[4.6 Regression]
                   |(length) with               |-fcompare-debug failure
                   |-ftree-parallelize-loops=2  |(length) with
                   |-fno-tree-dce               |-ftree-parallelize-loops=2
                   |                            |-fno-tree-dce
     Ever Confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2010-12-04 17:08:54 UTC ---
It is caused by revision 167184:

http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg01074.html


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

* [Bug debug/46799] [4.6 Regression] -fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce
  2010-12-04 14:59 [Bug debug/46799] New: -fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce zsojka at seznam dot cz
  2010-12-04 17:09 ` [Bug debug/46799] [4.6 Regression] " hjl.tools at gmail dot com
@ 2010-12-06 10:11 ` jakub at gcc dot gnu.org
  2010-12-07 11:28 ` jakub at gcc dot gnu.org
  2010-12-07 11:31 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-06 10:11 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-06 10:10:58 UTC ---
Created attachment 22650
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22650
gcc46-pr46799.patch

Untested patch.


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

* [Bug debug/46799] [4.6 Regression] -fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce
  2010-12-04 14:59 [Bug debug/46799] New: -fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce zsojka at seznam dot cz
  2010-12-04 17:09 ` [Bug debug/46799] [4.6 Regression] " hjl.tools at gmail dot com
  2010-12-06 10:11 ` jakub at gcc dot gnu.org
@ 2010-12-07 11:28 ` jakub at gcc dot gnu.org
  2010-12-07 11:31 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-07 11:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-07 11:27:40 UTC ---
Author: jakub
Date: Tue Dec  7 11:27:37 2010
New Revision: 167533

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167533
Log:
    PR debug/46799
    * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
    instead of BUILTINS_LOCATION.
    (create_loop_fn): Add LOC argument, pass it to build_decl instead of
    BUILTINS_LOCATION.
    (create_parallel_loop): Add LOC argument, use it for OMP clauses
    and GIMPLE_*OMP* statements.
    (gen_parallel_loop): Determine locus for the parallel loop, pass it
    to create_loop_fn and create_parallel_loop.
    * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
    set_curr_insn_source_location (UNKNOWN_LOCATION).

    * gcc.dg/autopar/pr46799.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/autopar/pr46799.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfgexpand.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-parloops.c


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

* [Bug debug/46799] [4.6 Regression] -fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce
  2010-12-04 14:59 [Bug debug/46799] New: -fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-12-07 11:28 ` jakub at gcc dot gnu.org
@ 2010-12-07 11:31 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-07 11:31 UTC (permalink / raw)
  To: gcc-bugs

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

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> 2010-12-07 11:31:26 UTC ---
Fixed.


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

end of thread, other threads:[~2010-12-07 11:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-04 14:59 [Bug debug/46799] New: -fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce zsojka at seznam dot cz
2010-12-04 17:09 ` [Bug debug/46799] [4.6 Regression] " hjl.tools at gmail dot com
2010-12-06 10:11 ` jakub at gcc dot gnu.org
2010-12-07 11:28 ` jakub at gcc dot gnu.org
2010-12-07 11:31 ` 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).