inline-asm/10870: Problems with # as comment character in asm code

bero@arklinux.org bero@arklinux.org
Mon May 19 20:12:00 GMT 2003


>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:



More information about the Gcc-bugs mailing list