Skip to contentSkip to conversation

gcc disable-libunwind-exceptions, VFP, iWMMXt, crunch - nokia800, mx31ads, etc

DISCUSSION Hasjim Williams 2 participants 3 messages Apr 1, 2008 – Apr 2, 2008

lore
Share & tools
lore
#0 lore raw

Hi All,

I was recently looking in gcc-cross-4.2.2.bb and 4.3.0.bb and noticed that in our EXTRA_OECONF we have:

--disable-libunwind-exceptions

Won't this cause a problem for a VFP system (when an exception occurs), i.e. mx31ads, nokia800?
e.g. libunwind.S in gcc/config/arm has some specific functions to save/restore VFP and iWMMXt registers...

Also, I couldn't build glibc-intermediate (with system-wide iwmmxt) with the tag enabled, when building with binutils-2.18, gcc-4.3.0 and glibc-2.6.1 ...

How does the TARGET_FPU_arm = "hard" overcome this on nokia800, mx31ads, etc? Are we only building with-float in certain packages, and using softfp float-abi otherwise?

Does this mean for a MaverickCrunch system (with system-wide FPU enabled), we should be setting TARGET_FPU_arm = "hard" too?

What about for a PXA27x system with a iWMMXt coprocessor (and system-wide iwmmxt) ??? It should be using soft-float, but it should have libunwind-exceptions enabled (I think) because of the code in libunwind.S...

#1 lore raw
Quoted 6 lines · Hasjim Williams

Hi All,

I was recently looking in gcc-cross-4.2.2.bb and 4.3.0.bb and noticed that in our EXTRA_OECONF we have:

--disable-libunwind-exceptions

Sorry all, this is due to my misunderstanding of what this does. gcc-cross can be compiled with libunwind extensions:

http://www.nongnu.org/libunwind/

Obviously we don't have anything in the oe tree that uses this (to determine the call-chain of a program), and there is no libunwind.bb. Would it be possible to build gcc with libunwind support? AFAIK, only the git development tree has support for ARM.

I guess it would mean another stage after or that replaces gcc-cross, and a different glibc? Or could we have some sort of TARGET_UNWIND_SUPPORT variable or something similar?

Incidentally, someone wanted to put a patch to disable some other libs in gcc:
http://projects.linuxtogo.org/pipermail/openembedded-commits/2007-November/010465.html

It would be good if we could figure out a nice way to enable/disable certain libraries, much like the way TARGET_FPU affects certain packages.

Quoted 3 lines

Also, I couldn't build glibc-intermediate (with system-wide iwmmxt) with the tag enabled, when building with binutils-2.18, gcc-4.3.0 and glibc-2.6.1 ...

NB, this is also why yesterday I couldn't build glibc as I hadn't installed libunwind, i.e. created a libunwind bb.

#2 lore raw
In reply to Hasjim Williams
Quoted 8 lines · Hasjim Williams

Hi All,

I was recently looking in gcc-cross-4.2.2.bb and 4.3.0.bb and noticed that in our EXTRA_OECONF we have:

--disable-libunwind-exceptions

Won't this cause a problem for a VFP system (when an exception occurs),

AFAIK this option is used if you want gcc to use libunwind to handle exceptions.

Quoted 4 lines

i.e. mx31ads, nokia800?
e.g. libunwind.S in gcc/config/arm has some specific functions to save/restore VFP and iWMMXt registers...

that should work on EABI. I am not so sure about OABI.

Quoted 3 lines

Also, I couldn't build glibc-intermediate (with system-wide iwmmxt) with the tag enabled, when building with binutils-2.18, gcc-4.3.0 and glibc-2.6.1 ...

what was the error ?

Quoted 2 lines

How does the TARGET_FPU_arm = "hard" overcome this on nokia800, mx31ads,

Its machine specific e.g. look at ./machine/nokia800.conf thats where it sets the fpu type which is then used by glibc "get_glibc_fpu_setting" to determine if it use use hard or soft fp.

Quoted 17 lines

etc? Are we only building with-float in certain packages, and using softfp float-abi otherwise?

Does this mean for a MaverickCrunch system (with system-wide FPU enabled), we should be setting TARGET_FPU_arm = "hard" too?

What about for a PXA27x system with a iWMMXt coprocessor (and system-wide iwmmxt) ??? It should be using soft-float, but it should have libunwind-exceptions enabled (I think) because of the code in libunwind.S...

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel