diff options
author | Mark Shinwell <shinwell@codesourcery.com> | 2007-05-15 10:06:03 +0000 |
---|---|---|
committer | Mark Shinwell <shinwell@codesourcery.com> | 2007-05-15 10:06:03 +0000 |
commit | 2a67688880dc1a9cbb6308c22ea6e62ff4c51297 (patch) | |
tree | c63c926151d8c1fbd573b9f824e853d21fb2708a /gas/app.c | |
parent | a00a1f35e162a3eb8294f994c36fce1b470e106c (diff) | |
download | binutils-2a67688880dc1a9cbb6308c22ea6e62ff4c51297.tar.gz binutils-2a67688880dc1a9cbb6308c22ea6e62ff4c51297.tar.bz2 binutils-2a67688880dc1a9cbb6308c22ea6e62ff4c51297.zip |
gas/
* app.c (do_scrub_chars): Don't damage \@ pseudo-variables.
gas/testsuite/
* gas/arm/backslash-at.d: New.
* gas/arm/backslash-at.s: New.
Diffstat (limited to 'gas/app.c')
-rw-r--r-- | gas/app.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gas/app.c b/gas/app.c index d2308596dc4..aa180044e7c 100644 --- a/gas/app.c +++ b/gas/app.c @@ -1219,6 +1219,15 @@ do_scrub_chars (int (*get) (char *, int), char *tostart, int tolen) if ((symver_state != NULL) && (*symver_state == 0)) goto de_fault; #endif + +#ifdef TC_ARM + /* For the ARM, care is needed not to damage occurrences of \@ + by stripping the @ onwards. Yuck. */ + if (to > tostart && *(to - 1) == '\\') + /* Do not treat the @ as a start-of-comment. */ + goto de_fault; +#endif + #ifdef WARN_COMMENTS if (!found_comment) as_where (&found_comment_file, &found_comment); |