Re: xgcc, ICE, and how to script -O changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 12 Jun 2019 at 15:00, Brian Groose <bgroose@xxxxxxxxx> wrote:
>
> I'm building gcc 8.3.0 cross compiled for HPUX ia64 and I get a few
> dozen ICEs in xgcc during the build.  For all of them, the ICE happens
> at -O1 and -O2, but not at -O0 and -O3.  It's mostly libssp.c, all of
> c++98, all of c++11, and a few other gcov-*.c files.  And libgomp, but
> those ICE at every -O level, so I've just disabled it.
>
> While it would be great if these could be fixed, I'm happy to just
> compile these files at -O0 or -O3 if that allows things to work as-is.
>
> My issue is that I'd like to be able to script this logic instead of
> manually having to re-run xgcc or libtool with the extra-O flag on the
> end.
>
> I tried adding '#pragma GCC optimize "-O0"' to the top of the

What about:

// { dg-options "-O0" }

instead?



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux