Commit e56fa6bb by Michael Meissner Committed by Michael Meissner

Allow linux ppc to bootstrap again

From-SVN: r176631
parent b75d1e21
2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
* config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
avoid warnings when GCC is built with a C++ compiler.
2011-07-22 Martin Jambor <mjambor@suse.cz> 2011-07-22 Martin Jambor <mjambor@suse.cz>
PR lto/49796 PR lto/49796
......
...@@ -21894,17 +21894,18 @@ const char * ...@@ -21894,17 +21894,18 @@ const char *
rs6000_xcoff_strip_dollar (const char *name) rs6000_xcoff_strip_dollar (const char *name)
{ {
char *strip, *p; char *strip, *p;
int len; const char *q;
size_t len;
p = strchr (name, '$'); q = (const char *) strchr (name, '$');
if (p == 0 || p == name) if (q == 0 || q == name)
return name; return name;
len = strlen (name); len = strlen (name);
strip = (char *) alloca (len + 1); strip = XALLOCAVEC (char, len + 1);
strcpy (strip, name); strcpy (strip, name);
p = strchr (strip, '$'); p = strip + (q - name);
while (p) while (p)
{ {
*p = '_'; *p = '_';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment