public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH,, PR46650][Revised] Fix --enable-build-with-cxx bootstrap failure
@ 2010-11-28 13:28 Jack Howarth
  2010-11-28 13:51 ` Eric Botcazou
  0 siblings, 1 reply; 2+ messages in thread
From: Jack Howarth @ 2010-11-28 13:28 UTC (permalink / raw)
  To: gcc-patches; +Cc: joseph, Ralf.Wildenhues

  Currently the --enable-build-with-cxx bootstrap is broken due to r167010
which poisoned the strerror macro. The attached patch includes the cstring c++
header when __cplusplus is defined. The previous includes for string.h and
strings.h are left in place for symbols like strcasecmp. Bootstrap and
regression tested on x86_64-apple-darwin10.

http://gcc.gnu.org/ml/gcc-testresults/2010-11/msg02329.html

Okay for gcc trunk?
           Jack

2010-11-27  Jack Howarth <howarth@bromo.med.uc.edu>
            Joseph Myers <joseph@codesourcery.com>

        PR bootstrap/46650
        * gcc/system.h: Include cstring for cxx bootstrap.

Index: gcc/system.h
===================================================================
--- gcc/system.h	(revision 167217)
+++ gcc/system.h	(working copy)
@@ -194,6 +194,10 @@
    rely on (and therefore test) GCC's string builtins.  */
 #define __NO_STRING_INLINES
 
+#ifdef __cplusplus
+# include <cstring>
+#endif
+
 #ifdef STRING_WITH_STRINGS
 # include <string.h>
 # include <strings.h>

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

* Re: [PATCH,, PR46650][Revised] Fix --enable-build-with-cxx bootstrap failure
  2010-11-28 13:28 [PATCH,, PR46650][Revised] Fix --enable-build-with-cxx bootstrap failure Jack Howarth
@ 2010-11-28 13:51 ` Eric Botcazou
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Botcazou @ 2010-11-28 13:51 UTC (permalink / raw)
  To: Jack Howarth; +Cc: gcc-patches, joseph, Ralf.Wildenhues

> 2010-11-27  Jack Howarth <howarth@bromo.med.uc.edu>
>             Joseph Myers <joseph@codesourcery.com>
>
>         PR bootstrap/46650
>         * gcc/system.h: Include cstring for cxx bootstrap.

Paths in ChangeLog are relative to the directory where the ChangeLog is.

-- 
Eric Botcazou

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

end of thread, other threads:[~2010-11-28  9:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-28 13:28 [PATCH,, PR46650][Revised] Fix --enable-build-with-cxx bootstrap failure Jack Howarth
2010-11-28 13:51 ` Eric Botcazou

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).