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 libstdc++/8246] Cast increases alignment in __default_alloc_template on Sparcs


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.


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