This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Allow Solaris 2/x86 ABI to match recent Studio compiler (PR target/44452)


On Tue, Sep 28, 2010 at 4:45 PM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:

> 2010-09-22 ?Rainer Orth ?<ro@CeBiTec.Uni-Bielefeld.DE>
>
> ? ? ? ?gcc/testsuite:
> ? ? ? ?* gcc.target/i386/pr22076.c: Add -mno-vect8-ret-in-mem on
> ? ? ? ?i?86-*-solaris2.[89], *-*-vxworks*.
> ? ? ? ?* gcc.target/i386/pr22152.c: Likewise.
> ? ? ? ?* gcc.target/i386/vect8-ret.c: New test.
>
> ? ? ? ?gcc:
> ? ? ? ?* config/i386/i386.opt (mvect8-ret-in-mem): Define.
> ? ? ? ?* config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
> ? ? ? ?(ix86_solaris_return_in_memory): Remove.
> ? ? ? ?* config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
> ? ? ? ?* config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
> ? ? ? ?(TARGET_SUBTARGET_DEFAULT): Redefine.
> ? ? ? ?* config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
> ? ? ? ?* config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
> ? ? ? ?(TARGET_SUBTARGET_DEFAULT): Redefine.
> ? ? ? ?* doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
> ? ? ? ?-mvect8-ret-in-mem.
> ? ? ? ?(i386 and x86-64 Options): Document -mvect8-ret-in-mem.

Generic x86 part is OK.

> +Studio compilers until version 12. ?Later compiler versions (starting
> +with Studio 12 Update~1) follow the ABI used by other x86 targets, which
> +is the default on Solaris~10 and later. ?@emph{Only} use this option if
> +yo need to remain compatible with existing code produced by those

s/yo/you

> 2010-09-26 ?Rainer Orth ?<ro@CeBiTec.Uni-Bielefeld.DE>
>
> ? ? ? ?gcc/testsuite:
> ? ? ? ?PR target/44452
> ? ? ? ?* gcc.target/i386/abi-2.c: XFAIL on i?86-*-solaris2* && ilp32.
> ? ? ? ?* gcc.target/i386/pr22076.c: Likewise.

Just skip pr22076.c on solaris targets, no need for so many complications.

OK with this change.

Thanks,
Uros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]