[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-05-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #51 from Jakub Jelinek --- Author: jakub Date: Mon May 11 07:14:10 2015 New Revision: 222993 URL: https://gcc.gnu.org/viewcvs?rev=222993&root=gcc&view=rev Log: PR target/65780 * config/s390/linux.h (TARGET_BINDS_LOCAL

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-05-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #50 from Jakub Jelinek --- Author: jakub Date: Mon May 11 07:09:04 2015 New Revision: 222992 URL: https://gcc.gnu.org/viewcvs?rev=222992&root=gcc&view=rev Log: PR target/65780 * config/s390/linux.h (TARGET_BINDS_LOCAL

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-21 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #49 from H.J. Lu --- (In reply to Stupachenko Evgeny from comment #47) > The patch caused significant regressions (see below) on spec2000 INT > benchmarks compiled with options “-fPIE -pie -O2 -ffast-math -mfpmath=sse > -m32 -march=co

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #48 from Jakub Jelinek --- (In reply to Stupachenko Evgeny from comment #47) > The patch caused significant regressions (see below) on spec2000 INT > benchmarks compiled with options “-fPIE -pie -O2 -ffast-math -mfpmath=sse > -m32 -ma

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-21 Thread evstupac at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 Stupachenko Evgeny changed: What|Removed |Added CC||evstupac at gmail dot com --- Comme

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 Jakub Jelinek changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-17 Thread howarth.at.gcc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 Jack Howarth changed: What|Removed |Added CC||howarth.at.gcc at gmail dot com --- Comme

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-17 Thread hjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #44 from hjl at gcc dot gnu.org --- Author: hjl Date: Fri Apr 17 21:55:05 2015 New Revision: 02 URL: https://gcc.gnu.org/viewcvs?rev=02&root=gcc&view=rev Log: Don't define ix86_binds_local_p for MacOS nor Windows PR targ

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-17 Thread hjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #43 from hjl at gcc dot gnu.org --- Author: hjl Date: Fri Apr 17 21:54:22 2015 New Revision: 01 URL: https://gcc.gnu.org/viewcvs?rev=01&root=gcc&view=rev Log: Don't define ix86_binds_local_p for MacOS nor Windows PR targ

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-17 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 Dominique d'Humieres changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-17 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-17 Thread hjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #40 from hjl at gcc dot gnu.org --- Author: hjl Date: Fri Apr 17 16:36:22 2015 New Revision: 222185 URL: https://gcc.gnu.org/viewcvs?rev=222185&root=gcc&view=rev Log: Properly handle uninitialized common symbol Uninitialized common

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #39 from Jakub Jelinek --- Please commit it to the branch too, I'll do another RC tomorrow.

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-17 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 H.J. Lu changed: What|Removed |Added Summary|[5/6 Regression]|[5 Regression] |Uninitialize

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #10 from Jakub Jelinek --- (In reply to H.J. Lu from comment #9) > Created attachment 35327 [details] > A different patch > > On x86, this issue only shows up with PIE. Here is a different > patch to treat common symbol defined local

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-15 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 H.J. Lu changed: What|Removed |Added Attachment #35326|0 |1 is obsolete|

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-15 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 Alan Modra changed: What|Removed |Added CC|amodra at gcc dot gnu.org | Summary|[5 Regression]

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-15 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #6 from H.J. Lu --- Created attachment 35325 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35325&action=edit A patch Please try this.

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-15 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #5 from H.J. Lu --- I can reproduce it with binutils 2.24 on x86-64: [hjl@gnu-tools-1 gcc]$ ./xgcc -B./ -fPIE -pie /tmp/a.c /export/build/gnu/binutils/release/usr/local/bin/ld: /tmp/ccazj1RF.o: relocation R_X86_64_PC32 against undef

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-15 Thread amodra at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 Alan Modra changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-15 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #3 from H.J. Lu --- Also does -fno-common make a difference?

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-15 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 --- Comment #2 from H.J. Lu --- Please provide the output of "readelf -sW a.o" to verify if optopt is COMMON: [hjl@gnu-6 gcc]$ ./xgcc -B./ -O2 -c /tmp/a.c [hjl@gnu-6 gcc]$ readelf -sW a.o Symbol table '.symtab' contains 12 entries: Num:

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-15 Thread james410 at cowgill dot org.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 james410 at cowgill dot org.uk changed: What|Removed |Added CC||james410 at cowgill dot o

[Bug target/65780] [5 Regression] Uninitialized common handling in executables

2015-04-15 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780 Jakub Jelinek changed: What|Removed |Added CC||amodra at gcc dot gnu.org,