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]
Other format: [Raw text]

Re: bootstrap failure while compiling gcc/tree.c (ICE)


On Tue, 28 Aug 2007, Brian Sidebotham wrote:

> > 2007-08-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
> >
> > 	* system.h (CONST_CAST): Avoid union for gcc-4.0.x.
> >
> > diff -rup orig/egcc-SVN20070825/gcc/system.h egcc-SVN20070825/gcc/system.h
> > --- orig/egcc-SVN20070825/gcc/system.h	2007-08-10 14:11:38.000000000 -0400
> > +++ egcc-SVN20070825/gcc/system.h	2007-08-26 12:29:12.577795974 -0400
> > @@ -774,7 +774,9 @@ extern void fancy_abort (const char *, i
> >     execv, et al.  Another valid use would be in an allocation function
> >     that creates const objects that need to be initialized.  Most other
> >     cases should be viewed with extreme caution.  */
> > -#ifdef __GNUC__
> > +
> > +#if defined(__GNUC__) && GCC_VERSION != 4000
> > +/* GCC 4.0.x has a bug where it may ICE on this expression.  */
> >  #define CONST_CAST(X) ((__extension__(union {__typeof(X)_q; void *_v;})(X))._v)
> >  #else
> >  #define CONST_CAST(X) ((void*)(X))
> >
>
> Hi Kaveh,
> This patch solves the issue, thanks!
> Best Regards,
> Brian Sidebotham.

Great, thanks for the feedback.  Installed.

--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


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