/netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
H A D | gimple-ssa-warn-restrict.c | 153 const offset_int maxobjsize; variable 247 maxobjsize (tree_to_shwi (max_object_size ())), in builtin_memref() 272 if (sizrange[0] <= maxobjsize && sizrange[1] > maxobjsize) in builtin_memref() 273 sizrange[1] = maxobjsize; in builtin_memref() 276 sizrange[1] = maxobjsize; in builtin_memref() 286 offset_int maxoff = maxobjsize; in builtin_memref() 302 offrange[1] = offrange[0] <= maxoff ? maxoff : maxobjsize; in builtin_memref() 490 offrange[1] += maxobjsize; in set_base_and_offset() 501 offrange[1] += maxobjsize; in set_base_and_offset() 573 offrng[1] = maxobjsize; in offset_out_of_bounds() [all …]
|
H A D | gimple-ssa-warn-alloca.c | 195 const offset_int maxobjsize = tree_to_shwi (max_object_size ()); in alloca_call_type_by_arg() local 200 alloca_type unbounded_result = (max_size < maxobjsize.to_uhwi () in alloca_call_type_by_arg() 254 = (max_size < maxobjsize.to_uhwi () in alloca_call_type_by_arg() 354 const offset_int maxobjsize in alloca_call_type() local 356 alloca_type result = (max_size < maxobjsize in alloca_call_type() 420 const offset_int maxobjsize in alloca_call_type() local 422 alloca_type result = (max_size < maxobjsize in alloca_call_type() 482 const offset_int maxobjsize in alloca_call_type() local 484 alloca_type result = (max_size < maxobjsize in alloca_call_type() 551 const offset_int maxobjsize in execute() local [all …]
|
H A D | calls.c | 1366 tree maxobjsize = alloc_max_size (); in maybe_warn_alloc_args_overflow() local 1404 else if (tree_int_cst_lt (maxobjsize, args[i])) in maybe_warn_alloc_args_overflow() 1421 exp, idx[i] + 1, args[i], maxobjsize); in maybe_warn_alloc_args_overflow() 1437 else if (tree_int_cst_lt (maxobjsize, argrange[i][0])) in maybe_warn_alloc_args_overflow() 1444 maxobjsize); in maybe_warn_alloc_args_overflow() 1474 else if (wi::ltu_p (wi::to_wide (maxobjsize, szprec), prod)) in maybe_warn_alloc_args_overflow() 1480 maxobjsize); in maybe_warn_alloc_args_overflow() 1671 tree maxobjsize = max_object_size (); in maybe_warn_nonstring_arg() local 1672 if (tree_int_cst_lt (maxobjsize, bndrng[0])) in maybe_warn_nonstring_arg() 1678 exp, fndecl, bndrng[0], maxobjsize); in maybe_warn_nonstring_arg() [all …]
|
H A D | builtins.c | 3129 tree maxobjsize = max_object_size (); in expand_builtin_strnlen() local 3142 && tree_int_cst_lt (maxobjsize, bound) in expand_builtin_strnlen() 3146 exp, func, bound, maxobjsize)) in expand_builtin_strnlen() 3199 && wi::ltu_p (wi::to_wide (maxobjsize, min.get_precision ()), min) in expand_builtin_strnlen() 3203 exp, func, min.to_uhwi (), max.to_uhwi (), maxobjsize)) in expand_builtin_strnlen() 3365 tree maxobjsize = max_object_size (); in check_access() local 3432 dstsize = maxobjsize; in check_access() 3443 && tree_int_cst_lt (maxobjsize, range[0])) in check_access() 3457 exp, func, range[0], maxobjsize) in check_access() 3461 exp, range[0], maxobjsize)); in check_access() [all …]
|
H A D | tree-vrp.c | 3694 const offset_int maxobjsize = tree_to_shwi (max_object_size ()); in check_mem_ref() local 3699 offset_int arrbounds[2] = { -maxobjsize - 1, maxobjsize }; in check_mem_ref() 3838 offset_int size = maxobjsize; in check_mem_ref() 3844 arrbounds[1] = wi::lrshift (maxobjsize, wi::floor_log2 (eltsize)); in check_mem_ref() 3850 arrbounds[1] = wi::lrshift (maxobjsize, wi::floor_log2 (eltsize)); in check_mem_ref()
|
H A D | tree-ssa-strlen.c | 3044 wide_int maxobjsize = wi::to_wide (TYPE_MAX_VALUE (ptrdiff_type_node)); in maybe_diag_stxncpy_trunc() local 3046 if (wi::ltu_p (cntrange[1], maxobjsize)) in maybe_diag_stxncpy_trunc() 3049 cntrange[1] = maxobjsize; in maybe_diag_stxncpy_trunc()
|
/netbsd-src/external/gpl3/gcc/dist/gcc/ |
H A D | gimple-ssa-warn-restrict.cc | 154 const offset_int maxobjsize; member in __anon10823bf20111::builtin_memref 254 maxobjsize (tree_to_shwi (max_object_size ())), in builtin_memref() 281 if (sizrange[0] <= maxobjsize && sizrange[1] > maxobjsize) in builtin_memref() 282 sizrange[1] = maxobjsize; in builtin_memref() 285 sizrange[1] = maxobjsize; in builtin_memref() 295 offset_int maxoff = maxobjsize; in builtin_memref() 311 offrange[1] = offrange[0] <= maxoff ? maxoff : maxobjsize; in builtin_memref() 510 offrange[1] += maxobjsize; in set_base_and_offset() 521 offrange[1] += maxobjsize; in set_base_and_offset() 593 offrng[1] = maxobjsize; in offset_out_of_bounds() [all …]
|
H A D | gimple-ssa-warn-alloca.cc | 188 const offset_int maxobjsize in alloca_call_type() local 190 alloca_type result = (max_size < maxobjsize in alloca_call_type() 207 const offset_int maxobjsize in alloca_call_type() local 209 alloca_type result = (max_size < maxobjsize in alloca_call_type() 237 const offset_int maxobjsize = tree_to_shwi (max_object_size ()); in alloca_call_type() local 241 alloca_type unbounded_result = (max_size < maxobjsize.to_uhwi () in alloca_call_type() 304 const offset_int maxobjsize in execute() local 306 if (adjusted_alloca_limit < maxobjsize.to_uhwi ()) in execute()
|
H A D | gimple-ssa-warn-access.cc | 163 const tree maxobjsize = max_object_size (); in warn_string_no_nul() local 164 const wide_int maxsiz = wi::to_wide (maxobjsize); in warn_string_no_nul() 174 func, bndstr, maxobjsize); in warn_string_no_nul() 205 fname, bndstr, maxobjsize); in warn_string_no_nul() 482 tree maxobjsize = max_object_size (); in maybe_warn_nonstring_arg() local 483 if (tree_int_cst_lt (maxobjsize, bndrng[0])) in maybe_warn_nonstring_arg() 490 fndecl, bndrng[0], maxobjsize); in maybe_warn_nonstring_arg() 496 maxobjsize); in maybe_warn_nonstring_arg() 704 tree maxobjsize = max_object_size (); in maybe_warn_for_bound() local 721 if (tree_int_cst_lt (maxobjsize, bndrng[0])) in maybe_warn_for_bound() [all …]
|
H A D | pointer-query.cc | 668 const offset_int maxobjsize = wi::to_offset (max_object_size ()); in merge_ref() local 682 || aref.sizrng[1] != maxobjsize); in merge_ref() 694 const bool known_size = (sizrng[0] != 0 || sizrng[1] != maxobjsize); in merge_ref() 810 const offset_int maxobjsize = wi::to_offset (max_object_size ()); in get_ref() local 822 && phi_ref.sizrng[1] >= maxobjsize) in get_ref()
|
H A D | tree-ssa-strlen.cc | 2925 wide_int maxobjsize = wi::to_wide (TYPE_MAX_VALUE (ptrdiff_type_node)); in maybe_diag_stxncpy_trunc() local 2927 if (wi::ltu_p (cntrange[1], maxobjsize)) in maybe_diag_stxncpy_trunc() 2930 cntrange[1] = maxobjsize; in maybe_diag_stxncpy_trunc()
|