Patchwork PR testsuite/42843: add missing includes of diagnostic.h

login
register
mail settings
Submitter Jack Howarth
Date July 14, 2010, 8:38 p.m.
Message ID <20100714203839.GA2211@bromo.med.uc.edu>
Download mbox | patch
Permalink /patch/58929/
State New
Headers show

Comments

Jack Howarth - July 14, 2010, 8:38 p.m.
This patch adds the missing include of diagnostic.h for 
those testcases that require warning() to be defined.
Bootstrapped and regression tested with --enable-build-with-cxx
on x86_64-apple-darwin10. Okay for gcc trunk?
                  Jack

2010-07-14  Jack Howarth  <howarth@bromo.med.uc.edu>

        PR testsuite/42843
	* gcc.dg/plugin/selfassign.c: Include diagnostic.h.
	* gcc.dg/plugin/ggcplug.c: Likewise.
	* g++.dg/plugin/selfassign.c: Likewise.
	* g++.dg/plugin/attribute_plugin.c: Likewise.
	* g++.dg/plugin/dumb_plugin.c: Likewise.
	* g++.dg/plugin/pragma_plugin.c: Likewise.
Richard Guenther - July 15, 2010, 7:27 a.m.
On Wed, Jul 14, 2010 at 10:38 PM, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
>   This patch adds the missing include of diagnostic.h for
> those testcases that require warning() to be defined.
> Bootstrapped and regression tested with --enable-build-with-cxx
> on x86_64-apple-darwin10. Okay for gcc trunk?

Ok.

Thanks,
Richard.

>                  Jack
>
> 2010-07-14  Jack Howarth  <howarth@bromo.med.uc.edu>
>
>        PR testsuite/42843
>        * gcc.dg/plugin/selfassign.c: Include diagnostic.h.
>        * gcc.dg/plugin/ggcplug.c: Likewise.
>        * g++.dg/plugin/selfassign.c: Likewise.
>        * g++.dg/plugin/attribute_plugin.c: Likewise.
>        * g++.dg/plugin/dumb_plugin.c: Likewise.
>        * g++.dg/plugin/pragma_plugin.c: Likewise.
>
> Index: gcc/testsuite/gcc.dg/plugin/selfassign.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/plugin/selfassign.c    (revision 162051)
> +++ gcc/testsuite/gcc.dg/plugin/selfassign.c    (working copy)
> @@ -14,6 +14,7 @@
>  #include "tree-pass.h"
>  #include "intl.h"
>  #include "plugin-version.h"
> +#include "diagnostic.h"
>
>  int plugin_is_GPL_compatible;
>
> Index: gcc/testsuite/gcc.dg/plugin/ggcplug.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/plugin/ggcplug.c       (revision 162051)
> +++ gcc/testsuite/gcc.dg/plugin/ggcplug.c       (working copy)
> @@ -13,6 +13,7 @@
>  #include "intl.h"
>  #include "gcc-plugin.h"
>  #include "plugin-version.h"
> +#include "diagnostic.h"
>
>  int plugin_is_GPL_compatible;
>
> Index: gcc/testsuite/g++.dg/plugin/selfassign.c
> ===================================================================
> --- gcc/testsuite/g++.dg/plugin/selfassign.c    (revision 162051)
> +++ gcc/testsuite/g++.dg/plugin/selfassign.c    (working copy)
> @@ -14,6 +14,7 @@
>  #include "tree-pass.h"
>  #include "intl.h"
>  #include "plugin-version.h"
> +#include "diagnostic.h"
>
>  int plugin_is_GPL_compatible;
>
> Index: gcc/testsuite/g++.dg/plugin/attribute_plugin.c
> ===================================================================
> --- gcc/testsuite/g++.dg/plugin/attribute_plugin.c      (revision 162051)
> +++ gcc/testsuite/g++.dg/plugin/attribute_plugin.c      (working copy)
> @@ -10,6 +10,7 @@
>  #include "intl.h"
>  #include "toplev.h"
>  #include "plugin.h"
> +#include "diagnostic.h"
>
>  int plugin_is_GPL_compatible;
>
> Index: gcc/testsuite/g++.dg/plugin/dumb_plugin.c
> ===================================================================
> --- gcc/testsuite/g++.dg/plugin/dumb_plugin.c   (revision 162051)
> +++ gcc/testsuite/g++.dg/plugin/dumb_plugin.c   (working copy)
> @@ -10,6 +10,7 @@
>  #include "tree-pass.h"
>  #include "intl.h"
>  #include "toplev.h"
> +#include "diagnostic.h"
>
>  int plugin_is_GPL_compatible;
>
> Index: gcc/testsuite/g++.dg/plugin/pragma_plugin.c
> ===================================================================
> --- gcc/testsuite/g++.dg/plugin/pragma_plugin.c (revision 162051)
> +++ gcc/testsuite/g++.dg/plugin/pragma_plugin.c (working copy)
> @@ -14,6 +14,7 @@
>  #include "tree-pass.h"
>  #include "intl.h"
>  #include "toplev.h"
> +#include "diagnostic.h"
>
>  int plugin_is_GPL_compatible;
>
>
>
IainS - July 16, 2010, 8:40 a.m.
On 15 Jul 2010, at 08:27, Richard Guenther wrote:

