aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2000-02-28 12:41:36 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2000-02-28 07:41:36 -0500
commitb0e3a658532609fa9641f8efcee7f950f532d68c (patch)
treec8ef1738b9a45e191d04c5008c4db0668801412d
parentf4e72d6e0038f6c97c11336f797f1a37971fd562 (diff)
downloadgcc-b0e3a658532609fa9641f8efcee7f950f532d68c.zip
gcc-b0e3a658532609fa9641f8efcee7f950f532d68c.tar.gz
gcc-b0e3a658532609fa9641f8efcee7f950f532d68c.tar.bz2
function.c (number_blocks): Reset next_block_index based on what debugging format is used, not what is defined.
* function.c (number_blocks): Reset next_block_index based on what debugging format is used, not what is defined. From-SVN: r32235
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/function.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 66e9939..d62d57d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -5,6 +5,9 @@ Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+ * function.c (number_blocks): Reset next_block_index based on
+ what debugging format is used, not what is defined.
+
* lcm.c: Minor reformatting throughout.
(reg_dies, reg_becomes_live): Properly handle multiple hard regs.
diff --git a/gcc/function.c b/gcc/function.c
index ce5fef2..78c5ab8 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -5668,7 +5668,8 @@ number_blocks (fn)
from 1 within each function, rather than keeping a running
count. */
#if defined (SDB_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO)
- next_block_index = 1;
+ if (write_symbols == SDB_DEBUG || write_symbols == XCOFF_DEBUG)
+ next_block_index = 1;
#endif
block_vector = get_block_vector (DECL_INITIAL (fn), &n_blocks);