#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 pulkomandy): I just did. Adding "-fno-builtin-strdup -fno-builtin-strndup" to the C++FLAGS in src/system/libroot/posix/string/Jamfile fixes the problem of badly generating our function. We still risk hitting the problem again if gcc decides to actually use the builtin, so maybe it's better to add this to our global flags. -- Ticket URL: <https://dev.haiku-os.org/ticket/10803#comment:2> Haiku <https://dev.haiku-os.org> Haiku - the operating system.