https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91105

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Nov 21 17:11:19 2019
New Revision: 278575

URL: https://gcc.gnu.org/viewcvs?rev=278575&root=gcc&view=rev
Log:
        Backported from mainline
        2019-09-06  Jakub Jelinek  <ja...@redhat.com>

        * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
        before testing TYPE_TRANSPARENT_AGGR.
        * calls.c (initialize_argument_information, load_register_parameters):
        Likewise.

        2019-09-05  Jakub Jelinek  <ja...@redhat.com>

        PR middle-end/91001
        PR middle-end/91105
        PR middle-end/91106
        * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
        types, use type of their first field instead of type of
        args[i].tree_value.

        * gcc.c-torture/compile/pr91001.c: New test.

Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.c-torture/compile/pr91001.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/calls.c
    branches/gcc-8-branch/gcc/function.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Reply via email to