projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63d5952
)
(expand_call): Discard __ prefix like _ or __x.
author
Richard Stallman
<rms@gnu.org>
Fri, 5 Nov 1993 06:41:10 +0000
(06:41 +0000)
committer
Richard Stallman
<rms@gnu.org>
Fri, 5 Nov 1993 06:41:10 +0000
(06:41 +0000)
From-SVN: r6003
gcc/calls.c
patch
|
blob
|
history
diff --git
a/gcc/calls.c
b/gcc/calls.c
index 620c1b13fc3189e14eaa67dcb4c3ceb2e44f6b06..d57c3d8ac974d62b78e9a885b6fc37d9fbfecdb7 100644
(file)
--- a/
gcc/calls.c
+++ b/
gcc/calls.c
@@
-795,8
+795,16
@@
expand_call (exp, target, ignore)
{
char *tname = name;
+ /* Disregard prefix _, __ or __x. */
if (name[0] == '_')
- tname += ((name[1] == '_' && name[2] == 'x') ? 3 : 1);
+ {
+ if (name[1] == '_' && name[2] == 'x')
+ tname += 3;
+ else if (name[1] == '_')
+ tname += 2;
+ else
+ tname += 1;
+ }
if (tname[0] == 's')
{