On Sat, 17 Feb 2007, Richard Guenther wrote:
> > Thanks, I'll change it. BTW the output looks like this:
> >
> > GNU C version 4.3.0 20070216 (experimental) (sparc-sun-solaris2.10)
> > compiled by GNU C version 3.4.6.
> > GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> > GMP: header version <4.2.1>, library version <4.2.1>
> > MPFR: header version <2.2.1>, library version <2.2.1>
>
> The <> look inconsistent with the GCC version numbers. I'd put the
> information next to the compiler used for building gcc, like
>
> compiled by GNU C version 3.4.6, GMP version 4.2.1, MPFR version 2.2.1.
>
> and print the header/library version only on a mismatch as a warning.
> Richard.
I'm not sure I agree about combining the two. With the combined form,
it's not clear to the user that gcc is checking internally that the two
versions are identical. They may be left wondering whether gcc is showing
the header or lib version or has the smarts to check both.