diff mbox series

[pushed] opts: Support -Oz in -Ox option hints.

Message ID 416c518e-939f-f3e0-ff84-128650803bc1@suse.cz
State New
Headers show
Series [pushed] opts: Support -Oz in -Ox option hints. | expand

Commit Message

Martin Liška Dec. 20, 2021, 11:33 a.m. UTC
Pushed as obvious after testing.

Cheers,
Martin

gcc/ChangeLog:

	* opts.c (default_options_optimization): Support -Oz in -Ox option hints.
---
  gcc/opts.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/opts.c b/gcc/opts.c
index f45ecc56726..cdd6463e49b 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -723,7 +723,7 @@  default_options_optimization (struct gcc_options *opts,
  	      const int optimize_val = integral_argument (opt->arg);
  	      if (optimize_val == -1)
  		error_at (loc, "argument to %<-O%> should be a non-negative "
-			       "integer, %<g%>, %<s%> or %<fast%>");
+			       "integer, %<g%>, %<s%>, %<z%> or %<fast%>");
  	      else
  		{
  		  opts->x_optimize = optimize_val;