On May 21, 2010, on Linux/ia32, I got cc1plus: warnings being treated as errors /net/gnu-6/export/linux/src/binutils/binutils/gold/arm.cc: In member function \u2018bool<unnamed>::Arm_input_section<big_endian>::do_output_offset(const gold::Relobj*, unsigned int, gold::section_offset_type, gold::section_offset_type*) const [with bool big_endian = true]\u2019: /net/gnu-6/export/linux/src/binutils/binutils/gold/arm.cc:10996: instantiated from here /net/gnu-6/export/linux/src/binutils/binutils/gold/arm.cc:1202: warning: comparison between signed and unsigned integer expressions /net/gnu-6/export/linux/src/binutils/binutils/gold/arm.cc: In member function \u2018bool<unnamed>::Arm_input_section<big_endian>::do_output_offset(const gold::Relobj*, unsigned int, gold::section_offset_type, gold::section_offset_type*) const [with bool big_endian = false]\u2019: /net/gnu-6/export/linux/src/binutils/binutils/gold/arm.cc:10996: instantiated from here /net/gnu-6/export/linux/src/binutils/binutils/gold/arm.cc:1202: warning: comparison between signed and unsigned integer expressions make[6]: *** [arm.o] Error 1
Subject: Bug 11619 CVSROOT: /cvs/src Module name: src Changes by: hjl@sourceware.org 2010-05-22 01:06:50 Modified files: gold : ChangeLog arm.cc Log message: Add a cast to avoid a compilation error. 2010-05-21 Doug Kwan <dougkwan@google.com> PR gold/11619 * arm.cc (Arm_input_section::do_output_offset): Add a cast to avoid a compilation error. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&r1=1.560&r2=1.561 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/arm.cc.diff?cvsroot=src&r1=1.103&r2=1.104
Fixed.