public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/8246: Cast increases alignment in __default_alloc_template on Sparcs
@ 2002-10-16 15:16 john.carter
  0 siblings, 0 replies; only message in thread
From: john.carter @ 2002-10-16 15:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8246
>Category:       libstdc++
>Synopsis:       Cast increases alignment in __default_alloc_template on Sparcs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 16 15:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     john.carter@tait.co.nz
>Release:        Latest in CVS at 17/Oct/2002 (1.24 of bits/stl_alloc.h)
>Organization:
>Environment:
Sparc (non i386)
>Description:
Cast increases alignment problem.

In bits/stl_alloc.h line  364:
       static char*                  _S_start_free;
Should be declared pointer to _Obj, otherwise places such as
line 503:             
  ((_Obj*)_S_start_free) -> _M_free_list_link = *__my_free_list;
whinge (rightly) that cast increases alignment.
>How-To-Repeat:

>Fix:
Change declaration of _S_start_free and then use appropriate member.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-16 22:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-16 15:16 libstdc++/8246: Cast increases alignment in __default_alloc_template on Sparcs john.carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).