[Bug driver/36081] gcc optimizations and threads (pthread)

2008-05-03 Thread snes2002 at freenet dot de
--- Comment #10 from snes2002 at freenet dot de 2008-05-03 10:26 --- This is definitely a bug. The same source-code must do the same thing, no matter what optimize-options are enabled or disabled. -- snes2002 at freenet dot de changed: What|Removed

[Bug driver/36081] gcc optimizations and threads (pthread)

2008-04-30 Thread snes2002 at freenet dot de
--- Comment #9 from snes2002 at freenet dot de 2008-04-30 12:26 --- Subject: Re: gcc optimizations and threads (pthread) Hello, I read about mutexes, cond_wait and cond_signal. When I use these things instead of "busy loop" there is no performance gain at all for

[Bug driver/36081] gcc optimizations and threads (pthread)

2008-04-29 Thread snes2002 at freenet dot de
--- Comment #7 from snes2002 at freenet dot de 2008-04-29 19:06 --- Subject: Re: gcc optimizations and threads (pthread) thanks for the quick reply. But this code works without opimizations. Even with complex constructs. For the solution of my problem i can't use lock's. I

[Bug driver/36081] gcc optimizations and threads (pthread)

2008-04-29 Thread snes2002 at freenet dot de
--- Comment #6 from snes2002 at freenet dot de 2008-04-29 18:59 --- This c-code works with optimizations turned off. With borland compiler it also works with optimizations turned on. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36081

[Bug driver/36081] gcc optimizations and threads (pthread)

2008-04-29 Thread snes2002 at freenet dot de
--- Comment #5 from snes2002 at freenet dot de 2008-04-29 18:57 --- Created an attachment (id=15550) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15550&action=view) assembler listing -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36081

[Bug driver/36081] gcc optimizations and threads (pthread)

2008-04-29 Thread snes2002 at freenet dot de
--- Comment #4 from snes2002 at freenet dot de 2008-04-29 18:56 --- Created an attachment (id=15549) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15549&action=view) preprocessed file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36081

[Bug driver/36081] gcc optimizations and threads (pthread)

2008-04-29 Thread snes2002 at freenet dot de
--- Comment #3 from snes2002 at freenet dot de 2008-04-29 18:55 --- Created an attachment (id=15548) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15548&action=view) c source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36081

[Bug driver/36081] gcc optimizations and threads (pthread)

2008-04-29 Thread snes2002 at freenet dot de
--- Comment #1 from snes2002 at freenet dot de 2008-04-29 18:54 --- Created an attachment (id=15547) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15547&action=view) gcc output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36081

[Bug driver/36081] New: gcc optimizations and threads (pthread)

2008-04-29 Thread snes2002 at freenet dot de
mponent: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: snes2002 at freenet dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36081