This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15795] No way to teach operator new anything about alignment requirements


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]