aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-02-07 08:40:29 +0000
committerAlan Modra <amodra@gmail.com>2008-02-07 08:40:29 +0000
commit1bf57e9fa369e12554ad304935972944ba8a7009 (patch)
treefff393aa75a91afe3ea9f8271477e0c363417142 /gas/read.c
parentee832e1842a5b8022d6dbda856f986d8004a9713 (diff)
downloadgdb-1bf57e9fa369e12554ad304935972944ba8a7009.zip
gdb-1bf57e9fa369e12554ad304935972944ba8a7009.tar.gz
gdb-1bf57e9fa369e12554ad304935972944ba8a7009.tar.bz2
* read.c (s_weakref): Don't pass unadorned NULL to concat.
* config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/read.c b/gas/read.c
index 109ab23..ed3be37 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -3449,14 +3449,15 @@ s_weakref (int ignore ATTRIBUTE_UNUSED)
char *loop;
loop = concat (S_GET_NAME (symbolP),
- " => ", S_GET_NAME (symbolP2), NULL);
+ " => ", S_GET_NAME (symbolP2), (const char *) NULL);
symp = symbolP2;
while (symp != symbolP)
{
char *old_loop = loop;
symp = symbol_get_value_expression (symp)->X_add_symbol;
- loop = concat (loop, " => ", S_GET_NAME (symp), NULL);
+ loop = concat (loop, " => ", S_GET_NAME (symp),
+ (const char *) NULL);
free (old_loop);
}