aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-11-03 17:52:59 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-11-03 09:52:59 -0800
commiteef906d6165476ff24d92b150cfe35e3181a7405 (patch)
tree8fe4e71847d6584e87fd31690afe07e02164e6d5 /gcc/dwarf2out.c
parent8452b1d3c1b7928b09215cf63a1aeb0d9ad255ac (diff)
downloadgcc-eef906d6165476ff24d92b150cfe35e3181a7405.zip
gcc-eef906d6165476ff24d92b150cfe35e3181a7405.tar.gz
gcc-eef906d6165476ff24d92b150cfe35e3181a7405.tar.bz2
Comment to document possible problems with last change.
* dwarf2out.c (output_call_frame_info): Comments on last change. From-SVN: r23512
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 4c350eb..8661080 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -1829,6 +1829,14 @@ output_call_frame_info (for_eh)
fputc ('\n', asm_out_file);
ASM_OUTPUT_LABEL (asm_out_file, l1);
+ /* ??? This always emits a 4 byte offset when for_eh is true, but it
+ emits a target dependent sized offset when for_eh is not true.
+ This inconsistency may confuse gdb. The only case where we need a
+ non-4 byte offset is for the Irix6 N64 ABI, so we may lose SGI
+ compatibility if we emit a 4 byte offset. We need a 4 byte offset
+ though in order to be compatible with the dwarf_fde struct in frame.c.
+ If the for_eh case is changed, then the struct in frame.c has
+ to be adjusted appropriately. */
if (for_eh)
ASM_OUTPUT_DWARF_DELTA4 (asm_out_file, l1, "__FRAME_BEGIN__");
else