[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/10813] New: Compile error: gas/c onfig/tc-arm.c:2489: error: su
From: |
bugs at fun-tech dot se |
Subject: |
[Bug gas/10813] New: Compile error: gas/c onfig/tc-arm.c:2489: error: suggest braces around empty body in an if statement |
Date: |
20 Oct 2009 08:32:06 -0000 |
Hi
I have a compile error that is probably quite easy to fix if you know the code.
The compiler suggests braces around empty body in an if statement,
and that would be this code.
if (frag->tc_frag_data.last_map != NULL)
know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));
frag->tc_frag_data.last_map = symbolP;
Are the missing {} supposed to include the second line as well or only the first
line?
How to reproduce:
wget http://ftp.gnu.org/gnu/binutils/binutils-2.20.tar.bz2
tar -xvjf binutils-2.20.tar.bz2
cd binutils-2.20
mkdir build
cd build
export TOOLPATH=/usr/local/cross-cortex-m3
../configure --target=arm-none-eabi \
--prefix=$TOOLPATH \
--enable-interwork \
--enable-multilib \
--with-gnu-as \
--with-gnu-ld \
--disable-nls
make -j4
Thanks
Johan
--
Summary: Compile error: gas/config/tc-arm.c:2489: error: suggest
braces around empty body in an if statement
Product: binutils
Version: 2.20
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: bugs at fun-tech dot se
CC: bug-binutils at gnu dot org
GCC host triplet: Ubuntu 9.10 AMD64
GCC target triplet: Cortex M3 (STM32)
http://sourceware.org/bugzilla/show_bug.cgi?id=10813
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug gas/10813] New: Compile error: gas/c onfig/tc-arm.c:2489: error: suggest braces around empty body in an if statement,
bugs at fun-tech dot se <=