This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36159] C++ compiler should issue a warning with missing new operator
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 May 2008 05:00:22 -0000
- Subject: [Bug c++/36159] C++ compiler should issue a warning with missing new operator
- References: <bug-36159-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2008-05-07 05:00 -------
(In reply to comment #4)
> The default new operator is implemented within gcc. It should be
> possible to let g++ know the alignment returned by the new operator.
The default one is but the user can override it as defined by the C++ standard.
Also different OS's return different alignment. Mac OS X (darwin) returns the
16 byte alignment on both PowerPC and x86. While x86 Linux returns 8 byte
aligned memory. PPC LV2 returns 16byte aligned memory. PPC Linux should be
returning 16byte aligned memory for the 128bit long double but from what I
remember or last heard does not.
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36159