[Bug c/70281] New: valgrind error in can_be_stored_compactly_p (line-map.c:148)

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 17 17:18:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70281

            Bug ID: 70281
           Summary: valgrind error in can_be_stored_compactly_p
                    (line-map.c:148)
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 38001
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38001&action=edit
gzipped C source code

The attached code, when compiled by gcc trunk dated 20160313 does this:

==18886== Conditional jump or move depends on uninitialised value(s)
==18886==    at 0x104961E: can_be_stored_compactly_p (line-map.c:148)
==18886==    by 0x104961E: get_combined_adhoc_loc(line_maps*, unsigned int,
source_range, 
void*) (line-map.c:190)
==18886==    by 0xBBCF88: COMBINE_LOCATION_DATA (line-map.h:993)
==18886==    by 0xBBCF88: set_source_range(tree_node*, source_range)
(tree.c:14028)
==18886==    by 0xBBCFB1: set_source_range(tree_node*, unsigned int, unsigned
int) (tree.c
:14015)
==18886==    by 0x5F69FF: set_c_expr_source_range (c-parser.c:78)

Only gcc flag required is -c.


More information about the Gcc-bugs mailing list