[haiku-development] Re: Aw: Re: hrev45320: Yet another non-obvious effect of -ftree-vrp "optimization"

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 14 Mar 2013 20:57:31 +0100

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.


Other related posts: