This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Libmudflap for sh-elf toolchain cannot access environment variable MUDFLAP_OPTIONS
- From: "Deepen Mantri" <Deepen dot Mantri at kpitcummins dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Fri, 15 Jun 2007 21:35:12 +0530
- Subject: RE: Libmudflap for sh-elf toolchain cannot access environment variable MUDFLAP_OPTIONS
Frank Eigler wrote:
>You need to teach your simulator to pass environment variables on ...
Thanks for the reply.
To pass on the environment variables from simulator to a.out which
is targeted for machine different than host would require simulator
to pass the data to a.out (other than command line arguments).
Can we do this?
>Since command line arguments are (sometimes) passed on, perhaps you
>could write a short routine that parses MUDFLAP_OPTIONS from there
>and calls __mf_set_options.
You mean to say that instead of setting environment variable,
I should pass mudflap runtime controlling options (for eg: -print-leaks)
as command line arguments and add a routine to detect them.
Regards
Deepen Mantri
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH, H8,
R8C,M16C and M32C Series. The following site also offers free
technical support to its users.
Visit http://www.kpitgnutools.com for details.
Latest versions of KPIT GNU tools were released on Feb 6, 07
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~