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] record extern weak decls in assemble_external


On Thu, Jul 24, 2008 at 6:44 AM, Rafael Espindola <espindola@google.com> wrote:
> This is similar to the previous patch is that it moves the
> responsibility from handling externs away from the FE.
>
> On trunk this is a nop. On lto this fixes
> -------------------------------------------
> extern int v17 __attribute__ ((weak));
> int f1(void) {
>  return v17;
> }
> -------------------------------------------
>
> Currently we forget that v17 is weak.
>
>
> OK for trunk? The branch will get it on the next merge.
>
> 2008-07-24  Rafael Espindola  <espindola@google.com>
>
>        * varasm.c (weak_decls): Move earlier in the file.
>        (assemble_external): Add weak decls to the weak_decls list.
>        (declare_weak): Don't add decls to the weak_decls list.

ENOPATCH.

-- Pinski


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