This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Outdated stuff in gcc.texi


> Loop unrolling and exceptions still don't mix.

I was surprised by that statement, so I did some experimentation.
Compiling

struct A{
  ~A();
};

int foo();

int main()
{
  for(int i=0;i<4;i++){
    A a;
    foo();
  }
}

with -O2 -funroll-loops indeed generates duplicate assembler labels on
i586-pc-linux-gnu, due to gcc recycling the assembler labels for the
exception cleanup regions when unrolling.

Regards,
Martin

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