re PR fortran/87919 (Incorrect fortran handling of -fno-* options)
authorFritz Reese <fritzoreese@gmail.com>
Mon, 3 Dec 2018 17:10:50 +0000 (17:10 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 3 Dec 2018 17:10:50 +0000 (18:10 +0100)
commitc3e799e123238f1762760bcec2091005603eb4e7
treeabb1db0f868bd876c60dd0aa1627a847108afa41
parente1976443fb2864f091c5f82d72820b9126ee0241
re PR fortran/87919 (Incorrect fortran handling of -fno-* options)

PR fortran/87919
* options.c (SET_FLAG, SET_BITFLAG, SET_BITFLAG2): New macros.
(set_dec_flags): Set/unset DEC and std flags according to value.
(post_dec_flags, set_init_local_zero): New functions.
(gfc_init_options): Use set_init_local_zero and post_dec_flags.
(gfc_handle_options) <case OPT_fcheck_array_temporaries>: Use
SET_BITFLAG.
<case OPT_finit_local_zero>: Use set_init_local_zero.
<case OPT_fdec>: Pass value to set_dec_flags.
<case OPT_fdec_structure>: Remove.

Co-Authored-By: Mark Eggleston <mark.eggleston@codethink.co.uk>
From-SVN: r266761
gcc/fortran/ChangeLog
gcc/fortran/options.c