Possible bug in gcc 2.95 ?

Radu Cornea radu@ics.uci.edu
Thu Aug 5 21:51:00 GMT 1999


Hi!
I tried to compile alsa-driver-0.3.2 (a sound driver for Linux -
www.alsa-project.org), using gcc 2.95 on a Linux Redhat 6.0 (my machine is
a Pentium 133). The compilation failed when reaching the file "gus_pcm.c".
I tried to compile that file using the following command line (a shorten
version of the original one):

gcc -O2 -I/usr/src/linux/include -I../../include -c gus_pcm.c

I got the following errors:

In file included from ../../include/driver.h:91,
                 from gus_pcm.c:35:
/usr/src/linux/include/asm/dma.h:295: warning: `isa_dma_bridge_buggy' redefined
/usr/src/linux/include/linux/modules/pcisyms.ver:48: warning: this is the location of the previous definition
gus_pcm.c: In function `snd_gf1_pcm_translate':
gus_pcm.c:122: Invalid `asm' statement:
gus_pcm.c:122: fixed or forbidden register 2 (cx) was spilled for class CREG.
gus_pcm.c:105: Invalid `asm' statement:
gus_pcm.c:105: fixed or forbidden register 2 (cx) was spilled for class CREG.


Note that the errors appear only when using -O1, -O2 or -O3. With -O0 or
when using ecgs-2.91.66 (with any level of optimization) the file compiles
well.
Is this a bug in gcc 2.95?
I have attached to this email the preprocessed output of the source file
(bzip2 compressed).
This is my first bug report, so I hope I did it right.

Thank you,

Radu Cornea.


--
Radu Cornea
Graduate Student
Information & Computer Science
University of California - Irvine
E-mail: radu@ics.uci.edu


More information about the Gcc-bugs mailing list