On Wed, Nov 13, 2013 at 12:13:48AM +0100, Marek Polacek wrote: > --- gcc/config/bootstrap-ubsan.mk.mp 2013-11-12 13:46:13.345182065 +0100 > +++ gcc/config/bootstrap-ubsan.mk 2013-11-12 13:46:49.812314016 +0100 > @@ -2,6 +2,6 @@ > > STAGE2_CFLAGS += -fsanitize=undefined > STAGE3_CFLAGS += -fsanitize=undefined > -POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lpthread \ > +POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lpthread -ldl \
Hopefully with my pending patch you can remove the -lpthread -ldl again, but ok for now. > + for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) > + { > + gimple stmt = gsi_stmt (gsi); > + > + if (gimple_code (stmt) != GIMPLE_CALL) if (is_gimple_call (stmt)) Ok with those changes. Jakub