diff options
author | Marek Polacek <polacek@redhat.com> | 2017-12-19 14:58:17 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2017-12-19 14:58:17 +0000 |
commit | 1570e19df497e00a8565e53445961bf25db79725 (patch) | |
tree | 378594d74f7fc11a977f149d4410b2fcb69dce28 /gcc/config | |
parent | 66825a3022e56e1bbe5308415c5b6cd9139597e9 (diff) | |
download | gcc-1570e19df497e00a8565e53445961bf25db79725.zip gcc-1570e19df497e00a8565e53445961bf25db79725.tar.gz gcc-1570e19df497e00a8565e53445961bf25db79725.tar.bz2 |
re PR c++/83490 (ICE in find_call_stack_args, at dce.c:392)
PR c++/83490
* config/i386/i386.c (init_cumulative_args): Don't check TYPE_EMPTY_P
on an error node.
* g++.dg/abi/pr83490.C: New test.
From-SVN: r255824
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index b9f6e27..82a79bd 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -7218,7 +7218,7 @@ init_cumulative_args (CUMULATIVE_ARGS *cum, /* Argument info to initialize */ bool seen_empty_type = false; FOREACH_FUNCTION_ARGS (fntype, argtype, iter) { - if (VOID_TYPE_P (argtype)) + if (argtype == error_mark_node || VOID_TYPE_P (argtype)) break; if (TYPE_EMPTY_P (argtype)) seen_empty_type = true; |