public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver
@ 2003-10-11 11:08 debian-gcc at lists dot debian dot org
  2003-10-11 16:36 ` [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2003-10-11 11:08 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=12576

           Summary: [3.3 regression] miscompilation of ide-scsi kernel
                    driver
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i486-linux
  GCC host triplet: i486-linux
GCC target triplet: i486-linux

[forwarded from http://bugs.debian.org/211783]

gcc 3.3.2 20031005 (and 20030908) break ide-scsi during boot or modprobe of
ide-scsi as seen in message below. The miscompilation is seen with -O2, but not
with -Os. The ide-scsi module is built in the kernel, not built as a module.

Sep 20 17:54:35 art kernel: SCSI subsystem driver Revision: 1.00
Sep 20 17:54:35 art kernel: hdc: attached ide-scsi driver.
Sep 20 17:54:35 art kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI de
vices
Sep 20 17:54:35 art kernel:   Vendor:           Model:                   Rev:

Sep 20 17:54:35 art kernel:   Type:   Direct-Access                      ANSI SC
SI revision: 03
***************************


gcc 3.3 20030831 does not have this problem as in the message below:

Sep 20 17:00:59 art kernel: SCSI subsystem driver Revision: 1.00
Sep 20 17:00:59 art kernel: hdc: attached ide-scsi driver.
Sep 20 17:00:59 art kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI de
vices
Sep 20 17:00:59 art kernel:   Vendor: HP        Model: CD-Writer+ 8100   Rev: 1.
0g
Sep 20 17:00:59 art kernel:   Type:   CD-ROM                             ANSI SC
SI revision: 02


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

* [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux kernel driver
  2003-10-11 11:08 [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver debian-gcc at lists dot debian dot org
@ 2003-10-11 16:36 ` pinskia at gcc dot gnu dot org
  2003-10-14  4:09 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-11 16:36 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=12576


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
           Keywords|                            |wrong-code
            Summary|[3.3 regression]            |[3.3 regression]
                   |miscompilation of ide-scsi  |miscompilation of ide-scsi
                   |kernel driver               |linux kernel driver


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-11 16:36 -------
We need a reduced test case as not everyone here does not do compile the linux kernel and try to 
run it.


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

