public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/29908] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
@ 2006-11-20 11:17 ` tbm at cyrius dot com
  2006-11-20 11:20 ` tbm at cyrius dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: tbm at cyrius dot com @ 2006-11-20 11:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tbm at cyrius dot com  2006-11-20 11:17 -------
Created an attachment (id=12651)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12651&action=view)
preprocessed source


-- 


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


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

* [Bug tree-optimization/29908]  New: ICE in set_lattice_value, at tree-ssa-ccp.c:434
@ 2006-11-20 11:17 tbm at cyrius dot com
  2006-11-20 11:17 ` [Bug tree-optimization/29908] " tbm at cyrius dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: tbm at cyrius dot com @ 2006-11-20 11:17 UTC (permalink / raw)
  To: gcc-bugs

I get the following ICE with 4.2.0 20061116:

tbm@coconut0:~$ /usr/lib/gcc-snapshot/bin/g++ -c k3d-imagemagickreader.ii
tbm@coconut0:~$ /usr/lib/gcc-snapshot/bin/g++ -c -O k3d-imagemagickreader.ii
../../k3dsdk/module.h: In member function 'k3d::iunknown*
k3d::application_plugin<plugin_t>::create_plugin() [with plugin_t =
<unnamed>::imagemagick_reader]':
../../k3dsdk/module.h:174: internal compiler error: in set_lattice_value, at
tree-ssa-ccp.c:434
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
tbm@coconut0:~$


-- 
           Summary: ICE in set_lattice_value, at tree-ssa-ccp.c:434
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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


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

* [Bug tree-optimization/29908] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
  2006-11-20 11:17 ` [Bug tree-optimization/29908] " tbm at cyrius dot com
@ 2006-11-20 11:20 ` tbm at cyrius dot com
  2006-11-20 11:22 ` [Bug tree-optimization/29908] [4.2/4.3 Regression] " tbm at cyrius dot com
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: tbm at cyrius dot com @ 2006-11-20 11:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tbm at cyrius dot com  2006-11-20 11:20 -------
Hmm, I wonder if this is related to PR29585.  When I downgrade to 20061022, I
get the same ICE as in that PR.  BTW, the original testcase from PR29585 now
compiles with 4.2.0 20061116 even though the PR is still open.


-- 

tbm at cyrius dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dberlin at gcc dot gnu dot
                   |                            |org


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


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

* [Bug tree-optimization/29908] [4.2/4.3 Regression] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
  2006-11-20 11:17 ` [Bug tree-optimization/29908] " tbm at cyrius dot com
  2006-11-20 11:20 ` tbm at cyrius dot com
@ 2006-11-20 11:22 ` tbm at cyrius dot com
  2006-11-20 11:25 ` tbm at cyrius dot com
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: tbm at cyrius dot com @ 2006-11-20 11:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tbm at cyrius dot com  2006-11-20 11:22 -------
4.0 and 4.1 work.  4.2 fails.  I didn't test 4.3 but I assume it shows the same
problem.


-- 

tbm at cyrius dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
            Summary|ICE in set_lattice_value, at|[4.2/4.3 Regression] ICE in
                   |tree-ssa-ccp.c:434          |set_lattice_value, at tree-
                   |                            |ssa-ccp.c:434


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


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

* [Bug tree-optimization/29908] [4.2/4.3 Regression] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
                   ` (2 preceding siblings ...)
  2006-11-20 11:22 ` [Bug tree-optimization/29908] [4.2/4.3 Regression] " tbm at cyrius dot com
