Skip to content

Commit 26da79f

Browse files
committed
vec.h (class vec_prefix): Change into struct.
* vec.h (class vec_prefix): Change into struct. Rename field alloc_PRIVATE_ back to alloc_. Rename field num_PRIVATE_ to num_. Update all users. (class vec<T, A, vl_embed>): Rename field pfx_PRIVATE_ to vecpfx_. Rename field data_PRIVATE_ to vecdata_. Update all users. (class vec<T, A, vl_ptr>): Make every field public. Rename field vec_PRIVATE_ back to vec_. Update all users. From-SVN: r193675
1 parent e98fc6d commit 26da79f

File tree

3 files changed

+118
-101
lines changed

3 files changed

+118
-101
lines changed

gcc/ChangeLog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
2012-11-20 Jakub Jelinek <[email protected]>
2+
3+
* vec.h (class vec_prefix): Change into struct.
4+
Rename field alloc_PRIVATE_ back to alloc_.
5+
Rename field num_PRIVATE_ to num_.
6+
Update all users.
7+
(class vec<T, A, vl_embed>): Rename field pfx_PRIVATE_ to vecpfx_.
8+
Rename field data_PRIVATE_ to vecdata_.
9+
Update all users.
10+
(class vec<T, A, vl_ptr>): Make every field public.
11+
Rename field vec_PRIVATE_ back to vec_.
12+
Update all users.
13+
114
2012-11-20 Richard Sandiford <[email protected]>
215

316
PR middle-end/55403

gcc/vec.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ vec_descriptor (const char *name, int line, const char *function)
121121
/* Account the overhead. */
122122

123123
void
124-
vec_prefix::register_overhead_PRIVATE_ (size_t size, const char *name, int line,
125-
const char *function)
124+
vec_prefix::register_overhead (size_t size, const char *name, int line,
125+
const char *function)
126126
{
127127
struct vec_descriptor *loc = vec_descriptor (name, line, function);
128128
struct ptr_hash_entry *p = XNEW (struct ptr_hash_entry);
@@ -148,7 +148,7 @@ vec_prefix::register_overhead_PRIVATE_ (size_t size, const char *name, int line,
148148
/* Notice that the memory allocated for the vector has been freed. */
149149

150150
void
151-
vec_prefix::release_overhead_PRIVATE_ (void)
151+
vec_prefix::release_overhead (void)
152152
{
153153
PTR *slot = htab_find_slot_with_hash (ptr_hash, this,
154154
htab_hash_pointer (this),
@@ -165,16 +165,16 @@ vec_prefix::release_overhead_PRIVATE_ (void)
165165
exponentially. PFX is the control data for the vector. */
166166

167167
unsigned
168-
vec_prefix::calculate_allocation_PRIVATE_ (vec_prefix *pfx, unsigned reserve,
169-
bool exact)
168+
vec_prefix::calculate_allocation (vec_prefix *pfx, unsigned reserve,
169+
bool exact)
170170
{
171171
unsigned alloc = 0;
172172
unsigned num = 0;
173173

174174
if (pfx)
175175
{
176-
alloc = pfx->alloc_PRIVATE_;
177-
num = pfx->num_PRIVATE_;
176+
alloc = pfx->alloc_;
177+
num = pfx->num_;
178178
}
179179
else if (!reserve)
180180
/* If there's no vector, and we've not requested anything, then we

0 commit comments

Comments
 (0)