* [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux kernel driver
  2003-10-11 11:08 [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver debian-gcc at lists dot debian dot org
  2003-10-11 16:36 ` [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux " pinskia at gcc dot gnu dot org
@ 2003-10-14  4:09 ` pinskia at gcc dot gnu dot org
  2003-10-14 19:36 ` doko at cs dot tu-berlin dot de
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-14  4:09 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=12576



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-14 04:09 -------
Can you try again, as this might have been just fixed.


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

* [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux kernel driver
  2003-10-11 11:08 [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver debian-gcc at lists dot debian dot org
  2003-10-11 16:36 ` [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux " pinskia at gcc dot gnu dot org
  2003-10-14  4:09 ` pinskia at gcc dot gnu dot org
@ 2003-10-14 19:36 ` doko at cs dot tu-berlin dot de
  2003-10-14 19:42 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: doko at cs dot tu-berlin dot de @ 2003-10-14 19:36 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=12576



------- Additional Comments From doko at cs dot tu-berlin dot de  2003-10-14 19:36 -------
Subject: Re:  [3.3 regression] miscompilation of ide-scsi linux kernel driver

pinskia at gcc dot gnu dot org writes:
> Can you try again, as this might have been just fixed.

please could you give a date/patch for "just"?


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

* [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux kernel driver
  2003-10-11 11:08 [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver debian-gcc at lists dot debian dot org
                   ` (2 preceding siblings ...)
  2003-10-14 19:36 ` doko at cs dot tu-berlin dot de
@ 2003-10-14 19:42 ` pinskia at gcc dot gnu dot org
  2003-10-25  1:38 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-14 19:42 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=12576



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-14 19:42 -------
Might have gotten fixed by:
Subject: Bug 11087

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-3_3-branch
Changes by:     steven@gcc.gnu.org      2003-10-14 08:10:33

Modified files:
        gcc            : ChangeLog loop.c 

Log message:
        2003-10-14  Steven Bosscher  <steven@gcc.gnu.org>
        
        PR target/11087
        Backport from gcc-3_3-rhl-branch and mainline.
        
        2003-07-17  Jakub Jelinek  <jakub@redhat.com>
        
        * loop.c (basic_induction_var): Check if convert_modes
        emitted any instructions. Remove them and return 0 if so.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc
-3_3-branch&r1=1.16114.2.778&r2=1.16114.2.779
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/loop.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-
branch&r1=1.433.2.8&r2=1.433.2.9


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

* [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux kernel driver
  2003-10-11 11:08 [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver debian-gcc at lists dot debian dot org
                   ` (3 preceding siblings ...)
  2003-10-14 19:42 ` pinskia at gcc dot gnu dot org
@ 2003-10-25  1:38 ` pinskia at gcc dot gnu dot org
  2003-12-03 10:16 ` ebotcazou at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-25  1:38 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=12576


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.3.3


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

* [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux kernel driver
  2003-10-11 11:08 [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver debian-gcc at lists dot debian dot org
                   ` (4 preceding siblings ...)
  2003-10-25  1:38 ` pinskia at gcc dot gnu dot org
@ 2003-12-03 10:16 ` ebotcazou at gcc dot gnu dot org
  2003-12-24 21:28 ` gdr at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-12-03 10:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2003-12-03 10:16 -------
Matthias, any confirmation that it is fixed?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at debian dot org


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


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

* [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux kernel driver
  2003-10-11 11:08 [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver debian-gcc at lists dot debian dot org
                   ` (5 preceding siblings ...)
  2003-12-03 10:16 ` ebotcazou at gcc dot gnu dot org
@ 2003-12-24 21:28 ` gdr at gcc dot gnu dot org
  2003-12-29 18:37 ` freddyk at nickles dot de
  2003-12-29 18:47 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2003-12-24 21:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2003-12-24 21:17 -------
Matthias--
Can you confirm that the bug was fixed?

-- Gaby


-- 


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


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

* [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux kernel driver
  2003-10-11 11:08 [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver debian-gcc at lists dot debian dot org
                   ` (6 preceding siblings ...)
  2003-12-24 21:28 ` gdr at gcc dot gnu dot org
@ 2003-12-29 18:37 ` freddyk at nickles dot de
  2003-12-29 18:47 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: freddyk at nickles dot de @ 2003-12-29 18:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From freddyk at nickles dot de  2003-12-29 18:14 -------
Subject: Re:  [3.3 regression] miscompilation of
 ide-scsi linux kernel driver

On Mon, 29 Dec 2003 11:35:29 +0100 (MET)
Matthias Klose <doko@cs.tu-berlin.de> wrote:

> gdr at gcc dot gnu dot org writes:
> > 
> > ------- Additional Comments From gdr at gcc dot gnu dot org 
> > 2003-12-24 21:17 ------- Matthias--
> > Can you confirm that the bug was fixed?
> 
> I'm unable to do this myself. On http://bugs.debian.org/211783,
> Armin Krueger was able to reproduce this using the released
> gcc-3.3.2 and kernel 2.4.21.

Small Correction: i myself experienced that behavior with
several 2.4.22 debian sources, see the bugreport mentioned above
for that. However, others experienced the same with 2.4.21.

> 
> Armin, please could you recheck with a recent compiler (and/or
> recent kernel)?

I just rechecked with 2.4.23 vanilla

Linux version 2.4.23-fk1 (root@freddy) (gcc-Version 3.3.2 (Debian)) #1
Di Dez 2 03:05:19 CET 2003
(had no time to check it until now)

and 2.4.23-1 debian source

Linux version 2.4.23-fk2 (root@freddy) (gcc-Version 3.3.3 20031206
(prerelease) (Debian)) #1 Mo Dez 29 17:43:15 CET 2003

Both have ide-scsi built in, no optimise change
from the default, and append hdc=ide-scsi.


_No faults_ during bootup, and i am _able to burn_ using
ide-scsi with both kernels.

So i think the bug has been dealt with.

Seems that it was a kernel bug, because 

Linux version 2.4.22-lp8 (root@freddy) (gcc-Version 3.3.2 (Debian)) #7
Mo Okt 20 02:31:36 CEST 2003 (2.4.22-3 debian source)

failed, as you can read from the bugreport (my mail from:
Received: (at 211783) by bugs.debian.org; 20 Oct 2003 01:12:48 +0000
>From freddyk@nickles.de Sun Oct 19 20:12:45 2003), with the same
compiler i built 2.4.23 vanilla.

> 
> Thanks, Matthias
> 

You're welcome


greetings/gruesse

FreddyK/Armin Krueger



-- 


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


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

* [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux kernel driver
  2003-10-11 11:08 [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver debian-gcc at lists dot debian dot org
                   ` (7 preceding siblings ...)
  2003-12-29 18:37 ` freddyk at nickles dot de
@ 2003-12-29 18:47 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-29 18:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-29 18:37 -------
Was not a GCC bug after all.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2003-12-29 18:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-11 11:08 [Bug optimization/12576] New: [3.3 regression] miscompilation of ide-scsi kernel driver debian-gcc at lists dot debian dot org
2003-10-11 16:36 ` [Bug optimization/12576] [3.3 regression] miscompilation of ide-scsi linux " pinskia at gcc dot gnu dot org
2003-10-14  4:09 ` pinskia at gcc dot gnu dot org
2003-10-14 19:36 ` doko at cs dot tu-berlin dot de
2003-10-14 19:42 ` pinskia at gcc dot gnu dot org
2003-10-25  1:38 ` pinskia at gcc dot gnu dot org
2003-12-03 10:16 ` ebotcazou at gcc dot gnu dot org
2003-12-24 21:28 ` gdr at gcc dot gnu dot org
2003-12-29 18:37 ` freddyk at nickles dot de
2003-12-29 18:47 ` pinskia 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).