# HG changeset patch # User Brett Gordon # Date 1502851720 21600 # Node ID f18cc0c87a7e364fed1d2a15f85995c5f8856a85 # Parent c84dd12653761553ed921e2f4bd20013835000d9 Make 32 bit compares work better in gcc6809. A patch to the gcc patch in lwtools. This makes 32 bit compares work a bit better. diff -r c84dd1265376 -r f18cc0c87a7e extra/gcc6809lw-4.6.4-6.patch --- a/extra/gcc6809lw-4.6.4-6.patch Sun Apr 09 00:15:25 2017 -0600 +++ b/extra/gcc6809lw-4.6.4-6.patch Tue Aug 15 20:48:40 2017 -0600 @@ -763,7 +763,7 @@ diff -urN gcc-4.6.4-clean/gcc/config/m6809/m6809.c gcc-4.6.4/gcc/config/m6809/m6809.c --- gcc-4.6.4-clean/gcc/config/m6809/m6809.c 1969-12-31 17:00:00.000000000 -0700 +++ gcc-4.6.4/gcc/config/m6809/m6809.c 2015-07-20 22:11:37.726714746 -0600 -@@ -0,0 +1,3023 @@ +@@ -0,0 +1,3025 @@ +/*------------------------------------------------------------------- + FILE: m6809.c +-------------------------------------------------------------------*/ @@ -1257,6 +1257,7 @@ + if (REG_P (SET_DEST (exp)) && src_code == MEM) { + cc_status.value1 = SET_SRC (exp); + cc_status.value2 = SET_DEST (exp); ++ cc_status.flags |= CC_NO_OVERFLOW; + return; + } + @@ -1264,6 +1265,7 @@ + if (dst_code == MEM && REG_P (SET_SRC (exp))) { + cc_status.value1 = SET_SRC (exp); + cc_status.value2 = SET_DEST (exp); ++ cc_status.flags |= CC_NO_OVERFLOW; + return; + } +