Make the compiler bootstrap again in term size profiling grades.

Estimated hours taken: 3
Branches: main

Make the compiler bootstrap again in term size profiling grades.

compiler/llds_out.m:
	Don't output a stray & that introduces a C syntax error. This code
	was invoked only in term size profiling grades.

library/thread.semaphore.m:
	Replace the use of a C macro that isn't defined in term size profiling
	grades with a macro that *is* defined.

runtime/mercury_term_size.c:
	Handle the dummy type_ctor_rep added recently.

trace/mercury_trace_vars.c:
	Update the code that prints the sizes of the terms bound to variables
	(which is enabled only in term size profiling grades) to handle the
	changes made when I added user event attributes.

tests/debugger/tailrec1.exp2:
	Add a new expected output for this case that also prints the variables
	added by the term size profiling transformation.

tests/debugger/term_size_words.{m,exp}:
	Update this test case for the old breakup of std_util.m and the changes
	in the printing of floats.
This commit is contained in:
Zoltan Somogyi
2009-01-12 01:46:49 +00:00
parent aa7743278a
commit 2f85a4b427
7 changed files with 205 additions and 58 deletions

View File

@@ -2,7 +2,7 @@
** vim:ts=4 sw=4 expandtab
*/
/*
** Copyright (C) 2003-2005, 2007 The University of Melbourne.
** Copyright (C) 2003-2005, 2007, 2009 The University of Melbourne.
** This file may only be copied under the terms of the GNU Library General
** Public License - see the file COPYING.LIB in the Mercury distribution.
*/
@@ -331,6 +331,15 @@ try_again:
#endif
return 1;
case MR_TYPECTOR_REP_DUMMY:
#ifdef MR_DEBUG_TERM_SIZES
if (MR_heapdebug && MR_lld_print_enabled) {
printf("MR_term_size: dummy %p\n",
(void *) term);
}
#endif
return 0;
case MR_TYPECTOR_REP_VOID:
MR_fatal_error("MR_term_size: VOID");