This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa mudflap] source file/line locations


On Wed, Aug 21, 2002 at 03:54:42PM -0400, Frank Ch. Eigler wrote:
> +/* And another friend, for producing a simpler message.  */
> +static tree
> +mf_file_function_line_tree (file, line)
> +     const char * file;
> +     int line;

You'd probably be better off keeping file and line separate, as
that'll use less space in the excutable.  As-is you'll have hordes of

	"longfilename.c:1 (foo)"
	"longfilename.c:2 (foo)"
	"longfilename.c:3 (foo)"

instead of

	"longfilename.c"
	"foo"

and some extra code for pushing the new arguments to the runtime.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]