public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23636] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
@ 2005-08-30 13:43 ` gj at pointblue dot com dot pl
  2005-08-30 13:44 ` gj at pointblue dot com dot pl
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gj at pointblue dot com dot pl @ 2005-08-30 13:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gj at pointblue dot com dot pl  2005-08-30 13:41 -------
Created an attachment (id=9623)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9623&action=view)
offending file, full


-- 


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


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

* [Bug c++/23636] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
  2005-08-30 13:43 ` [Bug c++/23636] " gj at pointblue dot com dot pl
@ 2005-08-30 13:44 ` gj at pointblue dot com dot pl
  2005-08-30 14:29 ` [Bug middle-end/23636] " pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gj at pointblue dot com dot pl @ 2005-08-30 13:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gj at pointblue dot com dot pl  2005-08-30 13:42 -------
Created an attachment (id=9624)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9624&action=view)
offending file, assembler


-- 


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


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

* [Bug c++/23636] New: crashes on ThreadWeaver compilation
@ 2005-08-30 14:01 gj at pointblue dot com dot pl
  2005-08-30 13:43 ` [Bug c++/23636] " gj at pointblue dot com dot pl
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: gj at pointblue dot com dot pl @ 2005-08-30 14:01 UTC (permalink / raw)
  To: gcc-bugs

gj@thinkpaddie:~/kde-sources/kdenonbeta/threadweaver/Weaver$ g++-4.0 -v 
-save-temps -c -pipe -g -D_REENTRANT -Wall -W -fPIC -DQT_CORE_LIB -DQT_GUI_LIB 
-DQT_SHARED -I../../../KDE4/qt-copy/mkspecs/linux-g++ -I. 
-I../../../KDE4/qt-copy/include/QtGui -I../../../KDE4/qt-copy/include/QtCore 
-I../../../KDE4/qt-copy/include -I. -I. -o Job.o Job.cpp 
g++-4.0: warning: -pipe ignored because -save-temps specified 
Using built-in specs. 
Target: i686-pc-linux-gnu 
Configured with: ../gcc/configure --prefix=/usr/local/gcc4.0 
--with-system-zlib --disable-multilib --enable-languages=c,c++ 
Thread model: posix 
gcc version 4.0.2 20050830 (prerelease) 
 /usr/local/gcc4.0/libexec/gcc/i686-pc-linux-gnu/4.0.2/cc1plus -E -quiet -v 
-I../../../KDE4/qt-copy/mkspecs/linux-g++ -I. 
-I../../../KDE4/qt-copy/include/QtGui -I../../../KDE4/qt-copy/include/QtCore 
-I../../../KDE4/qt-copy/include -I. -I. -D_GNU_SOURCE -D_REENTRANT 
-DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED Job.cpp -mtune=pentiumpro -Wall -W 
-fPIC -fworking-directory -fpch-preprocess -o Job.ii 
ignoring nonexistent directory 
"/usr/local/gcc4.0/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../i686-pc-linux-gnu/include" 
ignoring duplicate directory "." 
ignoring duplicate directory "." 
#include "..." search starts here: 
#include <...> search starts here: 
 ../../../KDE4/qt-copy/mkspecs/linux-g++ 
 . 
 ../../../KDE4/qt-copy/include/QtGui 
 ../../../KDE4/qt-copy/include/QtCore 
 ../../../KDE4/qt-copy/include 
 /usr/local/gcc4.0/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../include/c++/4.0.2 
 /usr/local/gcc4.0/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../include/c++/4.0.2/i686-pc-linux-gnu 
 /usr/local/gcc4.0/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../include/c++/4.0.2/backward 
 /usr/local/include 
 /usr/local/gcc4.0/include 
 /usr/local/gcc4.0/lib/gcc/i686-pc-linux-gnu/4.0.2/include 
 /usr/include 
End of search list. 
 /usr/local/gcc4.0/libexec/gcc/i686-pc-linux-gnu/4.0.2/cc1plus -fpreprocessed 
Job.ii -quiet -dumpbase Job.cpp -mtune=pentiumpro -auxbase-strip Job.o -g 
-Wall -W -version -fPIC -o Job.s 
GNU C++ version 4.0.2 20050830 (prerelease) (i686-pc-linux-gnu) 
        compiled by GNU C version 3.4.4 20050314 (prerelease) (Debian 
3.4.3-12). 
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64470 
Job.cpp: In member function 'void 
ThreadWeaver::Job::execute(ThreadWeaver::Thread*)': 
Job.cpp:53: internal compiler error: in lower_stmt, at gimple-low.c:206

-- 
           Summary: crashes on ThreadWeaver compilation
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gj at pointblue dot com dot pl
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86
  GCC host triplet: x86
GCC target triplet: x86


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


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

* [Bug middle-end/23636] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
  2005-08-30 13:43 ` [Bug c++/23636] " gj at pointblue dot com dot pl
  2005-08-30 13:44 ` gj at pointblue dot com dot pl
@ 2005-08-30 14:29 ` pinskia at gcc dot gnu dot org
  2005-08-30 14:38 ` [Bug middle-end/23636] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-30 14:29 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
          Component|c++                         |middle-end
           Keywords|                            |wrong-code
            Summary|crashes on ThreadWeaver     |crashes on ThreadWeaver
                   |compilation                 |compilation


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


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

