X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=debian%2Fpatches%2F003-mspgcc-3.2.3-20080819-FUNCTION.dpatch;fp=debian%2Fpatches%2F003-mspgcc-3.2.3-20080819-FUNCTION.dpatch;h=1600143e048feea2b93a09468bbe6022d5d8073f;hb=e6ddaf27a8264cdde896aa4f78fcf67cce78e07a;hp=0000000000000000000000000000000000000000;hpb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;p=msp430-gcc.git diff --git a/debian/patches/003-mspgcc-3.2.3-20080819-FUNCTION.dpatch b/debian/patches/003-mspgcc-3.2.3-20080819-FUNCTION.dpatch new file mode 100755 index 00000000..1600143e --- /dev/null +++ b/debian/patches/003-mspgcc-3.2.3-20080819-FUNCTION.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 002-mspgcc-3.2.3-20080819-FUNCTION.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: __FUNCTION__ patch from mspgcc 3.2.3 CVS 20080819 + +@DPATCH@ + +--- gcc-3.2.3.orig/gcc/c-common.c 2002-12-01 12:19:08.000000000 -0600 ++++ gcc-3.2.3/gcc/c-common.c 2006-03-18 22:08:27.000000000 -0600 +@@ -581,18 +581,20 @@ + if (TREE_TYPE (t) == wchar_array_type_node) + { + wide_length += (TREE_STRING_LENGTH (t) - wchar_bytes); + wide_flag = 1; + } + else + { + length += (TREE_STRING_LENGTH (t) - 1); ++#if 0 + if (C_ARTIFICIAL_STRING_P (t) && !in_system_header) + warning ("concatenation of string literals with __FUNCTION__ is deprecated"); ++#endif + } + } + + /* If anything is wide, the non-wides will be converted, + which makes them take more space. */ + if (wide_flag) + length = length * wchar_bytes + wide_length; +