When GCC9 is built with an older GCC (4.2.1) on FreeBSD 32-bit on PowerPC
an ICE is generated on stage 1 when selftests are performed.

After an investigation the root cause was traced to an unnecessary and
harmful instantiation of a new dump_context singleton class in order to
get the current activated instance.

I was only able to reproduce it on FreeBSD 32-bit but it can probably
affect other 32-bit OSs in my understanding, and accordingly to the FreeBSD
Community it can affect building GCC on FreeBSD 64-bit too.

On FreeBSD 12.1 32-bit the bug reproduces 100% when GCC9 is built with base
GCC 4.2.1. For additional details, please see:

* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242506 and
* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243666

Gustavo Romero (1):
  Fix use of singleton in optinfo framework

 gcc/dumpfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.7.4

Reply via email to