summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-07-12 10:35:00 +0000
committerDJ Delorie <dj@redhat.com>2005-07-12 10:35:00 +0000
commitf2942ea4dd6da2fb288214764c0be02e859d4177 (patch)
tree4e57c1a652f73fb67479304dcbddd0a342a119d7 /libiberty
parent5817d0c78b50778a0b198a26221571cf0aec2ad3 (diff)
downloadbinutils-gdb-f2942ea4dd6da2fb288214764c0be02e859d4177.tar.gz
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog10
-rw-r--r--libiberty/floatformat.c7
-rw-r--r--libiberty/pexecute.c4
-rw-r--r--libiberty/regex.c2
4 files changed, 20 insertions, 3 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index dc55ff2e546..e2cbeb4741e 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,13 @@
+2005-07-12 Ben Elliston <bje@au.ibm.com>
+
+ * floatformat.c (floatformat_to_double): Add a comment about a
+ potential source of warnings when compiling this file.
+
+2005-07-12 Ben Elliston <bje@au.ibm.com>
+
+ * pexecute.c (pexecute): Cast string litrals to char *.
+ * regex.c (re_comp): Cast a call to gettext() to char *.
+
2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
* config.table: Delete file. Move former contents into ...
diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c
index 41000f459e4..e466f53a7ab 100644
--- a/libiberty/floatformat.c
+++ b/libiberty/floatformat.c
@@ -306,6 +306,13 @@ floatformat_to_double (const struct floatformat *fmt,
mant_bits_left -= mant_bits;
}
+ /* On certain systems (such as GNU/Linux), the use of the
+ INFINITY macro below may generate a warning that can not be
+ silenced due to a bug in GCC (PR preprocessor/11931). The
+ preprocessor fails to recognise the __extension__ keyword in
+ conjunction with the GNU/C99 extension for hexadecimal
+ floating point constants and will issue a warning when
+ compiling with -pedantic. */
if (nan)
dto = NAN;
else
diff --git a/libiberty/pexecute.c b/libiberty/pexecute.c
index 60a280b8e47..cce6e300c5d 100644
--- a/libiberty/pexecute.c
+++ b/libiberty/pexecute.c
@@ -47,7 +47,7 @@ pexecute (const char *program, char * const *argv, const char *pname,
{
if (pex != NULL)
{
- *errmsg_fmt = "pexecute already in progress";
+ *errmsg_fmt = (char *) "pexecute already in progress";
*errmsg_arg = NULL;
return -1;
}
@@ -58,7 +58,7 @@ pexecute (const char *program, char * const *argv, const char *pname,
{
if (pex == NULL)
{
- *errmsg_fmt = "pexecute not in progress";
+ *errmsg_fmt = (char *) "pexecute not in progress";
*errmsg_arg = NULL;
return -1;
}
diff --git a/libiberty/regex.c b/libiberty/regex.c
index 9d3e532a598..b7be99d25b2 100644
--- a/libiberty/regex.c
+++ b/libiberty/regex.c
@@ -7814,7 +7814,7 @@ re_comp (const char *s)
if (!s)
{
if (!re_comp_buf.buffer)
- return gettext ("No previous regular expression");
+ return (char *) gettext ("No previous regular expression");
return 0;
}