[Bug c/28621] New: SEGSEGV at set_fast_math () at ../../gcc/config/i386/crtfastmath.c:97 when using the -Os flag
After build a new version of procps using the "-Os" flag for gcc, all its (procps) software (ps, top, etc) were failing due to a segmentation fault. I couldn't find a report about that at Bugzilla, but I did find one at "http://www.netdomination.org/~stkn/index.php?/archives/24-Anatomy-of-a-segfaulthtml";. Although the author of that report was using ulibc (and I glibc), it applied perfectly to my case. After I removed the "-ffast-math" from the procps compile command, everything worked fine again. -- Summary: SEGSEGV at set_fast_math () at ../../gcc/config/i386/crtfastmath.c:97 when using the - Os flag Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: magsilva at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28621
[Bug target/28621] [4.1/4.2 Regression] SIGSEGV in set_fast_math () at -Os
--- Comment #4 from magsilva at gmail dot com 2006-08-11 13:27 --- (In reply to comment #3) > --- config/i386/crtfastmath.c (revision 115987) > +++ config/i386/crtfastmath.c (working copy) > @@ -38,6 +38,9 @@ > #define SSE(1 << 25) > > static void __attribute__((constructor)) > +#ifndef __x86_64__ > +__attribute__ ((force_align_arg_pointer)) > +#endif > set_fast_math (void) > { > #ifndef __x86_64__ > > Does it help? I applied this patch against the gcc 4.1.1, but the bug is still there (at least procps keeps segfaulting). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28621
[Bug target/28621] [4.1/4.2 Regression] SIGSEGV in set_fast_math () at -Os
--- Comment #6 from magsilva at gmail dot com 2006-08-18 07:16 --- Sorry, but I didn't know that. I reported the bug against GCC 4.1.1 and the target milestone set for it is GCC 4.1.2. So, I expected that patch to work with gcc 4.1.x. The 'force_align_arg_pointer' attribute is available at GCC 4.1.2 or just GCC 4.2.x? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28621
[Bug fortran/24324] New: ICE: Floating point exception
I'm trying to build gcc 4.0.2 and I got an error when building the support for the fortran language (c, c++, java, etc builds just fine). Since the problems looks specific to fortran, I build gcc with the following configuration: ../gcc-4.0.2/configure --enable-languages=f95 The error I got is: $ obj/gcc/gfortran -B/home/magsilva/Projects/CCL/Tree/gcc4/SOURCES/obj/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -Wall -Wall -fno-repack-arrays -fno-underscoring -c ../../../gcc-4.0.2/libgfortran/intrinsics/selected_int_kind.f90 -fPIC -DPIC -o .libs/selected_int_kind.o :0: internal compiler error: Floating point exception Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for instructions. make[3]: ** [selected_int_kind.lo] Erro 1 make[3]: Leaving directory `/home/magsilva/Projects/CCL/Tree/gcc4/SOURCES/obj/i686-pc-linux-gnu/libgfortran' make[2]: ** [all] Erro 2 make[2]: Leaving directory `/home/magsilva/Projects/CCL/Tree/gcc4/SOURCES/obj/i686-pc-linux-gnu/libgfortran' make[1]: ** [all-target-libgfortran] Erro 2 make[1]: Leaving directory `/home/magsilva/Projects/CCL/Tree/gcc4/SOURCES/obj' make: ** [bootstrap] Erro 2 -- Summary: ICE: Floating point exception Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: magsilva at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24324
[Bug fortran/24324] ICE: Floating point exception
--- Comment #2 from magsilva at gmail dot com 2005-10-12 17:02 --- Thank you. I simply had no clue about what was responsable for this error. My gmp really had a bug ('make test' failed). -- magsilva at gmail dot com changed: What|Removed |Added Status|RESOLVED|VERIFIED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24324