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] Fix PR lto/64075


On Wed, Nov 26, 2014 at 1:35 AM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:
> Hi,
>
> This patch fixes LTO streamers which were not adjusted when function_code field was extended up to 12 bits.
>
> OK for trunk after bootstrap and check?
>
> Thanks,
> Ilya
> --
> gcc/
>
> 2014-11-26  Ilya Enkovich  <ilya.enkovich@intel.com>
>
>         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
>         proper size for function_code bitfield.
>         (pack_ts_function_decl_value_fields): Likewise.
>
> gcc/testsuite/
>
> 2014-11-26  Ilya Enkovich  <ilya.enkovich@intel.com>
>
>         * gcc.dg/pr64075.c: New.
>
>
> diff --git a/gcc/testsuite/gcc.dg/pr64075.c b/gcc/testsuite/gcc.dg/pr64075.c
> new file mode 100644
> index 0000000..f3c8dc4
> --- /dev/null
> +++ b/gcc/testsuite/gcc.dg/pr64075.c
> @@ -0,0 +1,8 @@
> +/* PR lto/64075 */
> +/* { dg-do compile } */
> +/* { dg-options "-flto" } */

You should use

/* { dg-do compile { target lto } } */


-- 
H.J.


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