re PR lto/41598 (bootstrap *using* lto fails)

2009-10-16  Richard Guenther  <rguenther@suse.de>

	PR lto/41598
	* gcc.dg/lto/20091016-1_0.c: New testcase.
	* gcc.dg/lto/20091016-1_1.c: Likewise.
	* gcc.dg/lto/20091016-1_a.h: Likewise.

From-SVN: r152904
This commit is contained in:
Richard Guenther 2009-10-16 14:42:47 +00:00 committed by Richard Biener
parent 35f1e9f475
commit 2ced58ea6f
4 changed files with 44 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2009-10-16 Richard Guenther <rguenther@suse.de>
PR lto/41598
* gcc.dg/lto/20091016-1_0.c: New testcase.
* gcc.dg/lto/20091016-1_1.c: Likewise.
* gcc.dg/lto/20091016-1_a.h: Likewise.
2009-10-16 Richard Guenther <rguenther@suse.de>
PR lto/41715

View File

@ -0,0 +1,13 @@
/* { dg-lto-do link } */
/* { dg-lto-options {{-fPIC -shared -O2 -flto}} } */
typedef struct VEC_constructor_elt_gc { } VEC_constructor_elt_gc;
#include "20091016-1_a.h"
struct stmt_tree_s {
tree x_cur_stmt_list;
};
void *add_stmt (struct stmt_tree_s *x)
{
return &x->x_cur_stmt_list;
}

View File

@ -0,0 +1,18 @@
typedef struct VEC_constructor_elt_gcx { } VEC_constructor_elt_gc;
#include "20091016-1_a.h"
struct gcc_target {
void (* builtin_vec_perm) (tree*);
};
extern struct gcc_target targetm;
void dwarf2out_begin_prologue (tree t)
{
(*targetm.builtin_vec_perm) (&t);
}
struct die_arg_entry_struct {
tree arg;
};
void *gt_pch_p_20VEC_die_arg_entry_gc (struct die_arg_entry_struct *vec)
{
return &(vec->arg);
}

View File

@ -0,0 +1,6 @@
typedef union tree_node *tree;
union tree_node {
tree * use;
VEC_constructor_elt_gc *elts;
};