Matthias Klose <doko@debian.org> writes: > $ gcc -g -O -c -pthread volume.i > ../vol/volume.c: In function 'VInitNextVolumeId': > ../vol/volume.c:1018:984: error: unknown type name '__resul' > it's preprocessed source, so the defines are not necessary. Indeed, good point. I've reproduced this with gcc-4.6 on abel.debian.org: abel:~> gcc -g -O -pthread -c volume.i ../vol/volume.c: In function ‘VShutdown_r’: ../vol/volume.c:1320:1: error: insn does not satisfy its constraints: (insn 1117 1116 669 56 (set (reg:SI 8 r8 [561]) (minus:SI (const_int 12 [0xc]) (const_int 5784 [0x1698]))) ../vol/volume.c:1409 29 {*arm_subsi3_insn} (nil)) ../vol/volume.c:1320:1: internal compiler error: in copyprop_hardreg_forward_1, at regcprop.c:767 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. abel:~> dpkg -l gcc-4.6 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii gcc-4.6 4.6.1-4 GNU C compiler Maybe I messed something up when I generated the *.i file for you last time. Here is the (compressed) file that I ran gcc on above. (It's also in ~rra on abel.debian.org.) Removing -O makes this error go away. I've temporarily disabled optimization on armel in the openafs source package to work around this. -- Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Attachment:
volume.i.gz
Description: Binary data