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: [PATCH] Use flag_general_regs_only with -mgeneral-regs-only


Hello!

I have committed following patch that also implements
ix86_target_string handling of the new option.

2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
        H.J. Lu  <hongjiu.lu@intel.com>

    PR target/70738
    * common/config/i386/i386-common.c
    (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
    (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
    MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
    * config/i386/i386.opt (ix86_target_flags): Add new Variable.
    (-mgeneral-regs-only): Add new option.
    * config/i386/i386.c (ix86_option_override_internal): Don't enable
    x87 instructions if only general registers are allowed.
    (ix86_target_string): Add ix86_flags argument. Handle additional
    flags options through ix86_flags argument.  Update all callers.
    * doc/invoke.texi: Document -mgeneral-regs-only.

testsuite/ChangeLog:

2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>

    PR target/70738
    * gcc.target/i386/pr70738-1.c: New test.
    * gcc.target/i386/pr70738-2.c: Likewise.
    * gcc.target/i386/pr70738-3.c: Likewise.
    * gcc.target/i386/pr70738-4.c: Likewise.
    * gcc.target/i386/pr70738-5.c: Likewise.
    * gcc.target/i386/pr70738-6.c: Likewise.
    * gcc.target/i386/pr70738-7.c: Likewise.
    * gcc.target/i386/pr70738-8.c: Likewise.
    * gcc.target/i386/pr70738-9.c: Likewise.


Added is also a removal of a couple of unneeded variables:

2016-05-25  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
    (x_ix86_target_flags_explicit): Remove.
    * config/i386/i386.c (ix86_function_specific_save): Do not copy
    x_ix86_target_flags_explicit.
    (ix86_function_specific_restore): Ditto.

Patch was bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

Uros.

Attachment: p.diff.txt
Description: Text document


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