* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
@ 2003-09-17 7:17 ` pinskia at gcc dot gnu dot org
2003-10-05 17:18 ` pinskia at gcc dot gnu dot org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-17 7:17 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
Keywords| |wrong-code
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
2003-09-17 7:17 ` [Bug target/12308] " pinskia at gcc dot gnu dot org
@ 2003-10-05 17:18 ` pinskia at gcc dot gnu dot org
2003-10-05 17:28 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-05 17:18 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-05 17:18:12
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-05 17:18 -------
The problem is that fix_truncsi_memory does say that it clobbers flags (it might be easy
just to mark this as it clobbers the flags.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
2003-09-17 7:17 ` [Bug target/12308] " pinskia at gcc dot gnu dot org
2003-10-05 17:18 ` pinskia at gcc dot gnu dot org
@ 2003-10-05 17:28 ` pinskia at gcc dot gnu dot org
2003-10-17 18:20 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-05 17:28 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-05 17:28 -------
Actually this is fixed on the mainline already:
fnstcw -2(%ebp)
movw -2(%ebp), %ax
movb $12, %ah
movw %ax, -4(%ebp)
sbbl %edx, %edx
fldcw -4(%ebp)
Note no use of orb, instead it uses movb.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (2 preceding siblings ...)
2003-10-05 17:28 ` pinskia at gcc dot gnu dot org
@ 2003-10-17 18:20 ` pinskia at gcc dot gnu dot org
2003-10-20 23:54 ` stuart at apple dot com
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 18:20 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (3 preceding siblings ...)
2003-10-17 18:20 ` pinskia at gcc dot gnu dot org
@ 2003-10-20 23:54 ` stuart at apple dot com
2003-12-11 20:00 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: stuart at apple dot com @ 2003-10-20 23:54 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
stuart at apple dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Additional Comments From stuart at apple dot com 2003-10-20 23:17 -------
The testcase still fails if compiled -Os .
Quoting the original description, "The better long-term fix is to fully apply the lcm.c:
optimize_mode_switching() feature."
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (4 preceding siblings ...)
2003-10-20 23:54 ` stuart at apple dot com
@ 2003-12-11 20:00 ` pinskia at gcc dot gnu dot org
2004-01-19 20:31 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-11 20:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-11 20:00 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEW
Target Milestone|3.4 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (5 preceding siblings ...)
2003-12-11 20:00 ` pinskia at gcc dot gnu dot org
@ 2004-01-19 20:31 ` pinskia at gcc dot gnu dot org
2004-01-21 7:13 ` dhazeghi at yahoo dot com
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-19 20:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-19 20:31 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01512.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (6 preceding siblings ...)
2004-01-19 20:31 ` pinskia at gcc dot gnu dot org
@ 2004-01-21 7:13 ` dhazeghi at yahoo dot com
2004-01-21 20:54 ` cvs-commit at gcc dot gnu dot org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-21 7:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dhazeghi at yahoo dot com 2004-01-21 07:13 -------
Patch approved for mainline <http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01974.html>.
Please apply.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (7 preceding siblings ...)
2004-01-21 7:13 ` dhazeghi at yahoo dot com
@ 2004-01-21 20:54 ` cvs-commit at gcc dot gnu dot org
2004-01-21 20:55 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-21 20:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-21 20:54 -------
Subject: Bug 12308
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2004-01-21 20:53:54
Modified files:
gcc : ChangeLog
Log message:
2004-01-21 Caroline Tice <ctice@apple.com>
PR target/12308
* config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
flags register.
(fix_truncdfdi2): Likewise.
(fix_truncsfdi2): Likewise.
(*fix_truncdi_1): Likewise.
(fix_truncxfsi2): Likewise.
(fix_truncdfsi2): Likewise.
(fix_truncsfsi2): Likewise.
(*fix_truncsi_1): Likewise.
(fix_truncxfhi2): Likewise.
(fix_truncdfhi2): Likewise.
(fix_truncsfhi2): Likewise.
(*fix_trunchi_1): Likewise.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2401&r2=2.2402
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (8 preceding siblings ...)
2004-01-21 20:54 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-21 20:55 ` pinskia at gcc dot gnu dot org
2004-03-15 8:34 ` matt at use dot net
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-21 20:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-21 20:55 -------
Fixed for 3.5.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (9 preceding siblings ...)
2004-01-21 20:55 ` pinskia at gcc dot gnu dot org
@ 2004-03-15 8:34 ` matt at use dot net
2004-03-15 8:42 ` matt at use dot net
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: matt at use dot net @ 2004-03-15 8:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From matt at use dot net 2004-03-15 08:33 -------
Any chance this will get backported to 3.3.4 or 3.4.1?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (10 preceding siblings ...)
2004-03-15 8:34 ` matt at use dot net
@ 2004-03-15 8:42 ` matt at use dot net
2004-03-27 16:15 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: matt at use dot net @ 2004-03-15 8:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From matt at use dot net 2004-03-15 08:42 -------
Any chance this will get backported to 3.3.4 or 3.4.1? Mozilla is affected by
this bug, and has imeplemented a workaround (turn off certain optimizations).
It would be a shame to wait until 3.5 is released.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (11 preceding siblings ...)
2004-03-15 8:42 ` matt at use dot net
@ 2004-03-27 16:15 ` cvs-commit at gcc dot gnu dot org
2004-04-22 17:50 ` cvs-commit at gcc dot gnu dot org
2005-03-11 9:49 ` uros at kss-loka dot si
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-27 16:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-27 16:15 -------
Subject: Bug 12308
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-rhl-branch
Changes by: jakub@gcc.gnu.org 2004-03-27 16:15:24
Modified files:
gcc : ChangeLog
gcc/testsuite : ChangeLog
gcc/config/i386: i386.md
Added files:
gcc/testsuite/gcc.c-torture/execute: 20040311-1.c
Log message:
PR target/12308
Backport from mainline
2004-01-21 Caroline Tice <ctice@apple.com>
* config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
flags register.
(fix_truncdfdi2): Likewise.
(fix_truncsfdi2): Likewise.
(*fix_truncdi_1): Likewise.
(fix_truncxfsi2): Likewise.
(fix_truncdfsi2): Likewise.
(fix_truncsfsi2): Likewise.
(*fix_truncsi_1): Likewise.
(fix_truncxfhi2): Likewise.
(fix_truncdfhi2): Likewise.
(fix_truncsfhi2): Likewise.
(*fix_trunchi_1): Likewise.
* config/i386/i386.md (fix_trunctfdi2, fix_trunctfsi2,
fix_trunctfhi2): Likewise.
PR target/12308
* gcc.c-torture/execute/20040311-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.16114.2.523.2.96&r2=1.16114.2.523.2.97
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.2261.2.170.2.49&r2=1.2261.2.170.2.50
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.md.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=1.404.2.14.4.12&r2=1.404.2.14.4.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/20040311-1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-rhl-branch&r1=NONE&r2=1.1.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (12 preceding siblings ...)
2004-03-27 16:15 ` cvs-commit at gcc dot gnu dot org
@ 2004-04-22 17:50 ` cvs-commit at gcc dot gnu dot org
2005-03-11 9:49 ` uros at kss-loka dot si
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-22 17:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-04-22 17:35 -------
Subject: Bug 12308
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-rhl-branch
Changes by: jakub@gcc.gnu.org 2004-04-22 17:35:14
Modified files:
gcc : ChangeLog
gcc/config/i386: i386.md
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.c-torture/execute: 20040311-1.c
Log message:
2004-01-21 Caroline Tice <ctice@apple.com>
PR target/12308
* config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
flags register.
(fix_truncdfdi2): Likewise.
(fix_truncsfdi2): Likewise.
(*fix_truncdi_1): Likewise.
(fix_truncxfsi2): Likewise.
(fix_truncdfsi2): Likewise.
(fix_truncsfsi2): Likewise.
(*fix_truncsi_1): Likewise.
(fix_truncxfhi2): Likewise.
(fix_truncdfhi2): Likewise.
(fix_truncsfhi2): Likewise.
(*fix_trunchi_1): Likewise.
2004-03-11 Jakub Jelinek <jakub@redhat.com>
PR target/12308
* gcc.c-torture/execute/20040311-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=2.2326.2.399.2.11&r2=2.2326.2.399.2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.md.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.502.2.3&r2=1.502.2.3.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.3389.2.170&r2=1.3389.2.170.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/20040311-1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=NONE&r2=1.1.16.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug target/12308] '387 mode switching clobbers flags
2003-09-17 2:35 [Bug c/12308] New: '387 mode switching clobbers flags stuart at apple dot com
` (13 preceding siblings ...)
2004-04-22 17:50 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-11 9:49 ` uros at kss-loka dot si
14 siblings, 0 replies; 16+ messages in thread
From: uros at kss-loka dot si @ 2005-03-11 9:49 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |20421
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12308
^ permalink raw reply [flat|nested] 16+ messages in thread