You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2014/08/19 20:11:33 UTC

[4/8] git commit: Strict aliasing flags for Sun C

Strict aliasing flags for Sun C


Project: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/commit/ae817361
Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/ae817361
Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/ae817361

Branch: refs/heads/solaris_fixes
Commit: ae81736126d43f4c34c389e3cda065302cbac906
Parents: ae2c05a
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Tue Aug 19 17:23:11 2014 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Tue Aug 19 20:02:11 2014 +0200

----------------------------------------------------------------------
 src/Charmonizer/Core/CFlags.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/ae817361/src/Charmonizer/Core/CFlags.c
----------------------------------------------------------------------
diff --git a/src/Charmonizer/Core/CFlags.c b/src/Charmonizer/Core/CFlags.c
index cffecc3..6bd628f 100644
--- a/src/Charmonizer/Core/CFlags.c
+++ b/src/Charmonizer/Core/CFlags.c
@@ -171,6 +171,9 @@ chaz_CFlags_disable_strict_aliasing(chaz_CFlags *flags) {
     else if (flags->style == CHAZ_CFLAGS_STYLE_GNU) {
         chaz_CFlags_append(flags, "-fno-strict-aliasing");
     }
+    else if (flags->style == CHAZ_CFLAGS_STYLE_SUN_C) {
+        chaz_CFlags_append(flags, "-xalias_level=any");
+    }
     else {
         chaz_Util_die("Don't know how to disable strict aliasing with '%s'",
                       chaz_CC_get_cc());