public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/52165] New: [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x
@ 2012-02-07 23:19 doko at gcc dot gnu.org
  2012-02-08 10:23 ` [Bug middle-end/52165] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: doko at gcc dot gnu.org @ 2012-02-07 23:19 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52165
           Summary: [4.7 Regression] ICE in add_var_loc_to_decl, at
                    dwarf2out.c:5430 building libgo on s390/s390x
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: doko@gcc.gnu.org


seen with trunk 20120105, works with 20120201

libtool: compile: 
/build/buildd-gcc-4.7_4.7-20120205-1-s390-ilh9qc/gcc-4.7-4.7-20120205/build/./gcc/gccgo
-B/build/buildd-gcc-4.7_4.7-20120205-1-s390-ilh9qc/gcc-4.7-4.7-20120205/build/./gcc/
-B/usr/s390-linux-gnu/bin/ -B/usr/s390-linux-gnu/lib/ -isystem
/usr/s390-linux-gnu/include -isystem /usr/s390-linux-gnu/sys-include -O2 -g
-m64 -I . -c -fgo-prefix=libgo_net ../../../../src/libgo/go/net/cgo_unix.go
../../../../src/libgo/go/net/cgo_linux.go ../../../../src/libgo/go/net/dial.go
../../../../src/libgo/go/net/dnsclient.go
../../../../src/libgo/go/net/dnsclient_unix.go
../../../../src/libgo/go/net/dnsconfig.go
../../../../src/libgo/go/net/dnsmsg.go ../../../../src/libgo/go/net/doc.go
../../../../src/libgo/go/net/newpollserver.go
../../../../src/libgo/go/net/fd.go ../../../../src/libgo/go/net/fd_linux.go
../../../../src/libgo/go/net/file.go ../../../../src/libgo/go/net/hosts.go
../../../../src/libgo/go/net/interface.go
../../../../src/libgo/go/net/interface_linux.go
../../../../src/libgo/go/net/ip.go ../../../../src/libgo/go/net/iprawsock.go
../../../../src/libgo/go/net/iprawsock_posix.go
../../../../src/libgo/go/net/ipsock.go
../../../../src/libgo/go/net/ipsock_posix.go
../../../../src/libgo/go/net/lookup_unix.go ../../../../src/libgo/go/net/net.go
../../../../src/libgo/go/net/parse.go ../../../../src/libgo/go/net/pipe.go
../../../../src/libgo/go/net/port.go
../../../../src/libgo/go/net/sendfile_linux.go
../../../../src/libgo/go/net/sock.go ../../../../src/libgo/go/net/sock_linux.go
../../../../src/libgo/go/net/sockopt.go
../../../../src/libgo/go/net/sockopt_linux.go
../../../../src/libgo/go/net/sockoptip.go
../../../../src/libgo/go/net/sockoptip_linux.go
../../../../src/libgo/go/net/tcpsock.go
../../../../src/libgo/go/net/tcpsock_posix.go
../../../../src/libgo/go/net/udpsock.go
../../../../src/libgo/go/net/udpsock_posix.go
../../../../src/libgo/go/net/unixsock.go
../../../../src/libgo/go/net/unixsock_posix.go  -fPIC -o net/.libs/net.o

../../../../src/libgo/go/net/dnsclient_unix.go: In function 'net.lookup':
../../../../src/libgo/go/net/dnsclient_unix.go:184:1: internal compiler error:
in add_var_loc_to_decl, at dwarf2out.c:5430
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[10]: *** [net/net.lo] Error 1
make[10]: Leaving directory
`/build/buildd-gcc-4.7_4.7-20120205-1-s390-ilh9qc/gcc-4.7-4.7-20120205/build/s390-linux-gnu/64/libgo'
make[9]: *** [all-recursive] Error 1


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

* [Bug middle-end/52165] [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x
  2012-02-07 23:19 [Bug middle-end/52165] New: [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x doko at gcc dot gnu.org
@ 2012-02-08 10:23 ` rguenth at gcc dot gnu.org
  2012-02-08 14:08 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-02-08 10:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

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


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

* [Bug middle-end/52165] [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x
  2012-02-07 23:19 [Bug middle-end/52165] New: [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x doko at gcc dot gnu.org
  2012-02-08 10:23 ` [Bug middle-end/52165] " rguenth at gcc dot gnu.org
@ 2012-02-08 14:08 ` jakub at gcc dot gnu.org
  2012-02-08 15:27 ` [Bug debug/52165] " jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-08 14:08 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aoliva at gcc dot gnu.org,
                   |                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-08 14:07:52 UTC ---
Looks like a var-tracking bug to me.  We have:
(call_insn 543 542 1495 58 (parallel [
            (call (mem:QI (const:DI (unspec:DI [
                                (symbol_ref:DI ("__go_string_plus") [flags
0x41]  <function_decl 0x7f1f92e6f300 __go_string_plus>)
                            ] UNSPEC_PLT)) [0 __go_string_plus S1 A8])
                (const_int 0 [0]))
            (clobber (reg:DI 14 %r14))
        ]) /usr/src/gcc/libgo/go/net/dnsclient_unix.go:166 572 {*brasl}
     (expr_list:REG_DEAD (reg:DI 4 %r4)
        (expr_list:REG_DEAD (reg:DI 3 %r3)
            (expr_list:REG_DEAD (reg:DI 2 %r2)
                (expr_list:REG_EH_REGION (const_int 0 [0])
                    (nil)))))
    (expr_list:REG_CFA_SET_VDRAP (use (reg:DI 4 %r4))
        (expr_list:REG_CFA_SET_VDRAP (use (reg:DI 3 %r3))
            (expr_list:REG_CFA_SET_VDRAP (use (reg:DI 2 %r2))
                (nil)))))

(note 1495 543 1494 58 (var_location rname (nil)) NOTE_INSN_VAR_LOCATION)

(note 1494 1495 1493 58 (expr_list:REG_DEP_TRUE (concat:DI (reg:DI 4 %r4)
        (plus:DI (reg/f:DI 32 %ap)
            (const_int -352 [0xfffffffffffffea0])))
    (expr_list:REG_DEP_TRUE (concat:DI (reg:DI 3 %r3)
            (plus:DI (reg/f:DI 32 %ap)
                (const_int -336 [0xfffffffffffffeb0])))
        (expr_list:REG_DEP_TRUE (concat:DI (reg:DI 2 %r2)
                (reg/f:DI 6 %r6 [322]))
            (nil)))) NOTE_INSN_CALL_ARG_LOCATION)

(note/c 1493 1494 1492 58 (var_location rname$__length (nil))
NOTE_INSN_VAR_LOCATION)

(note/c 1492 1493 1491 58 (var_location rname$__length (nil))
NOTE_INSN_VAR_LOCATION)

(note/c 1491 1492 1496 58 (var_location rname (nil)) NOTE_INSN_VAR_LOCATION)

(note 1496 1491 1497 58 (var_location rname$__length (nil))
NOTE_INSN_VAR_LOCATION)

(note 1497 1496 776 58 (var_location rname$__length (nil))
NOTE_INSN_VAR_LOCATION)

I believe the NOTE_INSN_VARLOCATION note without /c before /c notes is a bug.


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

* [Bug debug/52165] [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x
  2012-02-07 23:19 [Bug middle-end/52165] New: [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x doko at gcc dot gnu.org
  2012-02-08 10:23 ` [Bug middle-end/52165] " rguenth at gcc dot gnu.org
  2012-02-08 14:08 ` jakub at gcc dot gnu.org
@ 2012-02-08 15:27 ` jakub at gcc dot gnu.org
  2012-02-08 15:33 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-08 15:27 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-02-08
          Component|middle-end                  |debug
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug debug/52165] [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x
  2012-02-07 23:19 [Bug middle-end/52165] New: [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x doko at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-02-08 15:27 ` [Bug debug/52165] " jakub at gcc dot gnu.org
@ 2012-02-08 15:33 ` jakub at gcc dot gnu.org
  2012-02-09  5:41 ` doko at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-08 15:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-08 15:32:14 UTC ---
Created attachment 26613
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26613
gcc47-pr52165.patch

Untested fix.


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

* [Bug debug/52165] [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x
  2012-02-07 23:19 [Bug middle-end/52165] New: [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x doko at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-02-08 15:33 ` jakub at gcc dot gnu.org
@ 2012-02-09  5:41 ` doko at gcc dot gnu.org
  2012-02-09 11:42 ` jakub at gcc dot gnu.org
  2012-02-09 12:36 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: doko at gcc dot gnu.org @ 2012-02-09  5:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Matthias Klose <doko at gcc dot gnu.org> 2012-02-09 05:40:15 UTC ---
the proposed patch fixes the libgo build; I don't see any regressions in the
testsuite.


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

* [Bug debug/52165] [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x
  2012-02-07 23:19 [Bug middle-end/52165] New: [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x doko at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-02-09  5:41 ` doko at gcc dot gnu.org
@ 2012-02-09 11:42 ` jakub at gcc dot gnu.org
  2012-02-09 12:36 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-09 11:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-09 11:41:29 UTC ---
Author: jakub
Date: Thu Feb  9 11:41:25 2012
New Revision: 184042

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184042
Log:
    PR debug/52165
    * var-tracking.c (emit_note_insn_var_location): If
    EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
    emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
    non-NOTE_DURING_CALL_P insn.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/var-tracking.c


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

* [Bug debug/52165] [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x
  2012-02-07 23:19 [Bug middle-end/52165] New: [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x doko at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-02-09 11:42 ` jakub at gcc dot gnu.org
@ 2012-02-09 12:36 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-09 12:36 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-09 12:35:44 UTC ---
Fixed.


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

end of thread, other threads:[~2012-02-09 12:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-07 23:19 [Bug middle-end/52165] New: [4.7 Regression] ICE in add_var_loc_to_decl, at dwarf2out.c:5430 building libgo on s390/s390x doko at gcc dot gnu.org
2012-02-08 10:23 ` [Bug middle-end/52165] " rguenth at gcc dot gnu.org
2012-02-08 14:08 ` jakub at gcc dot gnu.org
2012-02-08 15:27 ` [Bug debug/52165] " jakub at gcc dot gnu.org
2012-02-08 15:33 ` jakub at gcc dot gnu.org
2012-02-09  5:41 ` doko at gcc dot gnu.org
2012-02-09 11:42 ` jakub at gcc dot gnu.org
2012-02-09 12:36 ` 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).