This is the mail archive of the gcc@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]

internal compiler error in c-pragma.c


I ran across the following error compiling the gnome-core distribution
with the latest (19981026) snapshot of egcs -

-----------------------------------------------------------------------------------
g++ -DHAVE_CONFIG_H -I. -I. -I..
-DGNOMELOCALEDIR=\""/usr/share/locale"\" -I../intl -I../intl
-I/usr/include  -I/usr/include -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/X11R6/include
-I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/lib/glib/include -g
-O2 -c property-screensaver.cc
../../gcc/c-pragma.c:253: Internal compiler error in function
handle_pragma_token
-----------------------------------------------------------------------------------

After some time, I got it in my stupid head that the file (c-pragma.c)
was NOT in the gnome distribution, but in egcs. It looks like it is
puking on the call to #pragma interface in the following code (this in
the desktop-properties directory of gnome-core):

-------------xlockmore.h-------------------
#ifndef __XLOCKMORE_H__
#define __XLOCKMORE_H__

#pragma interface
#include "screensaver.h"
#include <signal.h>
#include <string.h>
-------------------------------------------


the relevant line in the egcs code is:

-----------gcc/c-pragma.c-----------------
      switch (type)
        {
        default:
          abort ();      <----line 253
          break;
-----------------------------------------

Well, this is as far as I have had a chance to take it. I have never run
across the #pragma interface directive before, but since it threw an
internal compiler error, thought this list might be interested. any
suggestions?

Cheers,
tim


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