[PATCH] Add constant folding support for next{after,toward}{,f,l} (PR libstdc++/85466)

2018-04-21 Thread Jakub Jelinek
Hi! This patch adds constant folding for next{after,toward}{,f,l}. It doesn't handle decimal (we don't have a builtins that would need it), nor composite modes (IBM double double; nextafter/nexttoward for variable precision types isn't really well defined; we handle nexttoward where long double is

RE: [PATCH][i386] PR target/85473, Fix _movdir64b expansion with -mx32

2018-04-21 Thread Peryt, Sebastian
Hi, I just realized this patch introduces some new regressions. Sorry, I must have mixed up something in testing. Will update this patch shortly. Sebastian > -Original Message- > From: Peryt, Sebastian > Sent: Friday, April 20, 2018 6:38 PM > To: gcc-patches@gcc.gnu.org > Cc: Uros Bizj

[PATCH] x86: Update __CET__ check

2018-04-21 Thread H.J. Lu
__CET__ has been changed by revision 259522: commit d59cfa9a4064339cf2bd2da828c4c133f13e57f0 Author: hjl Date: Fri Apr 20 13:30:13 2018 + Define __CET__ for -fcf-protection and remove -mibt to (__CET__ & 1) != 0: -fcf-protection=branch or -fcf-protection=full (__CET__ & 2) !=

[og7, nvptx, openacc, PR85381, committed] Don't emit barriers for empty loops

2018-04-21 Thread Tom de Vries
Hi, when compiling this testcase with the og7 branch: ... int main (void) { long long v1; #pragma acc parallel num_gangs (640) num_workers(1) vector_length (128) #pragma acc loop for (v1 = 0; v1 < 20; v1 += 2) ; return 0; } ... this ptx is generated: ... { // fork 4; bar.sync 0