https://sourceware.org/bugzilla/show_bug.cgi?id=29067

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
This works:

diff --git a/gas/as.c b/gas/as.c
index f320bac89b5..0262a6fec98 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -836,6 +836,8 @@ This program has absolutely no warranty.\n"));
        versions/sections/options.  */
     if (startswith (old_argv[optind - 1], "-gdwarf"))
       as_fatal (_("unknown DWARF option %s\n"), old_argv[optind - 1]);
+    else if (old_argv[optind - 1][1] == 'g' && optarg != NULL)
+      as_fatal (_("unknown option `%s'"), old_argv[optind - 1]);

     if (md_debug_format_selector)
       debug_type = md_debug_format_selector (& use_gnu_debug_info_extensions);

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to