[gecode-users] question about mult propagator (compiler flags)
Guido Tack
tack at ps.uni-sb.de
Tue Sep 19 15:36:50 CEST 2006
Hi.
> I think the problem I am facing with multiplication isn't in the
> propagator, it is related with gcc optimization flags and function
> inlining.
I've also tried to investigate this, but I can't reproduce the
problem here on my machines. However, it seems we're pushing gcc to
the limit as it comes to inlining. On Intel Macs with Mac OS X, some
set propagators go into infinite loops, and I haven't been able to
figure out yet what goes wrong. Removing -ffast-math didn't have any
positive effect on this, only disabling inlining makes things work.
> Even further, when debug option is turned on from configure all
> works (i think debug option disables compiler optimization and
> function inlining).
Right, in particular it disables inlining and forces the compiler to
put all functions in some object file. I'm not really sure how to
debug this, it's hard to hunt bugs that only appear in non-debug
builds under very special conditions... Often, already putting some
cout statements into the code changes the behaviour. Very weird.
Cheers,
Guido
--
Guido Tack
Programming Systems Lab, Saarland University, Germany
http://www.ps.uni-sb.de/~tack
More information about the gecode-users
mailing list