Commit 35364692 by Richard Kenner

(do_spec_1, case 'P'): Don't add underscores to macros starting with

'_[A-Z]'.

From-SVN: r7626
parent b812f401
......@@ -3372,7 +3372,8 @@ do_spec_1 (spec, inswitch, soft_matched_part)
*x++ = *y++;
*x++ = *y++;
if (strncmp (y, "__", 2))
if (*y != '_'
|| (*(y+1) != '_' && ! isupper (*(y+1))))
{
/* Stick __ at front of macro name. */
*x++ = '_';
......@@ -3413,7 +3414,8 @@ do_spec_1 (spec, inswitch, soft_matched_part)
{
y += 2;
if (strncmp (y, "__", 2))
if (*y != '_'
|| (*(y+1) != '_' && ! isupper (*(y+1))))
{
/* Stick -D__ at front of macro name. */
*x++ = '-';
......
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