[Patch, Fortran] PR 81770: [5/6/7 Regression] Bogus warning: Pointer in pointer assignment might outlive the pointer target

2017-08-27 Thread Janus Weil
Hi all, the attached patch fixes a bogus warning. The purpose of the warning is to detect cases where a pointer lives longer than its target. If the target itself is (1) a pointer or (2) a component of a DT pointer, we do not know about the lifetime of the target at compile time and no warning sho

[RFC, vectorizer] Allow single element vector types for vector reduction operations

2017-08-27 Thread Jon Beniston
Hi, I have an out-of-tree GCC port and it is struggling supporting auto-vectorization on some dot product instructions. For example, I have an instruction that takes three operands which are all 32-bit general registers. The second and third operands will be treated as V2HI then do dot product, a

[PATCH, i386]: Fix PR 81995, error: unrecognizable insn

2017-08-27 Thread Uros Bizjak
Matched operands should also have matched predicate... 2017-08-27 Uros Bizjak PR target/81995 * config/i386/i386.md (*): Change operand 2 predicate to register_operand. Reorder operands. (*btr): Ditto. (*_mask): Change operand 3 predicate to register_operand. (*btr_mas

Re: [patch, fortran] Warn about suspicious assignment to contiguous pointers

2017-08-27 Thread Janus Weil
Hi Thomas, > the attached patch warns about the dubious pointer assignments (see > test case for details). thanks for the patch! Sounds like a useful diagnostic. > I think an unconditional warning is OK > in this case because > > - Assigning to a pointer from an obvious non-contiguous target >

[patch, fortran] Warn about suspicious assignment to contiguous pointers

2017-08-27 Thread Thomas Koenig
Hello world, the attached patch warns about the dubious pointer assignments (see test case for details). I think an unconditional warning is OK in this case because - Assigning to a pointer from an obvious non-contiguous target is not useful at all, that I can see - Some language laywer will

[PATCH][PING^2] Fix PR81503 (SLSR invalid fold)

2017-08-27 Thread Bill Schmidt
Ping. Thanks! Bill > On Aug 14, 2017, at 9:32 AM, Bill Schmidt wrote: > > Hi, > > I'd like to ping this patch, please. > > Thanks! > Bill > >> On Aug 3, 2017, at 2:34 PM, Bill Schmidt wrote: >> >> Hi, >> >> Here's v2 of the patch with Jakub's suggestions incorporated. Bootstrapped >> and

Re: [patch, libgfortran] PR78387 OpenMP segfault/stack size exceeded writing to internal file

2017-08-27 Thread Thomas Koenig
Hi Jerry, ping - I will commit if I hear no objections. OK for trunk and gcc-7. I thought Paul had already OK'd it, which is why I didn't react. Thanks a lot for the patch! Regards Thomas