Home | History | Annotate | Download | only in gcc

Lines Matching defs:aref

1974 /* Diagnose a call EXP to deallocate a pointer referenced by AREF if it
1980 warn_dealloc_offset (location_t loc, gimple *call, const access_ref &aref)
1982 if (aref.deref || aref.offrng[0] <= 0 || aref.offrng[1] <= 0)
1995 if (TREE_CODE (aref.ref) == SSA_NAME)
1997 gimple *def_stmt = SSA_NAME_DEF_STMT (aref.ref);
2009 if (wi::fits_shwi_p (aref.offrng[0]))
2011 if (aref.offrng[0] == aref.offrng[1]
2012 || !wi::fits_shwi_p (aref.offrng[1]))
2014 (long long)aref.offrng[0].to_shwi ());
2017 (long long)aref.offrng[0].to_shwi (),
2018 (long long)aref.offrng[1].to_shwi ());
2023 dealloc_decl, aref.ref, offstr))
2026 if (DECL_P (aref.ref))
2027 inform (get_location (aref.ref), "declared here");
2028 else if (TREE_CODE (aref.ref) == SSA_NAME)
2030 gimple *def_stmt = SSA_NAME_DEF_STMT (aref.ref);
3676 access_ref aref;
3677 if (!compute_objsize (ptr, call, 0, &aref, &m_ptr_qry))
3680 tree ref = aref.ref;
3690 if (aref.ref_declared ()
3702 if (aref.sizrng[0] != aref.sizrng[1]
3703 && warn_dealloc_offset (loc, call, aref))
3739 if (warn_dealloc_offset (loc, call, aref))
3763 else if (warn_dealloc_offset (loc, call, aref))
3779 && !aref.deref
3780 && aref.sizrng[0] != aref.sizrng[1]
3781 && aref.offrng[0] > 0 && aref.offrng[1] > 0
3782 && warn_dealloc_offset (loc, call, aref))
4636 access_ref aref;
4637 if (m_ptr_qry.get_ref (arg, call, &aref, 0)
4638 && aref.deref < 0)
4639 check_dangling_uses (var, aref.ref);
4647 access_ref aref;
4649 if (m_ptr_qry.get_ref (arg, phi, &aref, 0)
4650 && aref.deref < 0)
4651 check_dangling_uses (var, aref.ref, true);