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:
parent
35f1e9f475
commit
2ced58ea6f
@ -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
|
||||
|
13
gcc/testsuite/gcc.dg/lto/20091016-1_0.c
Normal file
13
gcc/testsuite/gcc.dg/lto/20091016-1_0.c
Normal 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;
|
||||
}
|
||||
|
18
gcc/testsuite/gcc.dg/lto/20091016-1_1.c
Normal file
18
gcc/testsuite/gcc.dg/lto/20091016-1_1.c
Normal 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);
|
||||
}
|
||||
|
6
gcc/testsuite/gcc.dg/lto/20091016-1_a.h
Normal file
6
gcc/testsuite/gcc.dg/lto/20091016-1_a.h
Normal file
@ -0,0 +1,6 @@
|
||||
typedef union tree_node *tree;
|
||||
union tree_node {
|
||||
tree * use;
|
||||
VEC_constructor_elt_gc *elts;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user