Hi all, I recently moved to using GCC 6.1 and while building a toolchain for arm-none-eabi I got some -Werror=parentheses errors while building gdb. This patch fixes them. I think this is due to the way ALL_OBJSECTIONS is defined (due to using ALL_OBJFILE_OSECTIONS): #define ALL_OBJFILE_OSECTIONS(objfile, osect) \ for (osect = objfile->sections; osect < objfile->sections_end; osect++) \ if (osect->the_bfd_section == NULL) \ { \ /* Nothing. */ \ } \ else so that dangling 'else' probably causes the alarm in GCC. This patch fixes the -Werror errors for me and allows the build to finish successfully. Is this ok to commit? Thanks, Kyrill 2016-04-29 Kyrylo Tkachov * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses warning. (find_pc_mapped_section): Likewise. (list_overlays_command): Likewise.