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-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.


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