[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-12 Thread tbm at cyrius dot com
--- Comment #1 from tbm at cyrius dot com 2007-12-12 22:33 --- /* Testcase by Martin Michlmayr <[EMAIL PROTECTED]> */ typedef struct chunk_t chunk_t; struct chunk_t { unsigned char *ptr; long unsigned int len; }; extern chunk_t asn1_wrap (chunk_t c, ...); typedef struct linked_list_

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-12 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-12-12 23:03 --- (your trunk revision reporting is broken) On which architecture? This works for me on i686 with r130793. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34448

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-12 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-12-12 23:08 --- Ok, I see it on x86_64 with r130795 and it didn't reproduce before SVN update so it identified 2007-12-12 Aldy Hernandez <[EMAIL PROTECTED]> PR tree-optimization/32901 * gimplify.c (gimplify_modif

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-12 Thread aldyh at gcc dot gnu dot org
--- Comment #4 from aldyh at gcc dot gnu dot org 2007-12-12 23:33 --- I'll take care of this. -- aldyh at gcc dot gnu dot org changed: What|Removed |Added Assigne

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-12 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |blocker Keywords||ice-on-valid-

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-12 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2007-12-13 00:08 --- ret = GS_OK; } ret = GS_UNHANDLED; looks suspicious, but @@ -3492,6 +3492,7 @@ gimplify_modify_expr_rhs (tree *expr_p, { *from_p = DECL_INITIAL (*from_p); ret = GS_OK; + bre

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-13 Thread aldyh at gcc dot gnu dot org
--- Comment #6 from aldyh at gcc dot gnu dot org 2007-12-13 21:00 --- Shouldn't that be: if (valid_const_initializer && num_nonzero_elements > 1 && TREE_READONLY (object) && TREE_CODE (object) == VAR_DECL && !DECL_NAME(object) <--

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-13 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2007-12-13 23:10 --- Created an attachment (id=14748) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14748&action=view) hack What I meant is roughly this. Except that this has horrible code duplication with gimplify_init_ctor and so

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-13 Thread aldyh at gcc dot gnu dot org
--- Comment #8 from aldyh at gcc dot gnu dot org 2007-12-14 00:12 --- Gosh, I was going through a similar path, and was horribly depressed at the code duplication. I'll come up with some abstraction which we can use in both gimplify_init_ctor and gimplify_modify_expr_rhs. Thanks. --

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-13 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2007-12-14 07:46 --- Perhaps adding a bool argument to gimplify_init_constructor would solve it, the current callers would pass false, your new code would call it too and pass true. If this flag would be true, gimplify_init_ctor wouldn't

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-14 Thread aldyh at gcc dot gnu dot org
--- Comment #10 from aldyh at gcc dot gnu dot org 2007-12-14 16:10 --- Testing a patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34448

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-20 Thread jakub at gcc dot gnu dot org
--- Comment #11 from jakub at gcc dot gnu dot org 2007-12-20 20:01 --- *** Bug 34467 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34448

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2008-01-02 Thread mmitchel at gcc dot gnu dot org
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34448

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2008-01-04 Thread aldyh at gcc dot gnu dot org
--- Comment #12 from aldyh at gcc dot gnu dot org 2008-01-04 14:50 --- Subject: Bug 34448 Author: aldyh Date: Fri Jan 4 14:49:28 2008 New Revision: 131323 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131323 Log: PR tree-optimization/34448 PR tree-optimization/

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2008-01-04 Thread jakub at gcc dot gnu dot org
--- Comment #13 from jakub at gcc dot gnu dot org 2008-01-04 15:05 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED