[m-rev.] for review: make gcc version information available to mmc

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Jan 30 17:53:00 AEDT 2009


On Fri, 30 Jan 2009, Peter Wang wrote:

> 2009/1/30 Julien Fischer <juliensf at csse.unimelb.edu.au>:
>>
>> Extend the configuration script so that if the C compiler we are
>> using is GCC we also try to determine what version of GCC it is.
>>
>> Make gcc version information available to mmc.
>
> What's the intended use?

To allow compile_target_code.m to make version specific choices
about the flags it passes to the gcc.  (The same thing goes
for the mgnuc script which also lacks detailed version information
for gcc.)

The longer term aim of this change is to support (1) simplifying
configuration of binary distributions and (2) improve support
for cross compilation.

> It only reports the version of gcc found
> at configure time, not the actual version of gcc that will be called.

Not at all, if used in conjunction with the --cc option, for example:

 	mmc --cc=/usr/bin/gcc-3.4 --c-compiler-type=gcc_3_4_6

(Obviously the above is not something you would do in the normal course
of things.)

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list