diff options
author | Jason Eckhardt <jle@rice.edu> | 2003-08-07 19:20:45 +0000 |
---|---|---|
committer | Jason Eckhardt <jle@rice.edu> | 2003-08-07 19:20:45 +0000 |
commit | 826815046427b3e5ee3b832fb48b8344d820747a (patch) | |
tree | fc03fb1f3a4b1523a00e2f6f20c0b46c0f1b07ce /gas/config/tc-i860.c | |
parent | 6d6b89fc411bf32575d52b27a74d3b92c5de4228 (diff) | |
download | binutils-redhat-826815046427b3e5ee3b832fb48b8344d820747a.tar.gz |
2003-08-07 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c (i860_check_label): New function.
* config/tc-i860.h (i860_check_label): New prototype.
(tc_check_label): Define macro as i860_check_label.
Diffstat (limited to 'gas/config/tc-i860.c')
-rw-r--r-- | gas/config/tc-i860.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gas/config/tc-i860.c b/gas/config/tc-i860.c index f5e44574f3..8ee4c074df 100644 --- a/gas/config/tc-i860.c +++ b/gas/config/tc-i860.c @@ -1527,3 +1527,19 @@ i860_handle_align (fragS *fragp) fragp->fr_var = 4; } +/* This is called after a user-defined label is seen. We check + if the label has a double colon (valid in Intel syntax mode only), + in which case it should be externalized. */ + +void +i860_check_label (symbolS *labelsym) +{ + /* At this point, the current line pointer is sitting on the character + just after the first colon on the label. */ + if (target_intel_syntax && *input_line_pointer == ':') + { + S_SET_EXTERNAL (labelsym); + input_line_pointer++; + } +} + |