[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/13036] cross compiling gas for arm fails using gcc-4.5.2 where
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gas/13036] cross compiling gas for arm fails using gcc-4.5.2 where 4.5.1 worked |
Date: |
Fri, 18 May 2012 10:30:08 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13036
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> 2012-05-18 10:30:08
UTC ---
The code in question is:
---
int base_reg = -1;
int reg_incr = -1;
...
struct neon_typed_alias firsttype;
if (skip_past_char (&ptr, '{') == SUCCESS)
leading_brace = 1;
do
{
struct neon_typed_alias atype;
int getreg = parse_typed_reg_or_scalar (&ptr, rtype, &rtype, &atype);
if (getreg == FAIL)
{
first_error (_(reg_expected_msgs[rtype]));
return FAIL;
}
if (base_reg == -1)
{
base_reg = getreg;
if (rtype == REG_TYPE_NQ)
{
reg_incr = 1;
}
firsttype = atype;
}
else if (reg_incr == -1)
{
reg_incr = getreg - base_reg;
if (reg_incr < 1 || reg_incr > 2)
{
first_error (_(incr_error));
return FAIL;
}
}
else if (getreg != base_reg + reg_incr * count)
{
first_error (_(incr_error));
return FAIL;
}
if (! neon_alias_types_same (&atype, &firsttype))
----
Since base_reg == -1 the first time, firsttype is initialized
to atype. This is a compiler bug and you should report it to
Ubuntu.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug gas/13036] cross compiling gas for arm fails using gcc-4.5.2 where 4.5.1 worked, haitao.feng at intel dot com, 2012/05/16
- [Bug gas/13036] cross compiling gas for arm fails using gcc-4.5.2 where 4.5.1 worked, haitao.feng at intel dot com, 2012/05/16
- [Bug gas/13036] cross compiling gas for arm fails using gcc-4.5.2 where 4.5.1 worked, haitao.feng at intel dot com, 2012/05/16
- [Bug gas/13036] cross compiling gas for arm fails using gcc-4.5.2 where 4.5.1 worked, hjl.tools at gmail dot com, 2012/05/16
- [Bug gas/13036] cross compiling gas for arm fails using gcc-4.5.2 where 4.5.1 worked, haitao.feng at intel dot com, 2012/05/18
- [Bug gas/13036] cross compiling gas for arm fails using gcc-4.5.2 where 4.5.1 worked, haitao.feng at intel dot com, 2012/05/18
- [Bug gas/13036] cross compiling gas for arm fails using gcc-4.5.2 where 4.5.1 worked,
hjl.tools at gmail dot com <=
- [Bug gas/13036] cross compiling gas for arm fails using gcc-4.5.2 where 4.5.1 worked, haitao.feng at intel dot com, 2012/05/20