http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45292
Jakub Jelinek changed:
What|Removed |Added
CC||us15 at os dot
|
--- Comment #13 from hjl dot tools at gmail dot com 2010-08-18 23:08
---
Fixed.
--
hjl dot tools at gmail dot com changed:
What|Removed |Added
Status|ASSIGNE
--- Comment #12 from hjl at gcc dot gnu dot org 2010-08-18 21:08 ---
Subject: Bug 45292
Author: hjl
Date: Wed Aug 18 21:08:24 2010
New Revision: 163353
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163353
Log:
Expand pending pops before trying the optab.
2010-08-18 H.J. Lu
--- Comment #11 from hjl at gcc dot gnu dot org 2010-08-18 13:36 ---
Subject: Bug 45292
Author: hjl
Date: Wed Aug 18 13:35:46 2010
New Revision: 163339
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163339
Log:
Expand pending pops before trying the optab.
2010-08-18 Paolo Bonz
--- Comment #10 from bonzini at gnu dot org 2010-08-16 13:48 ---
Created an attachment (id=21491)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21491&action=view)
patch to fix the bug
This is the patch to fix the bug. I'll bootstrap/regtest it soon.
Thanks H.J. for helping track
--- Comment #9 from bonzini at gnu dot org 2010-08-16 13:29 ---
The bug seems to be that an instruction clobbering the flags is inserted after
the unspec.
140 {r127:SI=[r62:SI];[r62:SI]=unspec/v[[r62:SI],r128:SI,r129:SI]
11;flags:CCZ=cmp(unspec/v[[r62:SI],r128:SI,r129:SI] 11,r128:SI);
--- Comment #8 from hjl dot tools at gmail dot com 2010-08-16 13:19 ---
Created an attachment (id=21490)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21490&action=view)
The preprocessed source
It should be compiled with
-march=i486 -ftls-model=initial-exec -mtune=i586 -O2 -fPIC
--- Comment #7 from bonzini at gnu dot org 2010-08-16 07:56 ---
H.J., thanks very much for the analysis!
Can you please attach preprocessed source code and the output of "gcc -###"
when compiling this file using the compiler options you need to show this bug?
--
bonzini at gnu dot o
--- Comment #6 from hjl dot tools at gmail dot com 2010-08-16 05:18 ---
-mtune=i586 miscompiled gomp_barrier_handle_tasks which
has a loop and calls:
static inline void gomp_mutex_lock (gomp_mutex_t *mutex)
{
if (!__sync_bool_compare_and_swap (mutex, 0, 1))
gomp_mutex_lock_slow (m
--- Comment #5 from hjl dot tools at gmail dot com 2010-08-16 05:04 ---
Disable
+(define_expand "cmpcc"
+ [(set (reg:CC FLAGS_REG)
+(compare:CC (match_operand 0 "flags_reg_operand" "")
+(match_operand 1 "general_operand" "")))]
+ ""
+{
+ ix86_compare_op0 =
--- Comment #4 from hjl dot tools at gmail dot com 2010-08-16 02:52 ---
gomp_barrier_handle_tasks is miscompiled.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45292
--- Comment #3 from hjl dot tools at gmail dot com 2010-08-16 02:29 ---
task.o is miscompiled.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45292
--- Comment #2 from hjl dot tools at gmail dot com 2010-08-16 01:18 ---
libgomp is miscompiled.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45292
--- Comment #1 from hjl dot tools at gmail dot com 2010-08-16 01:13 ---
It is caused by revision 145825:
http://gcc.gnu.org/ml/gcc-cvs/2009-04/msg00448.html
--
hjl dot tools at gmail dot com changed:
What|Removed |Added
---
--
hjl dot tools at gmail dot com changed:
What|Removed |Added
Known to fail||4.5.3 4.6.0
Known to work||4.4.4
15 matches
Mail list logo