From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Wilson To: Peter Barada Cc: egcs@cygnus.com Subject: Re: Profiling floating point emulation (fp-bit) Date: Mon, 16 Mar 1998 20:25:00 -0000 Message-id: <199803170125.RAA14839@rtl.cygnus.com> References: <199803140229.VAA08783@miacomet.wavemark.com> X-SW-Source: 1998-03/msg00543.html An easy solution is to just install two copies of EGCS, one of which had libgcc.a compiled with -pg (or -p). You should be able to just add the appropriate option to LIBGCC2_CFLAGS to make this happen. If you want a more elegant solution, then you could handle -pg as multilib options, which would cause every library to be build 2 times as often as it does now, with half of them being build with profiling and the other half without. Then gcc should automatically use the profiled libgcc.a when you use -pg. Jim