public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/37858]  New: [4.3/4.4] ICE when "-fdump-ipa-all -dv" is used
@ 2008-10-17  0:16 zsojka at seznam dot cz
  2008-10-17  6:34 ` [Bug middle-end/37858] [4.3/4.4 Regression] " ubizjak at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2008-10-17  0:16 UTC (permalink / raw)
  To: gcc-bugs

gcc crashes when any file is compiled with following switches:

gcc test.cpp -o test.o -fdump-ipa-all -dv

-----------

Seems to crash for any valid input file, but in this test I used:
test.cpp:
int main(void) { return 0; }

-------------

test.cpp:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.

---------------

# gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.2/work/gcc-4.3.2/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib --disable-checking
--disable-werror --enable-secureplt --enable-multilib --disable-libmudflap
--disable-libssp --enable-cld --disable-libgcj
--enable-languages=c,c++,treelang,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2 p1.0'
Thread model: posix
gcc version 4.3.2 (Gentoo 4.3.2 p1.0)


-- 
           Summary: [4.3/4.4] ICE when "-fdump-ipa-all -dv" is used
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu


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


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

* [Bug middle-end/37858] [4.3/4.4 Regression] ICE when "-fdump-ipa-all -dv" is used
  2008-10-17  0:16 [Bug c/37858] New: [4.3/4.4] ICE when "-fdump-ipa-all -dv" is used zsojka at seznam dot cz
@ 2008-10-17  6:34 ` ubizjak at gmail dot com
  2008-11-01 11:41 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ubizjak at gmail dot com @ 2008-10-17  6:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ubizjak at gmail dot com  2008-10-17 06:32 -------
Confirmed, gcc crashes in passes.c, around line 1288:

  if (initializing_dump
      && dump_file
      && graph_dump_format != no_graph
==>   && (cfun->curr_properties & (PROP_cfg | PROP_rtl))
          == (PROP_cfg | PROP_rtl))
    {
      get_dump_file_info (pass->static_pass_number)->flags |= TDF_GRAPH;
      dump_flags |= TDF_GRAPH;
      clean_graph_dump_file (dump_file_name);
    }

(gdb) print cfun
$1 = (struct function *) 0x0


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   GCC host triplet|x86_64-pc-linux-gnu         |
   Last reconfirmed|0000-00-00 00:00:00         |2008-10-17 06:32:56
               date|                            |
            Summary|[4.3/4.4] ICE when "-fdump- |[4.3/4.4 Regression] ICE
                   |ipa-all -dv" is used        |when "-fdump-ipa-all -dv" is
                   |                            |used


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


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

* [Bug middle-end/37858] [4.3/4.4 Regression] ICE when "-fdump-ipa-all -dv" is used
  2008-10-17  0:16 [Bug c/37858] New: [4.3/4.4] ICE when "-fdump-ipa-all -dv" is used zsojka at seznam dot cz
  2008-10-17  6:34 ` [Bug middle-end/37858] [4.3/4.4 Regression] " ubizjak at gmail dot com
@ 2008-11-01 11:41 ` rguenth at gcc dot gnu dot org
  2008-11-03  8:28 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-11-01 11:41 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
   Target Milestone|---                         |4.3.3


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


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

* [Bug middle-end/37858] [4.3/4.4 Regression] ICE when "-fdump-ipa-all -dv" is used
  2008-10-17  0:16 [Bug c/37858] New: [4.3/4.4] ICE when "-fdump-ipa-all -dv" is used zsojka at seznam dot cz
  2008-10-17  6:34 ` [Bug middle-end/37858] [4.3/4.4 Regression] " ubizjak at gmail dot com
  2008-11-01 11:41 ` rguenth at gcc dot gnu dot org
