commit 00a269fd8f7c7a3a0a27f9007913945fc3c8d81d
Author: David Malcolm <dmalcolm(a)redhat.com>
Date: Thu Mar 29 21:02:05 2012 -0400
introduce gcc-common.h
proposed-plugin-api/gcc-cfg.h | 16 +---------------
proposed-plugin-api/gcc-common.h | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 15 deletions(-)
---
diff --git a/proposed-plugin-api/gcc-cfg.h b/proposed-plugin-api/gcc-cfg.h
index 8dbeed0..1a2a4ba 100644
--- a/proposed-plugin-api/gcc-cfg.h
+++ b/proposed-plugin-api/gcc-cfg.h
@@ -17,21 +17,7 @@
<
http://www.gnu.org/licenses/>.
*/
-#include <gcc-plugin.h>
-
-/* see design.rst for notes */
-
-/* Compatibility macros */
-
-/* For declarations: */
-#define GCC_PUBLIC_API(RETURN_TYPE) extern RETURN_TYPE
-#define GCC_PRIVATE_API(RETURN_TYPE) extern RETURN_TYPE
-
-#include "gcc-public-types.h"
-
-/* For internal use: */
-#define GCC_IMPLEMENT_PUBLIC_API(RETURN_TYPE) RETURN_TYPE
-#define GCC_IMPLEMENT_PRIVATE_API(RETURN_TYPE) RETURN_TYPE
+#include "proposed-plugin-api/gcc-common.h"
/* Declarations: control flow graphs */
diff --git a/proposed-plugin-api/gcc-common.h b/proposed-plugin-api/gcc-common.h
new file mode 100644
index 0000000..9132beb
--- /dev/null
+++ b/proposed-plugin-api/gcc-common.h
@@ -0,0 +1,35 @@
+/*
+ Copyright 2012 David Malcolm <dmalcolm(a)redhat.com>
+ Copyright 2012 Red Hat, Inc.
+
+ This is free software: you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see
+ <
http://www.gnu.org/licenses/>.
+*/
+
+#include <gcc-plugin.h>
+
+/* see design.rst for notes */
+
+/* Compatibility macros */
+
+/* For declarations: */
+#define GCC_PUBLIC_API(RETURN_TYPE) extern RETURN_TYPE
+#define GCC_PRIVATE_API(RETURN_TYPE) extern RETURN_TYPE
+
+#include "gcc-public-types.h"
+
+/* For internal use: */
+#define GCC_IMPLEMENT_PUBLIC_API(RETURN_TYPE) RETURN_TYPE
+#define GCC_IMPLEMENT_PRIVATE_API(RETURN_TYPE) RETURN_TYPE
+