This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29922] [4.3 Regression] [Linux] ICE in insert_into_preds_of_block
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Mar 2007 19:34:36 -0000
- Subject: [Bug tree-optimization/29922] [4.3 Regression] [Linux] ICE in insert_into_preds_of_block
- References: <bug-29922-12686@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #22 from tbm at cyrius dot com 2007-03-09 19:34 -------
Testcase based on conf.i:
struct symbol
{
char *help;
};
struct menu
{
struct menu *next;
struct menu *list;
struct symbol *sym;
};
enum
{
ask_all,
}
input_mode = ask_all;
static char line[128];
static char nohelp_text[] =
("Sorry, no help available for this option yet.\n");
conf_choice (struct menu *menu)
{
struct menu *child;
while (1)
{
int cnt, def;
conf_childs:for (child = menu->list; child; child = child->next)
{
if (!child->sym || !menu_is_visible (child))
if (!--cnt)
break;
}
if (!child)
continue;
if (line[strlen (line) - 1] == '?')
{
printf ("\n%s\n", child->sym->help ? child->sym->help : "");
continue;
}
return 1;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29922