[haiku-bugs] Re: [Haiku] #10803: gcc wrongly optimizes NULL check in strdup.

  • From: "korli" <trac@xxxxxxxxxxxx>
  • Date: Wed, 30 Apr 2014 12:52:00 -0000

#10803: gcc wrongly optimizes NULL check in strdup.
---------------------------------+----------------------------
   Reporter:  pulkomandy         |      Owner:  axeld
       Type:  bug                |     Status:  new
   Priority:  normal             |  Milestone:  R1
  Component:  System/libroot.so  |    Version:  R1/Development
 Resolution:                     |   Keywords:
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  All
---------------------------------+----------------------------

Comment (by korli):

 Weird, did you actually check the assembler for the missing null check?
 Also did you check that -fno-treevrp is actually used when building
 libroot?
 Dunno it could be an hybrid problem.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10803#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: