aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-05-09 20:20:21 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2005-05-09 20:20:21 +0000
commit32df413ae734d59d5579b05b1751ebe7a79ac014 (patch)
tree5e534cbe6099484fcb9a7b692de544856564ff96 /gcc
parent7f42f27f33ae26a2be1c45e919ff25dbc62a3b36 (diff)
downloadgcc-32df413ae734d59d5579b05b1751ebe7a79ac014.zip
gcc-32df413ae734d59d5579b05b1751ebe7a79ac014.tar.gz
gcc-32df413ae734d59d5579b05b1751ebe7a79ac014.tar.bz2
re PR target/18655 (Incorrect data in .debug_frame section for PowerPC)
PR 18655 * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT before outputting DWARF_FRAME_RETURN_COLUMN. From-SVN: r99470
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 950061c..e9a1a6a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-09 Mark Mitchell <mark@codesourcery.com>
+
+ PR 18655
+ * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
+ before outputting DWARF_FRAME_RETURN_COLUMN.
+
2005-05-09 Adrian Straetling <straetling@de.ibm.com>
* config/s390/s390.c: (s390_branch_condition_mask,
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index f78f860..9804bcf 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -2075,6 +2075,7 @@ output_call_frame_info (int for_eh)
int fde_encoding = DW_EH_PE_absptr;
int per_encoding = DW_EH_PE_absptr;
int lsda_encoding = DW_EH_PE_absptr;
+ int return_reg;
/* Don't emit a CIE if there won't be any FDEs. */
if (fde_table_in_use == 0)
@@ -2213,10 +2214,11 @@ output_call_frame_info (int for_eh)
dw2_asm_output_data_sleb128 (DWARF_CIE_DATA_ALIGNMENT,
"CIE Data Alignment Factor");
+ return_reg = DWARF2_FRAME_REG_OUT (DWARF_FRAME_RETURN_COLUMN, for_eh);
if (DW_CIE_VERSION == 1)
- dw2_asm_output_data (1, DWARF_FRAME_RETURN_COLUMN, "CIE RA Column");
+ dw2_asm_output_data (1, return_reg, "CIE RA Column");
else
- dw2_asm_output_data_uleb128 (DWARF_FRAME_RETURN_COLUMN, "CIE RA Column");
+ dw2_asm_output_data_uleb128 (return_reg, "CIE RA Column");
if (augmentation[0])
{