From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2153) id 9F9573858D1E; Sat, 4 Mar 2023 10:24:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F9573858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677925479; bh=xTZTIG8p2qjjsaYRG1kEygcSn07u6Myy0xmpyP0H9EU=; h=From:To:Subject:Date:From; b=InQAcOIV1DqirCbgHfdOKu7viSDfD6gEDdAeq61q9IIaULU3twvqrvU0s2o+DNlVc G262Baf1XWlGqZszcXmwZILzya+dCU3Dy9t+nvHHdPwII/Bu5qcpKMNjaq5kbza2Wk 5vmLQxgZSK0DQGQn147Lr79NGUcB6Q3etO6IchiQ= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jakub Jelinek To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6478] Remove remaining traces of m_vecdata from comments [PR109006] X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/heads/master X-Git-Oldrev: 97651be1b63ae79eeff12b2867454d186e4cb7e0 X-Git-Newrev: 4ee2f419fe42222dbb21dfb0622cc7c0e46a2261 Message-Id: <20230304102439.9F9573858D1E@sourceware.org> Date: Sat, 4 Mar 2023 10:24:39 +0000 (GMT) List-Id: https://gcc.gnu.org/g:4ee2f419fe42222dbb21dfb0622cc7c0e46a2261 commit r13-6478-g4ee2f419fe42222dbb21dfb0622cc7c0e46a2261 Author: Jakub Jelinek Date: Sat Mar 4 11:24:04 2023 +0100 Remove remaining traces of m_vecdata from comments [PR109006] The following patch adjusts remaining references to the removed m_vecdata array from vec.h in various comments. 2023-03-04 Jakub Jelinek PR middle-end/109006 * vec.cc (test_auto_alias): Adjust comment for removal of m_vecdata. * read-rtl-function.cc (function_reader::parse_block): Likewise. * gdbhooks.py: Likewise. Diff: --- gcc/gdbhooks.py | 6 +++--- gcc/read-rtl-function.cc | 9 +++++---- gcc/vec.cc | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py index e29bd458909..32ddaf625e6 100644 --- a/gcc/gdbhooks.py +++ b/gcc/gdbhooks.py @@ -133,10 +133,10 @@ vector: attempting to do so instead gives you the vec itself (for vec[0]), or a (probably) invalid cast to vec<> for the memory after the vec (for vec[1] onwards). -Instead (for now) you must access m_vecdata: - (gdb) p bb->preds->m_vecdata[0] +Instead (for now) you must access the payload directly: + (gdb) p ((edge_def**)(bb->preds+1))[0] $20 = 5)> - (gdb) p bb->preds->m_vecdata[1] + (gdb) p ((edge_def**)(bb->preds+1))[1] $21 = 5)> """ import os.path diff --git a/gcc/read-rtl-function.cc b/gcc/read-rtl-function.cc index 74bd4ddb336..b89a811e037 100644 --- a/gcc/read-rtl-function.cc +++ b/gcc/read-rtl-function.cc @@ -622,10 +622,11 @@ function_reader::parse_block () These can get out-of-sync when basic blocks are optimized away. They get back in sync by "compact_blocks". - We reconstruct cfun->cfg->x_basic_block_info->m_vecdata with NULL - values in it for any missing basic blocks, so that (a) == (b) for - all of the blocks we create. The doubly-linked list of basic - blocks (next_bb/prev_bb) skips over these "holes". */ + We reconstruct cfun->cfg->x_basic_block_info->address () pointed + vector elements with NULL values in it for any missing basic blocks, + so that (a) == (b) for all of the blocks we create. The + doubly-linked list of basic blocks (next_bb/prev_bb) skips over + these "holes". */ if (m_highest_bb_idx < bb_idx) m_highest_bb_idx = bb_idx; diff --git a/gcc/vec.cc b/gcc/vec.cc index 2128f6666b1..69c86f63ee8 100644 --- a/gcc/vec.cc +++ b/gcc/vec.cc @@ -568,7 +568,7 @@ test_auto_delete_vec () ASSERT_EQ (dtor_count, 2); } -/* Verify accesses to m_vecdata are done indirectly. */ +/* Verify accesses to vector elements are done indirectly. */ static void test_auto_alias ()