public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* inline-asm/10870: Problems with # as comment character in asm code
@ 2003-05-19 18:16 bero
  0 siblings, 0 replies; 2+ messages in thread
From: bero @ 2003-05-19 18:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10870
>Category:       inline-asm
>Synopsis:       Problems with # as comment character in asm code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 19 18:16:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     bero@arklinux.org
>Release:        3.3
>Organization:
>Environment:
Ark Linux 1.0 alpha 8
>Description:
Using gcc foo.S, with foo.S being an assembler file, works,
unless the assembler file includes comments in the style

# foo

with # being the first character in the line (gcc mistakes it as preprocessor directive).

Not 100% sure if this is a bug or an intentional feature removal; used to work in older releases.
>How-To-Repeat:
Compile e.g. syslinux 2.04
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: inline-asm/10870: Problems with # as comment character in asm code
@ 2003-05-19 20:12 neil
  0 siblings, 0 replies; 2+ messages in thread
From: neil @ 2003-05-19 20:12 UTC (permalink / raw)
  To: bero, gcc-bugs, gcc-prs, nobody

Synopsis: Problems with # as comment character in asm code

State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Mon May 19 20:12:14 2003
State-Changed-Why:
    Works for me.  Or you might submit a proper bug report that is more helpful than "it doesn't work" with no testcase.
    
    monkey:neil{1}$ echo '# foo' > /tmp/foo.S
    monkey:neil{2}$ gcc-3.3 -E /tmp/foo.S
    # 1 "/tmp/foo.S"
    # 1 "<built-in>"
    # 1 "<command line>"
    # 1 "/tmp/foo.S"
    # foo

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10870


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-19 20:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-19 18:16 inline-asm/10870: Problems with # as comment character in asm code bero
2003-05-19 20:12 neil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).