Re: Fix HWI + -unsigned in combine.c

2017-10-22 Thread Segher Boessenkool
Hi! On Sun, Oct 22, 2017 at 09:13:11PM +0100, Richard Sandiford wrote: > rtx_equal_for_field_assignment_p had: > > x = adjust_address_nv (x, GET_MODE (y), > -subreg_lowpart_offset (GET_MODE (x), > GET_MODE (y)

Fix HWI + -unsigned in combine.c

2017-10-22 Thread Richard Sandiford
rtx_equal_for_field_assignment_p had: x = adjust_address_nv (x, GET_MODE (y), -subreg_lowpart_offset (GET_MODE (x), GET_MODE (y))); But subreg_lowpart_offset returns an unsigned int and adjust_address_nv

Re: [RFC PATCH, i386]: Make FP inequality comparisons trapping on qNaN.

2017-10-22 Thread Uros Bizjak
On Fri, Oct 20, 2017 at 9:48 PM, Uros Bizjak wrote: > On Fri, Oct 20, 2017 at 2:15 PM, Joseph Myers wrote: > >> This is PR target/52451. >> >> A testcase (conditional on the fenv_exceptions effective-target) that >> ordered comparisons with quiet NaNs set FE_INVALID would be a good idea, >> but i

[PATCH, i386]: Fix PR 82628, wrong code at -Os on x86_64-linux-gnu in the 32-bit mode

2017-10-22 Thread Uros Bizjak
Hello! In PR 82628 Jakub figured out that insn patterns that consume carry flag were not 100% correct. Due to this issue, combine is able to simplify various CC_REG propagations that result in invalid code. Attached patch fixes (well, mitigates) the above problem by splitting the double-mode comp

[patch, fortran] Fix PR 56342, matmul was not simplified

2017-10-22 Thread Thomas Koenig
Hello world, the attached patch fixes the PR by calling gfc_simplify_expr for parameter arrays, which do not yet appear to simplified completely by the time they reach gfc_simplify_matmul. I suspect this will also fix some more simplification issues, but I didn't search for other cases. Regress

RE: 0006-Part-6.-Add-x86-tests-for-Intel-CET-implementation

2017-10-22 Thread Tsimbalist, Igor V
I moved the tests to gcc.target/i386 directory and committed the changes. Igor > -Original Message- > From: Andreas Schwab [mailto:sch...@linux-m68k.org] > Sent: Sunday, October 22, 2017 1:41 PM > To: Tsimbalist, Igor V > Cc: Uros Bizjak ; gcc-patches@gcc.gnu.org > Subject: Re: 0006-Par

[PATCH] i386: Don't generate ENDBR if function is only called directly

2017-10-22 Thread H.J. Lu
There is no need to insert ENDBR instruction if function is only called directly. OK for trunk if there is no regressions? H.J. gcc/ PR target/82659 * config/i386/i386.c (pass_insert_endbranch::gate): Return false if function is only called directly. gcc/testsuite/

RE: 0006-Part-6.-Add-x86-tests-for-Intel-CET-implementation

2017-10-22 Thread Tsimbalist, Igor V
Those 2 tests were removed during reviewing as they tested __builtin versions. ChangeLog was not updated. Igor > -Original Message- > From: H.J. Lu [mailto:hjl.to...@gmail.com] > Sent: Sunday, October 22, 2017 1:59 PM > To: Tsimbalist, Igor V > Cc: Uros Bizjak ; gcc-patches@gcc.gnu.org

[wwwdocs] PATCH for Re: New mirror site

2017-10-22 Thread Gerald Pfeifer
On Sat, 2 Sep 2017, Daniel Volchixin wrote: > URL: http://mirror.linux-ia64.org/gnu/gcc/ > Country/City: Russia / Novosibirsk > Contact email / name: dan...@volchixin.co.uk (Daniel Volchixin) Thank you for hosting this mirror, Daniel and letting us know. I added this to our mirrors page with the

[wwwdocs] Remove leftover FAQ entry related to GCJ

2017-10-22 Thread Gerald Pfeifer
This came up during a conversation at the Tools Cauldron in Praha, with David (Malcolm) I believe, I apparently did not commit the local change then. Applied now. Gerald Index: faq.html === RCS file: /cvs/gcc/wwwdocs/htdocs/faq.html

Re: 0006-Part-6.-Add-x86-tests-for-Intel-CET-implementation

2017-10-22 Thread H.J. Lu
On Fri, Oct 13, 2017 at 3:56 AM, Tsimbalist, Igor V wrote: >> -Original Message- >> From: Uros Bizjak [mailto:ubiz...@gmail.com] >> Sent: Friday, October 13, 2017 10:02 AM >> To: Tsimbalist, Igor V >> Cc: gcc-patches@gcc.gnu.org >> Subject: Re: 0006-Part-6.-Add-x86-tests-for-Intel-CET-imp

Re: 0006-Part-6.-Add-x86-tests-for-Intel-CET-implementation

2017-10-22 Thread Andreas Schwab
FAIL: c-c++-common/attr-nocf-check-1a.c -Wc++-compat (test for warnings, lin\ e 17) FAIL: c-c++-common/attr-nocf-check-1a.c -Wc++-compat (test for excess errors) Excess errors: xgcc: error: unrecognized command line option '-mcet' FAIL: c-c++-common/attr-nocf-check-3a.c -Wc++-compat (test f

Re: [committed] Add gnu::unique_ptr

2017-10-22 Thread Gerald Pfeifer
On Thu, 19 Oct 2017, David Malcolm wrote: >> In file included from >> /scratch/tmp/gerald/gcc-HEAD/gcc/unique-ptr-tests.cc:23: >> In file included from >> /scratch/tmp/gerald/gcc-HEAD/gcc/../include/unique-ptr.h:77: >> In file included from /usr/include/c++/v1/memory:629: >> /usr/include/c++/v1/t