New parameter in GCC

Ian Lance Taylor
Wed Aug 3 05:00:00 GMT 2011

Harry Trinta <> 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=
> 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.


More information about the Gcc-help mailing list