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: 4 Jun 2003 22:13:38 -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-04 22:13 -------
You can't really generate a test case for it.
The -Wcast-align is a bit like -Wuninitialized. You need a super magical proof
engine to decide whether a cast align problem really is a problem or not. I
suspect (can't prove) that this cast align warning simply isn't a real problem.
I believe the programmer has in fact done the right thing, the compiler is just
warning that he is performing a possibly incorrect operation here.
Partly the right answer is to ignore the problem, except being in a template
library it produces such a flood of warnings as to render the warning useless.
I suspect if you go forth bravely and fix and compile and fix starting from my
suggestion of changing the type of _S_start_free, you will eventually converge.
Given the fairly good coverage of test cases it shouldn't break anything else.
Port the changes back to linux-x*86 and use valgrind to double check.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.