This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Segmentation fault in gdb on hitting jsr to a floating library


Hi,
Mine is a 32-bit architecture and i am using Gcc-4.3.3
I don't have hard-float support. I added soft float support from soft-fp and my float /double is 32-bit wide.
The problem here is , my gdb crashes on hitting jsr to a floating library which i added from soft-fp.


I am confident that there is nothing wrong with my gdb as jsr is working fine in other instances.
I sense there is some thing wrong in linking the float libraries.


my t-target includes ;;;

LIB2FUNCS_EXTRA = $(srcdir)/config/soft-fp/addsf3.c $(srcdir)/config/soft-fp/divsf3.c .
softfp_float_modes := sf
softfp_int_modes := si
softfp_extensions :=
softfp_truncations :=
softfp_machine_header := target/sfp-machine.h
softfp_exclude_libgcc2 := n



and in target.h , TARGET_INIT_LIBFUNCS, i added set_optab_libfunc (add_optab, SFmode, "__addsf3"); set_optab_libfunc (sdiv_optab, SFmode, "__divsf3");


Thanks in advance,
Sumanth



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]