Hi,

I already sent this patch some weeks ago and I think it was
applied to 2.3 branch (which was trunk back then).
But today I noticed that the -msse2 was re-added to the Makefiles
and thus the crashes on circular moves came back.

So here's the patch for 2.3-branch (I didn't check trunk, but it
may also need this) which fixes a hard machine crash due to
invalid opcodes.

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

---

Index: 2.3-branch/src/Makefile
===================================================================
--- 2.3-branch.orig/src/Makefile        2009-05-02 16:35:44.000000000 +0200
+++ 2.3-branch/src/Makefile     2009-05-02 16:36:30.000000000 +0200
@@ -557,7 +557,7 @@
        -I$(BASEPWD)/emc/nml_intf -I$(BASEPWD)/emc/kinematics 
-I$(BASEPWD)/emc/motion \
         -DSEQUENTIAL_SUPPORT -DHAL_SUPPORT -DDYNAMIC_PLCSIZE -DRT_SUPPORT 
-DOLD_TIMERS_MONOS_SUPPORT -DMODBUS_IO_MASTER
 ifeq ($(RTARCH),x86_64)
-EXTRA_CFLAGS += -msse -msse2
+EXTRA_CFLAGS += -msse
 endif
 
 ifeq "$(USE_STUBS)" "1"
Index: 2.3-branch/src/Makefile.modinc.in
===================================================================
--- 2.3-branch.orig/src/Makefile.modinc.in      2009-05-02 16:35:44.000000000 
+0200
+++ 2.3-branch/src/Makefile.modinc.in   2009-05-02 16:36:30.000000000 +0200
@@ -39,7 +39,7 @@
 RTFLAGS = @RTFLAGS@ @EXT_RTFLAGS@
 RTFLAGS := -Os -g -I. -...@rtdir@/include $(RTFLAGS) -DRTAPI -D_GNU_SOURCE 
-Drealtime -D_FORTIFY_SOURCE=0
 ifeq ($(RTARCH),x86_64)
-EXTRA_CFLAGS += -msse -msse2
+EXTRA_CFLAGS += -msse
 endif
 USE_RTLIBM = @USE_RTLIBM@
 emc2_ho...@emc2_home@

-- 
Greetings, Michael.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to