]> granicus.if.org Git - clang/commitdiff
improve compatibility with GCC 4.4, patch by Michel Salim (PR3697)
authorChris Lattner <sabre@nondot.org>
Mon, 2 Mar 2009 22:20:04 +0000 (22:20 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 2 Mar 2009 22:20:04 +0000 (22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65884 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/StmtIterator.h
lib/AST/DeclBase.cpp
lib/Basic/IdentifierTable.cpp
lib/Basic/SourceLocation.cpp
lib/Basic/Targets.cpp
lib/Frontend/InitHeaderSearch.cpp
lib/Lex/HeaderMap.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/PPMacroExpansion.cpp
lib/Lex/Preprocessor.cpp

index 0e029841c0f9bdfdff6bd6f7cbf832d944d48548..360ec5f78bf790f09040432ec4eaa83d7130a97c 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "llvm/ADT/iterator.h"
 #include <cassert>
+#include <stdint.h>
 
 namespace clang {
 
index 574de1675f49ccd29b0d589960fdd033f253f16a..ca67e28c717387599e77329dbd16af7adbd9eb10 100644 (file)
@@ -20,6 +20,7 @@
 #include "clang/AST/Type.h"
 #include "llvm/ADT/DenseMap.h"
 #include <algorithm>
+#include <cstdio>
 #include <functional>
 #include <vector>
 using namespace clang;
index 304c7a9b42f6bf7f287dff423c244536ace77885..0f0b4f9b8c6bfaba911527a6f49c81192eea233d 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/Bitcode/Serialize.h"
 #include "llvm/Bitcode/Deserialize.h"
+#include <cstdio>
 
 using namespace clang;
 
index 8e068d6ac282a1ffef54fbff5926577afe63733e..73e231adc8f34123a171fd6871f4e755c40b12ce 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/Bitcode/Serialize.h"
 #include "llvm/Bitcode/Deserialize.h"
 #include "llvm/Support/MemoryBuffer.h"
+#include <cstdio>
 
 using namespace clang;
 
index ef17d2d3421f503c5ced9e5a455fab3a222ad85f..6973ec51d25e2576de5149c49cd82c254b85db4a 100644 (file)
@@ -497,7 +497,21 @@ public:
   virtual const char *getClobbers() const {
     return "~{dirflag},~{fpsr},~{flags}";
   }
+  
+  virtual int HandleTargetOptions(std::string *StrArray, unsigned NumStrs,
+                                  std::string &ErrorReason);
 };
+
+/// HandleTargetOptions - Handle target-specific options like -msse2 and
+/// friends.  An array of arguments is passed in: if they are all valid, this
+/// should handle them and return -1.  If there is an error, the index of the
+/// invalid argument should be returned along with an optional error string.
+int X86TargetInfo::HandleTargetOptions(std::string *StrArray, unsigned NumStrs,
+                                       std::string &ErrorReason) {
+  if (NumStrs == 0)
+    return -1;
+  return 0;
+}
   
 bool
 X86TargetInfo::validateAsmConstraint(const char *&Name,
index e7dd207abed4647724ba815a556ed848da19e168..6383c2076ba4703ec1b3ad9e50b3cd77cd974cbe 100644 (file)
@@ -19,6 +19,7 @@
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/System/Path.h"
 #include "llvm/Config/config.h"
+#include <cstdio>
 #include <vector>
 using namespace clang;
 
index 0b75af54d1b06a8ae0a21728a755478938d6ccc9..4c8b70eb782130ee360d7cfdfdd6414619c870eb 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/Support/DataTypes.h"
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Support/MemoryBuffer.h"
+#include <cstdio>
 using namespace clang;
 
 //===----------------------------------------------------------------------===//
index 44ae35c8b7e4f82dff4f5d300fd67b4228f71bba..2cc29ecbed8aedcca5c546ac9ba2b6a2f32c0bc2 100644 (file)
@@ -17,6 +17,7 @@
 #include "clang/Basic/IdentifierTable.h"
 #include "llvm/System/Path.h"
 #include "llvm/ADT/SmallString.h"
+#include <cstdio>
 using namespace clang;
 
 HeaderSearch::HeaderSearch(FileManager &FM) : FileMgr(FM), FrameworkMap(64) {
index a8b09e5edee402a659a5a8f8ca26224e521c2c47..6cb1908330e2fe906e0822bf4a5ba2f061333746 100644 (file)
@@ -18,6 +18,7 @@
 #include "clang/Basic/SourceManager.h"
 #include "clang/Basic/FileManager.h"
 #include "clang/Lex/LexDiagnostic.h"
+#include <cstdio>
 #include <ctime>
 using namespace clang;
 
index 26777d9170b9528dc181c3ac1bf23137e08b504e..2a9fa0a85b58c22560d4935772cdcd03b5513ea6 100644 (file)
@@ -38,6 +38,7 @@
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Streams.h"
+#include <cstdio>
 using namespace clang;
 
 //===----------------------------------------------------------------------===//