[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 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

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

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: [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] 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 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 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] 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

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/

[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

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

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, 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: [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 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: [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 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

[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] 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

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: 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: 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: [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: 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

[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: [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

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 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 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 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 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 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 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 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 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] 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 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

[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] 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

[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: 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...

[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

<    1   2