[Bug libstdc++/8246] Cast increases alignment in __default_alloc_template on Sparcs
john.carter@tait.co.nz
gcc-bugzilla@gcc.gnu.org
Thu Jun 5 01:35:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list