[GRASS5] compile error in splitfont.c in module for_grass

Markus Neteler neteler at itc.it
Mon Jul 7 16:58:45 EDT 2003


I should add that the file was recently updated. The previous version
compiles fine on gcc 3.2.2. So the problem was introduced with the
8bit updates. It can be still a gcc problem of course.

Markus


On Mon, Jul 07, 2003 at 10:47:17PM +0200, Markus Neteler wrote:
> 
> Glynn,
> 
> I tried the proposed patch, but it still fails (gcc 3.2.2 on Mandrake 9.1).
> 
> splitfont.c: In function 'main':
> splitfont.c:132: unrecognizable insn:
> (insn 947 926 463 (set (reg/v:QI 63)
>         (const_int 129 [0x81])) -1 (nil)
>     (expr_list:REG_EQUAL (const_int 129 [0x81])
>         (nil)))
> splitfont.c:132: Internal compiler error in extract_insn, at recog.c:2148
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:https://qa.mandrakesoft.com/> for instructions.
> 
> Markus
> 
> On Mon, Jul 07, 2003 at 06:11:27PM +0100, Glynn Clements wrote:
> Content-Description: message body and .signature
> > 
> > Moritz Lennert wrote:
> > 
> > > I get the following error compiling GRASS5.0 CVS version:
> > > 
> > > splitfont.c: In function `main':
> > > splitfont.c:132: unrecognizable insn:
> > > (insn 943 922 463 (set (reg/v:QI 63)
> > >         (const_int 129 [0x81])) -1 (nil)
> > >     (expr_list:REG_EQUAL (const_int 129 [0x81])
> > >         (nil)))
> > > splitfont.c:132: Internal compiler error in extract_insn, at recog.c:2148
> > > Please submit a full bug report,
> > > with preprocessed source if appropriate.
> > > See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> > > make[1]: *** [OBJ.i686-pc-linux-gnu/splitfont.o] Erreur 1
> > > make[1]: Leaving directory `/data/GRASSCVS/grass/src/fonts/for_grass'
> > > GISGEN failure at STEP: src/fonts/for_grass
> > > 
> > > Is this a gcc problem or a GRASS problem ?
> > 
> > A bit of both. Given that main() is declared as returning "int", it
> > should actually have a "return" statement. OTOH, gcc really shouldn't
> > be throwing an internal compiler error.
> > 
> > The attached patch should solve the problem.
> > 
> > -- 
> > Glynn Clements <glynn.clements at virgin.net>
> > 
> 
> Content-Description: splitfont.c patch
> > --- src/fonts/for_grass/splitfont.c~	Thu Jul  3 21:41:13 2003
> > +++ src/fonts/for_grass/splitfont.c	Mon Jul  7 18:09:56 2003
> > @@ -128,7 +128,7 @@
> >  		write (newfont, &newoffset, sizeof(newoffset));
> >  		close (newfont);
> >  	}
> > -	exit(0);
> > +	return 0;
> >  }
> >  
> >  int savechar (int font, int newfont)
> 
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5




More information about the grass-dev mailing list