diff options
author | Nick Clifton <nickc@redhat.com> | 2013-12-18 11:51:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-12-18 11:51:25 +0000 |
commit | 720fbed62e63f627f297174d6751d5702621568a (patch) | |
tree | 4d1f0675b5abc6a003fe66eb47c6a21c33c6735f /gas | |
parent | b9e95fa2d182d00eefd059e38e3d34ae03d4e2ea (diff) | |
download | gdb-720fbed62e63f627f297174d6751d5702621568a.zip gdb-720fbed62e63f627f297174d6751d5702621568a.tar.gz gdb-720fbed62e63f627f297174d6751d5702621568a.tar.bz2 |
* config/tc-rx.c (rx_include): Rename 'eof' to 'last_char' in
order to avoid conflict with same named variable in MinGW system
header file.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-rx.c | 22 |
2 files changed, 17 insertions, 11 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index bb29b12..c658d73 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2013-12-18 Nick Clifton <nickc@redhat.com> + + * config/tc-rx.c (rx_include): Rename 'eof' to 'last_char' in + order to avoid conflict with same named variable in MinGW system + header file. + 2013-12-13 Nick Clifton <nickc@redhat.com> * config/tc-msp430.c (mcu_types): Add some more 430X mcu names. diff --git a/gas/config/tc-rx.c b/gas/config/tc-rx.c index f15ed93..0e4b7a8 100644 --- a/gas/config/tc-rx.c +++ b/gas/config/tc-rx.c @@ -244,7 +244,7 @@ rx_include (int ignore) char * path; char * filename; char * current_filename; - char * eof; + char * last_char; char * p; char * d; char * f; @@ -263,17 +263,17 @@ rx_include (int ignore) /* Get the filename. Spaces are allowed, NUL characters are not. */ filename = input_line_pointer; - eof = find_end_of_line (filename, FALSE); - input_line_pointer = eof; - - while (eof >= filename && (* eof == ' ' || * eof == '\n')) - -- eof; - end_char = *(++ eof); - * eof = 0; - if (eof == filename) + last_char = find_end_of_line (filename, FALSE); + input_line_pointer = last_char; + + while (last_char >= filename && (* last_char == ' ' || * last_char == '\n')) + -- last_char; + end_char = *(++ last_char); + * last_char = 0; + if (last_char == filename) { as_bad (_("no filename following .INCLUDE pseudo-op")); - * eof = end_char; + * last_char = end_char; return; } @@ -385,7 +385,7 @@ rx_include (int ignore) input_scrub_insert_file (path); } - * eof = end_char; + * last_char = end_char; } static void |