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 22:35:34 UTC

[9/9] 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/97e10475
Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/97e10475
Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/97e10475

Branch: refs/heads/master
Commit: 97e10475a8a0946de0d56ef9edc9c2f649367b50
Parents: 6250d50
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 22:32:10 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/97e10475/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());