projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19455ee
)
Recursion in as_info_where
author
Alan Modra
<amodra@gmail.com>
Wed, 1 Feb 2023 06:23:27 +0000
(16:53 +1030)
committer
Alan Modra
<amodra@gmail.com>
Wed, 1 Feb 2023 06:42:14 +0000
(17:12 +1030)
This function has a gas_assert, ie. possible call to as_abort, which
calls as_report_context, which calls as_info_where.
* messages.c (as_info_where): Don't gas_assert.
gas/messages.c
patch
|
blob
|
history
diff --git
a/gas/messages.c
b/gas/messages.c
index 0db075d779c9af54e1fa0a60e4c638420d25594e..7c018acf69f096ecb7e4e4bf62433b6a206592cd 100644
(file)
--- a/
gas/messages.c
+++ b/
gas/messages.c
@@
-141,8
+141,6
@@
as_info_where (const char *file, unsigned int line, unsigned int indent,
va_list args;
char buffer[2000];
- gas_assert (file != NULL && line > 0 && indent <= INT_MAX);
-
va_start (args, format);
vsnprintf (buffer, sizeof (buffer), format, args);
va_end (args);