@ 2006-11-20 11:25 ` tbm at cyrius dot com
  2006-11-20 11:39 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: tbm at cyrius dot com @ 2006-11-20 11:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tbm at cyrius dot com  2006-11-20 11:25 -------
Note that this ICE is quite volatile.  When I remove the comments from the
preprocessed file, I get a segfault instead:

Program received signal SIGSEGV, Segmentation fault.
execute_ssa_ccp (store_ccp=<value optimized out>) at
/home/tbm/scratch/gcc-4.2/gcc/tree-ssa-ccp.c:561
561                     get_value (def, false)->lattice_val = VARYING;
(gdb) where
#0  execute_ssa_ccp (store_ccp=<value optimized out>)
    at /home/tbm/scratch/gcc-4.2/gcc/tree-ssa-ccp.c:561
#1  0x00000000004e83eb in do_ssa_ccp () at
/home/tbm/scratch/gcc-4.2/gcc/tree-ssa-ccp.c:1399
#2  0x0000000000782118 in execute_one_pass (pass=0xb1ce40)
    at /home/tbm/scratch/gcc-4.2/gcc/passes.c:870
#3  0x000000000078226c in execute_pass_list (pass=0xb1ce40)
    at /home/tbm/scratch/gcc-4.2/gcc/passes.c:917
#4  0x000000000078227e in execute_pass_list (pass=0xb1cae0)
    at /home/tbm/scratch/gcc-4.2/gcc/passes.c:918
#5  0x00000000004cfc5e in tree_rest_of_compilation (fndecl=0x2ba0e0bfc0e0)
    at /home/tbm/scratch/gcc-4.2/gcc/tree-optimize.c:463
#6  0x0000000000472aa9 in expand_body (fn=0x2ba0e0bfc0e0)
    at /home/tbm/scratch/gcc-4.2/gcc/cp/semantics.c:3068
#7  0x00000000007c4004 in cgraph_expand_function (node=0x2ba0e0db9d80)
    at /home/tbm/scratch/gcc-4.2/gcc/cgraphunit.c:1241
#8  0x00000000007c4935 in cgraph_optimize () at
/home/tbm/scratch/gcc-4.2/gcc/cgraphunit.c:1306
#9  0x0000000000440c0f in cp_finish_file () at
/home/tbm/scratch/gcc-4.2/gcc/cp/decl2.c:3352
#10 0x00000000004b536a in c_common_parse_file (set_yydebug=<value optimized
out>)
    at /home/tbm/scratch/gcc-4.2/gcc/c-opts.c:1176
#11 0x00000000007644d3 in toplev_main (argc=<value optimized out>, argv=<value
optimized out>)
    at /home/tbm/scratch/gcc-4.2/gcc/toplev.c:1033
#12 0x00002ba0dc7824ca in __libc_start_main () from /lib/libc.so.6
#13 0x000000000040273a in _start () at ../sysdeps/x86_64/elf/start.S:113
(gdb)


-- 


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


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

* [Bug tree-optimization/29908] [4.2/4.3 Regression] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
                   ` (3 preceding siblings ...)
  2006-11-20 11:25 ` tbm at cyrius dot com
@ 2006-11-20 11:39 ` rguenth at gcc dot gnu dot org
  2006-11-20 15:19 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-11-20 11:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2006-11-20 11:38 -------
I get on trunk:

trunk-g/gcc> ./cc1plus -quiet k3d-imagemagickreader.ii -O
../../k3dsdk/module.h: In member function 'k3d::iunknown*
k3d::application_plugin<plugin_t>::create_plugin() [with plugin_t =
<unnamed>::imagemagick_reader]':
../../k3dsdk/module.h:174: internal compiler error: tree check: expected
ssa_name, have var_decl in is_old_name, at tree-into-ssa.c:558
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

So, confirmed that there is a bug (reducing).


-- 


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


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

* [Bug tree-optimization/29908] [4.2/4.3 Regression] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
                   ` (4 preceding siblings ...)
  2006-11-20 11:39 ` rguenth at gcc dot gnu dot org
@ 2006-11-20 15:19 ` pinskia at gcc dot gnu dot org
  2006-11-20 15:20 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-20 15:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.0


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


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

* [Bug tree-optimization/29908] [4.2/4.3 Regression] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
                   ` (5 preceding siblings ...)
  2006-11-20 15:19 ` pinskia at gcc dot gnu dot org
@ 2006-11-20 15:20 ` pinskia at gcc dot gnu dot org
  2006-11-20 16:21 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-20 15:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-11-20 15:20 -------
This is most likely the same issue as PR 29585.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |29585


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


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

* [Bug tree-optimization/29908] [4.2/4.3 Regression] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
                   ` (6 preceding siblings ...)
  2006-11-20 15:20 ` pinskia at gcc dot gnu dot org
