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]

Re: [patch] Re: GCC 2.95 Solaris7 i86pc compilation fail with -g generates internal compiler error


On Aug 10, 1999, Mark Mitchell <mark@codesourcery.com> wrote:

>>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:

> 	* pt.c (tsubst): Use build_index_type to build in-template array
> 	index type.  Fixes g++.oliva/dwarf1.C.

> I don't think this is correct.  For one thing, build_index_type
> attempts to perform conversions on MAX; as noted in the comment it may
> be template dependent.

But it must be a sizetype, as noted by Richard Henderson.  Anyway,
this patch didn't cause any regressions in the testsuite, and fixed
dwarf1.C.  The problem was that some function within dwarfout.c
crashed because PRECISION wasn't set for that type.  Back-out the
patch and compile dwarf1.C with -gdwarf and you'll see.

If you have any testcase that exercise the situation you describe, I'd
love to see it.  I couldn't find any (but I admit I haven't tried too
hard, as I haven't had much time :-(

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


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