@ 2008-11-03  8:28 ` jakub at gcc dot gnu dot org
  2008-11-03  8:45 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-03  8:28 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-10-17 06:32:56         |2008-11-03 08:27:25
               date|                            |


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


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

* [Bug middle-end/37858] [4.3/4.4 Regression] ICE when "-fdump-ipa-all -dv" is used
  2008-10-17  0:16 [Bug c/37858] New: [4.3/4.4] ICE when "-fdump-ipa-all -dv" is used zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2008-11-03  8:28 ` jakub at gcc dot gnu dot org
@ 2008-11-03  8:45 ` jakub at gcc dot gnu dot org
  2008-11-03  8:50 ` [Bug middle-end/37858] [4.3 " jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-03  8:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2008-11-03 08:43 -------
Subject: Bug 37858

Author: jakub
Date: Mon Nov  3 08:42:10 2008
New Revision: 141545

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141545
Log:
        PR middle-end/37858
        * passes.c (execute_one_pass): Don't look at cfun->curr_properties
        for ipa and simple ipa passes.

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

Added:
    trunk/gcc/testsuite/gcc.dg/pr37858.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/passes.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/37858] [4.3 Regression] ICE when "-fdump-ipa-all -dv" is used
  2008-10-17  0:16 [Bug c/37858] New: [4.3/4.4] ICE when "-fdump-ipa-all -dv" is used zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2008-11-03  8:45 ` jakub at gcc dot gnu dot org
@ 2008-11-03  8:50 ` jakub at gcc dot gnu dot org
  2008-11-05 20:41 ` jakub at gcc dot gnu dot org
  2008-11-05 20:47 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-03  8:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-11-03 08:48 -------
Fixed on the trunk so far.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.3.2 4.4.0                 |4.3.2
      Known to work|4.1.2 4.2.4                 |4.1.2 4.2.4 4.4.0
            Summary|[4.3/4.4 Regression] ICE    |[4.3 Regression] ICE when "-
                   |when "-fdump-ipa-all -dv" is|fdump-ipa-all -dv" is used
                   |used                        |


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


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

* [Bug middle-end/37858] [4.3 Regression] ICE when "-fdump-ipa-all -dv" is used
  2008-10-17  0:16 [Bug c/37858] New: [4.3/4.4] ICE when "-fdump-ipa-all -dv" is used zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2008-11-03  8:50 ` [Bug middle-end/37858] [4.3 " jakub at gcc dot gnu dot org
@ 2008-11-05 20:41 ` jakub at gcc dot gnu dot org
  2008-11-05 20:47 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-05 20:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2008-11-05 20:40 -------
Subject: Bug 37858

Author: jakub
Date: Wed Nov  5 20:38:46 2008
New Revision: 141619

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141619
Log:
        PR middle-end/37858
        * passes.c (execute_one_pass): Don't look at cfun->curr_properties
        for ipa and simple ipa passes.

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

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr37858.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/passes.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/37858] [4.3 Regression] ICE when "-fdump-ipa-all -dv" is used
  2008-10-17  0:16 [Bug c/37858] New: [4.3/4.4] ICE when "-fdump-ipa-all -dv" is used zsojka at seznam dot cz
                   ` (5 preceding siblings ...)
  2008-11-05 20:41 ` jakub at gcc dot gnu dot org
@ 2008-11-05 20:47 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-05 20:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-11-05 20:45 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-11-05 20:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-17  0:16 [Bug c/37858] New: [4.3/4.4] ICE when "-fdump-ipa-all -dv" is used zsojka at seznam dot cz
2008-10-17  6:34 ` [Bug middle-end/37858] [4.3/4.4 Regression] " ubizjak at gmail dot com
2008-11-01 11:41 ` rguenth at gcc dot gnu dot org
2008-11-03  8:28 ` jakub at gcc dot gnu dot org
2008-11-03  8:45 ` jakub at gcc dot gnu dot org
2008-11-03  8:50 ` [Bug middle-end/37858] [4.3 " jakub at gcc dot gnu dot org
2008-11-05 20:41 ` jakub at gcc dot gnu dot org
2008-11-05 20:47 ` jakub at gcc dot gnu dot 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).