This patch fixes a runtime crash of the EMC2 on x86_64.
EMC2 crashes the kernel with an invalid-opcode exception inside
of the PM circle code, if compiled with -msse2 on recent GCC4.

This patch removes the -msse2 flag. It's not really needed as an optimization
anyway, because EMC2 is not _that_ computational expensive. CPUs that
support the sse2 flags are way fast enough to run EMC2 without any problems
anyway.

Signed-off-by: Michael Buesch <[email protected]>

---

Thanks to paul_c for suggesting this fix.

Index: emc2-2.2.8/src/Makefile
===================================================================
--- emc2-2.2.8.orig/src/Makefile        2009-03-16 11:56:36.000000000 +0100
+++ emc2-2.2.8/src/Makefile     2009-03-16 11:56:49.000000000 +0100
@@ -552,7 +552,7 @@
        -I$(BASEPWD)/emc/nml_intf -I$(BASEPWD)/emc/kinematics 
-I$(BASEPWD)/emc/motion \
         -DSEQUENTIAL_SUPPORT -DHAL_SUPPORT -DDYNAMIC_PLCSIZE -DRT_SUPPORT
 ifeq ($(RTARCH),x86_64)
-EXTRA_CFLAGS += -msse -msse2
+EXTRA_CFLAGS += -msse
 endif
 
 ifeq "$(USE_STUBS)" "1"

-- 
Greetings, Michael.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to