@ 2006-11-20 16:21 ` rguenth at gcc dot gnu dot org
  2006-11-20 16:22 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-11-20 16:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2006-11-20 16:20 -------
Reduced testcase for this one (-O):

namespace k3d {
    class iunknown {
    };
    class ifile_format :  public virtual iunknown {
    };
    class iapplication_plugin_factory :  public virtual iunknown {
        virtual iunknown* create_plugin() = 0;
    };
    class uuid {
    public:
        uuid(const unsigned long Data1) :   data1(Data1) {
        }
        unsigned long data1;
    };
    template<typename plugin_t> class application_plugin :  public
iapplication_plugin_factory {
        iunknown* create_plugin()  {
            return new plugin_t();
        }
    };
    template<typename context_policy>
    class plugin_factory : public context_policy {
    public:
        plugin_factory(const uuid& ClassID) {}
    };
}
namespace {
    class imagemagick_reader : public k3d::ifile_format {
    public:
        static void get_factory()  {
            static k3d::plugin_factory<
k3d::application_plugin<imagemagick_reader> > factory(    
k3d::uuid(0x4eb70e35));
        }
    };
}
void  imagemagick_reader_factory()   {
     ::imagemagick_reader::get_factory();
}


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-11-20 16:20:49
               date|                            |


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


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

* [Bug tree-optimization/29908] [4.2/4.3 Regression] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
                   ` (7 preceding siblings ...)
  2006-11-20 16:21 ` rguenth at gcc dot gnu dot org
@ 2006-11-20 16:22 ` rguenth at gcc dot gnu dot org
  2006-11-20 17:19 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-11-20 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2006-11-20 16:21 -------
Very much a dup.

*** This bug has been marked as a duplicate of 29585 ***


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug tree-optimization/29908] [4.2/4.3 Regression] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
                   ` (8 preceding siblings ...)
  2006-11-20 16:22 ` rguenth at gcc dot gnu dot org
@ 2006-11-20 17:19 ` pinskia at gcc dot gnu dot org
  2006-11-21  9:19 ` tbm at cyrius dot com
  2006-11-21 16:39 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-20 17:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2006-11-20 17:19 -------
Reduced testcase (better than what was here):
struct iunknown
{
 virtual ~iunknown() {}
};
class ifile_format  :public virtual iunknown{};
namespace {
struct imagemagick_reader  :public ifile_format{};
}
void
imagemagick_reader_factory()
{
    imagemagick_reader a;
}


-- 


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


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

* [Bug tree-optimization/29908] [4.2/4.3 Regression] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
                   ` (9 preceding siblings ...)
  2006-11-20 17:19 ` pinskia at gcc dot gnu dot org
@ 2006-11-21  9:19 ` tbm at cyrius dot com
  2006-11-21 16:39 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: tbm at cyrius dot com @ 2006-11-21  9:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from tbm at cyrius dot com  2006-11-21 09:19 -------
So is this really a dup of 29585 or of 29921? confused now...


-- 


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


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

* [Bug tree-optimization/29908] [4.2/4.3 Regression] ICE in set_lattice_value, at tree-ssa-ccp.c:434
  2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
                   ` (10 preceding siblings ...)
  2006-11-21  9:19 ` tbm at cyrius dot com
@ 2006-11-21 16:39 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-21 16:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2006-11-21 16:39 -------
(In reply to comment #10)
> So is this really a dup of 29585 or of 29921? confused now...
Because most likely you did not have checking enabled so we get a non renamed
VOP that passed through to CCP which then CCP looks at and barfs.


-- 


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


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

end of thread, other threads:[~2006-11-21 16:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-20 11:17 [Bug tree-optimization/29908] New: ICE in set_lattice_value, at tree-ssa-ccp.c:434 tbm at cyrius dot com
2006-11-20 11:17 ` [Bug tree-optimization/29908] " tbm at cyrius dot com
2006-11-20 11:20 ` tbm at cyrius dot com
2006-11-20 11:22 ` [Bug tree-optimization/29908] [4.2/4.3 Regression] " tbm at cyrius dot com
2006-11-20 11:25 ` tbm at cyrius dot com
2006-11-20 11:39 ` rguenth at gcc dot gnu dot org
2006-11-20 15:19 ` pinskia at gcc dot gnu dot org
2006-11-20 15:20 ` pinskia at gcc dot gnu dot org
2006-11-20 16:21 ` rguenth at gcc dot gnu dot org
2006-11-20 16:22 ` rguenth at gcc dot gnu dot org
2006-11-20 17:19 ` pinskia at gcc dot gnu dot org
2006-11-21  9:19 ` tbm at cyrius dot com
2006-11-21 16:39 ` pinskia 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).