summaryrefslogtreecommitdiff
path: root/gcc/config/x-cflags-O1
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/x-cflags-O1')
-rw-r--r--gcc/config/x-cflags-O15
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/x-cflags-O1 b/gcc/config/x-cflags-O1
new file mode 100644
index 000000000..9ba1e7496
--- /dev/null
+++ b/gcc/config/x-cflags-O1
@@ -0,0 +1,5 @@
+# At -O0 cc1 etc. are too large on some targets for successful
+# link; force building libbackend.a with -O1.
+ifeq ($(filter-out -O0,$(lastword $(filter -O%,$(CFLAGS)))),)
+$(OBJS) : override CFLAGS += -O1
+endif