This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

CVS 2.20 ARM build error


Hi,

2.20 doesn't build for arm with GCC's head

cc1: warnings being treated as errors
/users/joel/test-gcc/binutils-2.20/gas/config/tc-arm.c: In function ‘make_mapping_symbol’:
/users/joel/test-gcc/binutils-2.20/gas/config/tc-arm.c:2489:77: error: suggest braces around empty body in an ‘if’ statement


I added braces and gcc was happy.

if (frag->tc_frag_data.last_map != NULL) {
know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));
}

The same code is at 2496 on the head. So it will need
braces also.

I haven't built all targets yet but it looks like gcc
is getting pickier. It might be worth thinking of
a 2.20.1 to pick up any bug fixes and address build
issues introduced by gcc 4.5. It is not a pressing
need today but something to keep in mind when 4.5
gets closer.

--joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]