CVS: packaging/patches gcc-3.2.3-__FUNCTION__.patch,NONE,1.1
Chris Liechti <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/packaging/patches
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29378/packaging/patches
Added Files:
gcc-3.2.3-__FUNCTION__.patch
Log Message:
added patch from Grant Edwards: get rid of __FUNCTION__ deprecation warnings
--- NEW FILE: gcc-3.2.3-__FUNCTION__.patch ---
--- 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;
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642