diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-13 06:54:54 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-13 06:54:54 +0000 |
commit | 4289fc47ac0887f6585ffb4e20358057b5728b0c (patch) | |
tree | 6cbad2a7fea3f837e9b192843516e7ffceaa5290 /gcc/mips-tfile.c | |
parent | 02b8280916dd8a31edfe281dfffe42d183c776bc (diff) | |
download | gcc-4289fc47ac0887f6585ffb4e20358057b5728b0c.tar.gz |
2009-01-13 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r143328
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@143329 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tfile.c')
-rw-r--r-- | gcc/mips-tfile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 87b278ab4d6..b984f47cb3f 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -2855,7 +2855,8 @@ parse_def (const char *name_start) { int ch2; arg_number = strtol (arg_start, (char **) &arg_end_p1, 0); - if (arg_end_p1 != arg_start || ((ch2 = *arg_end_p1) != ';') || ch2 != ',') + /* It's only a number if followed by ';' or ','. */ + if (arg_end_p1 != arg_start && (((ch2 = *arg_end_p1) == ';') || ch2 == ',')) arg_was_number++; } @@ -2911,7 +2912,7 @@ parse_def (const char *name_start) { int ch2; arg_number = strtol (arg_start, (char **) &arg_end_p1, 0); - if (arg_end_p1 != arg_start || ((ch2 = *arg_end_p1) != ';') || ch2 != ',') + if (arg_end_p1 != arg_start && (((ch2 = *arg_end_p1) == ';') || ch2 == ',')) arg_was_number++; if (t_ptr == &temp_array[0]) @@ -2985,7 +2986,7 @@ parse_def (const char *name_start) { int ch2; arg_number = strtol (arg_start, (char **) &arg_end_p1, 0); - if (arg_end_p1 != arg_start || ((ch2 = *arg_end_p1) != ';') || ch2 != ',') + if (arg_end_p1 != arg_start && (((ch2 = *arg_end_p1) == ';') || ch2 == ',')) arg_was_number++; if (t_ptr == &temp_array[0]) |