http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45827
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #19 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2010-10-01 17:42:40 UTC --- After applying this patch to get rid of the error in comment #18: --- a/cpp.c +++ b/cpp.c @@ -510,10 +510,11 @@ gfc_cpp_post_options (void) || gfc_cpp_option.dump_includes)) gfc_fatal_error("To enable preprocessing, use -cpp"); - cpp_in = cpp_create_reader (CLK_GNUC89, NULL, line_table); if (!gfc_cpp_enabled ()) return; + cpp_in = cpp_create_reader (CLK_GNUC89, NULL, line_table); + gcc_assert (cpp_in); /* The cpp_options-structure defines far more flags than those set here. I can now see this: ==7134== 4 bytes in 2 blocks are definitely lost in loss record 2 of 842 ==7134== at 0x4A04481: calloc (vg_replace_malloc.c:418) ==7134== by 0xCCDB08: xcalloc (xmalloc.c:162) ==7134== by 0x4F6E8F: parse_atom (module.c:1037) ==7134== by 0x4FD7EC: gfc_use_module (module.c:5595) ==7134== by 0x501C94: accept_statement (parse.c:1574) ==7134== by 0x504A2A: parse_spec (parse.c:2588) ==7134== by 0x5074F0: gfc_parse_file (parse.c:4109) ==7134== by 0x53EB97: gfc_be_parse_file (f95-lang.c:242) ==7134== by 0x83523F: toplev_main (toplev.c:955) ==7134== by 0x3E9F21EC5C: (below main) (libc-start.c:226) ==7134== ==7134== 159 bytes in 1 blocks are definitely lost in loss record 499 of 842 ==7134== at 0x4A04481: calloc (vg_replace_malloc.c:418) ==7134== by 0xCCDB08: xcalloc (xmalloc.c:162) ==7134== by 0x659E64: init_emit (emit-rtl.c:5574) ==7134== by 0x6E3328: prepare_function_start (function.c:4382) ==7134== by 0x6E8E88: init_function_start (function.c:4436) ==7134== by 0x5554D6: trans_function_start.isra.2 (trans-decl.c:2002) ==7134== by 0x55F7C0: gfc_generate_function_code (trans-decl.c:4557) ==7134== by 0x543B8A: gfc_generate_module_code (trans.c:1433) ==7134== by 0x507AD5: gfc_parse_file (parse.c:4377) ==7134== by 0x53EB97: gfc_be_parse_file (f95-lang.c:242) ==7134== by 0x83523F: toplev_main (toplev.c:955) ==7134== by 0x3E9F21EC5C: (below main) (libc-start.c:226) ==7134== ==7134== 184 bytes in 1 blocks are definitely lost in loss record 514 of 842 ==7134== at 0x4A04481: calloc (vg_replace_malloc.c:418) ==7134== by 0xCCDB08: xcalloc (xmalloc.c:162) ==7134== by 0x4C853F: gfc_get_expr (expr.c:48) ==7134== by 0x51A924: extract_compcall_passed_object (resolve.c:5283) ==7134== by 0x51A978: check_typebound_baseobject (resolve.c:5405) ==7134== by 0x51AE09: resolve_typebound_call (resolve.c:5607) ==7134== by 0x51E730: resolve_code (resolve.c:5843) ==7134== by 0x51F1AB: gfc_resolve_blocks (resolve.c:8568) ==7134== by 0x51D3E3: resolve_code (resolve.c:8810) ==7134== by 0x51F332: resolve_codes (resolve.c:13323) ==7134== by 0x51F23F: resolve_codes (resolve.c:13309) ==7134== by 0x51171B: gfc_resolve (resolve.c:13350) ==7134== ==7134== 192 (96 direct, 96 indirect) bytes in 6 blocks are definitely lost in loss record 518 of 842 ==7134== at 0x4A04481: calloc (vg_replace_malloc.c:418) ==7134== by 0xCCDB08: xcalloc (xmalloc.c:162) ==7134== by 0x4F7C87: mio_formal_arglist (module.c:2517) ==7134== by 0x4FA0CF: mio_component (module.c:2402) ==7134== by 0x4FA49D: mio_symbol (module.c:2434) ==7134== by 0x4FA7CF: load_needed (module.c:4171) ==7134== by 0x4FA775: load_needed (module.c:4132) ==7134== by 0x4FA780: load_needed (module.c:4133) ==7134== by 0x4FA775: load_needed (module.c:4132) ==7134== by 0x4FA775: load_needed (module.c:4132) ==7134== by 0x4FA780: load_needed (module.c:4133) ==7134== by 0x4FA775: load_needed (module.c:4132) ==7134== and several other similar messages.