------- Comment #8 from kirill at shutemov dot name 2009-10-02 07:34 -------
(In reply to comment #6)
> (In reply to comment #5)
> > Ok. If .eh_frame should not be generated on ARM, we should to modify
> > dwarf2out_do_cfi_asm() to always return false on ARM. Right?
> >
>
> Look at this patch submitted here. Can you try this to see if it works for you
> ? http://gcc.gnu.org/ml/gcc-patches/2009-10/msg00022.html
>
No, it doesn't help.
$ cat 1.cc
void m(){}
$ gcc-4.4 -S 1.cc
$ cat 1.s
.cpu arm9tdmi
.fpu softvfp
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
.eabi_attribute 18, 4
.file "1.cc"
.text
.align 2
.global _Z1mv
.type _Z1mv, %function
_Z1mv:
.fnstart
.LFB0:
.cfi_startproc
.cfi_personality 0x0,__gxx_personality_v0
@ Function supports interworking.
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
str fp, [sp, #-4]!
.cfi_def_cfa_offset 4
add fp, sp, #0
.cfi_offset 11, -4
.cfi_def_cfa_register 11
add sp, fp, #0
ldmfd sp!, {fp}
bx lr
.cfi_endproc
.LFE0:
.cantunwind
.fnend
.size _Z1mv, .-_Z1mv
.ident "GCC: (GNU) 4.4.1 20090725 (ALT Linux 4.4.1-alt1)"
.section .note.GNU-stack,"",%progbits
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41533