diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2014-12-18 20:46:35 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2014-12-18 20:46:35 +0000 |
commit | c4a1c5d6b6dd1aa9b628bd4f184dddfb2a484469 (patch) | |
tree | 17aade92228ba35c4eb690d289966c1d7377dc53 /lang/clang-devel | |
parent | f81ddd30a47d33159bf5536febd33faa6f96c2f1 (diff) | |
download | ports-c4a1c5d6b6dd1aa9b628bd4f184dddfb2a484469.tar.gz ports-c4a1c5d6b6dd1aa9b628bd4f184dddfb2a484469.zip |
Notes
Diffstat (limited to 'lang/clang-devel')
-rw-r--r-- | lang/clang-devel/distinfo | 8 | ||||
-rw-r--r-- | lang/clang-devel/files/patch-fformat_extensions.diff | 45 |
2 files changed, 49 insertions, 4 deletions
diff --git a/lang/clang-devel/distinfo b/lang/clang-devel/distinfo index dd520f59cefd..d245793929a2 100644 --- a/lang/clang-devel/distinfo +++ b/lang/clang-devel/distinfo @@ -1,4 +1,4 @@ -SHA256 (clang-3.6.r222267.tar.bz2) = 20c4b61b0d14adf051d038349fcbd230fd2978ed58363751497514dbc11a0160 -SIZE (clang-3.6.r222267.tar.bz2) = 9374829 -SHA256 (llvm-3.6.r222267.tar.bz2) = e2d4c12750c5ac3a4617f492841baef62eeca665469990f48925becad20c61e8 -SIZE (llvm-3.6.r222267.tar.bz2) = 14140626 +SHA256 (clang-3.6.r224537.tar.bz2) = 45286670a136ac390a4fc6dcf14c66fb277c2df7967e77e134cd18437ba3a159 +SIZE (clang-3.6.r224537.tar.bz2) = 9410399 +SHA256 (llvm-3.6.r224537.tar.bz2) = 27e9fcd0128dbbf470a55a3728afede0faf1496741439bfb1861be5abee52555 +SIZE (llvm-3.6.r224537.tar.bz2) = 14372233 diff --git a/lang/clang-devel/files/patch-fformat_extensions.diff b/lang/clang-devel/files/patch-fformat_extensions.diff new file mode 100644 index 000000000000..c44a69af565f --- /dev/null +++ b/lang/clang-devel/files/patch-fformat_extensions.diff @@ -0,0 +1,45 @@ +diff -ruN tools/clang/include/clang/Basic/LangOptions.def tools/clang/include/clang/Basic/LangOptions.def +--- tools/clang/include/clang/Basic/LangOptions.def 2014-07-16 07:13:50.000000000 +0400 ++++ tools/clang/include/clang/Basic/LangOptions.def 2014-10-24 21:38:38.000000000 +0400 +@@ -87,6 +87,7 @@ + LANGOPT(RTTIData , 1, 1, "emit run-time type information data") + LANGOPT(MSBitfields , 1, 0, "Microsoft-compatible structure layout") + LANGOPT(Freestanding, 1, 0, "freestanding implementation") ++LANGOPT(FormatExtensions , 1, 0, "FreeBSD format extensions") + LANGOPT(NoBuiltin , 1, 0, "disable builtin functions") + LANGOPT(NoMathBuiltin , 1, 0, "disable math builtin functions") + +diff -ruN tools/clang/include/clang/Driver/Options.td tools/clang/include/clang/Driver/Options.td +--- tools/clang/include/clang/Driver/Options.td 2014-08-07 08:51:51.000000000 +0400 ++++ tools/clang/include/clang/Driver/Options.td 2014-10-24 21:39:23.000000000 +0400 +@@ -563,6 +563,8 @@ + + def ffreestanding : Flag<["-"], "ffreestanding">, Group<f_Group>, Flags<[CC1Option]>, + HelpText<"Assert that the compilation takes place in a freestanding environment">; ++def fformat_extensions: Flag<["-"], "fformat-extensions">, Group<f_Group>, Flags<[CC1Option]>, ++ HelpText<"Enable FreeBSD kernel specific format string extensions">; + def fgnu_keywords : Flag<["-"], "fgnu-keywords">, Group<f_Group>, Flags<[CC1Option]>, + HelpText<"Allow GNU-extension keywords regardless of language standard">; + def fgnu89_inline : Flag<["-"], "fgnu89-inline">, Group<f_Group>, Flags<[CC1Option]>, +diff -ruN tools/clang/lib/Driver/Tools.cpp tools/clang/lib/Driver/Tools.cpp +--- tools/clang/lib/Driver/Tools.cpp 2014-08-07 08:51:51.000000000 +0400 ++++ tools/clang/lib/Driver/Tools.cpp 2014-10-24 21:39:54.000000000 +0400 +@@ -3517,6 +3517,7 @@ + + // Forward -f (flag) options which we can pass directly. + Args.AddLastArg(CmdArgs, options::OPT_femit_all_decls); ++ Args.AddLastArg(CmdArgs, options::OPT_fformat_extensions); + Args.AddLastArg(CmdArgs, options::OPT_fheinous_gnu_extensions); + Args.AddLastArg(CmdArgs, options::OPT_fstandalone_debug); + Args.AddLastArg(CmdArgs, options::OPT_fno_standalone_debug); +diff -ruN tools/clang/lib/Frontend/CompilerInvocation.cpp tools/clang/lib/Frontend/CompilerInvocation.cpp +--- tools/clang/lib/Frontend/CompilerInvocation.cpp 2014-08-07 08:51:51.000000000 +0400 ++++ tools/clang/lib/Frontend/CompilerInvocation.cpp 2014-10-24 21:40:32.000000000 +0400 +@@ -1443,6 +1443,7 @@ + Opts.ShortWChar = Args.hasFlag(OPT_fshort_wchar, OPT_fno_short_wchar, false); + Opts.ShortEnums = Args.hasArg(OPT_fshort_enums); + Opts.Freestanding = Args.hasArg(OPT_ffreestanding); ++ Opts.FormatExtensions = Args.hasArg(OPT_fformat_extensions); + Opts.NoBuiltin = Args.hasArg(OPT_fno_builtin) || Opts.Freestanding; + Opts.NoMathBuiltin = Args.hasArg(OPT_fno_math_builtin); + Opts.AssumeSaneOperatorNew = !Args.hasArg(OPT_fno_assume_sane_operator_new); |