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: r149823
This commit is contained in:
Jakub Jelinek 2009-07-20 16:39:32 +02:00 committed by Jakub Jelinek
parent c5f98c727a
commit 59f5fd3a7b
4 changed files with 31 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-07-20 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/40792
* tree.c (build_function_type_skip_args): Remove bogus assert.
2009-07-17 Jakub Jelinek <jakub@redhat.com>
PR c++/40780

View File

@ -1,3 +1,8 @@
2009-07-20 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/40792
* gcc.dg/pr40792.c: New test.
2009-07-19 Janne Blomqvist <jb@gcc.gnu.org>
Jerry DeLisle <jvdelisle@gcc.gnu.org>

View File

@ -0,0 +1,21 @@
/* 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);
}

View File

@ -5960,7 +5960,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.)