Remove RECORD_TYPE special-casing in std_canonical_va_list_type
2016-10-11 Tom de Vries <tom@codesourcery.com> PR middle-end/77558 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE special-casing. From-SVN: r240968
This commit is contained in:
parent
2e33e1c46f
commit
431e31a9f4
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-10-11 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR middle-end/77558
|
||||
* builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
|
||||
special-casing.
|
||||
|
||||
2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* tree.h (build_complex_type): Add second parameter with default.
|
||||
|
|
|
@ -4090,10 +4090,8 @@ std_canonical_va_list_type (tree type)
|
|||
|
||||
wtype = va_list_type_node;
|
||||
htype = type;
|
||||
/* Treat structure va_list types. */
|
||||
if (TREE_CODE (wtype) == RECORD_TYPE && POINTER_TYPE_P (htype))
|
||||
htype = TREE_TYPE (htype);
|
||||
else if (TREE_CODE (wtype) == ARRAY_TYPE)
|
||||
|
||||
if (TREE_CODE (wtype) == ARRAY_TYPE)
|
||||
{
|
||||
/* If va_list is an array type, the argument may have decayed
|
||||
to a pointer type, e.g. by being passed to another function.
|
||||
|
|
Loading…
Add table
Reference in a new issue