This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization/7687: [3.2 regression] ICE in use_thunk, at cp/method.c:412


The regression reported in PR optimization/7687, which is
still broken on the 3.2 branch, was fixed on the mainline
with this patch:

2002-10-22  Richard Henderson  <rth@redhat.com>

        * target.h
        * target-def.h
        * hooks.c
        * hooks.h:
        * system.h

        * config/alpha/alpha.c
        * config/arm/arm.c, config/cris/cris.c, config/frv/frv.c,
        config/i960/i960.c, config/ia64/ia64.c, config/m68k/m68k.c,
        config/mmix/mmix.c, config/pa/pa.c, config/sparc/sparc.c,
        config/stormy16/stormy16.c: Similarly.

        * config/i386/i386.c

        * config/rs6000/rs6000.c
        * config/rs6000/rs6000-protos.h
        * config/rs6000/sysv4.h
        * config/rs6000/xcoff.h

        * config/s390/s390.c

        * config/vax/vax.c
        * config/vax/vax-protos.h
        * config/vax/vax.h

cp/:
2002-10-22  Richard Henderson  <rth@redhat.com>

        * method.c

Here's a small test case that causes the 3.2 branch compiler to ICE
on i686-linux:

-------------------
class A {
public:
  virtual void f1();
};
class B {
public:
  virtual void f2();
};
class C : public A, public B
{
public:
  virtual void f1();
  virtual void f2();
};

void C::f2() {}
-------------------

Output from the the 3.2 branch compiler with -fPIC -mregparm=3:

7687.C: In member function `void C::_ZThn4_N1C2f2Ev()':
7687.C:16: Internal compiler error in x86_output_mi_thunk, at
   config/i386/i386.c:12655
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7687




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]