mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-05-01 09:14:08 +00:00
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.
2 lines
10 B
Plaintext
2 lines
10 B
Plaintext
[1, 2, 3]
|