public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
@ 2011-05-03 13:40 hjl.tools at gmail dot com
  2011-05-03 13:55 ` [Bug debug/48853] " jakub at gcc dot gnu.org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-03 13:40 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.7 Regression] Wrong DWARF codegen when Pmode !=
                    ptr_mode
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com
                CC: jakub@gcc.gnu.org


Revision 173210:

http://gcc.gnu.org/ml/gcc-cvs/2011-04/msg01406.html

breaks DWARF codegen when Pmode != ptr_mode.  For x32,
I got

FAIL: gcc.dg/debug/dwarf2/var2.c scan-assembler
DW_OP_addr[\\n\\r]+[^\\n\\r]+bar
FAIL: gcc.dg/debug/dwarf2/var2.c scan-assembler
DW_OP_addr[\\n\\r]+[^\\n\\r]+foo
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2 -flto  (test for excess
errors)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2  (test for excess errors)
FAIL: g++.dg/debug/dwarf2/static-local-var-in-ctor.C scan-assembler
DW_OP_addr[^\n\r]*[\n\r]*[^\n\r]*staticvar1
FAIL: g++.dg/debug/dwarf2/static-local-var-in-ctor.C scan-assembler
DW_OP_addr[^\n\r]*[\n\r]*[^\n\r]*staticvar2
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O1  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O1  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2 -flto  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2 -flto  (test for excess
errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O3 -fomit-frame-pointer 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O3 -fomit-frame-pointer  (test
for excess errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O3 -g  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O3 -g  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O1  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O1  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2 -flto  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2 -flto  (test for excess
errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O3 -fomit-frame-pointer 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O3 -fomit-frame-pointer  (test
for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O3 -g  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O3 -g  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O1  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O1  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2 -flto  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2 -flto  (test for excess
errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O3 -fomit-frame-pointer 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O3 -fomit-frame-pointer  (test
for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O3 -g  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O3 -g  (test for excess errors)


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
@ 2011-05-03 13:55 ` jakub at gcc dot gnu.org
  2011-05-03 14:07 ` hjl.tools at gmail dot com
                   ` (23 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-03 13:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-03 13:53:46 UTC ---
x32 is not a supported target.  Do you have something that is reproduceable on
supported targets?  ia64-hpux is the only one I think...


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
  2011-05-03 13:55 ` [Bug debug/48853] " jakub at gcc dot gnu.org
@ 2011-05-03 14:07 ` hjl.tools at gmail dot com
  2011-05-03 15:10 ` sje at cup dot hp.com
                   ` (22 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-03 14:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp.com

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-03 13:57:23 UTC ---
(In reply to comment #1)
> x32 is not a supported target.  Do you have something that is reproduceable on
> supported targets?  ia64-hpux is the only one I think...

Steve, have you seen any DWARF regressions on ia64-hpux?


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
  2011-05-03 13:55 ` [Bug debug/48853] " jakub at gcc dot gnu.org
  2011-05-03 14:07 ` hjl.tools at gmail dot com
@ 2011-05-03 15:10 ` sje at cup dot hp.com
  2011-05-03 15:28 ` hjl.tools at gmail dot com
                   ` (21 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: sje at cup dot hp.com @ 2011-05-03 15:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Steve Ellcey <sje at cup dot hp.com> 2011-05-03 15:02:26 UTC ---
Yes, I am seeing some new failures on IA64 HP-UX.  I do not get the stackalign
failures but I do get:

FAIL: g++.dg/debug/dwarf2/static-local-var-in-ctor.C scan-assembler
DW_OP_addr[^
\n\r]*[\n\r]*[^\n\r]*staticvar1
FAIL: g++.dg/debug/dwarf2/static-local-var-in-ctor.C scan-assembler
DW_OP_addr[^
\n\r]*[\n\r]*[^\n\r]*staticvar2
FAIL: gcc.dg/debug/dwarf2/var2.c scan-assembler
DW_OP_addr[\\n\\r]+[^\\n\\r]+bar
FAIL: gcc.dg/debug/dwarf2/var2.c scan-assembler
DW_OP_addr[\\n\\r]+[^\\n\\r]+foo

These showed up between 173204 and 173229 so they are probably due to the same
change.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2011-05-03 15:10 ` sje at cup dot hp.com
@ 2011-05-03 15:28 ` hjl.tools at gmail dot com
  2011-05-03 16:08 ` jakub at gcc dot gnu.org
                   ` (20 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-03 15:28 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.05.03 15:27:49
     Ever Confirmed|0                           |1

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-03 15:27:49 UTC ---
(In reply to comment #3)
> Yes, I am seeing some new failures on IA64 HP-UX.  I do not get the stackalign
> failures but I do get:

I don't think ia664 hp-ux run stackalign tests.

> FAIL: g++.dg/debug/dwarf2/static-local-var-in-ctor.C scan-assembler
> DW_OP_addr[^
> \n\r]*[\n\r]*[^\n\r]*staticvar1
> FAIL: g++.dg/debug/dwarf2/static-local-var-in-ctor.C scan-assembler
> DW_OP_addr[^
> \n\r]*[\n\r]*[^\n\r]*staticvar2
> FAIL: gcc.dg/debug/dwarf2/var2.c scan-assembler
> DW_OP_addr[\\n\\r]+[^\\n\\r]+bar
> FAIL: gcc.dg/debug/dwarf2/var2.c scan-assembler
> DW_OP_addr[\\n\\r]+[^\\n\\r]+foo
> 
> These showed up between 173204 and 173229 so they are probably due to the same
> change.

FAIL: gcc.dg/debug/dwarf2/var2.c scan-assembler
DW_OP_addr[\\n\\r]+[^\\n\\r]+bar
FAIL: gcc.dg/debug/dwarf2/var2.c scan-assembler
DW_OP_addr[\\n\\r]+[^\\n\\r]+foo

are the common failures for Pmode != ptr_mode targets.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (3 preceding siblings ...)
  2011-05-03 15:28 ` hjl.tools at gmail dot com
@ 2011-05-03 16:08 ` jakub at gcc dot gnu.org
  2011-05-03 22:18 ` sje at cup dot hp.com
                   ` (19 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-03 16:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-03 16:04:42 UTC ---
Created attachment 24170
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24170
gcc47-pr48853.patch

This patch should fix var2.c on ia64-hpux - the patch will for memory addresses
only (i.e. when mem_mode is not VOIDmode) allow SYMBOL_REFs/LABEL_REFs/CONST of
larger mode than DWARF2_ADDR_SIZE, assuming it is Pmode and ptr_mode has
DWARF2_ADDR_SIZE.  It is a total mess though, because whether it is sign
extended or zero extended or something else isn't actually represented in the
debug info, the debug info consumer needs to know.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (4 preceding siblings ...)
  2011-05-03 16:08 ` jakub at gcc dot gnu.org
@ 2011-05-03 22:18 ` sje at cup dot hp.com
  2011-05-04  7:44 ` jakub at gcc dot gnu.org
                   ` (18 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: sje at cup dot hp.com @ 2011-05-03 22:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Steve Ellcey <sje at cup dot hp.com> 2011-05-03 22:15:38 UTC ---
The patch works for me on ia64-hp-hpux11.23.  It fixed the four new failures I
had and caused no regressions.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (5 preceding siblings ...)
  2011-05-03 22:18 ` sje at cup dot hp.com
@ 2011-05-04  7:44 ` jakub at gcc dot gnu.org
  2011-05-04 13:44 ` hjl.tools at gmail dot com
                   ` (17 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-04  7:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-04 07:42:55 UTC ---
Does it fix (at least some of) the x32 issues as well?  If some (e.g. ICEs) are
left, please post backtraces and other relevant details.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (6 preceding siblings ...)
  2011-05-04  7:44 ` jakub at gcc dot gnu.org
@ 2011-05-04 13:44 ` hjl.tools at gmail dot com
  2011-05-04 14:08 ` jakub at gcc dot gnu.org
                   ` (16 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-04 13:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-04 13:33:57 UTC ---
I still got

FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/ret-struct-1.c  -O2 -flto  (test for excess
errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/alloca-1.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-2.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-3.c  -O2 -flto  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O1  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -fomit-frame-pointer  (internal
compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -fomit-frame-pointer  (test for
excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -g  (internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O3 -g  (test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (internal compiler
error)
FAIL: gcc.dg/torture/stackalign/nested-4.c  -O2 -flto  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O1  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O1  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O3 -fomit-frame-pointer 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O3 -fomit-frame-pointer  (test
for excess errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O3 -g  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O3 -g  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2 -flto  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-alloca-1.C  -O2 -flto  (test for excess
errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O1  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O1  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O3 -fomit-frame-pointer 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O3 -fomit-frame-pointer  (test
for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O3 -g  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O3 -g  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2 -flto  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-vararg-1.C  -O2 -flto  (test for excess
errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O1  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O1  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2  (internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O3 -fomit-frame-pointer 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O3 -fomit-frame-pointer  (test
for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O3 -g  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O3 -g  (test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2 -flto -flto-partition=none 
(internal compiler error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2 -flto -flto-partition=none 
(test for excess errors)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2 -flto  (internal compiler
error)
FAIL: g++.dg/torture/stackalign/eh-vararg-2.C  -O2 -flto  (test for excess
errors)

Starting program: /export/build/gnu/gcc-x32/build-x86_64-linux/stage1-gcc/cc1
-fpreprocessed /tmp/y.i -quiet -dumpbase y.i -mpreferred-stack-boundary=5 -mx32
-mpreferred-stack-boundary=5 -mstackrealign -mforce-drap -mtune=generic
-march=x86-64 -auxbase y -O2 -version -flto -o y.s
GNU C (GCC) version 4.7.0 20110430 (experimental) (x86_64-unknown-linux-gnu)
    compiled by GNU C version 4.5.1 20100924 (Red Hat 4.5.1-4), GMP version
4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.3-dev
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C (GCC) version 4.7.0 20110430 (experimental) (x86_64-unknown-linux-gnu)
    compiled by GNU C version 4.5.1 20100924 (Red Hat 4.5.1-4), GMP version
4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.3-dev
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: b4e2f59b4886d2d2edb8e5bd4aff1d3a

Breakpoint 1, fancy_abort (
    file=0x3612188 "/export/gnu/import/git/gcc-x32/gcc/dwarf2out.c", 
    line=5648, function=0x361dd60 "output_loc_operands_raw")
    at /export/gnu/import/git/gcc-x32/gcc/diagnostic.c:893
893      internal_error ("in %s, at %s:%d", function, trim_filename (file),
line);
(gdb) bt
#0  fancy_abort (
    file=0x3612188 "/export/gnu/import/git/gcc-x32/gcc/dwarf2out.c", 
    line=5648, function=0x361dd60 "output_loc_operands_raw")
    at /export/gnu/import/git/gcc-x32/gcc/diagnostic.c:893
#1  0x0000000000b2420b in output_loc_operands_raw (loc=0x7ffff0d4a4c0)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:5648
#2  0x0000000000b242cd in output_loc_sequence_raw (loc=0x7ffff0d4a4c0)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:5680
#3  0x0000000000b24424 in output_cfa_loc_raw (cfi=0x7ffff0d4e570)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:5741
#4  0x0000000000b1e8bd in output_cfi_directive (cfi=0x7ffff0d4e570)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:3439
#5  0x0000000000b19771 in add_fde_cfi (label=0x4a8edc0 "<do not output>", 
    cfi=0x7ffff0d4e570) at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:961
#6  0x0000000000b1bef1 in dwarf2out_frame_debug_cfa_expression (
    set=0x7ffff0d4d390, label=0x4a8edc0 "<do not output>")
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:2093
#7  0x0000000000b1d605 in dwarf2out_frame_debug (insn=0x7ffff0d47c60, 
    after_p=1 '\001') at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:2870
#8  0x0000000000c9a5f8 in final_scan_insn (insn=0x7ffff0d47c60, 
    file=0x4c05950, optimize_p=2, nopeepholes=0, seen=0x7fffffffddac)
    at /export/gnu/import/git/gcc-x32/gcc/final.c:2775
#9  0x0000000000c98a73 in final (first=0x7ffff0d4a0c0, file=0x4c05950, 
---Type <return> to continue, or q <return> to quit---q
optimize_Quit
(gdb) f 2
#2  0x0000000000b242cd in output_loc_sequence_raw (loc=0x7ffff0d4a4c0)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:5680
5680          output_loc_operands_raw (loc);
(gdb) f 1
#1  0x0000000000b2420b in output_loc_operands_raw (loc=0x7ffff0d4a4c0)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:5648
5648          gcc_unreachable ();
(gdb) list
5643        case DW_OP_GNU_const_type:
5644        case DW_OP_GNU_regval_type:
5645        case DW_OP_GNU_deref_type:
5646        case DW_OP_GNU_convert:
5647        case DW_OP_GNU_reinterpret:
5648          gcc_unreachable ();
5649          break;
5650    
5651        default:
5652          /* Other codes have no operands.  */
(gdb)


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (7 preceding siblings ...)
  2011-05-04 13:44 ` hjl.tools at gmail dot com
@ 2011-05-04 14:08 ` jakub at gcc dot gnu.org
  2011-05-04 15:43 ` hjl.tools at gmail dot com
                   ` (15 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-04 14:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-04 14:06:56 UTC ---
Can you track down on which mem_loc_descriptor call these new
DW_OP_GNU_*_type/DW_OP_GNU_{convert,reinterpret}
locs have been added, and for that post a backtrace and debug_rtx on the
outermost mem_loc_descriptor call argument?


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (8 preceding siblings ...)
  2011-05-04 14:08 ` jakub at gcc dot gnu.org
@ 2011-05-04 15:43 ` hjl.tools at gmail dot com
  2011-05-04 17:20 ` jakub at gcc dot gnu.org
                   ` (14 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-04 15:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-04 15:37:43 UTC ---
(In reply to comment #9)
> Can you track down on which mem_loc_descriptor call these new
> DW_OP_GNU_*_type/DW_OP_GNU_{convert,reinterpret}
> locs have been added, and for that post a backtrace and debug_rtx on the
> outermost mem_loc_descriptor call argument?

Breakpoint 6, mem_loc_descriptor (rtl=0x7ffff0dde4c0, mode=DImode, 
    mem_mode=DImode, initialized=VAR_INIT_STATUS_INITIALIZED)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:13952
13952          mem_loc_result = new_loc_descr (DW_OP_GNU_regval_type,
(gdb) call debug_rtx (rtl)
(reg/f:DI 6 bp)
(gdb) bt
#0  mem_loc_descriptor (rtl=0x7ffff0dde4c0, mode=DImode, mem_mode=DImode, 
    initialized=VAR_INIT_STATUS_INITIALIZED)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:13952
#1  0x0000000000b3b26c in mem_loc_descriptor (rtl=0x7ffff0d47f90, mode=DImode, 
    mem_mode=DImode, initialized=VAR_INIT_STATUS_INITIALIZED)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:14196
#2  0x0000000000b1bed6 in dwarf2out_frame_debug_cfa_expression (
    set=0x7ffff0d47fc0, label=0x4a8edc0 "<do not output>")
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:2088
#3  0x0000000000b1d605 in dwarf2out_frame_debug (insn=0x7ffff0d45a20, 
    after_p=1 '\001') at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:2870
#4  0x0000000000c9a5f8 in final_scan_insn (insn=0x7ffff0d45a20, 
    file=0x4c05540, optimize_p=2, nopeepholes=0, seen=0x7fffffffddac)
    at /export/gnu/import/git/gcc-x32/gcc/final.c:2775
#5  0x0000000000c98a73 in final (first=0x7ffff0ce95c0, file=0x4c05540, 
    optimize_p=2) at /export/gnu/import/git/gcc-x32/gcc/final.c:1795
#6  0x0000000000c9cf40 in rest_of_handle_final ()
    at /export/gnu/import/git/gcc-x32/gcc/final.c:4246
#7  0x000000000133ac0e in execute_one_pass (pass=0x4a80980)
    at /export/gnu/import/git/gcc-x32/gcc/passes.c:1556
#8  0x000000000133adfd in execute_pass_list (pass=0x4a80980)
    at /export/gnu/import/git/gcc-x32/gcc/passes.c:1611
#9  0x000000000133ae1e in execute_pass_list (pass=0x4a81360)
---Type <return> to continue, or q <return> to quit---
    at /export/gnu/import/git/gcc-x32/gcc/passes.c:1612
#10 0x000000000133ae1e in execute_pass_list (pass=0x4a81300)
    at /export/gnu/import/git/gcc-x32/gcc/passes.c:1612
#11 0x0000000001b15ff1 in tree_rest_of_compilation (fndecl=0x7ffff0ce7200)
    at /export/gnu/import/git/gcc-x32/gcc/tree-optimize.c:423
#12 0x000000000280711e in cgraph_expand_function (node=0x7ffff0ceb250)
    at /export/gnu/import/git/gcc-x32/gcc/cgraphunit.c:1579
#13 0x00000000028072dd in cgraph_expand_all_functions ()
    at /export/gnu/import/git/gcc-x32/gcc/cgraphunit.c:1638
#14 0x000000000280796a in cgraph_optimize ()
    at /export/gnu/import/git/gcc-x32/gcc/cgraphunit.c:1901
#15 0x0000000002804dde in cgraph_finalize_compilation_unit ()
    at /export/gnu/import/git/gcc-x32/gcc/cgraphunit.c:1099
#16 0x00000000004f38c6 in c_write_global_declarations ()
    at /export/gnu/import/git/gcc-x32/gcc/c-decl.c:9883
#17 0x0000000001782785 in compile_file ()
    at /export/gnu/import/git/gcc-x32/gcc/toplev.c:591
#18 0x000000000178496b in do_compile ()
    at /export/gnu/import/git/gcc-x32/gcc/toplev.c:1913
#19 0x0000000001784ab8 in toplev_main (argc=20, argv=0x7fffffffe248)
    at /export/gnu/import/git/gcc-x32/gcc/toplev.c:1976
#20 0x0000000000734eaa in main (argc=20, argv=0x7fffffffe248)
    at /export/gnu/import/git/gcc-x32/gcc/main.c:36
(gdb) f 1
#1  0x0000000000b3b26c in mem_loc_descriptor (rtl=0x7ffff0d47f90, mode=DImode, 
    mem_mode=DImode, initialized=VAR_INIT_STATUS_INITIALIZED)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:14196
14196          mem_loc_result = mem_loc_descriptor (XEXP (rtl, 0), mode,
mem_mode,
(gdb) call debug_rtx (rtl)
(plus:DI (reg/f:DI 6 bp)
    (const_int -24 [0xffffffffffffffe8]))
(gdb) f 2
#2  0x0000000000b1bed6 in dwarf2out_frame_debug_cfa_expression (
    set=0x7ffff0d47fc0, label=0x4a8edc0 "<do not output>")
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:2088
2088        = mem_loc_descriptor (XEXP (dest, 0), get_address_mode (dest),
(gdb)


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (9 preceding siblings ...)
  2011-05-04 15:43 ` hjl.tools at gmail dot com
@ 2011-05-04 17:20 ` jakub at gcc dot gnu.org
  2011-05-04 17:33 ` hjl.tools at gmail dot com
                   ` (13 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-04 17:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #24170|0                           |1
        is obsolete|                            |

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-04 17:13:37 UTC ---
Created attachment 24183
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24183
gcc47-pr48853.patch

Is this better?


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (10 preceding siblings ...)
  2011-05-04 17:20 ` jakub at gcc dot gnu.org
@ 2011-05-04 17:33 ` hjl.tools at gmail dot com
  2011-05-04 18:15 ` jakub at gcc dot gnu.org
                   ` (12 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-04 17:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-04 17:24:24 UTC ---
(In reply to comment #11)
> Created attachment 24183 [details]
> gcc47-pr48853.patch
> 
> Is this better?

No, it doesn't handle DW_OP_GNU_const_type:

(gdb) f 0
#0  mem_loc_descriptor (rtl=0x7ffff0de42f0, mode=DImode, mem_mode=DImode, 
    initialized=VAR_INIT_STATUS_INITIALIZED)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:14350
14350          mem_loc_result = new_loc_descr (DW_OP_GNU_const_type, 0,
(gdb) bt
#0  mem_loc_descriptor (rtl=0x7ffff0de42f0, mode=DImode, mem_mode=DImode, 
    initialized=VAR_INIT_STATUS_INITIALIZED)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:14350
#1  0x0000000000b3b39d in mem_loc_descriptor (rtl=0x7ffff0d47f90, mode=DImode, 
    mem_mode=DImode, initialized=VAR_INIT_STATUS_INITIALIZED)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:14212
#2  0x0000000000b1bed6 in dwarf2out_frame_debug_cfa_expression (
    set=0x7ffff0d47fc0, label=0x4a8ee40 "<do not output>")
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:2088
#3  0x0000000000b1d605 in dwarf2out_frame_debug (insn=0x7ffff0d45a20, 
    after_p=1 '\001') at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:2870
#4  0x0000000000c9a66c in final_scan_insn (insn=0x7ffff0d45a20, 
    file=0x4c05540, optimize_p=2, nopeepholes=0, seen=0x7fffffffddac)
    at /export/gnu/import/git/gcc-x32/gcc/final.c:2775
#5  0x0000000000c98ae7 in final (first=0x7ffff0ce95c0, file=0x4c05540, 
    optimize_p=2) at /export/gnu/import/git/gcc-x32/gcc/final.c:1795
#6  0x0000000000c9cfb4 in rest_of_handle_final ()
    at /export/gnu/import/git/gcc-x32/gcc/final.c:4246
#7  0x000000000133ac82 in execute_one_pass (pass=0x4a80a00)
    at /export/gnu/import/git/gcc-x32/gcc/passes.c:1556
#8  0x000000000133ae71 in execute_pass_list (pass=0x4a80a00)
    at /export/gnu/import/git/gcc-x32/gcc/passes.c:1611
#9  0x000000000133ae92 in execute_pass_list (pass=0x4a813e0)
---Type <return> to continue, or q <return> to quit---q
 at /export/gnu/impoQuit
(gdb) f 1
#1  0x0000000000b3b39d in mem_loc_descriptor (rtl=0x7ffff0d47f90, mode=DImode, 
    mem_mode=DImode, initialized=VAR_INIT_STATUS_INITIALIZED)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:14212
14212              dw_loc_descr_ref mem_loc_result2
(gdb) call debug_rtx (rtl)
(plus:DI (reg/f:DI 6 bp)
    (const_int -24 [0xffffffffffffffe8]))
(gdb) 

We need to check all those new DW_OP_GNU_xxxx ops.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (11 preceding siblings ...)
  2011-05-04 17:33 ` hjl.tools at gmail dot com
@ 2011-05-04 18:15 ` jakub at gcc dot gnu.org
  2011-05-04 18:16 ` hjl.tools at gmail dot com
                   ` (11 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-04 18:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #24183|0                           |1
        is obsolete|                            |

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-04 17:51:37 UTC ---
Created attachment 24184
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24184
gcc47-pr48853.patch

So like this?  CONST_DOUBLEs really shouldn't appear in the addresses...


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (12 preceding siblings ...)
  2011-05-04 18:15 ` jakub at gcc dot gnu.org
@ 2011-05-04 18:16 ` hjl.tools at gmail dot com
  2011-05-04 20:04 ` hjl.tools at gmail dot com
                   ` (10 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-04 18:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-04 18:10:24 UTC ---
(In reply to comment #13)
> Created attachment 24184 [details]
> gcc47-pr48853.patch
> 
> So like this?  CONST_DOUBLEs really shouldn't appear in the addresses...

It looks much better.  I am retesting everything now. Thanks.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (13 preceding siblings ...)
  2011-05-04 18:16 ` hjl.tools at gmail dot com
@ 2011-05-04 20:04 ` hjl.tools at gmail dot com
  2011-05-05 15:50 ` jakub at gcc dot gnu.org
                   ` (9 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-04 20:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-04 19:55:15 UTC ---
(In reply to comment #14)
> (In reply to comment #13)
> > Created attachment 24184 [details]
> > gcc47-pr48853.patch
> > 
> > So like this?  CONST_DOUBLEs really shouldn't appear in the addresses...
> 
> It looks much better.  I am retesting everything now. Thanks.

Now I got

FAIL: gcc.dg/guality/inline-params.c  -O1  execution test
FAIL: gcc.dg/guality/pr43051-1.c  -O1  line 39 c == &a[0]
FAIL: gcc.dg/guality/pr45882.c  -O1  line 16 d == 112
FAIL: gcc.dg/guality/pr45882.c  -O1  line 16 e == 142
FAIL: gcc.dg/guality/pr45882.c  -O2 -flto -flto-partition=none  line 16 d ==
112
FAIL: gcc.dg/guality/pr45882.c  -O2 -flto -flto-partition=none  line 16 e ==
142
FAIL: gcc.dg/guality/pr45882.c  -O2 -flto  line 16 d == 112
FAIL: gcc.dg/guality/pr45882.c  -O2 -flto  line 16 e == 142
FAIL: gcc.dg/guality/pr45882.c  -O2  line 16 d == 112
FAIL: gcc.dg/guality/pr45882.c  -O2  line 16 e == 142
FAIL: gcc.dg/guality/pr45882.c  -O3 -fomit-frame-pointer  line 16 d == 112
FAIL: gcc.dg/guality/pr45882.c  -O3 -fomit-frame-pointer  line 16 e == 142
FAIL: gcc.dg/guality/pr45882.c  -O3 -g  line 16 d == 112
FAIL: gcc.dg/guality/pr45882.c  -O3 -g  line 16 e == 142
FAIL: gcc.dg/guality/pr45882.c  -Os  line 16 d == 112
FAIL: gcc.dg/guality/pr45882.c  -Os  line 16 e == 142

It is much better.  Can we fix them? I merged revision 173210 with
x32 work, which is on hjl/x32/pr48853 branch at

http://git.kernel.org/?p=devel/gcc/hjl/x86.git;a=summary

You can build it on Linux/x86-64 and compare assembly outputs
from commit c27cd7a93c80ab39ef997f6ca447763f64e6a0bc and commit
84af042f2832c4b5fa5767a6169ed690bd5da301.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (14 preceding siblings ...)
  2011-05-04 20:04 ` hjl.tools at gmail dot com
@ 2011-05-05 15:50 ` jakub at gcc dot gnu.org
  2011-05-06 22:39 ` hjl.tools at gmail dot com
                   ` (8 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-05-05 15:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-05 15:48:22 UTC ---
Author: jakub
Date: Thu May  5 15:48:18 2011
New Revision: 173436

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173436
Log:
    PR debug/48853
    * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
    instead of mode as 3rd argument to recursive call.
    (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
    emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
    VOIDmode.
    (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
    don't give up if mode is Pmode and mem_mode is not VOIDmode.
    (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
    use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (15 preceding siblings ...)
  2011-05-05 15:50 ` jakub at gcc dot gnu.org
@ 2011-05-06 22:39 ` hjl.tools at gmail dot com
  2011-05-06 22:51 ` hjl.tools at gmail dot com
                   ` (7 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-06 22:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-06 22:38:34 UTC ---
loc_descriptor change in

http://gcc.gnu.org/ml/gcc-cvs/2011-04/msg01406.html

@@ -14469,7 +15018,10 @@
      up an entire register.  For now, just assume that it is
      legitimate to make the Dwarf info refer to the whole register which
      contains the given subreg.  */
-      loc_result = loc_descriptor (SUBREG_REG (rtl), mode, initialized);
+      if (REG_P (SUBREG_REG (rtl)) && subreg_lowpart_p (rtl))
+    loc_result = loc_descriptor (SUBREG_REG (rtl), mode, initialized);
+      else
+    goto do_default;
       break;

     case REG:

doesn't handle:

Breakpoint 5, loc_descriptor (rtl=0x7ffff0b24c30, mode=SImode, 
    initialized=VAR_INIT_STATUS_INITIALIZED)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:15035
15035          if ((REG_P (SUBREG_REG (rtl))
(gdb) call debug_rtx (rtl)
(subreg:SI (symbol_ref:DI ("a") [flags 0x2] <var_decl 0x7ffff0a9c500 a>) 0)
(gdb) 

It happens when Pmode != ptr_mode in gcc.dg/guality/inline-params.c.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (16 preceding siblings ...)
  2011-05-06 22:39 ` hjl.tools at gmail dot com
@ 2011-05-06 22:51 ` hjl.tools at gmail dot com
  2011-05-06 22:55 ` hjl.tools at gmail dot com
                   ` (6 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-06 22:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-06 22:43:36 UTC ---
(In reply to comment #17)
> loc_descriptor change in
> 
> http://gcc.gnu.org/ml/gcc-cvs/2011-04/msg01406.html
> 
> @@ -14469,7 +15018,10 @@
>       up an entire register.  For now, just assume that it is
>       legitimate to make the Dwarf info refer to the whole register which
>       contains the given subreg.  */
> -      loc_result = loc_descriptor (SUBREG_REG (rtl), mode, initialized);
> +      if (REG_P (SUBREG_REG (rtl)) && subreg_lowpart_p (rtl))
> +    loc_result = loc_descriptor (SUBREG_REG (rtl), mode, initialized);
> +      else
> +    goto do_default;
>        break;
> 
>      case REG:
> 
> doesn't handle:
> 
> Breakpoint 5, loc_descriptor (rtl=0x7ffff0b24c30, mode=SImode, 
>     initialized=VAR_INIT_STATUS_INITIALIZED)
>     at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:15035
> 15035          if ((REG_P (SUBREG_REG (rtl))
> (gdb) call debug_rtx (rtl)
> (subreg:SI (symbol_ref:DI ("a") [flags 0x2] <var_decl 0x7ffff0a9c500 a>) 0)
> (gdb) 
> 

Also

Breakpoint 5, loc_descriptor (rtl=0x7ffff086be88, mode=SImode, 
    initialized=VAR_INIT_STATUS_INITIALIZED)
    at /export/gnu/import/git/gcc-x32/gcc/dwarf2out.c:15035
15035          if ((REG_P (SUBREG_REG (rtl))
(subreg:SI (const:DI (plus:DI (symbol_ref:DI ("a") [flags 0x2] <var_decl
0x7ffff0993e60 a>)
            (const_int 4 [0x4]))) 0)
(gdb) 

gcc.dg/guality/pr45882.c failures may expose other issues.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (17 preceding siblings ...)
  2011-05-06 22:51 ` hjl.tools at gmail dot com
@ 2011-05-06 22:55 ` hjl.tools at gmail dot com
  2011-05-06 23:04 ` sje at cup dot hp.com
                   ` (5 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-05-06 22:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-06 22:40:19 UTC ---
(In reply to comment #6)
> The patch works for me on ia64-hp-hpux11.23.  It fixed the four new failures I
> had and caused no regressions.

Steve, does the latest GDB work on ia64 hp-ux? You
may see more regressions with the latest GDB.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (18 preceding siblings ...)
  2011-05-06 22:55 ` hjl.tools at gmail dot com
@ 2011-05-06 23:04 ` sje at cup dot hp.com
  2011-05-09 18:21 ` hjl at gcc dot gnu.org
                   ` (4 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: sje at cup dot hp.com @ 2011-05-06 23:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #20 from Steve Ellcey <sje at cup dot hp.com> 2011-05-06 23:04:21 UTC ---
(In reply to comment #18)
> (In reply to comment #6)
> > The patch works for me on ia64-hp-hpux11.23.  It fixed the four new failures I
> > had and caused no regressions.
> 
> Steve, does the latest GDB work on ia64 hp-ux? You
> may see more regressions with the latest GDB.

GDB on ia64 hp-ux never really worked.  It only started building this year when
Joel Brobecker ported it but I was never able to get good results with it
(either testing or in actual use).

The HP WDB (based on an old GDB) works better but still has many shortcomings
when used with GCC.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (19 preceding siblings ...)
  2011-05-06 23:04 ` sje at cup dot hp.com
@ 2011-05-09 18:21 ` hjl at gcc dot gnu.org
  2011-08-01 14:27 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: hjl at gcc dot gnu.org @ 2011-05-09 18:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-05-09 18:16:06 UTC ---
Author: hjl
Date: Mon May  9 18:16:04 2011
New Revision: 173587

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173587
Log:
One more POINTERS_EXTEND_UNSIGNED fix in mem_loc_descriptor.

2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>

    PR debug/48853
    * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
    POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
    Pmode and mem_mode is not VOIDmode.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (20 preceding siblings ...)
  2011-05-09 18:21 ` hjl at gcc dot gnu.org
@ 2011-08-01 14:27 ` rguenth at gcc dot gnu.org
  2011-08-02 14:06 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  24 siblings, 0 replies; 26+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-01 14:27 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (21 preceding siblings ...)
  2011-08-01 14:27 ` rguenth at gcc dot gnu.org
@ 2011-08-02 14:06 ` rguenth at gcc dot gnu.org
  2011-08-02 14:28 ` hjl.tools at gmail dot com
  2011-10-10 11:52 ` rguenth at gcc dot gnu.org
  24 siblings, 0 replies; 26+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-02 14:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #22 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-02 14:05:54 UTC ---
Fixed?


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (22 preceding siblings ...)
  2011-08-02 14:06 ` rguenth at gcc dot gnu.org
@ 2011-08-02 14:28 ` hjl.tools at gmail dot com
  2011-10-10 11:52 ` rguenth at gcc dot gnu.org
  24 siblings, 0 replies; 26+ messages in thread
From: hjl.tools at gmail dot com @ 2011-08-02 14:28 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #23 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-02 14:26:50 UTC ---
I still see more guality failures on x32 than on x86-64.


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

* [Bug debug/48853] [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode
  2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
                   ` (23 preceding siblings ...)
  2011-08-02 14:28 ` hjl.tools at gmail dot com
@ 2011-10-10 11:52 ` rguenth at gcc dot gnu.org
  24 siblings, 0 replies; 26+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-10 11:52 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #24 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-10 11:47:43 UTC ---
Not a supported target (and thus not a regression).  Fixed for ia64.


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

end of thread, other threads:[~2011-10-10 11:52 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-03 13:40 [Bug debug/48853] New: [4.7 Regression] Wrong DWARF codegen when Pmode != ptr_mode hjl.tools at gmail dot com
2011-05-03 13:55 ` [Bug debug/48853] " jakub at gcc dot gnu.org
2011-05-03 14:07 ` hjl.tools at gmail dot com
2011-05-03 15:10 ` sje at cup dot hp.com
2011-05-03 15:28 ` hjl.tools at gmail dot com
2011-05-03 16:08 ` jakub at gcc dot gnu.org
2011-05-03 22:18 ` sje at cup dot hp.com
2011-05-04  7:44 ` jakub at gcc dot gnu.org
2011-05-04 13:44 ` hjl.tools at gmail dot com
2011-05-04 14:08 ` jakub at gcc dot gnu.org
2011-05-04 15:43 ` hjl.tools at gmail dot com
2011-05-04 17:20 ` jakub at gcc dot gnu.org
2011-05-04 17:33 ` hjl.tools at gmail dot com
2011-05-04 18:15 ` jakub at gcc dot gnu.org
2011-05-04 18:16 ` hjl.tools at gmail dot com
2011-05-04 20:04 ` hjl.tools at gmail dot com
2011-05-05 15:50 ` jakub at gcc dot gnu.org
2011-05-06 22:39 ` hjl.tools at gmail dot com
2011-05-06 22:51 ` hjl.tools at gmail dot com
2011-05-06 22:55 ` hjl.tools at gmail dot com
2011-05-06 23:04 ` sje at cup dot hp.com
2011-05-09 18:21 ` hjl at gcc dot gnu.org
2011-08-01 14:27 ` rguenth at gcc dot gnu.org
2011-08-02 14:06 ` rguenth at gcc dot gnu.org
2011-08-02 14:28 ` hjl.tools at gmail dot com
2011-10-10 11:52 ` 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).