]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin: Check for that flag-reorder-and-partition.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 10 Dec 2021 23:55:49 +0000 (23:55 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 24 Dec 2021 10:42:35 +0000 (10:42 +0000)
We were checking whether the flag had been set by the user, but not if
it was set to true.  Which means that the check fails in its intent when
the user puts -fno-reorder-and-partition.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/ChangeLog:

* config/darwin.c (darwin_override_options): When checking for the
flag-reorder-and-partition case, also check that it is set on.

gcc/config/darwin.c

index 8ad5b26c9808d9420f989e5a1479cacc80fcbb84..e580319f761c42082a38efcf16e5f5aa3b262533 100644 (file)
@@ -3336,6 +3336,7 @@ darwin_override_options (void)
       (s)he knows why...  */
    if (generating_for_darwin_version < 9
        && OPTION_SET_P (flag_reorder_blocks_and_partition)
+       && flag_reorder_blocks_and_partition
        && ((global_options.x_flag_exceptions           /* User, c++, java */
            && !OPTION_SET_P (flag_exceptions))         /* User specified... */
           || (global_options.x_flag_unwind_tables