PATCH: PR middle-end/29862: Calling a function with gcc_assert

Kaveh R. GHAZI
Thu Nov 16 03:42:00 GMT 2006

On Wed, 15 Nov 2006, H. J. Lu wrote:

> We shouldn't call mpfr_set_str with gcc_assert since it leads to
> mpfr_set_str is only called when runtime check is enabled. This
> patch fixes it.
> H.J.

Actually that's not true.  The definition of gcc_assert evaluates the
argument >even when assert checking is turned off<.  Look at the
definition in system.h.

However if you feel the code as I wrote it is misleading to the average
person, I have no objection to your change.

Kaveh R. Ghazi

More information about the Gcc-patches mailing list