https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70922
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
Reproducer:
struct obj_section
{
void *the_bfd_section;
};
int condition;
struct obj_section sections[2];
struct obj_section *sections_end;
#define ALL_OBJFILE_OSECTIONS(objfile, osect) \
for (osect = sections; osect < sections_end; osect++) \
if (osect->the_bfd_section == 0) \
{ \
/* Nothing. */ \
} \
else
int
main ()
{
struct obj_section *osect;
if (condition)
ALL_OBJFILE_OSECTIONS (o, osect)
if (osect == sections_end)
return 0;
return 0;
}