diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-06-30 18:21:18 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-06-30 18:21:18 -0400 |
commit | 353646926a7db50095f541f3c33847c617b227bb (patch) | |
tree | 20ffab8a7df34871f741a54fc3ccdd6acfb52c6e /gcc | |
parent | b812f4018c252fc87d4e3d00d01585648449f475 (diff) | |
download | gcc-353646926a7db50095f541f3c33847c617b227bb.zip gcc-353646926a7db50095f541f3c33847c617b227bb.tar.gz gcc-353646926a7db50095f541f3c33847c617b227bb.tar.bz2 |
(do_spec_1, case 'P'): Don't add underscores to macros starting with
'_[A-Z]'.
From-SVN: r7626
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/gcc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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++ = '-'; |