Am 14/03/2013 18:01, schrieb Pawel Dziepak:
2013/3/14 Ingo Weinhold <ingo_weinhold@xxxxxx>:Or IOW, the feature is just buggy. It would be interesting whether the bug has been fixed in newer gcc versions.I did some tests on a simplified example on GCC 4.7.2. What I found out is that although GCC does not replace strdup() with its builtin version it uses that "builtin information" to perform VRP.[...]
Isn't that just a porting issue?Somewhere GCC stores that information, and it's usually right. Just not on Haiku. IMO one should "simply" update GCC to know that strdup(), free(), etc. accept NULL pointers.
Bye, Axel.