This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/8246] Cast increases alignment in __default_alloc_template on Sparcs
- From: "john dot carter at tait dot co dot nz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2003 01:35:31 -0000
- Subject: [Bug libstdc++/8246] Cast increases alignment in __default_alloc_template on Sparcs
- References: <20021016151600.8246.john.carter@tait.co.nz>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8246
------- Additional Comments From john.carter@tait.co.nz 2003-06-05 01:35 -------
Subject: Re: Cast increases alignment in
__default_alloc_template on Sparcs
On Thu, 2003-06-05 at 13:09, bkoz@gcc.gnu.org wrote:
> * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
> Cast via void* to avoid -Wcast-align warnings.
> (__default_alloc_template::_S_refill): Likewise.
Casting via void is rather evil. I would prefer to see a solution based
on changing the type of _S_start_free to _Obj *, or using a union type
consisting of _Obj and char.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.