re PR middle-end/41502 (ICE in expand_call_inline)

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

	PR lto/41502
	* gcc.dg/lto/20091006-1_0.c: New testcase.
	* gcc.dg/lto/20091006-1_1.c: Likewise.
	* gcc.dg/lto/20091005-2_0.c: Likewise.

From-SVN: r152489
This commit is contained in:
Richard Guenther 2009-10-06 10:31:17 +00:00 committed by Richard Biener
parent 9ef3b47672
commit ccc37454b0
4 changed files with 34 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2009-10-06 Richard Guenther <rguenther@suse.de>
PR lto/41502
* gcc.dg/lto/20091006-1_0.c: New testcase.
* gcc.dg/lto/20091006-1_1.c: Likewise.
* gcc.dg/lto/20091005-2_0.c: Likewise.
2009-10-06 Samuel Tardieu <sam@rfc1149.net>
PR ada/41383

View File

@ -0,0 +1,11 @@
/* { dg-lto-do link } */
/* { dg-lto-options {{-fstrict-aliasing -flto}} } */
typedef struct { } t_commrec;
typedef struct { } t_fft_c;
void
solve_pme(t_commrec *cr)
{
t_fft_c *ptr;
}
int main () { return 0; }

View File

@ -0,0 +1,14 @@
/* { dg-lto-do link } */
typedef void (*fnt) (void);
void __attribute__((noinline)) bar (void) {}
extern inline void check3 (void)
{
bar ();
}
void test (void)
{
const fnt pcheck3 = check3;
pcheck3 ();
}
int main() { return 0; }

View File

@ -0,0 +1,2 @@
extern void bar (void);
void check3 (void) { bar (); }