public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/42653]  New: ICE with -g and -flto (requires both flags to crash)
@ 2010-01-07 20:19 baldrick at gcc dot gnu dot org
  2010-01-08 11:54 ` [Bug lto/42653] " rguenth at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: baldrick at gcc dot gnu dot org @ 2010-01-07 20:19 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1374 bytes --]

$ g++ -c -flto -g fltog.ii
fltog.ii: In member function ‘MCIListener’:
fltog.ii:25:3: internal compiler error: tree check: expected class ‘type’, have
‘declaration’ (function_decl) in gen_type_die_with_usage, at dwarf2out.c:18747

Occurs with top-of-tree g++-4.5.

Testcase fltog.ii:

namespace llvm
{
  class Function;
  class MachineCodeInfo;
  class ExecutionEngine
  {
  };
  class JIT:public ExecutionEngine
  {
    void runJITOnFunction (Function * F, MachineCodeInfo * MCI = 0);
  };
  class JITEventListener
  {
  public:JITEventListener ()
    {
    } virtual ~JITEventListener ();
  };
}

using namespace llvm;
void
JIT::runJITOnFunction (Function * F, MachineCodeInfo * MCI)
{
  class MCIListener:public JITEventListener
  {
    MachineCodeInfo *const MCI;
  public:  MCIListener (MachineCodeInfo * mci):MCI (mci)
    {
  }};
}


-- 
           Summary: ICE with -g and -flto (requires both flags to crash)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: baldrick at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug lto/42653] ICE with -g and -flto (requires both flags to crash)
  2010-01-07 20:19 [Bug lto/42653] New: ICE with -g and -flto (requires both flags to crash) baldrick at gcc dot gnu dot org
@ 2010-01-08 11:54 ` rguenth at gcc dot gnu dot org
  2010-02-06 17:51 ` baldrick at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-08 11:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-01-08 11:54 -------
Yep - -g and -flto are very experimental.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code, lto
   Last reconfirmed|0000-00-00 00:00:00         |2010-01-08 11:54:31
               date|                            |


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


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

* [Bug lto/42653] ICE with -g and -flto (requires both flags to crash)
  2010-01-07 20:19 [Bug lto/42653] New: ICE with -g and -flto (requires both flags to crash) baldrick at gcc dot gnu dot org
  2010-01-08 11:54 ` [Bug lto/42653] " rguenth at gcc dot gnu dot org
@ 2010-02-06 17:51 ` baldrick at gcc dot gnu dot org
  2010-02-06 18:13 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: baldrick at gcc dot gnu dot org @ 2010-02-06 17:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from baldrick at gcc dot gnu dot org  2010-02-06 17:50 -------
Compiling the GCC testsuite with -flto and -g, it turns out that
g++.dg/debug/dwarf2/pr41063.C already shows this problem.


-- 


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


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

* [Bug lto/42653] ICE with -g and -flto (requires both flags to crash)
  2010-01-07 20:19 [Bug lto/42653] New: ICE with -g and -flto (requires both flags to crash) baldrick at gcc dot gnu dot org
  2010-01-08 11:54 ` [Bug lto/42653] " rguenth at gcc dot gnu dot org
  2010-02-06 17:51 ` baldrick at gcc dot gnu dot org
@ 2010-02-06 18:13 ` rguenth at gcc dot gnu dot org
  2010-04-23 12:55 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-06 18:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-02-06 18:12 -------
Yes, there are a bunch of known ICEs with running the C++ testsuite with
-g -flto.


-- 


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


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

* [Bug lto/42653] ICE with -g and -flto (requires both flags to crash)
  2010-01-07 20:19 [Bug lto/42653] New: ICE with -g and -flto (requires both flags to crash) baldrick at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-02-06 18:13 ` rguenth at gcc dot gnu dot org
@ 2010-04-23 12:55 ` rguenth at gcc dot gnu dot org
  2010-04-23 14:21 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-23 12:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2010-04-23 12:55 -------
I have a patch.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2010-01-08 11:54:31         |2010-04-23 12:55:13
               date|                            |


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


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

