public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/49325] New: Incorrect target HAVE_INITFINI_ARRAY check
@ 2011-06-08 16:31 hjl.tools at gmail dot com
2011-06-08 16:51 ` [Bug other/49325] " hjl.tools at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2011-06-08 16:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49325
Summary: Incorrect target HAVE_INITFINI_ARRAY check
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hjl.tools@gmail.com
HAVE_INITFINI_ARRAY support was added by:
http://gcc.gnu.org/ml/gcc-patches/2002-11/msg00387.html
Unfortunately, it checks if host supports init_array/fini_array
sections, not target. It will generate wrong result
for cross compiler.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/49325] Incorrect target HAVE_INITFINI_ARRAY check
2011-06-08 16:31 [Bug other/49325] New: Incorrect target HAVE_INITFINI_ARRAY check hjl.tools at gmail dot com
@ 2011-06-08 16:51 ` hjl.tools at gmail dot com
2011-06-18 14:48 ` hjl at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2011-06-08 16:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49325
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-p
| |atches/2011-06/msg00659.htm
| |l
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-06-08 16:50:49 UTC ---
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00659.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/49325] Incorrect target HAVE_INITFINI_ARRAY check
2011-06-08 16:31 [Bug other/49325] New: Incorrect target HAVE_INITFINI_ARRAY check hjl.tools at gmail dot com
2011-06-08 16:51 ` [Bug other/49325] " hjl.tools at gmail dot com
@ 2011-06-18 14:48 ` hjl at gcc dot gnu.org
2011-06-18 14:51 ` hjl.tools at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: hjl at gcc dot gnu.org @ 2011-06-18 14:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49325
--- Comment #2 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-06-18 14:48:17 UTC ---
Author: hjl
Date: Sat Jun 18 14:48:14 2011
New Revision: 175181
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175181
Log:
Properly check if .init_array can be used with .ctors on targets.
2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
PR other/49325
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
.init_array can be used with .ctors on targets.
* configure: Regenerated.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/acinclude.m4
trunk/gcc/configure
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/49325] Incorrect target HAVE_INITFINI_ARRAY check
2011-06-08 16:31 [Bug other/49325] New: Incorrect target HAVE_INITFINI_ARRAY check hjl.tools at gmail dot com
2011-06-08 16:51 ` [Bug other/49325] " hjl.tools at gmail dot com
2011-06-18 14:48 ` hjl at gcc dot gnu.org
@ 2011-06-18 14:51 ` hjl.tools at gmail dot com
2012-02-22 22:06 ` jingyu at gcc dot gnu.org
2012-02-22 22:30 ` jingyu at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2011-06-18 14:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49325
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-06-18 14:51:15 UTC ---
Fixed for 4.7.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/49325] Incorrect target HAVE_INITFINI_ARRAY check
2011-06-08 16:31 [Bug other/49325] New: Incorrect target HAVE_INITFINI_ARRAY check hjl.tools at gmail dot com
` (2 preceding siblings ...)
2011-06-18 14:51 ` hjl.tools at gmail dot com
@ 2012-02-22 22:06 ` jingyu at gcc dot gnu.org
2012-02-22 22:30 ` jingyu at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jingyu at gcc dot gnu.org @ 2012-02-22 22:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49325
--- Comment #4 from Jing Yu <jingyu at gcc dot gnu.org> 2012-02-22 22:04:44 UTC ---
Author: jingyu
Date: Wed Feb 22 22:04:39 2012
New Revision: 184493
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184493
Log:
2012-02-21 Jing Yu <jingyu@google.com>
Google Ref 47894
Backport from mainline r177933, r175181, r177963, r178116, r183299.
2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
PR other/46770
* config.gcc (tm_file): Add initfini-array.h if
.init_arrary/.fini_array are supported.
* crtstuff.c: Don't generate .ctors nor .dtors sections if
USE_INITFINI_ARRAY is defined.
* output.h (default_elf_init_array_asm_out_constructor): New.
(default_elf_fini_array_asm_out_destructor): Likewise.
* varasm.c (elf_init_array_section): Likewise.
(elf_fini_array_section): Likewise.
(get_elf_initfini_array_priority_section): Likewise.
(default_elf_init_array_asm_out_constructor): Likewise.
(default_elf_fini_array_asm_out_destructor): Likewise.
* config/initfini-array.h: New.
2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
PR other/49325
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
.init_array can be used with .ctors on targets.
* configure: Regenerated.
2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't
defined.
* configure: Regenerated.
2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR target/50166
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
* configure: Regenerate.
2012-01-19 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/50237
* config/initfini-array.h: Guard content of the header
with #ifdef HAVE_INITFINI_ARRAY.
* configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the
file.
Add initfini-array.h to tm_file here.
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a
linker test.
* config.gcc: Don't add initfini-array.h to tm_file here.
* configure: Regenerated.
Added:
branches/google/gcc-4_6/gcc/config/initfini-array.h
Modified:
branches/google/gcc-4_6/gcc/ChangeLog.google-4_6
branches/google/gcc-4_6/gcc/acinclude.m4
branches/google/gcc-4_6/gcc/configure
branches/google/gcc-4_6/gcc/configure.ac
branches/google/gcc-4_6/gcc/crtstuff.c
branches/google/gcc-4_6/gcc/output.h
branches/google/gcc-4_6/gcc/varasm.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/49325] Incorrect target HAVE_INITFINI_ARRAY check
2011-06-08 16:31 [Bug other/49325] New: Incorrect target HAVE_INITFINI_ARRAY check hjl.tools at gmail dot com
` (3 preceding siblings ...)
2012-02-22 22:06 ` jingyu at gcc dot gnu.org
@ 2012-02-22 22:30 ` jingyu at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jingyu at gcc dot gnu.org @ 2012-02-22 22:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49325
--- Comment #5 from Jing Yu <jingyu at gcc dot gnu.org> 2012-02-22 22:26:46 UTC ---
Author: jingyu
Date: Wed Feb 22 22:26:40 2012
New Revision: 184494
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184494
Log:
2012-02-21 Jing Yu <jingyu@google.com>
Bakcport r175181, r177963, r178116, r183299 from mainline.
2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
PR other/49325
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
.init_array can be used with .ctors on targets.
* configure: Regenerated.
2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't
defined.
* configure: Regenerated.
2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR target/50166
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
* configure: Regenerate.
2012-01-19 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/50237
* config/initfini-array.h: Guard content of the header
with #ifdef HAVE_INITFINI_ARRAY.
* configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the
file.
Add initfini-array.h to tm_file here.
* acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a
linker test.
* config.gcc: Don't add initfini-array.h to tm_file here.
* configure: Regenerated.
Modified:
branches/google/gcc-4_6_2-mobile/gcc/ChangeLog.google-4_6
branches/google/gcc-4_6_2-mobile/gcc/acinclude.m4
branches/google/gcc-4_6_2-mobile/gcc/config.gcc
branches/google/gcc-4_6_2-mobile/gcc/config/initfini-array.h
branches/google/gcc-4_6_2-mobile/gcc/configure
branches/google/gcc-4_6_2-mobile/gcc/configure.ac
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-02-22 22:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08 16:31 [Bug other/49325] New: Incorrect target HAVE_INITFINI_ARRAY check hjl.tools at gmail dot com
2011-06-08 16:51 ` [Bug other/49325] " hjl.tools at gmail dot com
2011-06-18 14:48 ` hjl at gcc dot gnu.org
2011-06-18 14:51 ` hjl.tools at gmail dot com
2012-02-22 22:06 ` jingyu at gcc dot gnu.org
2012-02-22 22:30 ` jingyu at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).