[PATCH diagnostics/fortran] dynamically generate locations from offset + handle %C (try 2)

2014-10-31 Thread Manuel López-Ibáñez
Dear Jason or Tom, Only the libcpp parts are pending review. This is an updated version of https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01621.html The only changes are more uses of gfc_warning_now_2 to increase testing, which required updating gfortran.dg/warnings_are_errors_1.f, and implementi

Re: The nvptx port [11/11] More tools.

2014-10-31 Thread Bernd Schmidt
On 10/31/2014 09:56 PM, Jeff Law wrote: Pondering this a bit more, I think this is fine in concept. As you note, removing the GNU extensions or at least making them conditional would be good since these are going to be built with the host tools. I'm not going to dig into the implementations...

[gomp4] acc reductions with multiple variables

2014-10-31 Thread Cesar Philippidis
This patch does the following: * introduce GOACC_get_thread_num / GOACC_get_num_threads and GOACC_acc_get_device_type builtins * support for num_gangs in the middle end * support reductions with multiple variables This patch also resolves an issue when reductions are preformed on the ho

RE: [Patch] MIPS configuration patch to enable --with-[arch,endian,abi]

2014-10-31 Thread Matthew Fortune
Steve Ellcey writes: > Here is another MIPS configuration patch, this one allows the mips > configuration to handle the --with-endian, --with-arch, and --with-abi > configure options. Basically instead of having targets set > MIPS_ABI_DEFAULT > and MIPS_ISA_DEFAULT directly in tm_defines based o

[PATCH, i386]: Fix PR63702, possible missing break

2014-10-31 Thread Uros Bizjak
Hello! 2014-10-31 Uros Bizjak PR target/63702 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra assignment to 'nargs' variable. Bootstrapped and regtestedn on x86_64-linux-gnu, committed to mainline SVN. Uros. Index: config/i386/i386.c ===

Re: [PATCH 23/27] Documentation: the "intro" subdirectory

2014-10-31 Thread David Malcolm
On Fri, 2014-10-31 at 15:29 -0600, Jeff Law wrote: > On 10/31/14 11:02, David Malcolm wrote: > > The "intro" subdirectory of gcc/jit/docs consists of a 4-part tutorial > > aimed at experienced developers who are new users of the library, taking > > them from beginning use all the way up to adding J

Re: [Patch] MIPS configuration patch to enable --with-[arch,endian,abi]

