Bug 3409 - GNU as crashes on bad register syntax
Summary: GNU as crashes on bad register syntax
Status: RESOLVED DUPLICATE of bug 2533
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-23 05:34 UTC by Jason Dagit
Modified: 2006-10-23 17:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Dagit 2006-10-23 05:34:52 UTC
The following bit of (malformed) assembly causes GNU as to crash.

.globl foo
        .type   foo, @function
foo:
        sete    $%al

Here is the error message:
$ as test.s
test.s: Assembler messages:
test.s:4: Internal error, aborting at ../../gas/config/tc-i386.c line 2123 in
optimize_imm
Please report this bug.

$ as --version
GNU assembler 2.17 Debian GNU/Linux
Copyright 2005 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 `x86_64-linux-gnu'.

(BTW, I originally submitted this to the gcc bugzilla and was told to come 
here, I found the wrong bugzilla instance from the gas manual so maybe someone 
should look into that.)
Comment 1 H.J. Lu 2006-10-23 17:26:12 UTC

*** This bug has been marked as a duplicate of 2533 ***