2024-07-13 14:16 AEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000393mercuryBugpublic2015-09-18 06:57
Assigned Tozs 
Product Version 
Target VersionFixed in Version 
Summary0000393: #line directives in .mh cause unnecessary recompilations
DescriptionThis is a source of mysterious recompilations that I was experiencing in debug grades. I had a mutable declaration near the *end* of a file:

:- mutable(debug_num, int, 0, ground, [untrailed, attach_to_io_state]).

resulting in a #line directive in the .mh file:

#line 1400 "../writepdf/raster.m"
    extern MR_Integer writepdf__raster__mutable_variable_debug_num;
    extern MR_Word writepdf__raster__mutable_variable_debug_num;
    extern MercuryLock writepdf__raster__mutable_variable_debug_num_lock;

Adding or removing blank lines would be enough to triggering recompilation of seemingly unrelated .c files.
TagsNo tags attached.
Attached Files




zs (developer)

Fixed 18 sep 2015 by commit 410c75c81f47d0a1f5620f1f41f4e7afe87c665d.

-Issue History
Date Modified Username Field Change
2015-09-15 10:40 wangp New Issue
2015-09-17 16:19 zs Assigned To => zs
2015-09-17 16:19 zs Status new => assigned
2015-09-18 06:57 zs Note Added: 0000848
2015-09-18 06:57 zs Status assigned => resolved
2015-09-18 06:57 zs Resolution open => fixed
+Issue History