Commit 2330bb91 by Jan Hubicka Committed by Jan Hubicka

re PR lto/91028 (g++.dg/lto/alias-2 FAILs with -fno-use-linker-plugin)


	PR lto/91028
	PR lto/90720
	* g++.dg/lto/alias-1_0.C: Add loop to make inlining happen with
	-fno-use-linker-plugin
	* g++.dg/lto/alias-2_0.C: Likewise.

From-SVN: r272852
parent 6de20b9d
2019-07-01 Jan Hubicka <hubicka@ucw.cz>
PR lto/91028
PR lto/90720
* g++.dg/lto/alias-1_0.C: Add loop to make inlining happen with
-fno-use-linker-plugin
* g++.dg/lto/alias-2_0.C: Likewise.
2019-07-01 Dominique d'Humieres <dominiq@gcc.gnu.org>
* g++.dg/cpp0x/gen-attrs-67.C: Add error for darwin.
......
......@@ -17,6 +17,7 @@ __attribute__ ((used))
struct b **bptr = (struct b**)&aptr;
extern void init ();
extern void inline_me_late (int);
int n=1;
int
......@@ -24,7 +25,8 @@ main (int argc, char **argv)
{
init ();
aptr = 0;
inline_me_late (argc);
for (int i=0; i<n; i++)
inline_me_late (argc);
if (!__builtin_constant_p (aptr == 0))
__builtin_abort ();
return (size_t)aptr;
......
......@@ -17,6 +17,7 @@ __attribute__ ((used))
struct b **bptr = (struct b**)&aptr;
extern void init ();
extern void inline_me_late (int);
int n=1;
int
......@@ -24,7 +25,8 @@ main (int argc, char **argv)
{
init ();
aptr = 0;
inline_me_late (argc);
for (int i=0; i<n; i++)
inline_me_late (argc);
if (!__builtin_constant_p (aptr == 0))
__builtin_abort ();
return (size_t)aptr;
......
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