[Bug middle-end/71716] [7 Regression] gcc.dg/atomic/c11-atomic-exec-4.c is miscompiled with -march=corei7
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jun 30 20:12:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71716
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-06-30
CC| |jakub at redhat dot com
Target Milestone|--- |7.0
Summary|[7 Regression] |[7 Regression]
|gcc.dg/atomic/c11-atomic-ex |gcc.dg/atomic/c11-atomic-ex
|ec-4.c is compiled into |ec-4.c is miscompiled with
|infinite loop |-march=corei7
Ever confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
It is caused by r237814:
[hjl@gnu-6 gcc]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/
/export/gnu/import/git/sources/gcc/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c
-march=corei7
-B/export/build/gnu/gcc/build-x86_64-linux/x86_64-pc-linux-gnu/./libatomic/
-L/export/build/gnu/gcc/build-x86_64-linux/x86_64-pc-linux-gnu/./libatomic/.libs
-latomic -fno-diagnostics-show-caret -fdiagnostics-color=never -O1 -std=c11
-pedantic-errors -pthread -U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=200809L -lm -o
./c11-atomic-exec-4.exe
[hjl@gnu-6 gcc]$ ./c11-atomic-exec-4.exe
uint8_add passed
uint8_add_3 passed
uint16_add passed
uint16_add_3 passed
uint32_add passed
uint32_add_3 passed
uint64_add passed
uint64_add_3 passed
uint64_add_neg passed
float_add passed
double_add passed
More information about the Gcc-bugs
mailing list