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 | 2b54324e92a3cd48558d5e9b07dd068e38247718 (patch) | |
tree | adb6a39e0a4a6c742a11fbf01525958d0858ec95 /gas/app.c | |
parent | 085b56678edd97e9fe9c2dbe48a0acf880ee8002 (diff) | |
download | binutils-redhat-2b54324e92a3cd48558d5e9b07dd068e38247718.tar.gz |
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
@@ -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); |