Tag {ms,sysv}_va_list_type_node with '{ms,sysv}_abi va_list' attribute
authorTom de Vries <tom@codesourcery.com>
Sun, 28 Aug 2016 05:05:15 +0000 (05:05 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sun, 28 Aug 2016 05:05:15 +0000 (05:05 +0000)
commitf329b264b3d8f91909caca1df4f9ee043d3ca14a
tree1f2a5572524b8c735ecfec90f721a14a45326b16
parent5730f967faa04564f28d22943f7f71062ff2c2cc
Tag {ms,sysv}_va_list_type_node with '{ms,sysv}_abi va_list' attribute

2016-08-28  Tom de Vries  <tom@codesourcery.com>

PR lto/70955
* config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
'sysv_abi va_list' attribute.
(ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
(ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
attributes.

* gcc.dg/pr70955.c: New test.
* gcc.dg/lto/pr70955_0.c: Same.
* gcc.dg/lto/pr70955_1.c: Same.

From-SVN: r239805
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr70955_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr70955_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr70955.c [new file with mode: 0644]