public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] [Annotalysis] Fix ICE caused by ipa-sra optimization.
@ 2011-11-02 20:52 Delesley Hutchins
  2011-11-03 15:59 ` Diego Novillo
  2011-11-03 16:24 ` Delesley Hutchins
  0 siblings, 2 replies; 11+ messages in thread
From: Delesley Hutchins @ 2011-11-02 20:52 UTC (permalink / raw)
  To: gcc-patches, Ollie Wild, Diego Novillo

This patch fixes an ICE caused when the ipa-sra optimization deletes
function arguments that are referenced from within a thread safety
attribute.  It will attempt to detect this situation and recover
gracefully.  Since a graceful recovery is not always possible, an
optional warning (-Wwarn-thread-optimization) can be turned on to
inform the user that certain attributes have been removed by
optimization.
Bootstrapped and passed gcc regression testsuite on
x86_64-unknown-linux-gnu.  Okay for google/gcc-4_6?
 -DeLesley
Changelog.google-4_6:2011-11-02  DeLesley Hutchins  <delesley@google.com>
   * tree-threadsafe-analyze.c:     Ignores invalid attributes, issues
a warning, recovers gracefully.   * common.opt:       Adds new thread
safety warning.
testsuite/Changelog.google-4_6:2011-11-02  DeLesley Hutchins
<delesley@google.com>
   * g++.dg/thread-ann/thread_annot_lock-82.C:     Expanded regression test
-- DeLesley Hutchins | Software Engineer | delesley@google.com | 505-206-0315

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-11-11 10:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-02 20:52 [PATCH] [Annotalysis] Fix ICE caused by ipa-sra optimization Delesley Hutchins
2011-11-03 15:59 ` Diego Novillo
2011-11-03 16:24 ` Delesley Hutchins
2011-11-03 16:27   ` Diego Novillo
2011-11-03 16:53     ` Delesley Hutchins
2011-11-03 18:13       ` Diego Novillo
2011-11-03 19:42         ` Delesley Hutchins
2011-11-03 20:00           ` Diego Novillo
2011-11-04 10:56   ` Martin Jambor
2011-11-04 15:26     ` Delesley Hutchins
2011-11-11 15:25       ` Martin Jambor

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