From d90cae086f06c358426a3138513c35c79de5f4a4 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 10 Feb 2015 17:38:31 +0100 Subject: re PR ipa/64982 (Many g++ failures on x86_64-apple-darwin14 with -m32.) PR ipa/64982 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks. * method.c (use_thunk): Do not check for stdarg thunks. From-SVN: r220587 --- gcc/cgraphunit.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/cgraphunit.c') diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 8280fc4..48a4b35 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1559,6 +1559,14 @@ cgraph_node::expand_thunk (bool output_asm_thunks, bool force_gimple_thunk) thunk.thunk_p = false; analyzed = false; } + else if (stdarg_p (TREE_TYPE (thunk_fndecl))) + { + error ("generic thunk code fails for method %qD which uses %<...%>", + thunk_fndecl); + TREE_ASM_WRITTEN (thunk_fndecl) = 1; + analyzed = true; + return false; + } else { tree restype; -- cgit v1.1