]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
authorPedro Alves <palves@redhat.com>
Thu, 25 Oct 2007 21:38:23 +0000 (21:38 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 25 Oct 2007 21:38:23 +0000 (21:38 +0000)
PR gdb/2339
* bfd-in.h (STRING_COMMA_LEN): Don't handle NULL STR case.
* bfd-in2.h: Regenerate.

bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h

index 9366ed5d347f9b71bb7277a71d9cdf23a8dea668..c3e806c6605c86f08be3a36aeba5d340d11ad210 100644 (file)
@@ -1,3 +1,9 @@
+2007-10-25  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       PR gdb/2339
+       * bfd-in.h (STRING_COMMA_LEN): Don't handle NULL STR case.
+       * bfd-in2.h: Regenerate.
+
 2007-09-04  Michael Snyder  <msnyder@access-company.com>
 
        * elf32-bfin.c (howto_table): Cut and paste error?  
index 2e70a7391fdf16281e3b446d688e272338a3d45a..6a55cb1cfb50a7a557f7ffb48db0a317c83afe22 100644 (file)
@@ -46,9 +46,8 @@ extern "C" {
 /* This is a utility macro to handle the situation where the code
    wants to place a constant string into the code, followed by a
    comma and then the length of the string.  Doing this by hand
-   is error prone, so using this macro is safer.  The macro will
-   also safely handle the case where a NULL is passed as the arg.  */
-#define STRING_COMMA_LEN(STR) (STR), ((STR) ? sizeof (STR) - 1 : 0)
+   is error prone, so using this macro is safer.  */
+#define STRING_COMMA_LEN(STR) (STR), (sizeof (STR) - 1)
 /* Unfortunately it is not possible to use the STRING_COMMA_LEN macro
    to create the arguments to another macro, since the preprocessor
    will mis-count the number of arguments to the outer macro (by not
index 317d32e01dd9039491838831ec493d491b3158f1..503e05e4ff8b5005200faa94a101262d084c093e 100644 (file)
@@ -53,9 +53,8 @@ extern "C" {
 /* This is a utility macro to handle the situation where the code
    wants to place a constant string into the code, followed by a
    comma and then the length of the string.  Doing this by hand
-   is error prone, so using this macro is safer.  The macro will
-   also safely handle the case where a NULL is passed as the arg.  */
-#define STRING_COMMA_LEN(STR) (STR), ((STR) ? sizeof (STR) - 1 : 0)
+   is error prone, so using this macro is safer.  */
+#define STRING_COMMA_LEN(STR) (STR), (sizeof (STR) - 1)
 /* Unfortunately it is not possible to use the STRING_COMMA_LEN macro
    to create the arguments to another macro, since the preprocessor
    will mis-count the number of arguments to the outer macro (by not