2013/1/30 Sergei Gavrikov <sergei.gavri...@gmail.com>:
> [FYI]
>
> An optimized (-O2) default build with entered substitution
> -Dstrcmp=fossil_strcmp fails (SIGSEG) on i686 GNU/Linux
...
>   Program received signal SIGSEGV, Segmentation fault.
...

Thanks! That's fully explainable: When setting -Dstrcmp=fossil_strcmp
before including <string.h>, and strcmp has a decoration that its
arguments are non-null, that is used by the optimizer to remove
the two first if's from the fossil_strcmp function: if its arguments
cannot be NULL, that's a valid optimization....

Should be fixed now, by #undef'fing fossil_strcmp in printf.c

Many Thanks!!!!!

Regards,
       Jan Nijtmans
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to