>Number:         6563
>Category:       alpha
>Synopsis:       cc internal compiler error.
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Mon Feb 14 20:40:01 GMT 2011
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        
>Organization:
>Environment:
        System      : OpenBSD 4.9
        Details     : OpenBSD 4.9-beta (GENERIC) #7: Thu Feb 10 23:46:58 CET 
2011
                         
janjaap@alf:/forest/trees/src/sys/arch/alpha/compile/GENERIC

        Architecture: OpenBSD.alpha
        Machine     : alpha
>Description:
        Compiling some ports generate an internal compiler error.
        These ports have incommin that they ocerride the standard -O2
        with a -O. (one example is print/psutils).
        the offending file fails with:
epsffit.c:43: warning: return type of `main' is not `int'
epsffit.c: In function `main':
epsffit.c:189: error: push_frame_in_operand
(insn 264 263 265 28 0x168195918 (set (reg:DI 18 $18)
        (reg/f:DI 63 FP)) 228 {*movdi_er_nofix} (nil)
    (nil))
epsffit.c:189: internal compiler error: in push_frame_in_operand, at 
protector.c:2565
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

        Reducing the offendig file to its bare minimum while still
        producing errors (see How-To-Repeat) makes cc error out with: 

test.c: In function `main':
test.c:13: error: push_frame_in_operand
(insn 16 15 17 0 0x1616baf20 (set (reg:DI 18 $18)
        (reg/f:DI 63 FP)) 228 {*movdi_er_nofix} (nil)
    (nil))
test.c:13: internal compiler error: in push_frame_in_operand, at 
protector.c:2565
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

>How-To-Repeat:
$ #either do
$ cd /usr/ports/print/psutils
$ make

$ #or to see the effect from a minimal c file:
$ cat > test.c <<EOF
/* minimal example file producing the error */
#include <stdio.h>

int
main(int argc, char **argv)
{
        char buf[128];
        float a, b;

        sscanf(buf, "%f %f", &a, &b);

        return 0;
}
EOF
$ cc -O test.c
test.c: In function `main':
test.c:13: error: push_frame_in_operand
(insn 16 15 17 0 0x1616baf20 (set (reg:DI 18 $18)
        (reg/f:DI 63 FP)) 228 {*movdi_er_nofix} (nil)
    (nil))
test.c:13: internal compiler error: in push_frame_in_operand, at 
protector.c:2565
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$

>Fix:
        Unknown.
        Actually compiling with -O2 does not cause this errror.
        


dmesg:
OpenBSD 4.9-beta (GENERIC) #7: Thu Feb 10 23:46:58 CET 2011
    janjaap@alf:/forest/trees/src/sys/arch/alpha/compile/GENERIC
Digital AlphaPC 164SX 533 MHz
8192 byte page size, 1 processor.
real mem = 536870912 (512MB)
rsvd mem = 1966080 (1MB)
avail mem = 517660672 (493MB)
mainbus0 at root
cpu0 at mainbus0: ID 0 (primary), PCA56-2 (unknown minor type 2)
cpu0: architecture extensions: 1<BWX>
cia0 at mainbus0: DECchip 2117x Core Logic Chipset (Pyxis), pass 1
cia0: extended capabilities: 1<BWEN>
cia0: using BWX for PCI config and bus access
pci0 at cia0 bus 0
uhci0 at pci0 dev 5 function 0 "VIA VT83C572 USB" rev 0x61: eb164 irq 9
uhci1 at pci0 dev 5 function 1 "VIA VT83C572 USB" rev 0x61: eb164 irq 13
ehci0 at pci0 dev 5 function 2 "VIA VT6202 USB" rev 0x63: eb164 irq 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "VIA EHCI root hub" rev 2.00/1.00 addr 1
em0 at pci0 dev 7 function 0 "Intel PRO/1000MT (82541GI)" rev 0x00: eb164 irq 
10, address 00:0e:0c:51:3d:a0
sio0 at pci0 dev 8 function 0 "Contaq Microsystems CY82C693U ISA" rev 0x00
pciide0 at pci0 dev 8 function 1 "Contaq Microsystems CY82C693U ISA" rev 0x00: 
DMA, channel 0 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <ST36531A>
wd0: 32-sector PIO, LBA, 6204MB, 12706470 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide1 at pci0 dev 8 function 2 "Contaq Microsystems CY82C693U ISA" rev 0x00: 
no DMA, channel 0 wired to compatibility
wd1 at pciide1 channel 0 drive 0: <Maxtor 6Y160P0>
wd1: 16-sector PIO, LBA48, 156334MB, 320173056 sectors
wd2 at pciide1 channel 0 drive 1: <WDC WD800JB-00JJA0>
wd2: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd1(pciide1:0:0): using PIO mode 4
wd2(pciide1:0:1): using PIO mode 4
ohci0 at pci0 dev 8 function 3 "Contaq Microsystems CY82C693U ISA" rev 0x00: 
couldn't map interrupt
vga0 at pci0 dev 9 function 0 "Matrox MGA G200 PCI" rev 0x01
wsdisplay0 at vga0 mux 1
wsdisplay0: screen 0-5 added (80x25, vt100 emulation)
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "VIA UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "VIA UHCI root hub" rev 1.00/1.00 addr 1
isa0 at sio0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 mux 1
wskbd0: connecting to wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x3bc/4 irq 7
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
isapnp0 at isa0 port 0x279: read port 0x203
ep0 at isapnp0 "3Com 3C509B EtherLink III, TCM5095, PNP80F7, " port 0x210/16 
irq 5: address 00:10:5a:da:70:fa, utp (default utp)
mcclock0 at isa0 port 0x70/2: mc146818 or compatible
stray isa irq 3
stray isa irq 5
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Tsunami product 0x1166" 
rev 1.10/2.70 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 5 buttons, Z dir
wsmouse0 at ums0 mux 0
uhub3 at uhub2 port 2 "ALCOR Generic USB Hub" rev 1.10/3.12 addr 2
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
root on wd1a swap on wd1b dump on wd1b
stray isa irq 3

usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), VIA(0x1106), 
rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x1106), 
rev 1.00
 port 1 addr 2: low speed, power 100 mA, config 1, product 0x1166(0x1166), 
Tsunami(0x1241), rev 2.70
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x1106), 
rev 1.00
 port 1 powered
 port 2 addr 2: full speed, self powered, config 1, Generic USB Hub(0x9254), 
ALCOR(0x058f), rev 3.12
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered


>Release-Note:
>Audit-Trail:
>Unformatted:

Reply via email to