public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [libibery PATCH] Fix bootstrap
@ 2017-05-25  0:56 Nathan Sidwell
  2017-05-25  1:13 ` Nathan Sidwell
  0 siblings, 1 reply; 11+ messages in thread
From: Nathan Sidwell @ 2017-05-25  0:56 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 98 bytes --]

We now warn on casts to T const.  Applied as obvious to fix bootstrap.

nathan
-- 
Nathan Sidwell

[-- Attachment #2: libiberty.diff --]
[-- Type: text/x-patch, Size: 970 bytes --]

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 248441)
+++ ChangeLog	(working copy)
@@ -1,3 +1,7 @@
+2017-05-24  Nathan Sidwell  <nathan@acm.org>
+
+	* libiberty.h (ASTRDUP): Adjust cast to avoid warning.
+
 2017-05-19  Eli Zaretskii <eliz@gnu.org>
 
 	* environ.h: Add #ifndef guard.
Index: libiberty.h
===================================================================
--- libiberty.h	(revision 248441)
+++ libiberty.h	(working copy)
@@ -724,7 +724,7 @@ extern void *C_alloca (size_t) ATTRIBUTE
 # define ASTRDUP(X) \
   (__extension__ ({ const char *const libiberty_optr = (X); \
    const unsigned long libiberty_len = strlen (libiberty_optr) + 1; \
-   char *const libiberty_nptr = (char *const) alloca (libiberty_len); \
+   char *const libiberty_nptr = (char *) alloca (libiberty_len); \
    (char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len); }))
 #else
 # define alloca(x) C_alloca(x)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-05-25 13:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25  0:56 [libibery PATCH] Fix bootstrap Nathan Sidwell
2017-05-25  1:13 ` Nathan Sidwell
2017-05-25  1:22   ` Nathan Sidwell
2017-05-25  1:42     ` Nathan Sidwell
2017-05-25  6:25       ` Richard Biener
2017-05-25 10:58         ` Nathan Sidwell
2017-05-25 11:21           ` Jonathan Wakely
2017-05-25 11:22             ` Jonathan Wakely
2017-05-25 12:35               ` Nathan Sidwell
2017-05-25 13:01                 ` Richard Biener
2017-05-25 13:03                   ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).