aboutsummaryrefslogtreecommitdiff
path: root/gas
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
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')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c4
-rw-r--r--gas/read.c5
3 files changed, 10 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 884f0d9..1286b3a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-07 Alan Modra <amodra@bigpond.net.au>
+
+ * read.c (s_weakref): Don't pass unadorned NULL to concat.
+ * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
+
2008-02-05 Sterling Augustine <sterling@tensilica.com>
* config/tc-xtensa.c (relax_frag_immed): Change internal consistency
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index ecf48bd..c68fde7 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -1784,7 +1784,7 @@ set_cpu_arch (int dummy ATTRIBUTE_UNUSED)
char *name = cpu_sub_arch_name;
cpu_sub_arch_name = concat (name,
cpu_arch[i].name,
- NULL);
+ (const char *) NULL);
free (name);
}
else
@@ -7299,7 +7299,7 @@ md_parse_option (int c, char *arg)
char *name = cpu_sub_arch_name;
cpu_sub_arch_name = concat (name,
cpu_arch[i].name,
- NULL);
+ (const char *) NULL);
free (name);
}
else
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);
}