Commit e338758d by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/40792 (internal error in com_mpi.c at -O3 for gcc 4.4.0)

	PR tree-optimization/40792
	* tree.c (build_function_type_skip_args): Remove bogus assert.

	* gcc.dg/pr40792.c: New test.

From-SVN: r149822
parent 5a1ccfb1
2009-07-20 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/40792
* tree.c (build_function_type_skip_args): Remove bogus assert.
2009-07-20 Jan Hubicka <jh@suse.cz>
Martin Jambor <mjambor@suse.cz>
......
2009-07-20 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/40792
* gcc.dg/pr40792.c: New test.
2009-07-20 Ira Rosen <irar@il.ibm.com>
* gcc.dg/vect/vect-cond-1.c, gcc.dg/vect/vect-cond-2.c,
......
/* PR tree-optimization/40792 */
/* { dg-do compile } */
/* { dg-options "-O3" } */
void foo (int, char *, int *);
void
bar (int *a, int *b, ...)
{
int c;
char d[256];
foo (*b, d, &c);
}
static int a, b;
void
baz (int c)
{
bar (&a, &b);
}
......@@ -6299,7 +6299,6 @@ build_function_type_skip_args (tree orig_type, bitmap args_to_skip)
else
new_reversed = void_list_node;
}
gcc_assert (new_reversed);
/* Use copy_node to preserve as much as possible from original type
(debug info, attribute lists etc.)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment