[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/29067] gas: -gsomething-not-already-a-long-option does not get
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gas/29067] gas: -gsomething-not-already-a-long-option does not get a diagnostic |
Date: |
Sat, 16 Apr 2022 17:32:28 +0000 |
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.