New parameter in GCC

Ian Lance Taylor iant@google.com
Wed Aug 3 05:00:00 GMT 2011


Harry Trinta <harrytpc@gmail.com> writes:

> I'm developing a feature that sends  gcov information coverage  to a
> remote host, via sockets.
> So I would like the user to pass the host IP address via parameter
> during compilation. Something like:
>
> gcc file.c -ftest-coverage -fprofile-arcs -ipHost=127.0.0.1
>
> where -ftest-coverage -fprofile-arcs are required in the use of gcov.
> And -ipHost is my new parameter.

You want a new command line option for gcc?  Make it start with -f, and
add it to gcc/common.opt.

Ian



More information about the Gcc-help mailing list