[PATCH, libgfortran] Remove recursion check

Thomas Koenig tkoenig@netcologne.de
Sat Oct 6 17:55:00 GMT 2018


Hi Jerry,

> Agree it should be fixed. I would think a mutex lock should work. Lock, 
> issue error message, unlock. Even if there is recursion, since there is 
> at least one error somewhere, It should be OK to pause the world to 
> issue the error, and come back and finish. AS I think about it, maybe 
> one global lock variable so that only one thread can get it at a time 
> and others wait until it is unlcoked to proceed with their lock and error.

> Would there be a problem with some sort of endless loop waiting for the 
> unlock?

I think that as long as we

a) make the lock recursive

b) make sure to unlock it afterwards

we should be fine, we also should not enter an endless loop on
the rare case of aa double error.

I can prepare a patch, unless somebody else wants to do it.

Regards

	Thomas



More information about the Fortran mailing list