> On Wed, Jul 14, 2010 at 10:38 PM, Jack Howarth <howarth@bromo.med.uc.edu 
> > wrote:
>>   This patch adds the missing include of diagnostic.h for
>> those testcases that require warning() to be defined.
>> Bootstrapped and regression tested with --enable-build-with-cxx
>> on x86_64-apple-darwin10. Okay for gcc trunk?
>
> Ok.


>> 2010-07-14  Jack Howarth  <howarth@bromo.med.uc.edu>
>>
>>        PR testsuite/42843
>>        * gcc.dg/plugin/selfassign.c: Include diagnostic.h.
>>        * gcc.dg/plugin/ggcplug.c: Likewise.
>>        * g++.dg/plugin/selfassign.c: Likewise.
>>        * g++.dg/plugin/attribute_plugin.c: Likewise.
>>        * g++.dg/plugin/dumb_plugin.c: Likewise.
>>        * g++.dg/plugin/pragma_plugin.c: Likewise.

done, r162254
Iain

Patch

Index: gcc/testsuite/gcc.dg/plugin/selfassign.c
===================================================================
--- gcc/testsuite/gcc.dg/plugin/selfassign.c	(revision 162051)
+++ gcc/testsuite/gcc.dg/plugin/selfassign.c	(working copy)
@@ -14,6 +14,7 @@ 
 #include "tree-pass.h"
 #include "intl.h"
 #include "plugin-version.h"
+#include "diagnostic.h"
 
 int plugin_is_GPL_compatible;
 
Index: gcc/testsuite/gcc.dg/plugin/ggcplug.c
===================================================================
--- gcc/testsuite/gcc.dg/plugin/ggcplug.c	(revision 162051)
+++ gcc/testsuite/gcc.dg/plugin/ggcplug.c	(working copy)
@@ -13,6 +13,7 @@ 
 #include "intl.h"
 #include "gcc-plugin.h"
 #include "plugin-version.h"
+#include "diagnostic.h"
 
 int plugin_is_GPL_compatible;
 
Index: gcc/testsuite/g++.dg/plugin/selfassign.c
===================================================================
--- gcc/testsuite/g++.dg/plugin/selfassign.c	(revision 162051)
+++ gcc/testsuite/g++.dg/plugin/selfassign.c	(working copy)
@@ -14,6 +14,7 @@ 
 #include "tree-pass.h"
 #include "intl.h"
 #include "plugin-version.h"
+#include "diagnostic.h"
 
 int plugin_is_GPL_compatible;
 
Index: gcc/testsuite/g++.dg/plugin/attribute_plugin.c
===================================================================
--- gcc/testsuite/g++.dg/plugin/attribute_plugin.c	(revision 162051)
+++ gcc/testsuite/g++.dg/plugin/attribute_plugin.c	(working copy)
@@ -10,6 +10,7 @@ 
 #include "intl.h"
 #include "toplev.h"
 #include "plugin.h"
+#include "diagnostic.h"
 
 int plugin_is_GPL_compatible;
 
Index: gcc/testsuite/g++.dg/plugin/dumb_plugin.c
===================================================================
--- gcc/testsuite/g++.dg/plugin/dumb_plugin.c	(revision 162051)
+++ gcc/testsuite/g++.dg/plugin/dumb_plugin.c	(working copy)
@@ -10,6 +10,7 @@ 
 #include "tree-pass.h"
 #include "intl.h"
 #include "toplev.h"
+#include "diagnostic.h"
 
 int plugin_is_GPL_compatible;
 
Index: gcc/testsuite/g++.dg/plugin/pragma_plugin.c
===================================================================
--- gcc/testsuite/g++.dg/plugin/pragma_plugin.c	(revision 162051)
+++ gcc/testsuite/g++.dg/plugin/pragma_plugin.c	(working copy)
@@ -14,6 +14,7 @@ 
 #include "tree-pass.h"
 #include "intl.h"
 #include "toplev.h"
+#include "diagnostic.h"
 
 int plugin_is_GPL_compatible;