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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Rainer Orth <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:116b1c5489d12313f015c9ffd46b9394d559709d

commit r15-5564-g116b1c5489d12313f015c9ffd46b9394d559709d
Author: Rainer Orth <r...@cebitec.uni-bielefeld.de>
Date:   Thu Nov 21 13:41:19 2024 +0100

    Use decl size in Solaris ASM_DECLARE_OBJECT_NAME [PR102296]

    Solaris has modified versions of ASM_DECLARE_OBJECT_NAME on both i386
    and sparc.  When

    commit ce597aedd79e646c4a5517505088d380239cbfa5
    Author: Ilya Enkovich <ilya.enkov...@intel.com>
    Date:   Thu Aug 7 08:04:55 2014 +0000

        elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size instead of type size.

    was applied, those were missed.  At the same time, the testcase was
    restricted to Linux though there's nothing Linux-specific in there, so
    the error remained undetected.

    This patch fixes the definitions to match elfos.h and enables the test
    on Solaris, too.

    Bootstrapped without regressions on i386-pc-solaris2.11 and
    sparc-sun-solaris2.11.

    2024-11-19  Rainer Orth  <r...@cebitec.uni-bielefeld.de>

            gcc/testsuite:
            PR target/102296
            * gcc.target/i386/struct-size.c: Enable on *-*-solaris*.

            gcc:
            PR target/102296
            * config/i386/sol2.h (ASM_DECLARE_OBJECT_NAME): Use decl size
            instead of type size.
            * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Likewise.

Reply via email to