bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/10012] New: Cross assembler chokes on parenthesized division


From: oremanj at rwcr dot net
Subject: [Bug gas/10012] New: Cross assembler chokes on parenthesized division
Date: 30 Mar 2009 05:05:49 -0000

While trying to get gPXE to compile on OS X, using a binutils 2.19 i386-elf
cross toolchain, I ran into a very strange error with the assembler.
Specifically, if it comes across division within parentheses, in a
.equ/.byte/.word/.long expression or an immediate operand, it loses track of the
right parenthesis and reports an error.

Simple test case:

<pre>
$ echo '.equ a, (4/2)' | i386-elf-as
{standard input}: Assembler messages:
{standard input}:1: Error: missing ')'
</pre>

This behavior appears on unmodified binutils versions 2.18, 2.19, and 2.19.1. A
native Linux binutils 2.18 does not show the behavior.

-- 
           Summary: Cross assembler chokes on parenthesized division
           Product: binutils
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: oremanj at rwcr dot net
                CC: bug-binutils at gnu dot org
 GCC build triplet: i386-apple-darwin9.6.0
  GCC host triplet: i386-apple-darwin9.6.0
GCC target triplet: i386-elf


http://sourceware.org/bugzilla/show_bug.cgi?id=10012

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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