public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/49394] New: [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions
@ 2011-06-13 19:19 zsojka at seznam dot cz
  2011-06-14 12:45 ` [Bug middle-end/49394] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2011-06-13 19:19 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.7 Regression]
                    libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc
                    FAILs with -fipa-pta -fnon-call-exceptions
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
                CC: rguenth@gcc.gnu.org
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 24511
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24511
reduced testcase (from libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc)

Output:
$ g++ -O -fipa-pta -fnon-call-exceptions testcase.C
$ gdb ./a.out
(gdb) r
Starting program: /home/smatz/gcc-bug/951/a.out 
terminate called after throwing an instance of 'int'

Program received signal SIGABRT, Aborted.
0x00007ffff72e1a05 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff72e1a05 in raise () from /lib64/libc.so.6
#1  0x00007ffff72e308f in abort () from /lib64/libc.so.6
#2  0x00007ffff7b95fd5 in __gnu_cxx::__verbose_terminate_handler() () from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libstdc++.so.6
#3  0x00007ffff7b94406 in ?? () from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libstdc++.so.6
#4  0x00007ffff7b94433 in std::terminate() () from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libstdc++.so.6
#5  0x00007ffff7b9451e in __cxa_throw () from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libstdc++.so.6
#6  0x00000000004007bf in ~Mutex () at testcase.C:7
#7  main () at testcase.C:36

Tested revisions:
r174979 - fail
r173150 - OK
4.6.0 - OK


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

* [Bug middle-end/49394] [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions
  2011-06-13 19:19 [Bug middle-end/49394] New: [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions zsojka at seznam dot cz
@ 2011-06-14 12:45 ` rguenth at gcc dot gnu.org
  2011-06-27 16:48 ` rguenth at gcc dot gnu.org
  2011-06-27 16:49 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-14 12:45 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-14 12:45:43 UTC ---
Maybe related to the g++.dg/torture/pr43879-1_1.C FAIL.  Fix for that:

Index: tree-ssa-structalias.c
===================================================================
--- tree-ssa-structalias.c      (revision 175011)
+++ tree-ssa-structalias.c      (working copy)
@@ -3925,8 +3925,14 @@ handle_pure_call (gimple stmt, VEC(ce_s,
 static varinfo_t
 get_fi_for_callee (gimple call)
 {
-  tree decl, fn = gimple_call_fn (call);
+  tree decl, fn;
+  struct cgraph_edge *e;

+  e = cgraph_edge (cgraph_get_node (cfun->decl), call);
+  if (e && e->callee && e->callee->decl)
+    return get_vi_for_tree (e->callee->decl);
+
+  fn = gimple_call_fn (call);
   if (fn && TREE_CODE (fn) == OBJ_TYPE_REF)
     fn = OBJ_TYPE_REF_EXPR (fn);


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

* [Bug middle-end/49394] [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions
  2011-06-13 19:19 [Bug middle-end/49394] New: [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions zsojka at seznam dot cz
  2011-06-14 12:45 ` [Bug middle-end/49394] " rguenth at gcc dot gnu.org
@ 2011-06-27 16:48 ` rguenth at gcc dot gnu.org
  2011-06-27 16:49 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-27 16:48 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-27 14:32:23 UTC ---
Fixed.


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

* [Bug middle-end/49394] [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions
  2011-06-13 19:19 [Bug middle-end/49394] New: [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions zsojka at seznam dot cz
  2011-06-14 12:45 ` [Bug middle-end/49394] " rguenth at gcc dot gnu.org
  2011-06-27 16:48 ` rguenth at gcc dot gnu.org
@ 2011-06-27 16:49 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-27 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-27 14:32:04 UTC ---
Author: rguenth
Date: Mon Jun 27 14:32:00 2011
New Revision: 175532

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

    PR tree-optimization/49394
    * passes.c (execute_one_pass): Restore current_pass after
    applying IPA transforms.

    * g++.dg/torture/pr49394.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr49394.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/passes.c
    trunk/gcc/testsuite/ChangeLog


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

end of thread, other threads:[~2011-06-27 16:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-13 19:19 [Bug middle-end/49394] New: [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions zsojka at seznam dot cz
2011-06-14 12:45 ` [Bug middle-end/49394] " rguenth at gcc dot gnu.org
2011-06-27 16:48 ` rguenth at gcc dot gnu.org
2011-06-27 16:49 ` rguenth at gcc dot gnu.org

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