public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
@ 2012-02-24 16:29 ro at gcc dot gnu.org
  2012-02-24 16:38 ` [Bug target/52372] [4.7 regression] " ro at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: ro at gcc dot gnu.org @ 2012-02-24 16:29 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52372
           Summary: gcc.target/mips/mips16-attributes{,-4}.c SEGV in
                    dwf_regno
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ro@gcc.gnu.org
                CC: rsandifo@gcc.gnu.org
              Host: mips-sgi-irix6.5
            Target: mips-sgi-irix6.5
             Build: mips-sgi-irix6.5


The mips16-attributes{, -4}.c tests ICE on IRIX 6:

FAIL: gcc.target/mips/mips16-attributes-4.c (internal compiler error)
FAIL: gcc.target/mips/mips16-attributes-4.c (test for excess errors)
FAIL: gcc.target/mips/mips16-attributes.c (internal compiler error)
FAIL: gcc.target/mips/mips16-attributes.c (test for excess errors)

In the first case, I find:

/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/mips/mips16-attributes-4.c:
In function 'bar':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/mips/mips16-attributes-4.c:9:1:
internal compiler error: Segmentation fault

The failure boils down to

$ cc1 -fpreprocessed mips16-attributes-4.i -quiet -mabi=o64 -mlong32 -mno-synci
-o mips16-attributes-4.s

In gdb,I see

Program received signal SIGSEGV, Segmentation fault.
0x104b4048 in dwf_regno (reg=0x40280b8) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2cfi.c:912
(gdb) p reg
$1 = (const_rtx) 0x40280b8
(gdb) pr
(pc)
(gdb) where
#0  0x104b4048 in dwf_regno (reg=0x40280b8) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2cfi.c:912
#1  dwarf2out_flush_queued_reg_saves () at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2cfi.c:994
#2  0x104b56d4 in dwarf2out_frame_debug (insn=0x40f05e0) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2cfi.c:2038
#3  scan_insn_after (insn=insn@entry=0x4033048) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2cfi.c:2361
#4  0x104b6b74 in scan_trace (trace=<optimized out>) at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2cfi.c:2505
#5  0x104b7e0c in create_cfi_notes () at
/vol/gcc/src/hg/trunk/local/gcc/dwarf2cfi.c:2549
#6  execute_dwarf2_frame () at /vol/gcc/src/hg/trunk/local/gcc/dwarf2cfi.c:2907
#7  0x104f5bec in execute_one_pass (pass=pass@entry=0x10dc3708) at
/vol/gcc/src/hg/trunk/local/gcc/passes.c:2081
#8  0x104f6088 in execute_pass_list (pass=0x10dc3708) at
/vol/gcc/src/hg/trunk/local/gcc/passes.c:2136
#9  0x104f60a4 in execute_pass_list (pass=0x10dc3970) at
/vol/gcc/src/hg/trunk/local/gcc/passes.c:2137
#10 0x104f60a4 in execute_pass_list (pass=0x10dc39a8) at
/vol/gcc/src/hg/trunk/local/gcc/passes.c:2137
#11 0x1078c50c in tree_rest_of_compilation (fndecl=0x40b9100) at
/vol/gcc/src/hg/trunk/local/gcc/tree-optimize.c:422
#12 0x105d533c in cgraph_expand_function (node=0x40d80a8) at
/vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1837
#13 0x105d7564 in cgraph_output_in_order () at
/vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:2002
#14 cgraph_optimize () at /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:2213
#15 0x105d792c in cgraph_finalize_compilation_unit () at
/vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:1344
#16 0x10187cf4 in c_write_global_declarations () at
/vol/gcc/src/hg/trunk/local/gcc/c-decl.c:10031
#17 0x10277148 in compile_file () at
/vol/gcc/src/hg/trunk/local/gcc/toplev.c:573
#18 do_compile () at /vol/gcc/src/hg/trunk/local/gcc/toplev.c:1938
#19 toplev_main (argc=9, argv=0x7ffb7f04) at
/vol/gcc/src/hg/trunk/local/gcc/toplev.c:2014
#20 0x101723f0 in __start ()

I didn't easily see how to find the equivalent of REGNO(reg) in dwf_regno.

  Rainer


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

* [Bug target/52372] [4.7 regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
@ 2012-02-24 16:38 ` ro at gcc dot gnu.org
  2012-02-25 11:02 ` [Bug middle-end/52372] " rsandifo at gcc dot gnu.org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ro at gcc dot gnu.org @ 2012-02-24 16:38 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0
            Summary|gcc.target/mips/mips16-attr |[4.7 regression]
                   |ibutes{,-4}.c SEGV in       |gcc.target/mips/mips16-attr
                   |dwf_regno                   |ibutes{,-4}.c SEGV in
                   |                            |dwf_regno

--- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> 2012-02-24 16:29:38 UTC ---
I just see that this is a regression from the 4.6 branch.


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

* [Bug middle-end/52372] [4.7 regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
  2012-02-24 16:38 ` [Bug target/52372] [4.7 regression] " ro at gcc dot gnu.org
