[PATCH, testsuite] fix ggcplug.c test-case

Prathamesh Kulkarni prathamesh.kulkarni@linaro.org
Sun Jan 11 09:05:00 GMT 2015


Hi,
The test-case plugin/ggcplug.c was failing due to flattening of tree.h
and tree-core.h.
Test-case was incorrect because it included gcc-plugin.h after tree.h whereas
gcc-plugin.h should be the first header to be included by plugins.
OK to commit ?

Thank you,
Prathamesh
-------------- next part --------------
Index: gcc/testsuite/gcc.dg/plugin/ggcplug.c
===================================================================
--- gcc/testsuite/gcc.dg/plugin/ggcplug.c	(revision 219429)
+++ gcc/testsuite/gcc.dg/plugin/ggcplug.c	(working copy)
@@ -1,12 +1,12 @@
 /* This plugin tests the GGC related plugin events.  */
 /* { dg-options "-O" } */
 
+#include "gcc-plugin.h"
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
 #include "tm.h"
 #include "tree.h"
-#include "gcc-plugin.h"
 #include "toplev.h"
 #include "basic-block.h"
 #include "hash-table.h"
-------------- next part --------------
2015-01-11  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

testsuite/
	* gcc.dg/plugin/ggcplug.c: Include gcc-plugin.h before other headers. 
	


More information about the Gcc-patches mailing list