[llvm-commits] [gcc-plugin] r76738 - in /gcc-plugin/trunk: Makefile bits_and_bobs.cpp i386/llvm-i386.cpp llvm-backend.cpp llvm-cache.h llvm-convert.cpp llvm-debug.cpp llvm-types.cpp
Duncan Sands
baldrick at free.fr
Wed Jul 22 07:04:42 PDT 2009
Author: baldrick
Date: Wed Jul 22 09:04:33 2009
New Revision: 76738
URL: http://llvm.org/viewvc/llvm-project?rev=76738&view=rev
Log:
Have the compiler define IN_GCC, rather than individual
files.
Modified:
gcc-plugin/trunk/Makefile
gcc-plugin/trunk/bits_and_bobs.cpp
gcc-plugin/trunk/i386/llvm-i386.cpp
gcc-plugin/trunk/llvm-backend.cpp
gcc-plugin/trunk/llvm-cache.h
gcc-plugin/trunk/llvm-convert.cpp
gcc-plugin/trunk/llvm-debug.cpp
gcc-plugin/trunk/llvm-types.cpp
Modified: gcc-plugin/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/Makefile?rev=76738&r1=76737&r2=76738&view=diff
==============================================================================
--- gcc-plugin/trunk/Makefile (original)
+++ gcc-plugin/trunk/Makefile Wed Jul 22 09:04:33 2009
@@ -9,10 +9,11 @@
#CFLAGS+=-I$(GCCPLUGINS_DIR)/include -fPIC -O2
CFLAGS+=-Werror -fPIC -g -O2
-CFLAGS+= -I${GCCOBJECT_DIR}/gcc -I${GCCOBJECT_DIR}/gcc/include \
- -I${GCCSOURCE_DIR}/gcc -I${GCCSOURCE_DIR}/include \
- -I${GCCSOURCE_DIR}/libcpp/include -I${GCCSOURCE_DIR}/libdecnumber \
- -I${GCCOBJECT_DIR}/libdecnumber
+CFLAGS+=-DIN_GCC
+CFLAGS+=-I${GCCOBJECT_DIR}/gcc -I${GCCOBJECT_DIR}/gcc/include \
+ -I${GCCSOURCE_DIR}/gcc -I${GCCSOURCE_DIR}/include \
+ -I${GCCSOURCE_DIR}/libcpp/include -I${GCCSOURCE_DIR}/libdecnumber \
+ -I${GCCOBJECT_DIR}/libdecnumber
CXXFLAGS+=$(CFLAGS) $(shell llvm-config --cppflags)
LDFLAGS+=$(shell llvm-config --ldflags) $(shell llvm-config --libs analysis core target x86)
Modified: gcc-plugin/trunk/bits_and_bobs.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/bits_and_bobs.cpp?rev=76738&r1=76737&r2=76738&view=diff
==============================================================================
--- gcc-plugin/trunk/bits_and_bobs.cpp (original)
+++ gcc-plugin/trunk/bits_and_bobs.cpp Wed Jul 22 09:04:33 2009
@@ -4,7 +4,6 @@
// GCC headers
#undef VISIBILITY_HIDDEN
-#define IN_GCC
#include "config.h"
extern "C" {
Modified: gcc-plugin/trunk/i386/llvm-i386.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/i386/llvm-i386.cpp?rev=76738&r1=76737&r2=76738&view=diff
==============================================================================
--- gcc-plugin/trunk/i386/llvm-i386.cpp (original)
+++ gcc-plugin/trunk/i386/llvm-i386.cpp Wed Jul 22 09:04:33 2009
@@ -32,7 +32,6 @@
// GCC headers
#undef VISIBILITY_HIDDEN
-#define IN_GCC
#include "config.h"
extern "C" {
Modified: gcc-plugin/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-backend.cpp?rev=76738&r1=76737&r2=76738&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-backend.cpp (original)
+++ gcc-plugin/trunk/llvm-backend.cpp Wed Jul 22 09:04:33 2009
@@ -56,7 +56,6 @@
// GCC headers
#undef VISIBILITY_HIDDEN
-#define IN_GCC
#include "config.h"
extern "C" {
Modified: gcc-plugin/trunk/llvm-cache.h
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-cache.h?rev=76738&r1=76737&r2=76738&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-cache.h (original)
+++ gcc-plugin/trunk/llvm-cache.h Wed Jul 22 09:04:33 2009
@@ -28,8 +28,6 @@
#ifndef LLVM_CACHE_H
#define LLVM_CACHE_H
-#define IN_GCC
-
#include "config.h"
#include "system.h"
#include "coretypes.h"
Modified: gcc-plugin/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-convert.cpp?rev=76738&r1=76737&r2=76738&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-convert.cpp (original)
+++ gcc-plugin/trunk/llvm-convert.cpp Wed Jul 22 09:04:33 2009
@@ -48,7 +48,6 @@
// GCC headers
#undef VISIBILITY_HIDDEN
-#define IN_GCC
#include "config.h"
extern "C" {
Modified: gcc-plugin/trunk/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-debug.cpp?rev=76738&r1=76737&r2=76738&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-debug.cpp (original)
+++ gcc-plugin/trunk/llvm-debug.cpp Wed Jul 22 09:04:33 2009
@@ -37,7 +37,6 @@
// GCC headers
#undef VISIBILITY_HIDDEN
-#define IN_GCC
#include "config.h"
extern "C" {
Modified: gcc-plugin/trunk/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-types.cpp?rev=76738&r1=76737&r2=76738&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-types.cpp (original)
+++ gcc-plugin/trunk/llvm-types.cpp Wed Jul 22 09:04:33 2009
@@ -41,7 +41,6 @@
// GCC headers
#undef VISIBILITY_HIDDEN
-#define IN_GCC
#include "config.h"
extern "C" {
More information about the llvm-commits
mailing list