From 9a498d0529af056c0a7d59c09227818f3e7de4c6 Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Mon, 1 Sep 2003 21:38:35 +0000 Subject: [PATCH] the work-around for gcc miscompilations on k6* git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1276 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- architecture/x86/gcc-options | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/architecture/x86/gcc-options b/architecture/x86/gcc-options index 61da7ebc8..72ed48d14 100644 --- a/architecture/x86/gcc-options +++ b/architecture/x86/gcc-options @@ -5,6 +5,11 @@ case "$ROCKCFG_X86_OPT" in var_append GCC3_WRAPPER_INSERT " " "-march=k62" ;; via-c3-2) var_append GCC3_WRAPPER_INSERT " " "-march=pentium-mmx" ;; + k6*) + var_append GCC3_WRAPPER_INSERT " " "-march=$ROCKCFG_X86_OPT" + # work-around and shoudl be removed when gcc 3.x got fixed ... + var_append GCC3_WRAPPER_INSERT " " "-fno-branch-count-reg" + ;; *) var_append GCC3_WRAPPER_INSERT " " "-march=$ROCKCFG_X86_OPT" ;; esac