aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-02-24 09:54:09 +0100
committerRichard Biener <rguenther@suse.de>2023-02-24 16:41:32 +0100
commitef22c3e90b5010a5229e70907ad2087f774fdfc0 (patch)
treebed6e87eb2251cef1e4b209124e72fc6cefdb5da /gcc/fortran
parent94c9b1bb79f63d000ebb05efc155c149325e332d (diff)
downloadgcc-ef22c3e90b5010a5229e70907ad2087f774fdfc0.zip
gcc-ef22c3e90b5010a5229e70907ad2087f774fdfc0.tar.gz
gcc-ef22c3e90b5010a5229e70907ad2087f774fdfc0.tar.bz2
Change vec<,,vl_embed>::m_vecdata refrences into address ()
As preparation to remove m_vecdata in the vl_embed vector this changes references to it into calls to address (). As I was here it also fixes ::contains to avoid repeated bounds checking and the same issue in ::lower_bound which also suffers from unnecessary copying around values. * vec.h (vec<T, A, vl_embed>::lower_bound): Adjust to take a const reference to the object, use address to access data. (vec<T, A, vl_embed>::contains): Use address to access data. (vec<T, A, vl_embed>::operator[]): Use address instead of m_vecdata to access data. (vec<T, A, vl_embed>::iterate): Likewise. (vec<T, A, vl_embed>::copy): Likewise. (vec<T, A, vl_embed>::quick_push): Likewise. (vec<T, A, vl_embed>::pop): Likewise. (vec<T, A, vl_embed>::quick_insert): Likewise. (vec<T, A, vl_embed>::ordered_remove): Likewise. (vec<T, A, vl_embed>::unordered_remove): Likewise. (vec<T, A, vl_embed>::block_remove): Likewise. (vec<T, A, vl_heap>::address): Likewise.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions