[Bug gas/23809] Cannot add CFI insn to first address in FDE

2018-10-25 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23809

Andreas Schwab  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #4 from Andreas Schwab  ---
Thanks, that works.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/23809] Cannot add CFI insn to first address in FDE

2018-10-24 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23809

--- Comment #3 from Alan Modra  ---
 .cfi_startproc
 .cfi_label .Lxx
 .cfi_undefined 

will do what you want, provided the label doesn't clash with any emitted by
gcc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/23809] Cannot add CFI insn to first address in FDE

2018-10-24 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23809

--- Comment #2 from Andreas Schwab  ---
I want to put a DW_CFA_undefined of the return address register before the
first call insn in the function, to terminate the call chain.  This is for
__start_context in sysdeps/unix/sysv/linux/riscv/setcontext.S.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/23809] Cannot add CFI insn to first address in FDE

2018-10-23 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23809

Alan Modra  changed:

   What|Removed |Added

 CC||amodra at gmail dot com

--- Comment #1 from Alan Modra  ---
There is a way, just emit one of the following.

if (i->insn == DW_CFA_advance_loc
|| i->insn == DW_CFA_remember_state
|| i->insn == CFI_escape
|| i->insn == CFI_val_encoded_addr
|| i->insn == CFI_label)

Not very tidy, I admit.  I'm wondering though if the fact you can put initial
instructions into the CIE is more a feature than a bug?

What were you wanting to put into the FDE?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils