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] put exception tables for comdat functions in comdat, too


On 08/05/2012 08:40 PM, Sandra Loosemore wrote:
> 2012-08-04  Paul Brook  <paul@codesourcery.com>
>         Sandra Loosemore  <sandra@codesourcery.com>
> 
>     gcc/
>     * except.c (switch_to_exception_section): Place tables for
>     DECL_ONE_ONLY functions in comdat groups.

Mostly ok.

> -	      s = get_section (section_name, flags, NULL);
> +	      s = get_section (section_name, flags, current_function_decl);

Not correct, since we're not putting the function in that section.
We have no decl for the actual eh data.

Though that might be a good cleanup for except.c...



r~


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