#! /bin/sh /usr/share/dpatch/dpatch-run ## 002-mspgcc-3.2.3-20080819-FUNCTION.dpatch by pkgs@titaniummirror.com> ## ## 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;