aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-02-10 17:38:31 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2015-02-10 16:38:31 +0000
commitd90cae086f06c358426a3138513c35c79de5f4a4 (patch)
tree9fb7c639432aed1256e3d0c328b87087c60e352a /gcc/cgraphunit.c
parentb2f2a1c99a71af82ae7af9fa2a1f5fd80b1ee226 (diff)
downloadgcc-d90cae086f06c358426a3138513c35c79de5f4a4.zip
gcc-d90cae086f06c358426a3138513c35c79de5f4a4.tar.gz
gcc-d90cae086f06c358426a3138513c35c79de5f4a4.tar.bz2
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
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c8
1 files changed, 8 insertions, 0 deletions
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;