[Bug c/42667] New: internal compiler error: in insert_into_preds_of_block, at tree-ssa-pre.c:3146

2010-01-08 Thread jerstlouis at gmail dot com
Compile this with -O2 -m32:

extern int strlen(const char *);
void WriteTextDots(int len);

void OnDisplay(char * string)
{
   if(!string) string = "(none)";
   WriteTextDots(strlen(string));
}


-- 
   Summary: internal compiler error: in insert_into_preds_of_block,
at tree-ssa-pre.c:3146
   Product: gcc
   Version: 4.4.1
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jerstlouis at gmail dot com
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: i686-linux-gnu


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



[Bug c/42667] internal compiler error: in insert_into_preds_of_block, at tree-ssa-pre.c:3146

2010-01-08 Thread jerstlouis at gmail dot com


--- Comment #1 from jerstlouis at gmail dot com  2010-01-09 06:08 ---
Created an attachment (id=19516)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19516&action=view)
test case


-- 


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



[Bug c/42668] New: internal compiler error: in expand_expr_real_1, at expr.c:9314

2010-01-09 Thread jerstlouis at gmail dot com
Compile with -O2:
Only happens with -fno-builtin-strcpy
Seemingly related to Bug 42667.
Looks like there is a problem with implicit builtin function declarations and
the ternary operator : ?.
warning: incompatible implicit declaration of built-in function ‘strcpy'

--
unsigned int BadBug();

void Constructor()
{
   Hey(BadBug);
}

unsigned int BadBug()
{
   void * project;
   char * path = Bla(project);
   char directory[100];

   if(project)
   {
  if(path)
 You(directory, path);
   }
   else
   {
  strcpy(directory, path ? path : "");
   }
   Blo(path ? directory : "");
   return 1;
}


-- 
   Summary: internal compiler error: in expand_expr_real_1, at
expr.c:9314
   Product: gcc
   Version: 4.4.1
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: jerstlouis at gmail dot com
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: i686-linux-gnu


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



[Bug c/42668] internal compiler error: in expand_expr_real_1, at expr.c:9314

2010-01-09 Thread jerstlouis at gmail dot com


--- Comment #1 from jerstlouis at gmail dot com  2010-01-09 08:29 ---
Created an attachment (id=19519)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19519&action=view)
test case


-- 


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