]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - debian/patches/503-binutils-msp-undef-LEX_DOLLAR.dpatch
Import 2.18.1~cvs20080103-0tinyos1 from old svn repo.
[msp430-binutils.git] / debian / patches / 503-binutils-msp-undef-LEX_DOLLAR.dpatch
diff --git a/debian/patches/503-binutils-msp-undef-LEX_DOLLAR.dpatch b/debian/patches/503-binutils-msp-undef-LEX_DOLLAR.dpatch
new file mode 100755 (executable)
index 0000000..50daa76
--- /dev/null
@@ -0,0 +1,22 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 503-binutils-msp-undef-LEX_DOLLAR.dpatch by  <smckown@stevex2>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Allow LEX_DOLLAR to be used as an identifier in the msp430 architecture
+
+@DPATCH@
+
+diff -urN binutils-2.18.1~cvs20080103.orig/gas/config/tc-msp430.h binutils-2.18.1~cvs20080103/gas/config/tc-msp430.h
+--- binutils-2.18.1~cvs20080103.orig/gas/config/tc-msp430.h    2007-07-03 05:01:04.000000000 -0600
++++ binutils-2.18.1~cvs20080103/gas/config/tc-msp430.h 2008-08-21 13:46:29.000000000 -0600
+@@ -97,8 +97,8 @@
+      example, a value of 2 might print `1234 5678' where a value of 1
+      would print `12 34 56 78'.  The default value is 4.  */
+-#define LEX_DOLLAR 0
+-/* MSP430 port does not use `$' as a logical line separator */
++#undef LEX_DOLLAR
++/* Allow the MSP430 port to use `$' in identifiers */
+ #define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) (P2VAR) = 0
+ /*   An `.lcomm' directive with no explicit alignment parameter will