Files
mercury/tests/hard_coded/split_c_files.split.exp
Fergus Henderson 3ca06e20a6 Fix a bug reported by Warwick Harvey where the compiler generated
Estimated hours taken: 2.5

Fix a bug reported by Warwick Harvey where the compiler generated
invalid C code when compiling code with --debug --split-c-files.
The generated code was referring to a layout info struct without
having first declared it.

compiler/trace.m:
	When generating the C code that fills in the trace stack slot that
	holds the redo layout info, ensure that we include the redo label in
	the FixedLabel slot of the `pragma_c' instruction that we generate.

compiler/llds_out.m:
	Ensure that we generate a declaration of the layout info
	for the label in the FixedLabel slot of `pragma_c' instructions,
	if any.

tests/hard_coded/Mmakefile:
tests/hard_coded/split_c_files.m:
tests/hard_coded/split_c_files.split.exp:
	Add a regression test.
2000-03-21 04:54:39 +00:00

2 lines
10 B
Plaintext