mirror of git://gcc.gnu.org/git/gcc.git
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
|
|
@ -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>
|
2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
* tree.h (build_complex_type): Add second parameter with default.
|
* 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;
|
wtype = va_list_type_node;
|
||||||
htype = type;
|
htype = type;
|
||||||
/* Treat structure va_list types. */
|
|
||||||
if (TREE_CODE (wtype) == RECORD_TYPE && POINTER_TYPE_P (htype))
|
if (TREE_CODE (wtype) == ARRAY_TYPE)
|
||||||
htype = TREE_TYPE (htype);
|
|
||||||
else if (TREE_CODE (wtype) == ARRAY_TYPE)
|
|
||||||
{
|
{
|
||||||
/* If va_list is an array type, the argument may have decayed
|
/* If va_list is an array type, the argument may have decayed
|
||||||
to a pointer type, e.g. by being passed to another function.
|
to a pointer type, e.g. by being passed to another function.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue