This is the mail archive of the gcc-patches@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]

Re: [PATCH] Use .init_array, .fini_array sections for ARM EABI(broke -target=avr)


> From: Mark Mitchell <mark@codesourcery.com>
> 
> I believe this patch will fix the problem.  The key mistake was that we
> were failing to check HAS_INIT_SECTION in deciding whether or not to
> call __main.  I think that when I wrote the original version of this
> patch I mistakenly believed that HAS_INIT_SECTION would be defined iff
> INIT_SECTION_ASM_OP was defined; that is not true.
> 
> I have tested this patch by looking at the assembly output from
> compiling a file that defines "main" on hppa2.0w-hp-hpux11.23, and am
> running a full bootstrap/test on x86_64-unknown-linux-gnu; I will check
> in once that finishes.

It fixed the avr port (thanks).



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