aboutsummaryrefslogtreecommitdiffstats
path: root/lang/clang33/files
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2018-08-14 06:48:07 +0800
committerbrooks <brooks@FreeBSD.org>2018-08-14 06:48:07 +0800
commite2757d67bc0753ddf3d6962a958bf2c3c0292bad (patch)
tree8a1622985ba8cc982d33804b41db128268c5af7c /lang/clang33/files
parentcbae1e17a9a1bcdeeb31d417a42b7c4b5c892e48 (diff)
downloadfreebsd-ports-gnome-e2757d67bc0753ddf3d6962a958bf2c3c0292bad.tar.gz
freebsd-ports-gnome-e2757d67bc0753ddf3d6962a958bf2c3c0292bad.tar.zst
freebsd-ports-gnome-e2757d67bc0753ddf3d6962a958bf2c3c0292bad.zip
At long last, garbage collect LLVM and Clang 3.3.
Nothing depends on them and they are very old. Sponsored by: DARPA, AFRL
Diffstat (limited to 'lang/clang33/files')
-rw-r--r--lang/clang33/files/llvm-wrapper.sh.in11
-rw-r--r--lang/clang33/files/patch-include_llvm_ADT_Triple.h14
-rw-r--r--lang/clang33/files/patch-tools_clang_docs_Makefile10
-rw-r--r--lang/clang33/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h21
-rw-r--r--lang/clang33/files/patch-tools_clang_lib_Analysis_PrintfFormatString.cpp45
-rw-r--r--lang/clang33/files/patch-tools_clang_lib_Driver_ToolChains.cpp41
-rw-r--r--lang/clang33/files/patch-tools_clang_lib_Driver_ToolChains.h17
-rw-r--r--lang/clang33/files/patch-tools_clang_lib_Frontend_InitHeaderSearch.cpp15
-rw-r--r--lang/clang33/files/patch-tools_clang_lib_Headers_Makefile11
-rw-r--r--lang/clang33/files/patch-tools_clang_lib_Sema_SemaChecking.cpp42
-rw-r--r--lang/clang33/files/patch-tools_clang_tools_scan-build_ccc-analyzer11
-rw-r--r--lang/clang33/files/patch-tools_clang_tools_scan-build_scan-build29
-rw-r--r--lang/clang33/files/patch-utils_llvm-build_llvmbuild_main.py21
13 files changed, 0 insertions, 288 deletions
diff --git a/lang/clang33/files/llvm-wrapper.sh.in b/lang/clang33/files/llvm-wrapper.sh.in
deleted file mode 100644
index f2b952f530dd..000000000000
--- a/lang/clang33/files/llvm-wrapper.sh.in
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-
-LLVM_PREFIX="%%LLVM_PREFIX%%"
-LLVM_SUFFIX="%%LLVM_SUFFIX%%"
-
-tool=$(basename $0)
-tool="${LLVM_PREFIX}/bin/${tool%${LLVM_SUFFIX}}"
-PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${LLVM_PREFIX}/lib/python" \
-LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LLVM_PREFIX}/lib" \
- "${tool}" "${@}"
diff --git a/lang/clang33/files/patch-include_llvm_ADT_Triple.h b/lang/clang33/files/patch-include_llvm_ADT_Triple.h
deleted file mode 100644
index f663c27dfbc3..000000000000
--- a/lang/clang33/files/patch-include_llvm_ADT_Triple.h
+++ /dev/null
@@ -1,14 +0,0 @@
---- include/llvm/ADT/Triple.h.orig
-+++ include/llvm/ADT/Triple.h
-@@ -296,6 +296,11 @@
- return isMacOSX() || getOS() == Triple::IOS;
- }
-
-+ /// isOSFreeBSD - Is this FreeBSD OS
-+ bool isOSFreeBSD() const {
-+ return getOS() == Triple::FreeBSD;
-+ }
-+
- /// \brief Tests for either Cygwin or MinGW OS
- bool isOSCygMing() const {
- return getOS() == Triple::Cygwin || getOS() == Triple::MinGW32;
diff --git a/lang/clang33/files/patch-tools_clang_docs_Makefile b/lang/clang33/files/patch-tools_clang_docs_Makefile
deleted file mode 100644
index 15f40ec254b1..000000000000
--- a/lang/clang33/files/patch-tools_clang_docs_Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
---- tools/clang/docs/Makefile.orig
-+++ tools/clang/docs/Makefile
-@@ -8,7 +8,6 @@
- ##===----------------------------------------------------------------------===##
-
- CLANG_LEVEL := ..
--DIRS := tools
-
- ifdef BUILD_FOR_WEBSITE
- PROJ_OBJ_DIR = .
diff --git a/lang/clang33/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h b/lang/clang33/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h
deleted file mode 100644
index 19130ba7305e..000000000000
--- a/lang/clang33/files/patch-tools_clang_include_clang_Analysis_Analyses_FormatString.h
+++ /dev/null
@@ -1,21 +0,0 @@
---- tools/clang/include/clang/Analysis/Analyses/FormatString.h.orig
-+++ tools/clang/include/clang/Analysis/Analyses/FormatString.h
-@@ -117,7 +117,7 @@
- // C99 conversion specifiers.
- cArg,
- dArg,
-- DArg, // Apple extension
-+ DArg, // Apple and FreeBSD extension
- iArg,
- IntArgBeg = dArg, IntArgEnd = iArg,
-
-@@ -148,6 +148,9 @@
-
- // ** Printf-specific **
-
-+ // FreeBSD specific specifiers
-+ bArg,
-+
- // Objective-C specific specifiers.
- ObjCObjArg, // '@'
- ObjCBeg = ObjCObjArg, ObjCEnd = ObjCObjArg,
diff --git a/lang/clang33/files/patch-tools_clang_lib_Analysis_PrintfFormatString.cpp b/lang/clang33/files/patch-tools_clang_lib_Analysis_PrintfFormatString.cpp
deleted file mode 100644
index 6e27edaeae15..000000000000
--- a/lang/clang33/files/patch-tools_clang_lib_Analysis_PrintfFormatString.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
---- tools/clang/lib/Analysis/PrintfFormatString.cpp.orig
-+++ tools/clang/lib/Analysis/PrintfFormatString.cpp
-@@ -198,9 +198,10 @@
- case '@': k = ConversionSpecifier::ObjCObjArg; break;
- // Glibc specific.
- case 'm': k = ConversionSpecifier::PrintErrno; break;
-- // Apple-specific
-+
-+ // Apple-specific (and one FreeBSD)
- case 'D':
-- if (Target.getTriple().isOSDarwin())
-+ if (Target.getTriple().isOSDarwin() || Target.getTriple().isOSFreeBSD())
- k = ConversionSpecifier::DArg;
- break;
- case 'O':
-@@ -211,11 +212,29 @@
- if (Target.getTriple().isOSDarwin())
- k = ConversionSpecifier::UArg;
- break;
-+
-+ // FreeBSD-specific
-+ case 'b':
-+ if (Target.getTriple().isOSFreeBSD())
-+ k = ConversionSpecifier::bArg;
-+ break;
-+ case 'r':
-+ if (Target.getTriple().isOSFreeBSD())
-+ k = ConversionSpecifier::xArg;
-+ break;
-+ case 'y':
-+ if (Target.getTriple().isOSFreeBSD())
-+ k = ConversionSpecifier::iArg;
-+ break;
- }
- PrintfConversionSpecifier CS(conversionPosition, k);
- FS.setConversionSpecifier(CS);
- if (CS.consumesDataArgument() && !FS.usesPositionalArg())
- FS.setArgIndex(argIndex++);
-+ // FreeBSD extension
-+ if (Target.getTriple().isOSFreeBSD() && (k == ConversionSpecifier::bArg ||
-+ k == ConversionSpecifier::DArg))
-+ argIndex++;
-
- if (k == ConversionSpecifier::InvalidSpecifier) {
- // Assume the conversion takes one argument.
diff --git a/lang/clang33/files/patch-tools_clang_lib_Driver_ToolChains.cpp b/lang/clang33/files/patch-tools_clang_lib_Driver_ToolChains.cpp
deleted file mode 100644
index 4f73461dfa09..000000000000
--- a/lang/clang33/files/patch-tools_clang_lib_Driver_ToolChains.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
---- tools/clang/lib/Driver/ToolChains.cpp.orig
-+++ tools/clang/lib/Driver/ToolChains.cpp
-@@ -1950,6 +1950,38 @@
- }
- }
-
-+ToolChain::CXXStdlibType
-+FreeBSD::GetCXXStdlibType(const ArgList &Args) const {
-+ if (Arg *A = Args.getLastArg(options::OPT_stdlib_EQ)) {
-+ StringRef Value = A->getValue();
-+ if (Value == "libc++")
-+ return ToolChain::CST_Libcxx;
-+ if (Value == "libstdc++")
-+ return ToolChain::CST_Libstdcxx;
-+ getDriver().Diag(diag::err_drv_invalid_stdlib_name)
-+ << A->getAsString(Args);
-+ }
-+
-+ return getTriple().getOSMajorVersion() >= 10 ? ToolChain::CST_Libcxx :
-+ ToolChain::CST_Libstdcxx;
-+}
-+
-+void FreeBSD::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
-+ ArgStringList &CC1Args) const {
-+ if (DriverArgs.hasArg(options::OPT_nostdlibinc) ||
-+ DriverArgs.hasArg(options::OPT_nostdincxx))
-+ return;
-+
-+ if (GetCXXStdlibType(DriverArgs) == ToolChain::CST_Libcxx)
-+ addSystemInclude(DriverArgs, CC1Args,
-+ getDriver().SysRoot + "/usr/include/c++/v1");
-+ else
-+ addSystemInclude(DriverArgs, CC1Args,
-+ getDriver().SysRoot + "/usr/include/c++/4.2");
-+ return;
-+
-+}
-+
- /// NetBSD - NetBSD tool chain which can call as(1) and ld(1) directly.
-
- NetBSD::NetBSD(const Driver &D, const llvm::Triple& Triple, const ArgList &Args)
diff --git a/lang/clang33/files/patch-tools_clang_lib_Driver_ToolChains.h b/lang/clang33/files/patch-tools_clang_lib_Driver_ToolChains.h
deleted file mode 100644
index 28b16d4d1f14..000000000000
--- a/lang/clang33/files/patch-tools_clang_lib_Driver_ToolChains.h
+++ /dev/null
@@ -1,17 +0,0 @@
---- tools/clang/lib/Driver/ToolChains.h.orig
-+++ tools/clang/lib/Driver/ToolChains.h
-@@ -515,9 +515,14 @@
- FreeBSD(const Driver &D, const llvm::Triple &Triple,
- const ArgList &Args);
-
-+ virtual CXXStdlibType GetCXXStdlibType(const ArgList &Args) const;
-+
- virtual bool IsMathErrnoDefault() const { return false; }
- virtual bool IsObjCNonFragileABIDefault() const { return true; }
-
-+ virtual void AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
-+ ArgStringList &CC1Args) const;
-+
- virtual bool UseSjLjExceptions() const;
- protected:
- virtual Tool *buildAssembler() const;
diff --git a/lang/clang33/files/patch-tools_clang_lib_Frontend_InitHeaderSearch.cpp b/lang/clang33/files/patch-tools_clang_lib_Frontend_InitHeaderSearch.cpp
deleted file mode 100644
index 283a4aa5be75..000000000000
--- a/lang/clang33/files/patch-tools_clang_lib_Frontend_InitHeaderSearch.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-Look for the libc++ headers in base, and afterwards look if they might
-have been installed in ports. This is only usefull on FreeBSD <= 9.x since
-libc++ is shipped in 10 by default. No path to the library of libc++ is
-provided. The port wanting to use libc++ need to provide its own LDFLAGS.
-
---- tools/clang/lib/Frontend/InitHeaderSearch.cpp.orig 2013-06-21 20:35:23.000000000 +0200
-+++ tools/clang/lib/Frontend/InitHeaderSearch.cpp 2013-06-21 20:41:38.000000000 +0200
-@@ -486,6 +486,7 @@ void InitHeaderSearch::AddDefaultInclude
- AddPath("/usr/include/c++/v1/support/solaris", CXXSystem, false);
-
- AddPath("/usr/include/c++/v1", CXXSystem, false);
-+ AddPath("/usr/local/include/c++/v1", CXXSystem, false);
- } else {
- AddDefaultCPlusPlusIncludePaths(triple, HSOpts);
- }
diff --git a/lang/clang33/files/patch-tools_clang_lib_Headers_Makefile b/lang/clang33/files/patch-tools_clang_lib_Headers_Makefile
deleted file mode 100644
index 5431a5c9a193..000000000000
--- a/lang/clang33/files/patch-tools_clang_lib_Headers_Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- tools/clang/lib/Headers/Makefile.orig
-+++ tools/clang/lib/Headers/Makefile
-@@ -19,7 +19,7 @@
-
- HeaderDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/lib/clang/$(CLANG_VERSION)/include
-
--HEADERS := $(notdir $(wildcard $(PROJ_SRC_DIR)/*.h))
-+HEADERS := $(notdir $(wildcard $(PROJ_SRC_DIR)/*intrin*.h) altivec.h cpuid.h mm3dnow.h mm_malloc.h unwind.h)
-
- OBJHEADERS := $(addprefix $(HeaderDir)/, $(HEADERS))
-
diff --git a/lang/clang33/files/patch-tools_clang_lib_Sema_SemaChecking.cpp b/lang/clang33/files/patch-tools_clang_lib_Sema_SemaChecking.cpp
deleted file mode 100644
index 5c154c67bf57..000000000000
--- a/lang/clang33/files/patch-tools_clang_lib_Sema_SemaChecking.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
---- tools/clang/lib/Sema/SemaChecking.cpp.orig
-+++ tools/clang/lib/Sema/SemaChecking.cpp
-@@ -1511,6 +1511,39 @@
- CoveredArgs.set(argIndex);
- }
-
-+ // FreeBSD extensions
-+ if (CS.getKind() == ConversionSpecifier::bArg || CS.getKind() == ConversionSpecifier::DArg) {
-+ // claim the second argument
-+ CoveredArgs.set(argIndex + 1);
-+
-+ // Now type check the data expression that matches the
-+ // format specifier.
-+ const Expr *Ex = getDataArg(argIndex);
-+ QualType type = (CS.getKind() == ConversionSpecifier::bArg) ? S.Context.IntTy : S.Context.getPointerType(S.Context.UnsignedCharTy);
-+ //const analyze_printf::ArgType &ATR = S.Context.IntTy;
-+ const analyze_printf::ArgType &ATR = type;
-+ if (ATR.isValid() && !ATR.matchesType(S.Context, Ex->getType()))
-+ S.Diag(getLocationOfByte(CS.getStart()),
-+ diag::warn_printf_conversion_argument_type_mismatch)
-+ << ATR.getRepresentativeType(S.Context) << Ex->getType()
-+ << getSpecifierRange(startSpecifier, specifierLen)
-+ << Ex->getSourceRange();
-+
-+ // Now type check the data expression that matches the
-+ // format specifier.
-+ Ex = getDataArg(argIndex + 1);
-+ const analyze_printf::ArgType &ATR2 = ArgType::CStrTy;
-+ if (ATR2.isValid() && !ATR2.matchesType(S.Context, Ex->getType()))
-+ S.Diag(getLocationOfByte(CS.getStart()),
-+ diag::warn_printf_conversion_argument_type_mismatch)
-+ << ATR2.getRepresentativeType(S.Context) << Ex->getType()
-+ << getSpecifierRange(startSpecifier, specifierLen)
-+ << Ex->getSourceRange();
-+
-+ return true;
-+ }
-+ // END OF FREEBSD EXTENSIONS
-+
- // Check for using an Objective-C specific conversion specifier
- // in a non-ObjC literal.
- if (!IsObjCLiteral && CS.isObjCArg()) {
diff --git a/lang/clang33/files/patch-tools_clang_tools_scan-build_ccc-analyzer b/lang/clang33/files/patch-tools_clang_tools_scan-build_ccc-analyzer
deleted file mode 100644
index 0801fa5419c2..000000000000
--- a/lang/clang33/files/patch-tools_clang_tools_scan-build_ccc-analyzer
+++ /dev/null
@@ -1,11 +0,0 @@
---- tools/clang/tools/scan-build/ccc-analyzer.orig
-+++ tools/clang/tools/scan-build/ccc-analyzer
-@@ -30,7 +30,7 @@
- my $DefaultCCompiler;
- my $DefaultCXXCompiler;
-
--if (`uname -a` =~ m/Darwin/) {
-+if (`uname -a` =~ m/(Darwin|FreeBSD)/) {
- $DefaultCCompiler = 'clang';
- $DefaultCXXCompiler = 'clang++';
- } else {
diff --git a/lang/clang33/files/patch-tools_clang_tools_scan-build_scan-build b/lang/clang33/files/patch-tools_clang_tools_scan-build_scan-build
deleted file mode 100644
index 374eefe73b2c..000000000000
--- a/lang/clang33/files/patch-tools_clang_tools_scan-build_scan-build
+++ /dev/null
@@ -1,29 +0,0 @@
---- tools/clang/tools/scan-build/scan-build.orig
-+++ tools/clang/tools/scan-build/scan-build
-@@ -410,7 +410,7 @@
-
- my $Dir = shift;
-
-- my $JS = Cwd::realpath("$RealBin/sorttable.js");
-+ my $JS = Cwd::realpath("%%DATADIR%%/sorttable.js");
-
- DieDiag("Cannot find 'sorttable.js'.\n")
- if (! -r $JS);
-@@ -420,7 +420,7 @@
- DieDiag("Could not copy 'sorttable.js' to '$Dir'.\n")
- if (! -r "$Dir/sorttable.js");
-
-- my $CSS = Cwd::realpath("$RealBin/scanview.css");
-+ my $CSS = Cwd::realpath("%%DATADIR%%/scanview.css");
-
- DieDiag("Cannot find 'scanview.css'.\n")
- if (! -r $CSS);
-@@ -844,7 +844,7 @@
- my $Num = scalar(@Index);
- Diag("$Num bugs found.\n");
- if ($Num > 0 && -r "$Dir/index.html") {
-- Diag("Run 'scan-view $Dir' to examine bug reports.\n");
-+ Diag("Run 'scan-view%%LLVM_SUFFIX%% $Dir' to examine bug reports.\n");
- }
-
- DiagCrashes($Dir) if (scalar @failures || scalar @attributes_ignored);
diff --git a/lang/clang33/files/patch-utils_llvm-build_llvmbuild_main.py b/lang/clang33/files/patch-utils_llvm-build_llvmbuild_main.py
deleted file mode 100644
index 9ba38635e136..000000000000
--- a/lang/clang33/files/patch-utils_llvm-build_llvmbuild_main.py
+++ /dev/null
@@ -1,21 +0,0 @@
---- utils/llvm-build/llvmbuild/main.py.orig
-+++ utils/llvm-build/llvmbuild/main.py
-@@ -660,7 +660,17 @@
-
- # We handle a few special cases of target names here for historical
- # reasons, as these are the names configure currently comes up with.
-- native_target_name = { 'x86' : 'X86',
-+ native_target_name = { 'amd64' : 'X86',
-+ 'arm' : 'ARM',
-+ 'armeb' : 'ARM',
-+ 'armv6' : 'ARM',
-+ 'armv6hf' : 'ARM',
-+ 'i386' : 'X86',
-+ 'mips' : 'Mips',
-+ 'powerpc' : 'PowerPC',
-+ 'powerpc64' : 'PowerPC',
-+ 'sparc64' : 'Sparc',
-+ 'x86' : 'X86',
- 'x86_64' : 'X86',
- 'Unknown' : None }.get(opts.native_target,
- opts.native_target)