aboutsummaryrefslogtreecommitdiff
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
commit2a67688880dc1a9cbb6308c22ea6e62ff4c51297 (patch)
treec63c926151d8c1fbd573b9f824e853d21fb2708a /gas/app.c
parenta00a1f35e162a3eb8294f994c36fce1b470e106c (diff)
downloadfsf-binutils-gdb-2a67688880dc1a9cbb6308c22ea6e62ff4c51297.zip
fsf-binutils-gdb-2a67688880dc1a9cbb6308c22ea6e62ff4c51297.tar.gz
fsf-binutils-gdb-2a67688880dc1a9cbb6308c22ea6e62ff4c51297.tar.bz2
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 d230859..aa18004 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);