On Mon, Sep 19, 2011 at 03:55:57PM +0100, Colin Watson wrote: > On Thu, Sep 08, 2011 at 06:14:49PM +0100, Colin Watson wrote: > > * Build with -fno-tree-dse, since otherwise GCC >= 4.5 misoptimises > > allocateMoreSlots() (closes: #625756, LP: #749139). > > In fact, as GCC upstream pointed out, a more targeted - and I think more > correct - fix is -fno-builtin-malloc. -fno-tree-dse won't really hurt > much, but it will probably lose out on a bit of optimisation.
Honestly, I don't see why GCC treats malloc as a built-in. Whatever implementation of malloc is provided by the system is the one to use, and I can't see why for the life of me GCC thinks it can do anything better with a built-in function than the system one does. Therefore, unless there's a very compelling reason I haven't thought of, this is a GCC bug; GCC shouldn't treat malloc specially at all. -- brian m. carlson / brian with sandals: Houston, Texas, US +1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
signature.asc
Description: Digital signature