@ 2012-02-25 11:02 ` rsandifo at gcc dot gnu.org
  2012-02-27 10:42 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2012-02-25 11:02 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo@gcc.gnu.org <rsandifo at gcc dot gnu.org> changed:

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

--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2012-02-25 09:40:58 UTC ---
Doesn't segfault for me, even with a cross to
mips-sgi-irix6.5, but it would probably show
as an rtl checking failure if rtl checking was
enabled.  Will try that.

Testing a patch.


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

* [Bug middle-end/52372] [4.7 regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
  2012-02-24 16:38 ` [Bug target/52372] [4.7 regression] " ro at gcc dot gnu.org
  2012-02-25 11:02 ` [Bug middle-end/52372] " rsandifo at gcc dot gnu.org
@ 2012-02-27 10:42 ` rguenth at gcc dot gnu.org
  2012-03-06 19:22 ` [Bug middle-end/52372] [4.7/4.8 " rsandifo at gcc dot gnu.org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-02-27 10:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-27 10:40:29 UTC ---
Not a primary/secondary platform.


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

* [Bug middle-end/52372] [4.7/4.8 regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-02-27 10:42 ` rguenth at gcc dot gnu.org
@ 2012-03-06 19:22 ` rsandifo at gcc dot gnu.org
  2012-03-22  9:07 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2012-03-06 19:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2012-03-06 19:22:14 UTC ---
Author: rsandifo
Date: Tue Mar  6 19:22:10 2012
New Revision: 185013

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185013
Log:
gcc/
    PR middle-end/52372
    * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
    variables.
    (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
    * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
    variables.
    (init_emit_regs): Move associated initialization to...
    (init_emit_once): ...here.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/emit-rtl.c
    trunk/gcc/rtl.h


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

* [Bug middle-end/52372] [4.7/4.8 regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-03-06 19:22 ` [Bug middle-end/52372] [4.7/4.8 " rsandifo at gcc dot gnu.org
@ 2012-03-22  9:07 ` rguenth at gcc dot gnu.org
  2012-06-14  8:35 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-22  9:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-22 08:26:57 UTC ---
GCC 4.7.0 is being released, adjusting target milestone.


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

* [Bug middle-end/52372] [4.7/4.8 regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-03-22  9:07 ` rguenth at gcc dot gnu.org
@ 2012-06-14  8:35 ` rguenth at gcc dot gnu.org
  2012-09-20 10:28 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-14  8:35 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.1                       |4.7.2

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-14 08:34:43 UTC ---
GCC 4.7.1 is being released, adjusting target milestone.


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

* [Bug middle-end/52372] [4.7/4.8 regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-06-14  8:35 ` rguenth at gcc dot gnu.org
@ 2012-09-20 10:28 ` jakub at gcc dot gnu.org
  2013-04-11  7:59 ` [Bug middle-end/52372] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-20 10:28 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.2                       |4.7.3

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-20 10:19:33 UTC ---
GCC 4.7.2 has been released.


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

* [Bug middle-end/52372] [4.7/4.8/4.9 regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2012-09-20 10:28 ` jakub at gcc dot gnu.org
@ 2013-04-11  7:59 ` rguenth at gcc dot gnu.org
  2014-04-14  8:15 ` [Bug middle-end/52372] [4.7 Regression] " rsandifo at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-11  7:59 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.3                       |4.7.4

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-11 07:59:25 UTC ---
GCC 4.7.3 is being released, adjusting target milestone.


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

* [Bug middle-end/52372] [4.7 Regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2013-04-11  7:59 ` [Bug middle-end/52372] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
@ 2014-04-14  8:15 ` rsandifo at gcc dot gnu.org
  2014-04-14  9:07 ` asolokha at gmx dot com
  2014-04-14  9:43 ` rsandifo at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2014-04-14  8:15 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
            Summary|[4.7/4.8/4.9/4.10           |[4.7 Regression]
                   |regression]                 |gcc.target/mips/mips16-attr
                   |gcc.target/mips/mips16-attr |ibutes{,-4}.c SEGV in
                   |ibutes{,-4}.c SEGV in       |dwf_regno
                   |dwf_regno                   |

--- Comment #9 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Is this still failing for anyone?  I haven't seen any reports that the
patch didn't work and the failing target (IRIX) has since been removed.

I'll close this on the assumption that it has been fixed.  Please reopen
if I'm wrong.


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

* [Bug middle-end/52372] [4.7 Regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2014-04-14  8:15 ` [Bug middle-end/52372] [4.7 Regression] " rsandifo at gcc dot gnu.org
@ 2014-04-14  9:07 ` asolokha at gmx dot com
  2014-04-14  9:43 ` rsandifo at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: asolokha at gmx dot com @ 2014-04-14  9:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Arseny Solokha <asolokha at gmx dot com> ---
It still fails, but indeed for different targets: PR60102, PR57933. I'm not
sure whether these are actually duplicates, though.


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

* [Bug middle-end/52372] [4.7 Regression] gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno
  2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2014-04-14  9:07 ` asolokha at gmx dot com
@ 2014-04-14  9:43 ` rsandifo at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2014-04-14  9:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
(In reply to Arseny Solokha from comment #10)
> It still fails, but indeed for different targets: PR60102, PR57933. I'm not
> sure whether these are actually duplicates, though.

Yeah, despite dwf_regno appearing in all three backtraces, I think those
bugs are different from this one.  In this case the problem was with
SWITCHABLE_TARGET.  This bug was specifically about the failures
in the MIPS-specific mips16-attributes* tests.


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

end of thread, other threads:[~2014-04-14  9:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-24 16:29 [Bug target/52372] New: gcc.target/mips/mips16-attributes{,-4}.c SEGV in dwf_regno ro at gcc dot gnu.org
2012-02-24 16:38 ` [Bug target/52372] [4.7 regression] " ro at gcc dot gnu.org
2012-02-25 11:02 ` [Bug middle-end/52372] " rsandifo at gcc dot gnu.org
2012-02-27 10:42 ` rguenth at gcc dot gnu.org
2012-03-06 19:22 ` [Bug middle-end/52372] [4.7/4.8 " rsandifo at gcc dot gnu.org
2012-03-22  9:07 ` rguenth at gcc dot gnu.org
2012-06-14  8:35 ` rguenth at gcc dot gnu.org
2012-09-20 10:28 ` jakub at gcc dot gnu.org
2013-04-11  7:59 ` [Bug middle-end/52372] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
2014-04-14  8:15 ` [Bug middle-end/52372] [4.7 Regression] " rsandifo at gcc dot gnu.org
2014-04-14  9:07 ` asolokha at gmx dot com
2014-04-14  9:43 ` rsandifo 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).