bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gas bug re: c comments


From: Robin . Bishop
Subject: gas bug re: c comments
Date: Fri, 6 Oct 2000 18:39:32 +0100 (BST)

----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 76


Hi,
        I can't believe this is a bug, but the test code supplied will not
        assemble. Therefore I've sent in a bug report.


UTILITY:
as --version
GNU assembler 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i686-pc-linux-gnu'.

PATCHES:
No Patches

MACHINE:
Pc amd duron Linux RedHat 6.1
uname -a
Linux h2pc-13 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 unknown

BUILT WITH:
gcc --version
2.95.2

COMMAND INVOCATION:
as a.s

OUTPUT PRODUCED:
a.s: Assembler messages:
a.s:3: Error: Rest of line ignored. First ignored character is `*'.
a.s:7: Error: Rest of line ignored. First ignored character is `*'.
a.s:10: Error: Rest of line ignored. First ignored character is `*'.
a.s:11: Error: Rest of line ignored. First ignored character is `*'.
a.s:14: Error: Rest of line ignored. First ignored character is `*'.
a.s:15: Error: Rest of line ignored. First ignored character is `*'.
a.s:16: Error: Rest of line ignored. First ignored character is `*'.

COMMENT:
I belive the output is incorrect as it contradicts the gas manual. The input
file 'a.s' has a selection of 'C' comments all of which should be parsed
successfully without error.

gas manual Section
Comments
========

   There are two ways of rendering comments to `as'.  In both cases the
comment is equivalent to one space.

   Anything from `/*' through the next `*/' is a comment.  This means
you may not nest these comments.

     /*
       The only way to include a newline ('\n') in a comment
       is to use this sort of comment.
     */

ExtraNote
I also have a Sun Solaris 7 version of as which successfully parses a.s
Both my binutils were built from the same source files.

as --version
GNU assembler 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `sparc-sun-solaris2.7'.

gcc --version
2.95.2


Thanks in advance
Robin Bishop
----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: a.s
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 16

/* comment 1 */
/* comment 2
 */

/* comment 3

 */

/* comment 4
 *
 */

/* comment 5
 *
 *
 */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]