internal compiler error in c-pragma.c
Timothy Ritchey
tritchey@vne.com
Fri Oct 30 05:07:00 GMT 1998
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
More information about the Gcc
mailing list