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 c-family]: Fix Bug 35330 - [4.8/4.9/5 regression] ICE with invalid pragma weak


On Thu, Feb 26, 2015 at 10:28 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> Hi,
>
> This patch addresses the reported ICE about #pragma weak used on
> declarations not var or function.
>
> ChangeLog
>
> 2015-02-26  Kai Tietz  <ktietz@redhat.com>
>
>         * c-pragma.c (handle_pragma_weak): Do not try to creat
> weak/alias of declarations
>         not being function, or variable declarations.
>
> Bootstrapped and regression tested on x86_64-unknown-linux-gnu.  Ok for apply?

Should we add a testcase?


-- 
H.J.


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