aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/unix.h11
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fe86f87..78ee470 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-08 Nick Clifton <nickc@redhat.com>
+
+ * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
+ forward slash.
+
2009-07-08 DJ Delorie <dj@redhat.com>
* config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
diff --git a/gcc/config/i386/unix.h b/gcc/config/i386/unix.h
index ae5d31d..aa6c4a3 100644
--- a/gcc/config/i386/unix.h
+++ b/gcc/config/i386/unix.h
@@ -35,9 +35,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
/* Define the syntax of pseudo-ops, labels and comments. */
-/* String containing the assembler's comment-starter. */
-
-#define ASM_COMMENT_START "/"
+/* String containing the assembler's comment-starter.
+ Note the trailing space is necessary in case the character
+ that immediately follows the comment is '*'. If this happens
+ and the space is not there the assembler will interpret this
+ as the start of a C-like slash-star comment and complain when
+ there is no terminator. */
+
+#define ASM_COMMENT_START "/ "
/* Output to assembler file text saying following lines
may contain character constants, extra white space, comments, etc. */