* [c++] fix #error directive in cp-tree.h
@ 2008-08-28 6:14 Manuel López-Ibáñez
2008-08-28 8:29 ` Mark Mitchell
0 siblings, 1 reply; 2+ messages in thread
From: Manuel López-Ibáñez @ 2008-08-28 6:14 UTC (permalink / raw)
To: Gcc Patch List
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
In a previous commit I added an #error to handle the case of toplev.h
being added before cp-tree.h.
However, the directive was not syntactically correct. This is a fixed version.
Bootstrapped and regression tested on x86_64-unknown-linux-gnu with
--enable-languages=all,ada
OK for trunk?
2008-08-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* cp-tree.h: Fix #error directive.
[-- Attachment #2: fix-cp-tree.diff --]
[-- Type: text/plain, Size: 771 bytes --]
Index: gcc/cp/cp-tree.h
===================================================================
--- gcc/cp/cp-tree.h (revision 139576)
+++ gcc/cp/cp-tree.h (working copy)
@@ -46,12 +46,12 @@ along with GCC; see the file COPYING3.
extern void cp_cpp_error (cpp_reader *, int,
const char *, va_list *)
ATTRIBUTE_GCC_CXXDIAG(3,0);
#ifdef GCC_TOPLEV_H
#error \
-"In order for the format checking to accept the C++ front end diagnostic\n"
-"framework extensions, you must include this file before toplev.h, not after."
+In order for the format checking to accept the C++ front end diagnostic \
+framework extensions, you must include this file before toplev.h, not after.
#endif
#include "toplev.h"
#include "diagnostic.h"
/* Usage of TREE_LANG_FLAG_?:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [c++] fix #error directive in cp-tree.h
2008-08-28 6:14 [c++] fix #error directive in cp-tree.h Manuel López-Ibáñez
@ 2008-08-28 8:29 ` Mark Mitchell
0 siblings, 0 replies; 2+ messages in thread
From: Mark Mitchell @ 2008-08-28 8:29 UTC (permalink / raw)
To: Manuel López-Ibáñez; +Cc: Gcc Patch List
Manuel López-Ibáñez wrote:
> In a previous commit I added an #error to handle the case of toplev.h
> being added before cp-tree.h.
> However, the directive was not syntactically correct. This is a fixed version.
>
> Bootstrapped and regression tested on x86_64-unknown-linux-gnu with
> --enable-languages=all,ada
>
> OK for trunk?
>
> 2008-08-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> * cp-tree.h: Fix #error directive.
OK.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-27 4:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-28 6:14 [c++] fix #error directive in cp-tree.h Manuel López-Ibáñez
2008-08-28 8:29 ` Mark Mitchell
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).