This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/14813] [3.4/3.5 Regression] The wrong init order


------- Additional Comments From wilson at specifixinc dot com  2004-04-21 22:37 -------
Subject: Re:  [3.4/3.5 Regression] The wrong init order

pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-01 20:05 -------
> The last change to crtend.asm was over a year ago why was this not found way before the release?

This only fails if an application or library uses init_array/fini_array.

GCC still uses ctors/dtors sections instead of the preferred and 
standardized init_array/fini_array sections.  So the only way that you 
can trigger this problem is if someone explicitly uses attribute section 
init_array, or if you link with code compiled by another compiler.

I suspect the latter method is how HJ found the problem, e.g. he may 
have noticed the problem after trying to link icc compiled code with 
gcc compiled code.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14813


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]