Re: ICE with precompiled headers (GCC 8.1)

2019-05-02 Thread Nathan Sidwell
On 5/1/19 10:56 AM, Paul Smith wrote: On Wed, 2019-05-01 at 09:35 -0400, Paul Smith wrote: Unfortunately my GCC is heavily optimized and stripped so backtraces are useless. I will generate a debuggable GCC and see if I can get more info on the ICE. I have created a GCC with debug enabled so I

Re: ICE with precompiled headers (GCC 8.1)

2019-05-01 Thread Paul Smith
I was able to reproduce this with GCC 9.0.1 20190430 as well. It appears that adding -MD to the PCH build sometimes causes the "deps" data in the PCH file to be empty, but this is never noticed unless you use the -fpch-deps option on the source compile line: if you don't do this then nothing in GC

Re: ICE with precompiled headers (GCC 8.1)

2019-05-01 Thread Paul Smith
On Wed, 2019-05-01 at 09:35 -0400, Paul Smith wrote: > > Unfortunately my GCC is heavily optimized and stripped so backtraces > > are useless. I will generate a debuggable GCC and see if I can get > > more info on the ICE. > > I have created a GCC with debug enabled so I'll see what I find. I wa

Re: ICE with precompiled headers (GCC 8.1)

2019-05-01 Thread Paul Smith
On Tue, 2019-04-30 at 09:43 -0400, Paul Smith wrote: > Here's the thing: I added the "-MD -MF foo.d" options to the PCH file > compile (I wanted to get a manifest of which files were included in the > PCH file). Without those options I cannot reproduce this at all (in a > number of tries). With t

Re: ICE with precompiled headers (GCC 8.1)

2019-04-30 Thread Paul Smith
On Tue, 2019-04-30 at 09:34 -0600, Zan Lynx wrote: > > In the meantime, does this remind anyone of an existing bug, > > hopefully one that was fixed in 8.2 or 8.3? > > It does remind me of a race condition bug with a Makefile I wrote > years ago. > > One or two build tasks did not properly depend

Re: ICE with precompiled headers (GCC 8.1)

2019-04-30 Thread Zan Lynx
On April 30, 2019 7:43:47 AM MDT, Paul Smith wrote: >I have GCC 8.1.0 / binutils 2.30 on GNU/Linux 64bit (built locally). >My codebase is almost all C++. > >I'm implementing precompiled headers and it was going well. However, >sometimes a PCH file is generated that causes the compiler to ICE whe

ICE with precompiled headers (GCC 8.1)

2019-04-30 Thread Paul Smith
I have GCC 8.1.0 / binutils 2.30 on GNU/Linux 64bit (built locally). My codebase is almost all C++. I'm implementing precompiled headers and it was going well. However, sometimes a PCH file is generated that causes the compiler to ICE when trying to use it during a source file compilation: :