From 3395aa0532ff98b73cc64ad83e8940c40e78acae Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 27 May 2008 18:43:57 +0000 Subject: [PATCH] dwarf2out.c (current_fde): Change return type to dw_fde_ref. 2008-05-27 H.J. Lu * dwarf2out.c (current_fde): Change return type to dw_fde_ref. Moved to the front of file. From-SVN: r136046 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b5fb98dc01..92c82d0e4fe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-05-27 H.J. Lu + + * dwarf2out.c (current_fde): Change return type to dw_fde_ref. + Moved to the front of file. + 2008-05-27 Xuepeng Guo H.J. Lu diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 76df897edf9..2113410232c 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -315,6 +315,14 @@ static GTY(()) unsigned fde_table_in_use; fde_table. */ #define FDE_TABLE_INCREMENT 256 +/* Get the current fde_table entry we should use. */ + +static inline dw_fde_ref +current_fde (void) +{ + return fde_table_in_use ? &fde_table[fde_table_in_use - 1] : NULL; +} + /* A list of call frame insns for the CIE. */ static GTY(()) dw_cfi_ref cie_cfi_head; @@ -633,14 +641,6 @@ dwarf2out_cfi_label (void) return label; } -/* Get the current fde_table entry we should use. */ - -static inline struct dw_fde_struct * -current_fde (void) -{ - return fde_table_in_use ? &fde_table[fde_table_in_use - 1] : NULL; -} - /* Add CFI to the current fde at the PC value indicated by LABEL if specified, or to the CIE if LABEL is NULL. */ -- 2.30.2