https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33120
Jan-Benedict Glaw <jbg...@lug-owl.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jbg...@lug-owl.de --- Comment #25 from Jan-Benedict Glaw <jbg...@lug-owl.de> --- When building with recent GCCs, this patch produces a warning, see the build log [1] of build #479519 [2]: g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include -I/opt/cfarm/mpc/include -I../../../gcc/gcc/../libdecnumber -I../../../gcc/gcc/../libdecn umber/dpd -I../libdecnumber -I../../../gcc/gcc/../libbacktrace -o darwin.o -MT darwin.o -MMD -MP -MF ./.deps/darwin.TPo ../../../gcc/gcc/config/darwin.c ../../../gcc/gcc/config/darwin.c: In function ‘bool darwin_use_anchors_for_symbol_p(const_rtx)’: ../../../gcc/gcc/config/darwin.c:3016:9: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation] return default_use_anchors_for_symbol_p (symbol); ^~~~~~ ../../../gcc/gcc/config/darwin.c:3012:7: note: ...this ‘if’ clause, but it is not if (sect->common.flags & SECTION_NO_ANCHOR) ^~ cc1plus: all warnings being treated as errors ../../../gcc/gcc/config/t-darwin:22: recipe for target 'darwin.o' failed I suggest the attached patch for reindention and fixing up trailing whitespace. [1] http://toolchain.lug-owl.de/buildbot/deliver_artifact.php?mode=view&id=4390920 [2] http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=479519