aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorJanis Johnson <janis187@us.ibm.com>2002-01-23 18:48:13 +0000
committerJanis Johnson <janis@gcc.gnu.org>2002-01-23 18:48:13 +0000
commit1398974cb30a775ca0d8fccd9b86a2cdb77fb654 (patch)
tree342a94e88a6ceabfb9686cce503aa1296b2e9162 /gcc/toplev.c
parent85d35d90e9a185db0130b9da50e687f22f225941 (diff)
downloadgcc-1398974cb30a775ca0d8fccd9b86a2cdb77fb654.zip
gcc-1398974cb30a775ca0d8fccd9b86a2cdb77fb654.tar.gz
gcc-1398974cb30a775ca0d8fccd9b86a2cdb77fb654.tar.bz2
toplev.c (process_options): Disable -fprefetch-loop-arrays with -Os and issue a warning.
* toplev.c (process_options): Disable -fprefetch-loop-arrays with -Os and issue a warning. From-SVN: r49146
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index e8b6102..481c192 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -4988,6 +4988,14 @@ process_options ()
}
#endif
+ /* This combination of options isn't handled for i386 targets and doesn't
+ make much sense anyway, so don't allow it. */
+ if (flag_prefetch_loop_arrays && optimize_size)
+ {
+ warning ("-fprefetch-loop-arrays is not supported with -Os");
+ flag_prefetch_loop_arrays = 0;
+ }
+
#ifndef OBJECT_FORMAT_ELF
if (flag_function_sections && write_symbols != NO_DEBUG)
warning ("-ffunction-sections may affect debugging on some targets");