[Bug rtl-optimization/87702] New: [5/6/7/8 Regression] Segfault in glibc if compiled with -march=amdfam10 -O2 (x86)

2018-10-23 Thread mihail.zenkov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87702

Bug ID: 87702
   Summary: [5/6/7/8 Regression] Segfault in glibc if compiled
with -march=amdfam10 -O2 (x86)
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: mihail.zenkov at gmail dot com
  Target Milestone: ---

I compiled glibc-2.27 with gcc-8.2 on 32-bit system and have segfaults in
busybox and other software which use this lib. With gcc-4.9.4 all works
correct.

I do bisect and found two regression:

1.
https://github.com/gcc-mirror/gcc/commit/6271bd93bf201cf83b48ad349f06919e87da54fd

I have it with "-march=amdfam10 -O2".

2.
https://github.com/gcc-mirror/gcc/commit/a9d8ab3820ccd10d2ac547295dadf75a33077f14

I have it with "-march=amdfam10 -O2 -mfpmath=sse".

Not sure is this regressions limited to amdfam10 or not.

[Bug target/87702] [6/7/8/9 Regression] Segfault in glibc if compiled with -march=amdfam10 -O2 (x86)

2018-10-23 Thread mihail.zenkov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87702

--- Comment #2 from Mihail Zenkov  ---
I'm not sure how to reproduce this regressions without rebuilding glibc. But I
can provide prebuilded glibc for test.

http://www.knk.uwebweb.com/glibc-segfault.tar.xz

To reproduce just unpack and run ./test.sh. You should see:

./test.sh
Regression 1
busybox   ld.so libc_regression_1.so 
libc_regression_2.so  test.sh
BusyBox v1.29.3 (2018-10-18 20:28:02 BY) multi-call binary.

Usage: rm [-irf] FILE...

Remove (unlink) FILEs

-i  Always prompt before removing
-f  Never prompt
-R,-r   Recurse
Segmentation fault


Regression 2
busybox   ld.so libc_regression_1.so 
libc_regression_2.so  test.sh
Segmentation fault

[Bug target/87702] [6/7/8/9 Regression] Segfault in glibc if compiled with -march=amdfam10 -O2 (x86)

2018-10-24 Thread mihail.zenkov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87702

--- Comment #7 from Mihail Zenkov  ---
http://www.knk.uwebweb.com/glibc-segfault-2.tar.xz

I put full command line into exit.cmd and vfscanf.cmd.