* [Bug lto/42653] ICE with -g and -flto (requires both flags to crash)
  2010-01-07 20:19 [Bug lto/42653] New: ICE with -g and -flto (requires both flags to crash) baldrick at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-04-23 12:55 ` rguenth at gcc dot gnu dot org
@ 2010-04-23 14:21 ` rguenth at gcc dot gnu dot org
  2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
  2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-23 14:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2010-04-23 14:21 -------
Subject: Bug 42653

Author: rguenth
Date: Fri Apr 23 14:20:59 2010
New Revision: 158666

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158666
Log:
2010-04-23  Richard Guenther  <rguenther@suse.de>

        PR lto/42653
        * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
        of FUNCTION_DECLs.

        * g++.dg/lto/20100423-1_0.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/lto/20100423-1_0.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c


-- 


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


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

* [Bug lto/42653] ICE with -g and -flto (requires both flags to crash)
  2010-01-07 20:19 [Bug lto/42653] New: ICE with -g and -flto (requires both flags to crash) baldrick at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-04-23 14:21 ` rguenth at gcc dot gnu dot org
@ 2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
  2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 13:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2010-05-19 13:16 -------
Subject: Bug 42653

Author: rguenth
Date: Wed May 19 13:14:37 2010
New Revision: 159564

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159564
Log:
2010-05-19  Richard Guenther  <rguenther@suse.de>

        Backport from mainline:
        2010-04-26  Richard Guenther  <rguenther@suse.de>

        PR lto/43455
        * tree-inline.c (tree_can_inline_p): Also check compatibility
        of return types.

        * gcc.dg/lto/20100423-1_0.c: New testcase.
        * gcc.dg/lto/20100423-1_1.c: Likewise.

        2010-04-23  Richard Guenther  <rguenther@suse.de>

        PR lto/42653
        * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
        of FUNCTION_DECLs.

        * g++.dg/lto/20100423-1_0.C: New testcase.

        2010-04-26  Richard Guenther  <rguenther@suse.de>

        PR lto/42425
        * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
        if emitting debug information and it is either a function
        or a namespace decl.

        * g++.dg/lto/20100423-2_0.C: New testcase.

        2010-04-26  Richard Guenther  <rguenther@suse.de>

        PR lto/43080
        * gimple.c (gimple_decl_printable_name): Deal gracefully
        with a NULL DECL_NAME.

        * g++.dg/lto/20100423-3_0.C: New testcase.

        2010-04-30  Richard Guenther  <rguenther@suse.de>

        PR lto/43946
        * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
        first after all lowering passes.

        * gcc.dg/lto/20100430-1_0.c: New testcase.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/lto/20100423-1_0.C
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/lto/20100423-2_0.C
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/lto/20100423-3_0.C
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/lto/20100423-1_0.c
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/lto/20100423-1_1.c
    branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/lto/20100430-1_0.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/gimple.c
    branches/gcc-4_5-branch/gcc/passes.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/gcc/tree-inline.c
    branches/gcc-4_5-branch/gcc/tree.c


-- 


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


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

* [Bug lto/42653] ICE with -g and -flto (requires both flags to crash)
  2010-01-07 20:19 [Bug lto/42653] New: ICE with -g and -flto (requires both flags to crash) baldrick at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
@ 2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 13:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2010-05-19 13:16 -------
And 4.5.1.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.0                       |4.5.1


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


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

end of thread, other threads:[~2010-05-19 13:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-07 20:19 [Bug lto/42653] New: ICE with -g and -flto (requires both flags to crash) baldrick at gcc dot gnu dot org
2010-01-08 11:54 ` [Bug lto/42653] " rguenth at gcc dot gnu dot org
2010-02-06 17:51 ` baldrick at gcc dot gnu dot org
2010-02-06 18:13 ` rguenth at gcc dot gnu dot org
2010-04-23 12:55 ` rguenth at gcc dot gnu dot org
2010-04-23 14:21 ` rguenth at gcc dot gnu dot org
2010-05-19 13:18 ` rguenth at gcc dot gnu dot org
2010-05-19 13:18 ` rguenth 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).