* [Bug middle-end/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (2 preceding siblings ...)
  2005-08-30 14:29 ` [Bug middle-end/23636] " pinskia at gcc dot gnu dot org
@ 2005-08-30 14:38 ` pinskia at gcc dot gnu dot org
  2005-08-30 14:40 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-30 14:38 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |ice-on-valid-code
            Summary|crashes on ThreadWeaver     |[4.0/4.1 Regression] crashes
                   |compilation                 |on ThreadWeaver compilation


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


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

* [Bug middle-end/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (3 preceding siblings ...)
  2005-08-30 14:38 ` [Bug middle-end/23636] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-08-30 14:40 ` pinskia at gcc dot gnu dot org
  2005-08-30 14:42 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-30 14:40 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.2


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


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

* [Bug middle-end/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (4 preceding siblings ...)
  2005-08-30 14:40 ` pinskia at gcc dot gnu dot org
@ 2005-08-30 14:42 ` pinskia at gcc dot gnu dot org
  2005-08-30 15:26 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-30 14:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-30 14:39 -------
Reducing.

-- 


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


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

* [Bug middle-end/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (5 preceding siblings ...)
  2005-08-30 14:42 ` pinskia at gcc dot gnu dot org
@ 2005-08-30 15:26 ` pinskia at gcc dot gnu dot org
  2005-08-31  0:11 ` [Bug c++/23636] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-30 15:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-30 15:24 -------
Confirmed, reduced testcase:
class QMutexLocker {};
extern void __assert_fail ()      throw () __attribute__ ((__noreturn__));
struct QList {
 ~QList();
 bool isEmpty();
};
QList values();
void execute()
{
 ( { int l; static_cast<void>(((((values().isEmpty())) ? 0 : (__assert_fail (), 0)))); });
}

We are missing a CLEANUP_POINT_EXPR, most likely because BIND_EXPR does not have its 
TREE_SIDE_EFFECTS set.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-30 15:24:23
               date|                            |


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


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

* [Bug c++/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (6 preceding siblings ...)
  2005-08-30 15:26 ` pinskia at gcc dot gnu dot org
@ 2005-08-31  0:11 ` pinskia at gcc dot gnu dot org
  2005-08-31  0:17 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-31  0:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-31 00:10 -------
This is a C++ front-end bug, EXPR_STMT should be a tcc_statement and not a tcc_expression.
I will test the patch for this.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
          Component|middle-end                  |c++


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


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

* [Bug c++/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (7 preceding siblings ...)
  2005-08-31  0:11 ` [Bug c++/23636] " pinskia at gcc dot gnu dot org
@ 2005-08-31  0:17 ` pinskia at gcc dot gnu dot org
  2005-08-31  0:23 ` [Bug middle-end/23636] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-31  0:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-31 00:11 -------
Actually that does not fix the issue as we already have a CLEANUP_POINT_EXPR around it.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pinskia at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug middle-end/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (8 preceding siblings ...)
  2005-08-31  0:17 ` pinskia at gcc dot gnu dot org
@ 2005-08-31  0:23 ` pinskia at gcc dot gnu dot org
  2005-08-31  4:40 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-31  0:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-31 00:17 -------
This is a middle-end, there is a CLEANUP_POINT_EXPR but for some reason it does not matter that 
much.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |middle-end


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


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

* [Bug middle-end/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (9 preceding siblings ...)
  2005-08-31  0:23 ` [Bug middle-end/23636] " pinskia at gcc dot gnu dot org
@ 2005-08-31  4:40 ` pinskia at gcc dot gnu dot org
  2005-08-31  5:42 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-31  4:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-31 03:34 -------
The problem is that gimplify_cleanup_point_expr does not look into BIND_EXPRs.

-- 


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


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

* [Bug middle-end/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (10 preceding siblings ...)
  2005-08-31  4:40 ` pinskia at gcc dot gnu dot org
@ 2005-08-31  5:42 ` pinskia at gcc dot gnu dot org
  2005-08-31 11:45 ` [Bug c++/23636] " pinskia at gcc dot gnu dot org
  2005-09-06 15:15 ` mmitchel at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-31  5:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-31 05:06 -------
Created an attachment (id=9628)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9628&action=view)
patch which should fix it but I need to test it

I am testing this patch which should fix the problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (11 preceding siblings ...)
  2005-08-31  5:42 ` pinskia at gcc dot gnu dot org
@ 2005-08-31 11:45 ` pinskia at gcc dot gnu dot org
  2005-09-06 15:15 ` mmitchel at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-31 11:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-31 11:43 -------
Actually thinking about this again, my patch is wrong.  The C++ front-end is missing a 
CLEANUP_POINT_EXPR.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pinskia at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW
          Component|middle-end                  |c++


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


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

* [Bug c++/23636] [4.0/4.1 Regression] crashes on ThreadWeaver compilation
  2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
                   ` (12 preceding siblings ...)
  2005-08-31 11:45 ` [Bug c++/23636] " pinskia at gcc dot gnu dot org
@ 2005-09-06 15:15 ` mmitchel at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-06 15:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-09-06 15:15 -------


*** This bug has been marked as a duplicate of 21440 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2005-09-06 15:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-30 14:01 [Bug c++/23636] New: crashes on ThreadWeaver compilation gj at pointblue dot com dot pl
2005-08-30 13:43 ` [Bug c++/23636] " gj at pointblue dot com dot pl
2005-08-30 13:44 ` gj at pointblue dot com dot pl
2005-08-30 14:29 ` [Bug middle-end/23636] " pinskia at gcc dot gnu dot org
2005-08-30 14:38 ` [Bug middle-end/23636] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-30 14:40 ` pinskia at gcc dot gnu dot org
2005-08-30 14:42 ` pinskia at gcc dot gnu dot org
2005-08-30 15:26 ` pinskia at gcc dot gnu dot org
2005-08-31  0:11 ` [Bug c++/23636] " pinskia at gcc dot gnu dot org
2005-08-31  0:17 ` pinskia at gcc dot gnu dot org
2005-08-31  0:23 ` [Bug middle-end/23636] " pinskia at gcc dot gnu dot org
2005-08-31  4:40 ` pinskia at gcc dot gnu dot org
2005-08-31  5:42 ` pinskia at gcc dot gnu dot org
2005-08-31 11:45 ` [Bug c++/23636] " pinskia at gcc dot gnu dot org
2005-09-06 15:15 ` mmitchel at gcc dot gnu dot 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).