Skip to contentSkip to conversation

GCC 3.4.3/x86: -fomit-frame-pointer cause a lot of test failures for libstdc++

BUG Denis Zaitsev 2 participants 8 messages Dec 22, 2004 – Dec 28, 2004

lore
Share & tools
lore
#0 lore raw

I've built GCC with -fomit-frame-pointer and -fno-omit-frame-pointer. I mean either of these flags is present in both the exported shell variables CFLAGS and CXXFLAGS and also in the BOOT_CFLAGS variable from gcc/Makefile. Both the builds was successfull. And these are some results of 'make check':

-fno-omit-frame-pointer:

                === libstdc++ Summary ===
# of expected passes            2720
# of unexpected failures        1
# of unexpected successes       1
# of expected failures          6

-fomit-frame-pointer:

                === libstdc++ Summary ===
# of expected passes            2364
# of unexpected failures        357
# of expected failures          7

So, the difference seems to be just huge. Does it mean some serious problems GCC has in the hard-fp-less area for x86? (BTW, it traditionally has some...) The tests results for gcc and g++ are different too, but that differencies are just miserable compared with those listed.

Other details about the build and check environment:

CFLAGS, CXXFLAGS, BOOT_CFLAGS:

        -pipe
        -O3
        -fno-strength-reduce
        -fno-inline-functions
        -fno-align-functions
        -fno-align-loops
        -fno-align-jumps
        -fno-ident
        -f[no]omit-frame-pointer
        -D__USE_STRING_INLINES
        -mpreferred-stack-boundary=2

configure's args:

        --enable-shared
        --enable-static
        --disable-debug
        --disable-profile
        --disable-nls
        --disable-libtool-lock
        --disable-rpath
        --disable-largefile
        --with-gnu-as
        --with-gnu-ld
        --enable-threads=posix
        --enable-__cxa_atexit
        --enable-languages=c,c++,objc
        --enable-version-specific-runtime-libs
        --enable-clocale
        --enable-objc-gc
        --disable-checking
        --with-gc=simple
        --with-system-zlib
        --with-tune=pentium
#1 lore raw
Quoted 5 lines · Denis Zaitsev

I've built GCC with -fomit-frame-pointer and -fno-omit-frame-pointer. I mean either of these flags is present in both the exported shell variables CFLAGS and CXXFLAGS and also in the BOOT_CFLAGS variable from gcc/Makefile. Both the builds was successfull. And these are some results of 'make check':

I would not doubt this is the -fomit-frame-pointer exception handling bug which was fixed in 3.4.4, 3.3.6, and 4.0.0.
See PR 17220 and 6764.

-- Pinski

#2 lore raw
Quoted 9 lines · Andrew Pinski
Quoted 5 lines · Denis Zaitsev

I've built GCC with -fomit-frame-pointer and -fno-omit-frame-pointer. I mean either of these flags is present in both the exported shell variables CFLAGS and CXXFLAGS and also in the BOOT_CFLAGS variable from gcc/Makefile. Both the builds was successfull. And these are some results of 'make check':

Quoted 3 lines

I would not doubt this is the -fomit-frame-pointer exception handling bug which was fixed in 3.4.4, 3.3.6, and 4.0.0.
See PR 17220 and 6764.

Ok, I'll try. Am I understand right, that the versions you've listed are still unreleased?

#3 lore raw
Quoted 10 lines · Denis Zaitsev
Quoted 9 lines · Andrew Pinski
Quoted 5 lines · Denis Zaitsev

I've built GCC with -fomit-frame-pointer and -fno-omit-frame-pointer. I mean either of these flags is present in both the exported shell variables CFLAGS and CXXFLAGS and also in the BOOT_CFLAGS variable from gcc/Makefile. Both the builds was successfull. And these are some results of 'make check':

Quoted 6 lines
Quoted 3 lines

I would not doubt this is the -fomit-frame-pointer exception handling bug which was fixed in 3.4.4, 3.3.6, and 4.0.0.
See PR 17220 and 6764.

Ok, I'll try. Am I understand right, that the versions you've listed are still unreleased?

That is correct which is why I also pointed to the bug reports which talk about the problem a little further but since the fix is in all of the next releases I am not worried about the problem in general.

-- Pinski

#4 lore raw
In reply to Andrew Pinski
Quoted 9 lines · Andrew Pinski
Quoted 5 lines · Denis Zaitsev

I've built GCC with -fomit-frame-pointer and -fno-omit-frame-pointer. I mean either of these flags is present in both the exported shell variables CFLAGS and CXXFLAGS and also in the BOOT_CFLAGS variable from gcc/Makefile. Both the builds was successfull. And these are some results of 'make check':

Quoted 3 lines

I would not doubt this is the -fomit-frame-pointer exception handling bug which was fixed in 3.4.4, 3.3.6, and 4.0.0.
See PR 17220 and 6764.

I'm trying the patches. Make check is still going and this should take the couple more hours. But it's already obvious that nothing has changed into the something better... I've a lot of failures for libstdc++. The most of them look like:

FAIL: 22_locale/num_get/get/wchar_t/1.cc execution test
FAIL: 22_locale/num_get/get/wchar_t/2.cc execution test
FAIL: 22_locale/num_get/get/wchar_t/3.cc execution test
FAIL: 22_locale/num_get/get/wchar_t/5.cc execution test
FAIL: 22_locale/num_get/get/wchar_t/6.cc execution test
FAIL: 22_locale/num_get/get/wchar_t/9.cc execution test

BTW, as I can see, the test sources are compiling w/o -fomit-frame-pointer. And the only optimization is -O2. And it's strange by itself.

#5 lore raw
Quoted 2 lines · Denis Zaitsev

I'm trying the patches. Make check is still going and this should take the couple more hours.

Ok, it's finushed. The libstdc++ results are:

# of expected passes            2366
# of unexpected failures        355
# of expected failures          7

There are 2 less failures...

#6 lore raw
In reply to Andrew Pinski
Quoted 9 lines · Andrew Pinski
Quoted 5 lines · Denis Zaitsev

I've built GCC with -fomit-frame-pointer and -fno-omit-frame-pointer. I mean either of these flags is present in both the exported shell variables CFLAGS and CXXFLAGS and also in the BOOT_CFLAGS variable from gcc/Makefile. Both the builds was successfull. And these are some results of 'make check':

Quoted 3 lines

I would not doubt this is the -fomit-frame-pointer exception handling bug which was fixed in 3.4.4, 3.3.6, and 4.0.0.
See PR 17220 and 6764.

And these are the results for GCC 3.4-20041224:

                === libstdc++ Summary ===
# of expected passes            2373
# of unexpected failures        357
# of expected failures          7

So, there are still the same bugs.

#7 lore raw
In reply to Andrew Pinski
Quoted 9 lines · Andrew Pinski
Quoted 5 lines · Denis Zaitsev

I've built GCC with -fomit-frame-pointer and -fno-omit-frame-pointer. I mean either of these flags is present in both the exported shell variables CFLAGS and CXXFLAGS and also in the BOOT_CFLAGS variable from gcc/Makefile. Both the builds was successfull. And these are some results of 'make check':

Quoted 3 lines

I would not doubt this is the -fomit-frame-pointer exception handling bug which was fixed in 3.4.4, 3.3.6, and 4.0.0.
See PR 17220 and 6764.

And these are the results for GCC 3.4-20041224:

                === libstdc++ Summary ===
# of expected passes            2373
# of unexpected failures        357
# of expected failures          7

Should I submit the new PR so?