aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorMatthieu Longo <matthieu.longo@arm.com>2024-06-27 11:02:18 +0100
committerMatthieu Longo <matthieu.longo@arm.com>2024-12-17 11:01:24 +0000
commit63e8e1a1674225214ee462e3044edf6450f41c10 (patch)
treeb8cf34cce83f99390cd64f71633f8b690b4f4c9b /gas/config
parentc2d41e8a42f1d4c6450feb9c2b7c79afa3f67f4a (diff)
downloadgdb-63e8e1a1674225214ee462e3044edf6450f41c10.zip
gdb-63e8e1a1674225214ee462e3044edf6450f41c10.tar.gz
gdb-63e8e1a1674225214ee462e3044edf6450f41c10.tar.bz2
gas: add new command line options to control diagnostic informational messages
gas currently emits informational messages for context information along warnings. In the context of system register tests in AArch64 backend, these messages pollute the tests when checking for error message patterns in stderr output. This patch aims at providing two new flags while preserving the existing behavior if none of the options is provided. * --info, similar to the existing --warn flag to enable diagnostic informational messages (default behavior). * --no-info, similar to the existing --no-warn flag to disable diagnostic informational messages. It also adds the flags to the existing documentation, and command manual.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-aarch64.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index c706f92..464a727 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -5667,6 +5667,9 @@ print_operands (char *buf, const aarch64_opcode *opcode,
static void
output_info (const char *format, ...)
{
+ if (flag_no_information)
+ return;
+
const char *file;
unsigned int line;
va_list args;