[Bug c++/15795] No way to teach operator new anything about alignment requirements
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 8 17:43:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-06-08 17:43 -------
I think their argument is that the compiler knows about the alignment
of a type and should make use of this. Now, operator new is
in libstdc++ and presumably calls malloc directly, so that's a little
more complicated (operator new only gets passed a size, no alignment,
so we can't play games with __alignof__), but there may still be ways.
My feeling is that glibc should fix this, not the compiler. For the moment
we seem to be at an impasse, though :-(
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795
More information about the Gcc-bugs
mailing list