public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: john.carter@tait.co.nz
To: gcc-gnats@gcc.gnu.org
Subject: libstdc++/8246: Cast increases alignment in __default_alloc_template on Sparcs
Date: Wed, 16 Oct 2002 15:16:00 -0000	[thread overview]
Message-ID: <20021016220606.11695.qmail@sources.redhat.com> (raw)


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


                 reply	other threads:[~2002-10-16 22:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021016220606.11695.qmail@sources.redhat.com \
    --to=john.carter@tait.co.nz \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).