summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/gcc/gcc/toplev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gcc/gcc/toplev.c b/gnu/usr.bin/gcc/gcc/toplev.c
index 9fdd5e28d80..673b3d31346 100644
--- a/gnu/usr.bin/gcc/gcc/toplev.c
+++ b/gnu/usr.bin/gcc/gcc/toplev.c
@@ -4925,7 +4925,7 @@ parse_options_and_default_flags (argc, argv)
/* Handle -Os, -O2, -O3, -O69, ... */
char *p = &argv[i][2];
- if ((p[0] == 's') && (p[1] == 0))
+ if ((p[0] == 's' || p[0] == 'z') && (p[1] == 0))
{
optimize_size = 1;