https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86856
nightstrike <nightstrike at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Warning: unknown conversion |Format warnings building |type for |all-gcc |ASM_OUTPUT_REG_PUSH and | |ASM_OUTPUT_REG_POP | --- Comment #9 from nightstrike <nightstrike at gmail dot com> --- Ok, using gcc 8.1, the ASM warnings are gone, so I'll remove that from the title. The rest of the warnings are greatly reduced and slightly different, so I'll repost here and try to improve the title. Feel free to change it better. ../../../gccsvn/gcc/gimple-fold.c: In function 'bool gimple_fold_builtin_strncpy(gimple_stmt_iterator*, tree, tree, tree)': ../../../gccsvn/gcc/gimple-fold.c:1666:4: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD destination unchanged after copying no bytes " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "from a string of length %E", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stmt, fndecl, slen); ~~~~ ../../../gccsvn/gcc/gimple-fold.c:1671:4: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD destination unchanged after copying no bytes", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stmt, fndecl); ~~~~ ../../../gccsvn/gcc/gimple-fold.c: In function 'bool gimple_fold_builtin_strncat(gimple_stmt_iterator*)': ../../../gccsvn/gcc/gimple-fold.c:2043:37: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] stmt, fndecl, len, dstsize); ~~~~ ^ ../../../gccsvn/gcc/gimple-fold.c:2043:37: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] ../../../gccsvn/gcc/gimple-fold.c:2059:9: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD specified bound %E equals source length", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stmt, fndecl, len)) ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c: In function 'bool {anonymous}::maybe_diag_overlap(location_t, gimple*, {anonymous}::builtin_access&)': ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1403:46: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] call, func, sizrange[0], ~~~~ offstr[0], offstr[1], ovlsiz[0], offstr[2]); ^ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1403:46: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1403:46: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1403:46: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1409:10: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu bytes at offsets %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and %s overlaps between %wu and %wu bytes " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "at offset %s", ~~~~~~~~~~~~~~ call, func, sizrange[0], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1406:10: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu byte at offsets %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and %s overlaps between %wu and %wu bytes " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "at offset %s", ~~~~~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1412:10: call, func, sizrange[0], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1418:10: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu bytes at offsets %s and " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s overlaps %wu or more bytes at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ call, func, sizrange[0], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1416:10: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu byte at offsets %s and " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s overlaps %wu or more bytes at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1420:10: call, func, sizrange[0], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1432:10: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing between %wu and %wu bytes " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "at offsets %s and %s overlaps %wu bytes " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "at offset %s", ~~~~~~~~~~~~~~ call, func, sizrange[0], sizrange[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1429:10: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing between %wu and %wu bytes " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "at offsets %s and %s overlaps %wu byte at " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "offset %s", ~~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1435:10: call, func, sizrange[0], sizrange[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1439:4: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD accessing between %wu and %wu bytes at " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "offsets %s and %s overlaps between %wu and %wu " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "bytes at offset %s", ~~~~~~~~~~~~~~~~~~~~ call, func, sizrange[0], sizrange[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1447:4: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD accessing between %wu and %wu bytes at " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "offsets %s and %s overlaps %wu or more bytes " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "at offset %s", ~~~~~~~~~~~~~~ call, func, sizrange[0], sizrange[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1462:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu or more bytes at offsets " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s and %s overlaps %wu bytes at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ call, func, sizrange[0], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1460:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu or more bytes at offsets " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s and %s overlaps %wu byte at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1464:6: call, func, sizrange[0], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1468:7: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu or more bytes at offsets %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and %s overlaps between %wu and %wu bytes " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "at offset %s", ~~~~~~~~~~~~~~ call, func, sizrange[0], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1475:7: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu or more bytes at offsets %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and %s overlaps %wu or more bytes at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ call, func, sizrange[0], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1505:10: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu bytes may overlap " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%wu byte", ~~~~~~~~~~ call, func, sizrange[1], ovlsiz[1]); ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1503:10: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu byte may overlap " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%wu byte", ~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1507:10: call, func, sizrange[1], ovlsiz[1]); ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1512:10: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu bytes at offsets %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and %s may overlap %wu byte at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ call, func, sizrange[1], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1510:10: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu byte at offsets %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and %s may overlap %wu byte at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1514:10: call, func, sizrange[1], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1523:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu bytes may overlap " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "up to %wu bytes", ~~~~~~~~~~~~~~~~~ call, func, sizrange[1], ovlsiz[1]); ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1521:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu byte may overlap " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "up to %wu bytes", ~~~~~~~~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1525:6: call, func, sizrange[1], ovlsiz[1]); ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1530:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu bytes at offsets %s and " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s may overlap up to %wu bytes at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ call, func, sizrange[1], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1528:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu byte at offsets %s and " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s may overlap up to %wu bytes at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1532:6: call, func, sizrange[1], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1543:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing between %wu and %wu bytes " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "may overlap up to %wu bytes", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ call, func, sizrange[0], sizrange[1], ovlsiz[1]); ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1541:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing between %wu and %wu bytes " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "may overlap %wu byte", ~~~~~~~~~~~~~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1545:6: call, func, sizrange[0], sizrange[1], ovlsiz[1]); ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1551:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing between %wu and %wu bytes " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "at offsets %s and %s may overlap up to %wu " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "bytes at offset %s", ~~~~~~~~~~~~~~~~~~~~ call, func, sizrange[0], sizrange[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1548:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing between %wu and %wu bytes " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "at offsets %s and %s may overlap %wu byte " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "at offset %s", ~~~~~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1554:6: call, func, sizrange[0], sizrange[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1562:7: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu or more bytes at offsets %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and %s may overlap up to %wu bytes at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ call, func, sizrange[0], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1560:7: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD accessing %wu or more bytes at offsets %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and %s may overlap %wu byte at offset %s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1564:7: call, func, sizrange[0], offstr[0], offstr[1], ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c: In function 'bool {anonymous}::maybe_diag_offset_bounds(location_t, gimple*, tree, int, tree, const {anonymous}::builtin_memref&)': ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1622:6: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD pointer overflow between offset %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and size %s accessing array %qD with type %qT", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ call, func, rangestr[0], rangestr[1], ref.base, type)) ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1632:6: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD pointer overflow between offset %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and size %s", ~~~~~~~~~~~~~ call, func, rangestr[0], rangestr[1]); ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1638:9: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD pointer overflow between offset %s " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and size %s", ~~~~~~~~~~~~~ call, func, rangestr[0], rangestr[1]); ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1662:40: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] call, func, rangestr[0], ref.basesize.to_uhwi (), ~~~~ ref.base, TREE_TYPE (ref.base))) ^ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1662:40: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1670:39: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] call, func, rangestr[0], ~~~~ ref.base, TREE_TYPE (ref.base))) ^ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1670:39: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1684:57: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] call, func, rangestr[0], ref.basesize.to_uhwi ()); ~~~~ ^ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1684:57: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1690:32: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] call, func, rangestr[0]); ~~~~ ^ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1690:32: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1700:7: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD offset %s from the object at %qE is out " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "of the bounds of %qT", ~~~~~~~~~~~~~~~~~~~~~~ call, func, rangestr[0], ref.base, type); ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1709:7: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD offset %s from the object at %qE is out " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "of the bounds of referenced subobject %qD with " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "type %qT at offset %wu", ~~~~~~~~~~~~~~~~~~~~~~~~ call, func, rangestr[0], ref.base, ~~~~ ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c: In function 'bool check_bounds_or_overlap(gimple*, tree, tree, tree, tree, bool)': ../../../gccsvn/gcc/gimple-ssa-warn-restrict.c:1869:9: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD source argument is the same as destination", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ call, func); ~~~~ ../../../gccsvn/gcc/tree-ssa-ccp.c: In member function 'virtual unsigned int {anonymous}::pass_post_ipa_warn::execute(function*)': ../../../gccsvn/gcc/tree-ssa-ccp.c:3458:11: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%Gargument %u null where non-null " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "expected", stmt, i + 1)) ~~~~~~~~~~ ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c: In function 'bool maybe_diag_stxncpy_trunc(gimple_stmt_iterator, tree, tree)': ../../../gccsvn/gcc/tree-ssa-strlen.c:2044:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD output truncated before terminating nul " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "copying %E bytes from a string of the same " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "length", ~~~~~~~~ stmt, func, cnt); ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2041:6: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD output truncated before terminating " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "nul copying %E byte from a string of the " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "same length", ~~~~~~~~~~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2047:6: stmt, func, cnt); ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2059:7: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD output truncated copying %E bytes " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "from a string of length %wu", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stmt, func, cnt, lenrange[0].to_uhwi ()); ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2057:7: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD output truncated copying %E byte " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "from a string of length %wu", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2061:7: stmt, func, cnt, lenrange[0].to_uhwi ()); ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2064:6: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD output truncated copying between %wu " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "and %wu bytes from a string of length %wu", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stmt, func, cntrange[0].to_uhwi (), ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2078:7: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD output may be truncated copying %E " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "bytes from a string of length %wu", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stmt, func, cnt, lenrange[1].to_uhwi ()); ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2076:7: warning: format '%G' expects argument of type 'gcall*', but argument 6 has type 'gimple*' [-Wformat=] "%G%qD output may be truncated copying %E " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "byte from a string of length %wu", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2080:7: stmt, func, cnt, lenrange[1].to_uhwi ()); ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2083:6: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD output may be truncated copying between " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%wu and %wu bytes from a string of length %wu", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stmt, func, cntrange[0].to_uhwi (), ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2099:9: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD output may be truncated copying between " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%wu and %wu bytes from a string of length %wu", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stmt, func, cntrange[0].to_uhwi (), ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2120:7: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD specified bound %E equals destination size", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stmt, func, cnt); ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c: In function 'void handle_builtin_stxncpy(built_in_function, gimple_stmt_iterator*)': ../../../gccsvn/gcc/tree-ssa-strlen.c:2218:8: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD output truncated before terminating nul " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "copying as many bytes from a string as its length", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stmt, func)) ~~~~ ../../../gccsvn/gcc/tree-ssa-strlen.c:2224:5: warning: format '%G' expects argument of type 'gcall*', but argument 4 has type 'gimple*' [-Wformat=] "%G%qD specified bound depends on the length " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "of the source argument", ~~~~~~~~~~~~~~~~~~~~~~~~ stmt, func); ~~~~