Hi,

Here's a patch which I believe should address all the pointed out BRIG
FE related issues that
have not been committed yet.

I didn't introduce new fixed width int type nodes to tree.h as that
felt too intrusive at this point.
Also, changes.html is still to add.

OK for trunk?

BR,
Pekka



On Thu, Jan 26, 2017 at 10:28 AM, Jakub Jelinek <ja...@redhat.com> wrote:
> On Thu, Jan 26, 2017 at 09:38:23AM +0200, Pekka Jääskeläinen wrote:
>> > I suppose that also contrib/update-copyright.py need to be updated?  (I
>> > never looked into that, so don't know.)
>>
>> Does it? The files are (c) FSF now. What should I do here exactly?
>
> I took care of this and committed following (it updates also 3 non-brig
> related files that slipped through with 2016-ish only Copyrights since
> Jan 1st).
>
> 2017-01-26  Jakub Jelinek  <ja...@redhat.com>
>
> contrib/
>         * update-copyright.py: Add libhsail-rt to self.default_dirs
>         and call self.add_dir on it.  Add Intel Corporation to external
>         authors.
> gcc/
>         * brig-builtins.def: Update copyright years.
>         * config/arm/arm_acle_builtins.def: Update copyright years.
> gcc/brig/
>         Update copyright years.
> gcc/testsuite/
>         * brig.dg/dg.exp: Update copyright years.
>         * lib/brig-dg.exp: Update copyright years.
>         * lib/brig.exp: Update copyright years.
> libhsail-rt/
>         Update copyright years.
> libstdc++-v3/
>         * libsupc++/eh_atomics.h: Update copyright years.
>         * testsuite/20_util/unique_ptr/cons/default.cc: Update copyright 
> years.
>
> --- contrib/update-copyright.py (revision 244917)
> +++ contrib/update-copyright.py (working copy)
> @@ -663,6 +663,7 @@ class GCCCopyright (Copyright):
>          self.add_external_author ('Florida State University')
>          self.add_external_author ('Greg Colvin and Beman Dawes.')
>          self.add_external_author ('Hewlett-Packard Company')
> +        self.add_external_author ('Intel Corporation')
>          self.add_external_author ('Information Technology Industry Council.')
>          self.add_external_author ('James Theiler, Brian Gough')
>          self.add_external_author ('Makoto Matsumoto and Takuji Nishimura,')
> @@ -710,6 +711,7 @@ class GCCCmdLine (CmdLine):
>          self.add_dir ('libgfortran')
>          # libgo is imported from upstream.
>          self.add_dir ('libgomp')
> +        self.add_dir ('libhsail-rt')
>          self.add_dir ('libiberty')
>          self.add_dir ('libitm')
>          self.add_dir ('libobjc')
> @@ -735,6 +737,7 @@ class GCCCmdLine (CmdLine):
>              'libgcc',
>              'libgfortran',
>              'libgomp',
> +            'libhsail-rt',
>              'libiberty',
>              'libitm',
>              'libobjc',
> --- gcc/brig/Make-lang.in       (revision 244917)
> +++ gcc/brig/Make-lang.in       (working copy)
> @@ -1,7 +1,7 @@
>  # Make-lang.in -- Top level -*- makefile -*- fragment for gcc BRIG (HSAIL)
>  # frontend.
>
> -# Copyright (C) 2015 Free Software Foundation, Inc.
> +# Copyright (C) 2015-2017 Free Software Foundation, Inc.
>
>  # This file is part of GCC.
>
> --- gcc/brig/brig-builtins.h    (revision 244917)
> +++ gcc/brig/brig-builtins.h    (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-builtins.h -- brig builtin definitions
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
> --- gcc/brig/brig-c.h   (revision 244917)
> +++ gcc/brig/brig-c.h   (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-c.h -- Header file for brig input's gcc C interface.
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brig-lang.c        (revision 244917)
> +++ gcc/brig/brig-lang.c        (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-lang.c -- brig (HSAIL) input gcc interface.
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-arg-block-handler.cc     (revision 244917)
> +++ gcc/brig/brigfrontend/brig-arg-block-handler.cc     (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-arg-block-handler.cc -- brig arg block start/end directive handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-atomic-inst-handler.cc   (revision 244917)
> +++ gcc/brig/brigfrontend/brig-atomic-inst-handler.cc   (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-atomic-inst-handler.cc -- brig atomic instruction handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
> --- gcc/brig/brigfrontend/brig-basic-inst-handler.cc    (revision 244917)
> +++ gcc/brig/brigfrontend/brig-basic-inst-handler.cc    (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-basic-inst-handler.cc -- brig basic instruction handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-branch-inst-handler.cc   (revision 244917)
> +++ gcc/brig/brigfrontend/brig-branch-inst-handler.cc   (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-branch-inst-handler.cc -- brig branch instruction handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-cmp-inst-handler.cc      (revision 244917)
> +++ gcc/brig/brigfrontend/brig-cmp-inst-handler.cc      (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-cmp-inst-handler.cc -- brig cmp instruction handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-code-entry-handler.cc    (revision 244917)
> +++ gcc/brig/brigfrontend/brig-code-entry-handler.cc    (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-code-entry-handler.cc -- a gccbrig base class
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-code-entry-handler.h     (revision 244917)
> +++ gcc/brig/brigfrontend/brig-code-entry-handler.h     (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-code-entry-handler.h -- a gccbrig base class
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-comment-handler.cc       (revision 244917)
> +++ gcc/brig/brigfrontend/brig-comment-handler.cc       (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-comment-handler.cc -- brig comment directive handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-control-handler.cc       (revision 244917)
> +++ gcc/brig/brigfrontend/brig-control-handler.cc       (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-control-handler.cc -- brig control directive handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-copy-move-inst-handler.cc        (revision 
> 244917)
> +++ gcc/brig/brigfrontend/brig-copy-move-inst-handler.cc        (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-copy-move-inst-handler.cc -- brig copy/move instruction handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-cvt-inst-handler.cc      (revision 244917)
> +++ gcc/brig/brigfrontend/brig-cvt-inst-handler.cc      (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-cvt-inst-handler.cc -- brig cvt (convert) instruction handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-fbarrier-handler.cc      (revision 244917)
> +++ gcc/brig/brigfrontend/brig-fbarrier-handler.cc      (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-fbarrier-handler.cc -- brig fbarrier directive handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-function-handler.cc      (revision 244917)
> +++ gcc/brig/brigfrontend/brig-function-handler.cc      (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-code-entry-handler.cc -- brig function directive handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-function.cc      (revision 244917)
> +++ gcc/brig/brigfrontend/brig-function.cc      (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-function.cc -- declaration of brig_function class.
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-function.h       (revision 244917)
> +++ gcc/brig/brigfrontend/brig-function.h       (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-function.h -- declaration of brig_function class.
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-inst-mod-handler.cc      (revision 244917)
> +++ gcc/brig/brigfrontend/brig-inst-mod-handler.cc      (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-inst-mod-handler.cc -- brig rounding moded instruction handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-label-handler.cc (revision 244917)
> +++ gcc/brig/brigfrontend/brig-label-handler.cc (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-label-handler.cc -- brig label directive handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-lane-inst-handler.cc     (revision 244917)
> +++ gcc/brig/brigfrontend/brig-lane-inst-handler.cc     (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-lane-inst-handler.cc -- brig lane instruction handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-machine.c        (revision 244917)
> +++ gcc/brig/brigfrontend/brig-machine.c        (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-machine.c -- gccbrig machine queries
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-machine.h        (revision 244917)
> +++ gcc/brig/brigfrontend/brig-machine.h        (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-machine.h -- gccbrig machine queries
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>
>  This file is part of GCC.
>
> --- gcc/brig/brigfrontend/brig-mem-inst-handler.cc      (revision 244917)
> +++ gcc/brig/brigfrontend/brig-mem-inst-handler.cc      (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-mem-inst-handler.cc -- brig memory inst handler
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-module-handler.cc        (revision 244917)
> +++ gcc/brig/brigfrontend/brig-module-handler.cc        (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-module-handler.cc -- brig module directive handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-queue-inst-handler.cc    (revision 244917)
> +++ gcc/brig/brigfrontend/brig-queue-inst-handler.cc    (working copy)
> @@ -1,6 +1,6 @@
>  /* brig-queue-inst-handler.cc -- brig user mode queue related instruction
>     handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-seg-inst-handler.cc      (revision 244917)
> +++ gcc/brig/brigfrontend/brig-seg-inst-handler.cc      (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-seg-inst-handler.cc -- brig segment related instruction handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-signal-inst-handler.cc   (revision 244917)
> +++ gcc/brig/brigfrontend/brig-signal-inst-handler.cc   (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-signal-inst-handler.cc -- brig signal instruction handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-to-generic.cc    (revision 244917)
> +++ gcc/brig/brigfrontend/brig-to-generic.cc    (working copy)
> @@ -1,5 +1,5 @@
>  /* brig2tree.cc -- brig to gcc generic/gimple tree conversion
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-to-generic.h     (revision 244917)
> +++ gcc/brig/brigfrontend/brig-to-generic.h     (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-to-generic.h -- brig to gcc generic conversion
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-util.cc  (revision 244917)
> +++ gcc/brig/brigfrontend/brig-util.cc  (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-util.cc -- gccbrig utility functions
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-util.h   (revision 244917)
> +++ gcc/brig/brigfrontend/brig-util.h   (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-util.h -- gccbrig utility functions
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/brig-variable-handler.cc      (revision 244917)
> +++ gcc/brig/brigfrontend/brig-variable-handler.cc      (working copy)
> @@ -1,5 +1,5 @@
>  /* brig-variable-handler.cc -- brig variable directive handling
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigfrontend/phsa.h        (revision 244917)
> +++ gcc/brig/brigfrontend/phsa.h        (working copy)
> @@ -1,5 +1,5 @@
>  /* phsa.h -- interfacing between the gcc BRIG FE and the phsa runtime
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/brigspec.c (revision 244917)
> +++ gcc/brig/brigspec.c (working copy)
> @@ -1,5 +1,5 @@
>  /* brigspec.c -- Specific flags and argument handling of the gcc BRIG front 
> end.
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/config-lang.in     (revision 244917)
> +++ gcc/brig/config-lang.in     (working copy)
> @@ -1,6 +1,6 @@
>  # config-lang.in -- Top level configure fragment for gcc BRIG (HSAIL) 
> frontend.
>
> -# Copyright (C) 2015 Free Software Foundation, Inc.
> +# Copyright (C) 2015-2017 Free Software Foundation, Inc.
>
>  # This file is part of GCC.
>
> --- gcc/brig/lang-specs.h       (revision 244917)
> +++ gcc/brig/lang-specs.h       (working copy)
> @@ -1,5 +1,5 @@
>  /* lang-specs.h -- gcc driver specs for BRIG (HSAIL) frontend.
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- gcc/brig/lang.opt   (revision 244917)
> +++ gcc/brig/lang.opt   (working copy)
> @@ -1,6 +1,6 @@
>  ; lang.opt -- Options for the gcc BRIG (HSAIL) front end.
>
> -; Copyright (C) 2015 Free Software Foundation, Inc.
> +; Copyright (C) 2015-2017 Free Software Foundation, Inc.
>  ;
>  ; This file is part of GCC.
>  ;
> --- gcc/brig-builtins.def       (revision 244917)
> +++ gcc/brig-builtins.def       (working copy)
> @@ -1,6 +1,6 @@
>  /* This file contains the definitions and documentation for the
>     HSAIL builtins used in the GNU compiler.
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
> --- gcc/config/arm/arm_acle_builtins.def        (revision 244917)
> +++ gcc/config/arm/arm_acle_builtins.def        (working copy)
> @@ -1,5 +1,5 @@
>  /* ACLE builtin definitions for ARM.
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by ARM Ltd.
>
>     This file is part of GCC.
> --- gcc/testsuite/brig.dg/dg.exp        (revision 244917)
> +++ gcc/testsuite/brig.dg/dg.exp        (working copy)
> @@ -1,4 +1,4 @@
> -#   Copyright (C) 2009-2014 Free Software Foundation, Inc.
> +#   Copyright (C) 2009-2017 Free Software Foundation, Inc.
>
>  # This program is free software; you can redistribute it and/or modify
>  # it under the terms of the GNU General Public License as published by
> --- gcc/testsuite/lib/brig-dg.exp       (revision 244917)
> +++ gcc/testsuite/lib/brig-dg.exp       (working copy)
> @@ -1,4 +1,4 @@
> -#   Copyright (C) 2009-2014 Free Software Foundation, Inc.
> +#   Copyright (C) 2009-2017 Free Software Foundation, Inc.
>
>  # This program is free software; you can redistribute it and/or modify
>  # it under the terms of the GNU General Public License as published by
> --- gcc/testsuite/lib/brig.exp  (revision 244917)
> +++ gcc/testsuite/lib/brig.exp  (working copy)
> @@ -1,4 +1,4 @@
> -# Copyright (C) 2009-2016 Free Software Foundation, Inc.
> +# Copyright (C) 2009-2017 Free Software Foundation, Inc.
>
>  # This program is free software; you can redistribute it and/or modify
>  # it under the terms of the GNU General Public License as published by
> --- libhsail-rt/include/internal/fibers.h       (revision 244917)
> +++ libhsail-rt/include/internal/fibers.h       (working copy)
> @@ -1,5 +1,5 @@
>  /* fibers.h -- an extremely simple lightweight thread (fiber) implementation
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/include/internal/phsa-queue-interface.h (revision 244917)
> +++ libhsail-rt/include/internal/phsa-queue-interface.h (working copy)
> @@ -2,7 +2,7 @@
>     representation of a user mode queue to be used with the phsa/gccbrig
>     implementation.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/include/internal/phsa-rt.h      (revision 244917)
> +++ libhsail-rt/include/internal/phsa-rt.h      (working copy)
> @@ -1,7 +1,7 @@
>  /* phsa-rt.h -- Data structures and functions of the PHSA device side runtime
>     scheduler, and HSAIL built-ins.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/include/internal/workitems.h    (revision 244917)
> +++ libhsail-rt/include/internal/workitems.h    (working copy)
> @@ -1,7 +1,7 @@
>  /* workitems.h -- Types for context data passed as hidden parameters to 
> special
>     built-ins.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/arithmetic.c (revision 244917)
> +++ libhsail-rt/rt/arithmetic.c (working copy)
> @@ -1,7 +1,7 @@
>  /* arithmetic.c -- Builtins for HSAIL arithmetic instructions for which
>     there is no feasible direct gcc GENERIC expression.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/atomics.c    (revision 244917)
> +++ libhsail-rt/rt/atomics.c    (working copy)
> @@ -1,7 +1,7 @@
>  /* atomic.c -- Builtins for HSAIL atomic instructions for which
>     there is no feasible direct gcc GENERIC expression.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/bitstring.c  (revision 244917)
> +++ libhsail-rt/rt/bitstring.c  (working copy)
> @@ -1,6 +1,6 @@
>  /* bitstring.c -- Builtins for HSAIL bitstring instructions.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/fbarrier.c   (revision 244917)
> +++ libhsail-rt/rt/fbarrier.c   (working copy)
> @@ -1,6 +1,6 @@
>  /* fbarrier.c -- HSAIL fbarrier built-ins.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/fibers.c     (revision 244917)
> +++ libhsail-rt/rt/fibers.c     (working copy)
> @@ -1,9 +1,9 @@
>  /* fibers.c -- extremely simple lightweight thread (fiber) implementation
> -   Copyright (C) 2016 Free Software Foundation, Inc.
> +   Copyright (C) 2016-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/fp16.c       (revision 244917)
> +++ libhsail-rt/rt/fp16.c       (working copy)
> @@ -1,7 +1,7 @@
>  /* Half-float conversion routines.  Code mostly borrowed from the ARM's
>     builtin function.
>
> -   Copyright (C) 2008-2015 Free Software Foundation, Inc.
> +   Copyright (C) 2008-2017 Free Software Foundation, Inc.
>     Contributed by CodeSourcery.
>
>     This file is free software; you can redistribute it and/or modify it
> --- libhsail-rt/rt/misc.c       (revision 244917)
> +++ libhsail-rt/rt/misc.c       (working copy)
> @@ -1,6 +1,6 @@
>  /* misc.c -- Builtins for HSAIL misc instructions.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/multimedia.c (revision 244917)
> +++ libhsail-rt/rt/multimedia.c (working copy)
> @@ -1,6 +1,6 @@
>  /* multimedia.c -- Builtins for HSAIL multimedia instructions.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/queue.c      (revision 244917)
> +++ libhsail-rt/rt/queue.c      (working copy)
> @@ -1,6 +1,6 @@
>  /* queue.c -- Builtins for HSAIL queue related instructions.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/sat_arithmetic.c     (revision 244917)
> +++ libhsail-rt/rt/sat_arithmetic.c     (working copy)
> @@ -1,6 +1,6 @@
>  /* sat_arithmetic.c -- Builtins for HSAIL saturating arithmetic instructions.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/segment.c    (revision 244917)
> +++ libhsail-rt/rt/segment.c    (working copy)
> @@ -1,6 +1,6 @@
>  /* segment.c -- Builtins for HSAIL segment related instructions.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libhsail-rt/rt/workitems.c  (revision 244917)
> +++ libhsail-rt/rt/workitems.c  (working copy)
> @@ -2,7 +2,7 @@
>     various ways and the builtin functions closely related to the
>     implementation.
>
> -   Copyright (C) 2015-2016 Free Software Foundation, Inc.
> +   Copyright (C) 2015-2017 Free Software Foundation, Inc.
>     Contributed by Pekka Jaaskelainen <pekka.jaaskelai...@parmance.com>
>     for General Processor Tech.
>
> --- libstdc++-v3/libsupc++/eh_atomics.h (revision 244917)
> +++ libstdc++-v3/libsupc++/eh_atomics.h (working copy)
> @@ -1,6 +1,6 @@
>  // Exception Handling support header for -*- C++ -*-
>
> -// Copyright (C) 2016 Free Software Foundation, Inc.
> +// Copyright (C) 2016-2017 Free Software Foundation, Inc.
>  //
>  // This file is part of GCC.
>  //
> --- libstdc++-v3/testsuite/20_util/unique_ptr/cons/default.cc   (revision 
> 244917)
> +++ libstdc++-v3/testsuite/20_util/unique_ptr/cons/default.cc   (working copy)
> @@ -1,6 +1,6 @@
>  // { dg-do compile { target c++11 } }
>
> -// Copyright (C) 2016 Free Software Foundation, Inc.
> +// Copyright (C) 2016-2017 Free Software Foundation, Inc.
>  //
>  // This file is part of the GNU ISO C++ Library.  This library is free
>  // software; you can redistribute it and/or modify it under the
>
>
>         Jakub
diff --git a/ChangeLog b/ChangeLog
index 9695f9d..6f4f256 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-26  Pekka Jääskeläinen  <pekka.jaaskelai...@parmance.com>
+
+	* configure.ac: Added i[3456789]86-*-linux* as a supported env
+	for the BRIG FE.
+	* configure: Regenerated.
+
 2017-01-24  Pekka Jääskeläinen <pe...@parmance.com>
 	    Martin Jambor  <mjam...@suse.cz>
 
diff --git a/configure b/configure
index d757369..b62d811 100755
--- a/configure
+++ b/configure
@@ -3487,6 +3487,8 @@ fi
 # broken systems. Currently it has been tested only on x86_64 Linux
 # of the upstream gcc targets. More targets shall be added after testing.
 case "${target}" in
+  i[3456789]86-*-linux*)
+    ;;
   x86_64-*-linux*)
     ;;
     *)
diff --git a/configure.ac b/configure.ac
index 5818332..2df8e34 100644
--- a/configure.ac
+++ b/configure.ac
@@ -817,6 +817,8 @@ fi
 # broken systems. Currently it has been tested only on x86_64 Linux
 # of the upstream gcc targets. More targets shall be added after testing.
 case "${target}" in
+  i[[3456789]]86-*-linux*)
+    ;;
   x86_64-*-linux*)
     ;;
     *)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f485bb3..d481b25 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2017-01-26  Pekka Jääskeläinen <pekka.jaaskelai...@parmance.com>
+
+	* builtin-types.def: Use uint16_type_node for BT_UINT16.
+
 2017-01-26  Jakub Jelinek  <ja...@redhat.com>
 
 	PR middle-end/79236
diff --git a/gcc/brig/ChangeLog b/gcc/brig/ChangeLog
index d947c5a..1b24d52 100644
--- a/gcc/brig/ChangeLog
+++ b/gcc/brig/ChangeLog
@@ -1,3 +1,7 @@
+2017-01-26  Pekka Jääskeläinen <pekka.jaaskelai...@parmance.com>
+
+	Removed stale target-libbrig reference from config-lang.in
+
 2017-01-26  Jakub Jelinek  <ja...@redhat.com>
 
 	Update copyright years.
diff --git a/gcc/brig/config-lang.in b/gcc/brig/config-lang.in
index ab139b3..e390a16 100644
--- a/gcc/brig/config-lang.in
+++ b/gcc/brig/config-lang.in
@@ -28,7 +28,7 @@ language="brig"
 
 compilers="brig1\$(exeext)"
 
-target_libs="target-libbrig target-libhsail-rt"
+target_libs="target-libhsail-rt"
 
 # The BRIG frontend is written in C++, so we need to build the C++
 # compiler during stage 1.  Note: when cross-compiling / not bootstrapping,
diff --git a/gcc/builtin-types.def b/gcc/builtin-types.def
index ee6d052..b065397 100644
--- a/gcc/builtin-types.def
+++ b/gcc/builtin-types.def
@@ -70,7 +70,7 @@ DEF_PRIMITIVE_TYPE (BT_UINTMAX, uintmax_type_node)
 DEF_PRIMITIVE_TYPE (BT_INT8, signed_char_type_node)
 DEF_PRIMITIVE_TYPE (BT_INT16, short_integer_type_node)
 DEF_PRIMITIVE_TYPE (BT_UINT8, char_type_node)
-DEF_PRIMITIVE_TYPE (BT_UINT16, short_unsigned_type_node)
+DEF_PRIMITIVE_TYPE (BT_UINT16, uint16_type_node)
 DEF_PRIMITIVE_TYPE (BT_UINT32, uint32_type_node)
 DEF_PRIMITIVE_TYPE (BT_UINT64, uint64_type_node)
 DEF_PRIMITIVE_TYPE (BT_WORD, (*lang_hooks.types.type_for_mode) (word_mode, 1))
diff --git a/libhsail-rt/ChangeLog b/libhsail-rt/ChangeLog
index b986286..74d9269 100644
--- a/libhsail-rt/ChangeLog
+++ b/libhsail-rt/ChangeLog
@@ -1,3 +1,7 @@
+2017-01-26  Pekka Jääskeläinen <pekka.jaaskelai...@parmance.com>
+
+	* README: Added a proper description of what libhsail-rt is.
+
 2017-01-26  Jakub Jelinek  <ja...@redhat.com>
 
 	Update copyright years.
diff --git a/libhsail-rt/README b/libhsail-rt/README
index 2792253..64c2107 100644
--- a/libhsail-rt/README
+++ b/libhsail-rt/README
@@ -1,4 +1,10 @@
-Run autoconf2.64 && automake-1.11  to regenerate the buildfiles.
-You might need to manually tweak the minor automake version number
-in configure.ac and aclocal.m4 (search for 1.11.6) in case your
-local 1.11 minor version doesn't match. 
\ No newline at end of file
+This library implements the agent-side runtime functionality required
+to run HSA finalized programs produced by the BRIG frontend.
+
+The library contains both the code required to run kernels on the agent
+and also functions implementing more complex HSAIL instructions.
+
+rt/workitems.c contains the runtime entry function that manages multiple
+work-item execution using fibers or simple for-loops (in case of work groups
+without barriers).  Otherwise, the rest of the source files mostly contain
+functions that typically map directly to HSAIL instructions.

Reply via email to