summaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorMark Shinwell <shinwell@codesourcery.com>2007-05-15 10:06:03 +0000
committerMark Shinwell <shinwell@codesourcery.com>2007-05-15 10:06:03 +0000
commit2b54324e92a3cd48558d5e9b07dd068e38247718 (patch)
treeadb6a39e0a4a6c742a11fbf01525958d0858ec95 /gas/app.c
parent085b56678edd97e9fe9c2dbe48a0acf880ee8002 (diff)
downloadbinutils-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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gas/app.c b/gas/app.c
index d2308596dc..aa180044e7 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);