public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kyrill Tkachov <kyrylo.tkachov@foss.arm.com>
To: "Martin Liška" <mliska@suse.cz>, "GCC Patches" <gcc-patches@gcc.gnu.org>
Cc: jason@redhat.com, Jan Hubicka <hubicka@ucw.cz>
Subject: Re: [wwwdocs] Describe behavior of -flifetime-dse in class constructors
Date: Tue, 16 Feb 2016 14:59:00 -0000	[thread overview]
Message-ID: <56C3393E.9020501@foss.arm.com> (raw)
In-Reply-To: <56C33857.7080007@suse.cz>


On 16/02/16 14:55, Martin Liška wrote:
> Hello.
>
> As I finally hunted issue in Firefox that was responsible for start-up segfault, I would like
> to describe a new behavior of the compiler that emits clobbers to class constructors (w/ -flifetime-dse).
> As also Richi spotted quite similar issue in openjade package, I think it worth for mentioning in porting:
>
> Ok?
> Thanks,
> Martin

  <p>
-Finally, the type and mangling of flexible array members has changed
+Furthermore, the type and mangling of flexible array members has changed
  from previous releases.  While in GCC 5 and prior the type of a flexible
  array member is an array of zero elements (a GCC extension), in GCC 6 it
  is that of an array of an unspecified bound (i.e., <tt>T[]</tt> as opposed
@@ -324,6 +324,50 @@
  <tt>-fabi-version</tt> or <tt>-Wabi</tt> option to disable or warn about.
  </p>
  
+<p>
+Finally, the C++ compiler (with enabled <code>-flifetime-dse</code>)
+has been more aggressive in dead-store elimination in situations where
+a memory store to a location precedes a constructor to the
+memory location. Described situation can be commonly found in programs
+which zero a memory that is eventually passed to a placement new operator:

Minor nit, but I notice we have a different "Finally" point now ;).
Perhaps we shouldn't bother saying "finally" as we keep finding new entries for this list.

Thanks,
Kyrill

  reply	other threads:[~2016-02-16 14:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-16 14:55 Martin Liška
2016-02-16 14:59 ` Kyrill Tkachov [this message]
2016-02-16 16:55 ` Martin Sebor
2016-02-17 14:21   ` Martin Liška
2016-02-17 14:23     ` Jakub Jelinek
2016-02-17 15:01       ` Martin Liška
2016-02-25 10:01         ` Martin Liška
2016-02-25 10:07           ` Markus Trippelsdorf
2016-02-25 10:11             ` Markus Trippelsdorf
2016-06-20 10:30         ` Gerald Pfeifer
2016-06-20 10:34           ` Gerald Pfeifer
2016-02-19  4:52 ` Jan Hubicka
2016-02-25 11:22   ` Martin Liška
2016-02-28 21:43     ` Gerald Pfeifer

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=56C3393E.9020501@foss.arm.com \
    --to=kyrylo.tkachov@foss.arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hubicka@ucw.cz \
    --cc=jason@redhat.com \
    --cc=mliska@suse.cz \
    /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).