[Bug debug/69077] [6 Regression] omnetpp ICEs with -flto -g
kugan at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 4 05:52:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69077
kugan at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kugan at gcc dot gnu.org
--- Comment #8 from kugan at gcc dot gnu.org ---
For decl "mean" in t2.cc, in:
void sf::finish() {
recordScalar(eedStats.mean());
}
Qe have:
LOCATION_LOCUS (BLOCK_SOURCE_LOCATION (block)) is UNKNOWN_LOCATION;
As per the comments in tree.h, BLOCK_SOURCE_LOCATION should be set for inlined
function (function "mean" here).
debug_tree (decl for "mean") is:
<function_decl 0x7fe2c9a3dd00 mean
type <method_type 0x7fe2c9a43bd0
type <real_type 0x7fe2c98f6498 double asm_written DF
size <integer_cst 0x7fe2c98e1a08 constant 64>
unit size <integer_cst 0x7fe2c98e1a20 constant 8>
align 64 symtab -912663504 alias set -1 canonical type
0x7fe2c98f6498 precision 64
pointer_to_this <pointer_type 0x7fe2c98f6690>>
SI
size <integer_cst 0x7fe2c98e1c48 constant 32>
unit size <integer_cst 0x7fe2c98e1c60 constant 4>
align 32 symtab 0 alias set -1 structural equality method basetype
<record_type 0x7fe2c9a382a0 cStdDev>
arg-types <tree_list 0x7fe2c9a3b780 value <pointer_type 0x7fe2c9a43b28>
chain <tree_list 0x7fe2c98ef9d8 value <void_type 0x7fe2c98f6000
void>>>
pointer_to_this <pointer_type 0x7fe2c9a47348>>
addressable asm_written nothrow public static weak function-specific-target
function-specific-opt autoinline virtual DI file t.h line 4 col 22 align 32
context <record_type 0x7fe2c9a382a0 cStdDev> initial <error_mark
0x7fe2c98e19f0>
(mem:DI (symbol_ref/i:DI ("_ZNK7cStdDev4meanEv") [flags 0x3] <function_decl
0x7fe2c9a3dd00 mean>) [0 S8 A8])>
not sure why ?
More information about the Gcc-bugs
mailing list