public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/48035] [4.4/4.5 Regression] Mismatch on size of class when initializing hierarchy involving virtual inheritance and empty base classes
Date: Mon, 18 Apr 2011 14:04:00 -0000	[thread overview]
Message-ID: <bug-48035-4-5wBFFVNCCE@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-48035-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48035

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-18 14:02:27 UTC ---
Author: rguenth
Date: Mon Apr 18 14:02:22 2011
New Revision: 172647

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172647
Log:
2011-04-18  Richard Guenther  <rguenther@suse.de>

    Backported from 4.6 branch 
    2011-03-11  Jakub Jelinek  <jakub@redhat.com>

    PR c++/48035
    * init.c (build_zero_init_1): Extracted from build_zero_init.
    Add FIELD_SIZE argument, if non-NULL and field bit_position
    as not smaller than that, don't add that field's initializer.
    Pass DECL_SIZE as last argument to build_zero_init_1
    for DECL_FIELD_IS_BASE fields.
    (build_zero_init): Use build_zero_init_1.

    * g++.dg/inherit/virtual8.C: New test.

    2011-03-05  Zdenek Dvorak  <ook@ucw.cz>

    PR rtl-optimization/47899
    * cfgloopmanip.c (fix_bb_placements): Fix first argument
    to flow_loop_nested_p when moving the loop upward.

    * gcc.dg/pr47899.c: New test.

    2011-03-15  Richard Guenther  <rguenther@suse.de>

    PR middle-end/48031
    * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
    or variable-indexed array accesses when in gimple form.

Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/cfgloopmanip.c
    branches/gcc-4_5-branch/gcc/cp/ChangeLog
    branches/gcc-4_5-branch/gcc/cp/init.c
    branches/gcc-4_5-branch/gcc/fold-const.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


  parent reply	other threads:[~2011-04-18 14:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08 22:14 [Bug c++/48035] New: " scot4spam at yahoo dot com
2011-03-08 22:43 ` [Bug c++/48035] " pinskia at gcc dot gnu.org
2011-03-08 22:46 ` [Bug c++/48035] [4.4/4.5/4.6 Regression] " pinskia at gcc dot gnu.org
2011-03-09 11:45 ` dodji at gcc dot gnu.org
2011-03-09 12:46 ` jakub at gcc dot gnu.org
2011-03-09 14:04 ` jakub at gcc dot gnu.org
2011-03-11 14:47 ` jakub at gcc dot gnu.org
2011-03-11 15:44 ` jakub at gcc dot gnu.org
2011-03-11 15:47 ` [Bug c++/48035] [4.4/4.5 " jakub at gcc dot gnu.org
2011-04-10 10:49 ` rguenth at gcc dot gnu.org
2011-04-11 21:23 ` tschwinge at gcc dot gnu.org
2011-04-16  9:58 ` jakub at gcc dot gnu.org
2011-04-18 14:04 ` rguenth at gcc dot gnu.org [this message]
2011-04-18 14:44 ` [Bug c++/48035] [4.4 " rguenth at gcc dot gnu.org
2011-09-23 22:02 ` paolo.carlini at oracle dot com
2011-10-05  8:11 ` sezeroz at gmail dot com
2011-10-13 18:06 ` jason at gcc dot gnu.org
2011-10-13 18:07 ` jason at gcc dot gnu.org

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=bug-48035-4-5wBFFVNCCE@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).