2014-10-31 Thread Joseph S. Myers
On Fri, 31 Oct 2014, Steve Ellcey wrote: > So the question is: should /lib and /usr/lib always be for the default GCC > ABI (whatever that may be) or should /lib and /usr/lib always be for the > MIPS (old) 32 ABI (with /lib32 and /usr/lib32 always being for the MIPS N32 > ABI and /lib64 and /usr/

Re: [PATCH 23/27] Documentation: the "intro" subdirectory

2014-10-31 Thread Jeff Law
On 10/31/14 11:02, David Malcolm wrote: The "intro" subdirectory of gcc/jit/docs consists of a 4-part tutorial aimed at experienced developers who are new users of the library, taking them from beginning use all the way up to adding JIT-compilation to an interpreter. gcc/jit/ * docs/intr

Re: [PATCH 21/27] Documentation: the "examples" subdirectory

2014-10-31 Thread Jeff Law
On 10/31/14 11:02, David Malcolm wrote: This patch adds examples. These examples are used included by the documentation when it is built, and are run as code by the testsuite, ensuring that the examples shown in the docs build and run. gcc/jit/ * docs/examples/tut01-hello-world.c: New.

Re: [PATCH 22/27] Documentation: top-level index.rst

2014-10-31 Thread Jeff Law
On 10/31/14 11:02, David Malcolm wrote: The top-level index.rst provides the high-level structure for the rest of the docs (which will follow in the patches that follow). gcc/jit/ChangeLog: * docs/index.rst: New. OK. Jeff ---

Re: [PATCH 18/27] New file: gcc/jit/TODO.rst

2014-10-31 Thread Jeff Law
On 10/31/14 11:02, David Malcolm wrote: This is a list of TODOs for working on the JIT. gcc/jit/ * TODO.rst: New. OK. jeff

Re: [PATCH 09/27] New file: gcc/jit/libgccjit.map

2014-10-31 Thread Jeff Law
On 10/31/14 11:02, David Malcolm wrote: This linker script ensures that the library only exports the symbols we want it to. gcc/jit/ * libgccjit.map: New. OK. jeff

Re: [PATCH 05/27] New file: gcc/jit/config-lang.in

2014-10-31 Thread Jeff Law
On 10/31/14 11:02, David Malcolm wrote: gcc/jit/ * config-lang.in: New. OK. jeff

Re: [PATCH 04/27] New file: gcc/jit/notes.txt

2014-10-31 Thread Jeff Law
On 10/31/14 11:02, David Malcolm wrote: An earlier version of this was posted as part of: "[PATCH 06/10] Heart of the JIT implementation (was: Re: [PATCH 0/5] Merger of jit branch (v2))" https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01247.html I've broken that up into separate p

Re: [PATCH 03/27] Add Sphinx to install.texi

2014-10-31 Thread Jeff Law
On 10/31/14 11:02, David Malcolm wrote: In https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01793.html, Joseph said: Although Sphinx isn't a build dependency, as a dependency for regenerating checked-in files I think it should be documented in install.texi (like autoconf, gettext, etc.). This pa

Re: [PATCH 02/27] JIT-related changes outside of jit subdir

2014-10-31 Thread Jeff Law
On 10/31/14 11:02, David Malcolm wrote: This was previously posted as: "[PATCH 05/10] JIT-related changes outside of jit subdir" https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01246.html and approved by Jeff in https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01410.html OK if/when rest o

Re: [PATCH 00/27] Merger of jit branch v3

2014-10-31 Thread Jeff Law
On 10/31/14 11:02, David Malcolm wrote: I'd like to merge the JIT branch into trunk: https://gcc.gnu.org/wiki/JIT This is "v3" since it incorporates fixes for various issues identified in earlier submissions: v1: https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02056.html v2: https://gcc.g

[Patch] MIPS configuration patch to enable --with-[arch,endian,abi]

2014-10-31 Thread Steve Ellcey
Here is another MIPS configuration patch, this one allows the mips configuration to handle the --with-endian, --with-arch, and --with-abi configure options. Basically instead of having targets set MIPS_ABI_DEFAULT and MIPS_ISA_DEFAULT directly in tm_defines based on their triplet names I have them

Re: update address taken: don't drop clobbers

2014-10-31 Thread Jeff Law
On 10/25/14 10:29, Marc Glisse wrote: On Fri, 24 Oct 2014, Jeff Law wrote: I'm starting to agree -- a later message indicated you wanted to drop the unlink_stmt_vdef call and you wanted to avoid gsi_replace, that seems fine. I'll approve once those things are taken care of. The following pass

Re: [Patch 1/7] Hookize *_BY_PIECES_P

2014-10-31 Thread Jeff Law
On 10/31/14 09:08, James Greenhalgh wrote: Hi, This patch prepares for removing all the *BY_PIECES_P macros by introducing a new target hook TARGET_USE_BY_PIECES_INFRASTRUCTURE_P. Tested on ARM/AArch64/x86_64 with no issues. Ok for trunk? Thanks, James --- gcc/ 2014-10-31 James Greenhalgh

Re: fix math wrt volatile-bitfields vs C++ model

2014-10-31 Thread DJ Delorie
> Ok. For the branch please wait until after 4.9.2 is out. 4.9.2 being out, I applied this to the branch.

Re: update address taken: don't drop clobbers

2014-10-31 Thread Jeff Law
On 10/25/14 01:48, Marc Glisse wrote: Without the liveness patch, their lifetime should mean that they don't coalesce with anything. But I would expect they get their own partition then (I am forgetting these details way too fast...). With the liveness patch which gives them an empty lifetime, t

Re: The nvptx port [11/11] More tools.

2014-10-31 Thread Jeff Law
On 10/20/14 08:48, Bernd Schmidt wrote: This is a "bonus" optional patch which adds ar, ranlib, as and ld to the ptx port. This is not proper binutils; ar and ranlib are just linked to the host versions, and the other two tools have the following functions: * nvptx-as is required to convert the

Re: [patch] Make std::vector meet C++11 allocator requirements.

2014-10-31 Thread Daniel Krügler
2014-10-31 21:49 GMT+01:00 Jonathan Wakely : > There's no better time to fix evil vector than Halloween. Great - so you removed vector?;-) - Daniel

[patch] Make std::vector meet C++11 allocator requirements.

2014-10-31 Thread Jonathan Wakely
There's no better time to fix evil vector than Halloween. All allocator operations must go through allocator_traits and _Bit_type* must be replaced with the allocator's pointer type. Rather than rewriting all the iterators and base classes to use _Bit_pointer everywhere I only changed _M_end_of_

Re: [PATCH PR63581] Fix undefined references in debug_info

2014-10-31 Thread Jeff Law
On 10/17/14 17:08, Rong Xu wrote: Here is the diff for ChangeLog Index: ChangeLog === --- ChangeLog (revision 216415) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2014-10-17 + + * cfgrtl.c (emit_barrier_after_bb): Append the ba

Re: [PATCH RFC]Pair load store instructions using a generic scheduling fusion pass

2014-10-31 Thread Jeff Law
On 09/30/14 03:22, Bin Cheng wrote: 2014-09-30 Bin Cheng Mike Stump * timevar.def (TV_SCHED_FUSION): New time var. * passes.def (pass_sched_fusion): New pass. * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New. (extract_base_offset_in_addr, fusi

Re: [PATCH, i386]: Workaround PR 63620 by allowing only direct immediate values in FP push patterns

2014-10-31 Thread Uros Bizjak
On Fri, Oct 31, 2014 at 8:53 PM, Jakub Jelinek wrote: > On Fri, Oct 31, 2014 at 08:45:54PM +0100, Uros Bizjak wrote: >> Attached patch works around PR 63620. Patched gcc will allow only a >> subset of CONST_DOUBLEs in FP push patterns. This subset will result >> in direct immediates that can alway

Re: [PARCH 1/2, x86, PR63534] Fix darwin bootstrap

2014-10-31 Thread Jeff Law
On 10/17/14 08:08, Evgeny Stupachenko wrote: Hi, The patch fixes 1st fail in darwin bootstarp. When PIC register is pseudo we don't need to init it after setjmp or non local goto. Is it ok? ChangeLog: 2014-10-17 Evgeny Stupachenko PR target/63534 * config/i386/i386.c (bu

Re: [PATCH, i386]: Workaround PR 63620 by allowing only direct immediate values in FP push patterns

2014-10-31 Thread Jakub Jelinek
On Fri, Oct 31, 2014 at 08:45:54PM +0100, Uros Bizjak wrote: > Attached patch works around PR 63620. Patched gcc will allow only a > subset of CONST_DOUBLEs in FP push patterns. This subset will result > in direct immediates that can always be encoded directly in the insn > stream. These won't be r

Re: [PATCH] Optimize UBSAN_NULL checks

2014-10-31 Thread ygribov
On Fri, Oct 31, 2014 at 10:51 PM, Yuri Gribov wrote: > I've tried similar optimizations For Asan that is. -- View this message in context: http://gcc.1065356.n5.nabble.com/PATCH-Optimize-UBSAN-NULL-checks-tp1084891p1085287.html Sent from the gcc - patches mailing list archive at Nabble.com.

Re: [PATCH] Optimize UBSAN_NULL checks

2014-10-31 Thread ygribov
On Fri, Oct 31, 2014 at 12:19 PM, Marek Polacek-3 [via gcc] wrote: > On Thu, Oct 30, 2014 at 07:47:52PM +0100, Marek Polacek wrote: > >> This patch tries to optimize away redundant UBSAN_NULL checks. >> It walks the statements, looks for UBSAN_NULL calls and keeps >> track of pointers and statemen

[PATCH, i386]: Workaround PR 63620 by allowing only direct immediate values in FP push patterns

2014-10-31 Thread Uros Bizjak
Hello! Attached patch works around PR 63620. Patched gcc will allow only a subset of CONST_DOUBLEs in FP push patterns. This subset will result in direct immediates that can always be encoded directly in the insn stream. These won't be reloaded through memory, and will avoid PIC register re-materi

doc/contrib.texi

2014-10-31 Thread Jeff Law
Two additions to a file that has gotten seriously out of date. Installed on the trunk. * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+) and Jonny Grant (collect2). diff --git a/gcc/doc/contrib.texi b/gcc/doc/contrib.texi index 9117f8e..3b696fa 100644 --- a/gcc/

Re: [PATCH] Adjust/remove REG_EQ{UAL,UIV} notes in REE (PR rtl-optimization/63659)

2014-10-31 Thread Jeff Law
On 10/30/14 01:36, Jakub Jelinek wrote: On Wed, Oct 29, 2014 at 09:47:33PM -0600, Jeff Law wrote: On 10/27/14 14:47, Jakub Jelinek wrote: Hi! The following testcase is miscompiled in 4.8+ on x86_64 at -O2+, because REE widens for ZERO_EXTEND mode on (set (reg:QI ax) (const_int -1)) instruction

Re: [PATCH RFC]Pair load store instructions using a generic scheduling fusion pass

2014-10-31 Thread Jeff Law
On 10/30/14 23:36, Bin.Cheng wrote: #2 would be the best solution for the case I was pondering, but I don't think solving that case is terribly important given the processors for which it was profitable haven't been made for a very long time. I am thinking if it's possible to introduce a pattern

Re: [PATCH RFC]Pair load store instructions using a generic scheduling fusion pass

2014-10-31 Thread Jeff Law
On 10/30/14 23:36, Bin.Cheng wrote: Thanks for giving it a try. I'm a very hands-on learner, so sometimes the best way for me to understand a blob of code is poke at it myself a bit. Anyway, now I just need to get back to the patch for a final review :-) jeff

Re: [PATCH] x86: allow to suppress default clobbers added to asm()s

2014-10-31 Thread Jeff Law
On 10/31/14 02:07, Jan Beulich wrote: While it always seemed wrong to me that there's no way to avoid the default "flags" and "fpsr" clobbers, the regression the fix for PR/60663 introduced (see PR/63637) makes it even more desirable to have such a mechanism: This way, at least asm()s with a sing

Re: [PATCH, i686] Fix for asan test failures with -m32 happened after EBX enabling in PIC mode

2014-10-31 Thread Jeff Law
On 10/31/14 09:34, Zamyatin, Igor wrote: Hi! Following patch (moving initialization of pic_offset_table_rtx earlier) fixes failures for asan tests on 32 bits in PIC mode mentioned here - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534#c48 Bootstrapped/regtested on x86_64, i686 Is it ok f

Re: [PATCH] Use CONVERT_EXPR_P and friends in the middle-end

2014-10-31 Thread Joseph S. Myers
On Fri, 31 Oct 2014, Richard Biener wrote: > This fixes the few places where explicit checks for NOP_EXPR > or CONVERT_EXPRs crept in. The goal really should be to eliminate anything that distinguishes the two, and then combine them (eliminate NOP_EXPR) (as I said in

Re: [ARM] Fix CLZ_DEFINED_VALUE_AT_ZERO for vector modes

2014-10-31 Thread Ramana Radhakrishnan
On Wed, Oct 22, 2014 at 10:49 PM, Michael Collison wrote: > > Patch that removes extraneous comment attached. > > The CLZ_DEFINED_VALUE_AT_ZERO macro is hard coded to return 32. For the > vector intrinsic vclz this is incorrect and should return the value vclz_{s,u}8 ... > eight. The CTZ_DEFINED

[PATCH 04/27] New file: gcc/jit/notes.txt

2014-10-31 Thread David Malcolm
An earlier version of this was posted as part of: "[PATCH 06/10] Heart of the JIT implementation (was: Re: [PATCH 0/5] Merger of jit branch (v2))" https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01247.html I've broken that up into separate patches for ease of review. This first patch

[PATCH 15/27] New file: gcc/jit/jit-playback.h

2014-10-31 Thread David Malcolm
This files declares the gcc::jit::playback internal API, called by the dummy "frontend" to replay the public API calls made to the library. A thin wrapper around trees. gcc/jit/ * jit-playback.h: New. --- gcc/jit/jit-playback.h | 564 + 1 f

[PATCH 13/27] New file: gcc/jit/jit-recording.c

2014-10-31 Thread David Malcolm
Implementation of the gcc::jit::recording internal API, so that libgccjit.c can record the calls that are made to the public API, for later playback by the dummy frontend. gcc/jit/ * jit-recording.c: New. --- gcc/jit/jit-recording.c | 3434 +++

[PATCH 25/27] Documentation: add "internals" subdirectory

2014-10-31 Thread David Malcolm
This final part of the documentation is a guide to the internals of the library, aimed at current and future contributors to the library (including myself). gcc/jit/ * docs/internals/index.rst: New. --- gcc/jit/docs/internals/index.rst | 216 +++ 1 file

[PATCH 16/27] New file: gcc/jit/jit-playback.c

2014-10-31 Thread David Malcolm
This files implements the gcc::jit::playback internal API, called by the dummy "frontend" to replay the public API calls made to the library. A thin wrapper around trees. gcc/jit/ * jit-playback.c: New. --- gcc/jit/jit-playback.c | 2104 1

[PATCH 17/27] New file: gcc/jit/libgccjit++.h

2014-10-31 Thread David Malcolm
This adds a C++ wrapper API, with syntactic sugar for reducing the verbosity compared to the C API. gcc/jit/ * libgccjit++.h: New. --- gcc/jit/libgccjit++.h | 1574 + 1 file changed, 1574 insertions(+) create mode 100644 gcc/jit/libgccjit++

[PATCH 24/27] Documentation: add "topics" subdirectory

2014-10-31 Thread David Malcolm
This patch adds a series of topic-based reference articles, intended to give developers who've read the tutorial more detailed descriptions of particular aspects of the library. gcc/jit/ * docs/topics/contexts.rst: New. * docs/topics/expressions.rst: New. * docs/topics/func

[PATCH 14/27] New files: gcc/jit/jit-builtins.{c|h}

2014-10-31 Thread David Malcolm
These files implement support for builtins, for the gcc_jit_context_get_builtin_function API entrypoint. Only a subset of builtins are currently supported, based on those that I needed when porting GNU Octave's JIT. Attempts to use other builtins may lead to an error: "unimplemented primitive

[PATCH 08/27] New file: gcc/jit/libgccjit.h

2014-10-31 Thread David Malcolm
This header is the public API for the library. gcc/jit/ * libgccjit.h: New. --- gcc/jit/libgccjit.h | 977 1 file changed, 977 insertions(+) create mode 100644 gcc/jit/libgccjit.h diff --git a/gcc/jit/libgccjit.h b/gcc/jit/libgccjit.h

[PATCH 18/27] New file: gcc/jit/TODO.rst

2014-10-31 Thread David Malcolm
This is a list of TODOs for working on the JIT. gcc/jit/ * TODO.rst: New. --- gcc/jit/TODO.rst | 119 +++ 1 file changed, 119 insertions(+) create mode 100644 gcc/jit/TODO.rst diff --git a/gcc/jit/TODO.rst b/gcc/jit/TODO.rst new file m

[PATCH 10/27] New file: gcc/jit/libgccjit.c

2014-10-31 Thread David Malcolm
This file implements the entrypoints of the library's public API. It performs error-checking at this boundary, before calling into the jit-recording.h internal API. gcc/jit/ * libgccjit.c: New. --- gcc/jit/libgccjit.c | 1506 +++ 1 file cha

[PATCH 12/27] New file: gcc/jit/jit-recording.h

2014-10-31 Thread David Malcolm
This file declares the gcc::jit::recording internal API, so that libgccjit.c can record the calls that are made to the public API, for later playback by the dummy frontend. gcc/jit/ * jit-recording.h: New. --- gcc/jit/jit-recording.h | 1593 +++

[PATCH 11/27] New file: gcc/jit/jit-common.h

2014-10-31 Thread David Malcolm
This header has forward declarations of both the jit::recording and jit::playback internal APIs. gcc/jit/ * jit-common.h: New. --- gcc/jit/jit-common.h | 182 +++ 1 file changed, 182 insertions(+) create mode 100644 gcc/jit/jit-common.h di

Re: [PATCH, ifcvt] Check size cost in noce_try_store_flag_mask

2014-10-31 Thread Jeff Law
On 10/31/14 00:30, Zhenqiang Chen wrote: Thank you all for the comments. Patch is updated. Bootstrap and no make check regression on X86-64. No make check regression with Cortex-M0 qemu. No performance changes for coremark, dhrystone, spec2000 and spec2006 on X86-64 and Cortex-A15. For CSiBE, A

Re: ptx preliminary rtl patches [1/4]

2014-10-31 Thread Bernd Schmidt
On 10/30/2014 06:36 PM, Segher Boessenkool wrote: On Thu, Sep 11, 2014 at 03:24:54PM +0200, Bernd Schmidt wrote: The nvptx backend is somewhat unusual in that call insns set a pseudo. The combiner is surprised by this and allows combining them into other insns, which remain as INSN rather than C

Re: [patch] flatten/adjust optabs.h

2014-10-31 Thread Jeff Law
On 10/30/14 09:42, Andrew MacLeod wrote: This patch "adjusts" optabs.h. which was really sub-work of looking at expr.h. I moved the prototypes from expr.h to optabs.h that belong there, and realigned the stuff in optabs.h to be in the same order as the .c file. I also moved gen_move_insn from o

Re: [Patch, testsuite] [AArch64,ARM] support bswap tests on aarch64_be

2014-10-31 Thread Ramana Radhakrishnan
On Wed, Oct 29, 2014 at 1:22 PM, Christophe Lyon wrote: > Hi, > > Following discussions after Thomas's patches improving bswap support > https://gcc.gnu.org/ml/gcc-patches/2014-09/msg01279.html > > I noticed that: > * the associated tests weren't executed on aarch64_be > * ARM targets older than v

[PATCH 23/27] Documentation: the "intro" subdirectory

2014-10-31 Thread David Malcolm
The "intro" subdirectory of gcc/jit/docs consists of a 4-part tutorial aimed at experienced developers who are new users of the library, taking them from beginning use all the way up to adding JIT-compilation to an interpreter. gcc/jit/ * docs/intro/factorial.png: New. * docs/intro

[PATCH 21/27] Documentation: the "examples" subdirectory

2014-10-31 Thread David Malcolm
This patch adds examples. These examples are used included by the documentation when it is built, and are run as code by the testsuite, ensuring that the examples shown in the docs build and run. gcc/jit/ * docs/examples/tut01-hello-world.c: New. * docs/examples/tut02-square.c: Ne

[PATCH 06/27] New file: gcc/jit/Make-lang.in

2014-10-31 Thread David Malcolm
gcc/jit/ * Make-lang.in: New. --- gcc/jit/Make-lang.in | 298 +++ 1 file changed, 298 insertions(+) create mode 100644 gcc/jit/Make-lang.in diff --git a/gcc/jit/Make-lang.in b/gcc/jit/Make-lang.in new file mode 100644 index 000..167fcad

[PATCH 07/27] New file: gcc/jit/dummy-frontend.c

2014-10-31 Thread David Malcolm
gcc/jit/ * dummy-frontend.c: New. --- gcc/jit/dummy-frontend.c | 240 +++ 1 file changed, 240 insertions(+) create mode 100644 gcc/jit/dummy-frontend.c diff --git a/gcc/jit/dummy-frontend.c b/gcc/jit/dummy-frontend.c new file mode 100644 index

[PATCH 20/27] Documentation: Makefile and conf.py

2014-10-31 Thread David Malcolm
When I previously submitted the jit for review, I posted all of the documentation as one big patch, as: "[PATCH 08/10] Documentation for the JIT library (Re: Patches 5-10 of jit merger)" https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01392.html Since then, I've: * eliminated all mentions

[PATCH 09/27] New file: gcc/jit/libgccjit.map

2014-10-31 Thread David Malcolm
This linker script ensures that the library only exports the symbols we want it to. gcc/jit/ * libgccjit.map: New. --- gcc/jit/libgccjit.map | 100 ++ 1 file changed, 100 insertions(+) create mode 100644 gcc/jit/libgccjit.map diff --git a/

[PATCH 22/27] Documentation: top-level index.rst

2014-10-31 Thread David Malcolm
The top-level index.rst provides the high-level structure for the rest of the docs (which will follow in the patches that follow). gcc/jit/ChangeLog: * docs/index.rst: New. --- gcc/jit/docs/index.rst | 50 ++ 1 file changed, 50 insertions(+)

[PATCH 05/27] New file: gcc/jit/config-lang.in

2014-10-31 Thread David Malcolm
gcc/jit/ * config-lang.in: New. --- gcc/jit/config-lang.in | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 gcc/jit/config-lang.in diff --git a/gcc/jit/config-lang.in b/gcc/jit/config-lang.in new file mode 100644 index 000..7a32afe ---

[PATCH 02/27] JIT-related changes outside of jit subdir

2014-10-31 Thread David Malcolm
This was previously posted as: "[PATCH 05/10] JIT-related changes outside of jit subdir" https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01246.html and approved by Jeff in https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01410.html > OK if/when rest of JIT bits are approved. Joseph pointed out

[PATCH 03/27] Add Sphinx to install.texi

2014-10-31 Thread David Malcolm
In https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01793.html, Joseph said: > Although Sphinx isn't a build dependency, as a dependency for > regenerating checked-in files I think it should be documented in > install.texi (like autoconf, gettext, etc.). This patch adds such documentation. gcc/Chan

[PATCH 01/27] gcc: configure and Makefile changes needed by jit

2014-10-31 Thread David Malcolm
An earlier version of this was posted as: "[PATCH 2/5] gcc: configure and Makefile changes needed by jit" https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01169.html Since then, I've eliminated the gcc_version, bindir, and pkgconfigdir additions, and added the FULL_DRIVER_NAME variable and syml

[PATCH 00/27] Merger of jit branch v3

2014-10-31 Thread David Malcolm
I'd like to merge the JIT branch into trunk: https://gcc.gnu.org/wiki/JIT This is "v3" since it incorporates fixes for various issues identified in earlier submissions: v1: https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02056.html v2: https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01168.html

Re: [PATCH] microblaze: microblaze.md: Use 'SI' instead of 'VOID' for operand 1 of 'call_value_intern'

2014-10-31 Thread Chen Gang
At present, I use telnet (without password), login to microblaze qemu successfully! :-) - I compile busy box with the glibc in orginal 'ramfs', so get telnetd: use new busybox replace the old one, and add symbol link 'telnetd' to busybox in "/bin". - configure qemu with network support

Re: [PATCH x86] Increase PARAM_MAX_COMPLETELY_PEELED_INSNS when branch is costly

2014-10-31 Thread Evgeny Stupachenko
I've measured spec2000, spec2006 as well and EEMBC for Silvermont in addition. 100->120 change gives gain for Silvermont, the results on Haswell are flat. On Fri, Oct 31, 2014 at 3:14 PM, Eric Botcazou wrote: >> Agreed, I think the value of 100 was set decade ago by Zdenek and me >> completely ar

Re: [gomp4] OpenACC wait directive

2014-10-31 Thread Cesar Philippidis
On 10/06/2014 03:56 AM, Ilmir Usmanov wrote: > Otherwise, Fortran part looks good for me. Thanks for the review again! I applied this patch to gomp-4_0-branch now that the middle end pieces are in place. Thanks, Cesar 2014-10-31 Cesar Philippidis gcc/fortran/ * gfortran.h (struct gfc_omp_c

Re: [PATCH] x86: extend vect-args testcase to AVX flavors

2014-10-31 Thread Kirill Yukhin
On 30 Oct 09:32, Uros Bizjak wrote: > On Thu, Oct 30, 2014 at 8:50 AM, Jan Beulich wrote: > > gcc/testsuite: > > 2014-10-30 Jan Beulich > > > > * gcc.target/i386/i386.exp: Extend option set to test > > vect-args.c with to include -mavx, -mavx2, and -mavx512f. > > * gcc.t

Re: [gofrontend-dev] Re: [PATCH 7/9] Gccgo port to s390[x] -- part I

2014-10-31 Thread Ian Taylor
On Fri, Oct 31, 2014 at 2:11 AM, Dominik Vogt wrote: > On Thu, Oct 30, 2014 at 07:51:45AM -0700, Ian Taylor wrote: >> On Thu, Oct 30, 2014 at 12:25 AM, Dominik Vogt >> wrote: >> > See attached patch. >> >> I don't mind skipping the test on other platforms, but xfail is not >> correct. When an x

Re: [PATCH, Pointer Bounds Checker 14/x] Passes [1/n] Expand interfaces

2014-10-31 Thread Jeff Law
On 10/30/14 10:37, Ilya Enkovich wrote: Hi, I rebased patches on current trunk. Bootstrap and check are clean on linux-x86_64. Darwin bootstrap has few issues due to IPA ICF pass. I also found my patches introduce an unused variable warning due to conditional code (under #ifdef ASM_OUTPUT_DE

[PATCH, i686] Fix for asan test failures with -m32 happened after EBX enabling in PIC mode

2014-10-31 Thread Zamyatin, Igor
Hi! Following patch (moving initialization of pic_offset_table_rtx earlier) fixes failures for asan tests on 32 bits in PIC mode mentioned here - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534#c48 Bootstrapped/regtested on x86_64, i686 Is it ok for trunk? ChangeLog: 2014-10-30 Igor Zam

RE: [Patch, MIPS] Add Octeon3 support

2014-10-31 Thread Moore, Catherine
> -Original Message- > From: Hurugalawadi, Naveen > [mailto:naveen.hurugalaw...@caviumnetworks.com] > Sent: Friday, October 31, 2014 2:50 AM > To: Moore, Catherine; Matthew Fortune; Myers, Joseph > Cc: gcc-patches@gcc.gnu.org; Pinski, Andrew > Subject: Re: [Patch, MIPS] Add Octeon3 suppor

[Patch 7/7] Remove *_BY_PIECES_P

2014-10-31 Thread James Greenhalgh
Hi, This final patch gets rid of all the *_BY_PIECES_P macros. Bootstrapped on x86_64, ARM and AArch64. Thanks, James --- gcc/ 2014-10-31 James Greenhalgh * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove. (CLEAR_BY_PIECES_P): Likewise. (SET_BY_PIECES_P): Likewise.

[Patch 5/7 mips] Deprecate *_BY_PIECES_P, move to hookized version

2014-10-31 Thread James Greenhalgh
Hi, This patch moves mips to TARGET_USE_BY_PIECES_INFRASTRUCTURE_P. For MIPS, this means adapting mips_move_by_pieces_p (and fixing the long-standing comment "if this becomes a target hook, we should call the default definition instead) and mips_store_by_pieces_p. I tried building a compiler an

[Patch 6/7 AArch64] Deprecate *_BY_PIECES_P, move to hookized version

2014-10-31 Thread James Greenhalgh
Hi, This patch moves aarch64 to TARGET_USE_BY_PIECES_INFRASTRUCTURE_P. AArch64 turns off STORE_BY_PIECES, so honour that and use the default implementation for other operations. Unlike the other patches in this series I do actually have some hardware for AArch64! So this one has been through a

[Patch 3/7 arc] Deprecate *_BY_PIECES_P, move to hookized version

2014-10-31 Thread James Greenhalgh
Hi, This patch moves arc to TARGET_USE_BY_PIECES_INFRASTRUCTURE_P. While I am there, arc defines a macro CAN_MOVE_BY_PIECES, which is unused, so clean that up too. arc only implements MOVE_BY_PIECES_P, wiring it to false. Mirror that behaviour, and use the default hook for other by_pieces opera

[Patch 4/7 sh] Deprecate *_BY_PIECES_P, move to hookized version

2014-10-31 Thread James Greenhalgh
Hi, This patch moves sh to TARGET_USE_BY_PIECES_INFRASTRUCTURE_P. For sh, STORE_BY_PIECES and SET_BY_PIECES share an implementation, MOVE_BY_PIECES is different. Implement as so, and use the default implementation for CLEAR_BY_PIECES. I tried building a compiler and there were no fires, but oth

[Patch 2/7 s390] Deprecate *_BY_PIECES_P, move to hookized version

2014-10-31 Thread James Greenhalgh
Hi, This patch moves s390 to TARGET_USE_BY_PIECES_INFRASTRUCTURE_P. It looks to me that s390 wires all the hooks in this set to the same return value, so that is what I've implemented. I tried building a compiler and there were no fires, but otherwise, I have no reasonable way to test this patc

RE: [Patch 1/6] Hookize MOVE_BY_PIECES_P, remove most uses of MOVE_RATIO

2014-10-31 Thread James Greenhalgh
On Wed, Oct 29, 2014 at 03:31:54PM +, James Greenhalgh wrote: > On Wed, Oct 29, 2014 at 11:42:06AM +, Matthew Fortune wrote: > > Hi James, > > > > I think you have a bug in the following hunk where you pass > > STORE_MAX_PIECES in place of the optimise for speed flag. I guess you > > would

[Patch 1/7] Hookize *_BY_PIECES_P

2014-10-31 Thread James Greenhalgh
Hi, This patch prepares for removing all the *BY_PIECES_P macros by introducing a new target hook TARGET_USE_BY_PIECES_INFRASTRUCTURE_P. Tested on ARM/AArch64/x86_64 with no issues. Ok for trunk? Thanks, James --- gcc/ 2014-10-31 James Greenhalgh * target.def (use_by_pieces_infra

Re: [PATCH, ifcvt] Check size cost in noce_try_store_flag_mask

2014-10-31 Thread pinskia
> On Oct 31, 2014, at 4:07 AM, Matthew Fortune > wrote: > > Andrew Pinski writes: >> On Thu, Oct 30, 2014 at 11:30 PM, Zhenqiang Chen >> wrote: >>> Thank you all for the comments. Patch is updated. >>> >>> Bootstrap and no make check regression on X86-64. >>> No make check regression with

[PATCH][AARCH64]Fix PR63424 by adding v2di3 pattern

2014-10-31 Thread Renlin Li
Hi all, This is a patch which will fix PR63424. It implements signed/unsigned max/min pattern for V2DI mode in terms of vcondv2div2di pattern. In this particular case, VEC_COND_EXPR (V2DImode) is generated as aarch64 target supports it (vcond for VALL). The VEC_COND_EXPR will further folded

[PATCH][AARCH64]Add ACLE arch-related predefined macros

2014-10-31 Thread Renlin Li
Hi all, This is a simple patch to add arch-related macros defined ACLE 2.0. aarch64-none-elf target is tested on the model, no new issues. Is this Okay for trunk? gcc/ChangeLog: 2014-10-31 Renlin Li * config/aarch64/aarch64.c (aarch64_architecture_version): New. (processor): New a

Re: [PATCH][AArch64][4.8] LINK_SPEC changes for Cortex-A53 erratum 835769 workaround

2014-10-31 Thread Kyrill Tkachov
On 22/10/14 15:20, Kyrill Tkachov wrote: Hi all, This is the 4.8 backport of the LINK_SPEC changes to pass down the linker option --fix-cortex-a53-835769 Bootstrapped and tested on aarch64-none-linux-gnu. This depends on the patches under review at: https://gcc.gnu.org/ml/gcc-patches/2014-10/m

[Ada] Store the display name in the project node

2014-10-31 Thread Arnaud Charlet
The Display_Name of a project is now store in its project node instead of a hash table. No change of functionality. Tested on x86_64-pc-linux-gnu, committed on trunk 2014-10-31 Vincent Celier * prj-part.adb (Parse_Single_Project): Call Set_Display_Name_Of. * prj-proc.adb (Recu

[PATCH] Merge from match-and-simplify, remove fold_unary dispatch from fold_stmt

2014-10-31 Thread Richard Biener
This implements the last pattern from fold_unary that covers inputs that can come from a GIMPLE_UNARY_RHS assignment and thus allows removal of the fold_unary dispatch from fold_stmt and gimple_fold_stmt_to_constant_1. Remember that to not cause regressions it is enough to cover cases that do not

Re: [RFC, PATCH]: Introduction of callgraph annotation class

2014-10-31 Thread Martin Liška
On 10/16/2014 04:15 PM, Martin Jambor wrote: Hi, On Wed, Oct 15, 2014 at 06:26:34PM +0200, Martin Liska wrote: Hello. Following patch introduces a new class called callgraph_annotation. Idea behind the patch is to provide a generic interface one can use to register custom info related to a c

Minor tweaks in ipa-inline.c

2014-10-31 Thread Eric Botcazou
The usual typo and formatting issues, although there was a novelty since want_inline_function_to_all_callers_p used a consistent 3-space indentation. The function also called twice node->ultimate_alias_target () for no valid reasons so the patch cleans that up too. No functional changes. Tested

Re: [PATCH x86] Increase PARAM_MAX_COMPLETELY_PEELED_INSNS when branch is costly

2014-10-31 Thread Eric Botcazou
> Agreed, I think the value of 100 was set decade ago by Zdenek and me > completely artifically. I do not recall any serious tuning of this flag. Are you talking bout PARAM_MAX_COMPLETELY_PEELED_INSNS here? If so, see: https://gcc.gnu.org/ml/gcc-patches/2012-11/msg01193.html We have experience

[Ada] Switch -gnatp should have no effect in GNATprove mode

2014-10-31 Thread Arnaud Charlet
In GNATprove mode for formal verification, the presence or absence of switch -gnatp should have not effect. This was not the case, leading to missing proofs in GNATprove for overflow/range/division checks when -gnatp was used. Now fixed. Tested on x86_64-pc-linux-gnu, committed on trunk 2014-10-3

[Ada] Incorrect RM references on invalid uses of 'Access attribute.

2014-10-31 Thread Arnaud Charlet
The RM reference in the error message for a use of 'access whose prefix is not aliased mentioned the wrong paragraph in the RM. Compiling proc.adb must yield: proc.adb:6:03: object in prefixed call to "Q" must be aliased (RM 4.1.3 (13 1/2)) -- package P is type T is tagged null rec

[Ada] Handling of Default_Storage_Pool in generics and instantiations.

2014-10-31 Thread Arnaud Charlet
If there is a non-null default storage pool, a generic unit uses it for the allocators it may contain. At the point of instantiation, that default must be installed so that it applies to the allocators in the instance. This is achieved by adding an aspect specification Default_Storage_Pool to the

[Ada] New and updated library units for efficient and formal vectors

2014-10-31 Thread Arnaud Charlet
A new unit Ada.Containers.Formal_Indefinite_Vectors is introduced, which defines vectors possibly holding indefinite elements, such as classwide objects. The API of this new unit is based on the existing unit Ada.Containers.Formal_Vectors which has been simplified in favor of efficiency and provabi

[PATCH] Use CONVERT_EXPR_P and friends in the middle-end

2014-10-31 Thread Richard Biener
This fixes the few places where explicit checks for NOP_EXPR or CONVERT_EXPRs crept in. A noticable change may be the tree-eh.c one where we previously considered FP NOP_EXPRs trapping if flag_trapping_math ("Any fp arithmetic may trap") but now like FP CONVERT_EXPRs only when honor_nans (but for

  1   2   >