diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2016-11-23 12:18:23 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2016-11-23 12:18:23 +0000 |
commit | 3615816da830d41f67a5d8955ae588eba7f0b6fb (patch) | |
tree | 12a174bfebb96c4c8be937abf2ea4244fc565eda /gcc/opts.c | |
parent | 0eb078fe20d443e2981a7b69067547e7ab80565c (diff) | |
download | gcc-3615816da830d41f67a5d8955ae588eba7f0b6fb.zip gcc-3615816da830d41f67a5d8955ae588eba7f0b6fb.tar.gz gcc-3615816da830d41f67a5d8955ae588eba7f0b6fb.tar.bz2 |
re PR target/78213 (-fself-test fails on aarch64)
PR target/78213
* opts.c (finish_options): Set -fsyntax-only if running self
tests.
From-SVN: r242748
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -744,6 +744,14 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, opts->x_flag_toplevel_reorder = 0; } + /* -fself-test depends on the state of the compiler prior to + compiling anything. Ideally it should be run on an empty source + file. However, in case we get run with actual source, assume + -fsyntax-only which will inhibit any compiler initialization + which may confuse the self tests. */ + if (opts->x_flag_self_test) + opts->x_flag_syntax_only = 1; + if (opts->x_flag_tm && opts->x_flag_non_call_exceptions) sorry ("transactional memory is not supported with non-call exceptions"); |