aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-08-08 11:07:09 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 15:07:50 -0300
commit99f15439e8b5f569153788565bfc03217767c311 (patch)
treebaf26f62784c874edb88a033ea98ebe69ab6428c /gcc/cp/constexpr.c
parenta5892aaff14d3b57a2571c8ca53b74170812255d (diff)
downloadgcc-99f15439e8b5f569153788565bfc03217767c311.zip
gcc-99f15439e8b5f569153788565bfc03217767c311.tar.gz
gcc-99f15439e8b5f569153788565bfc03217767c311.tar.bz2
openmp: Avoid floating point comparison at the end of bb with -fnon-call-exceptions
The following testcase ICEs with -fexceptions -fnon-call-exceptions because in that mode floating point comparisons should not be done at the end of bb in GIMPLE_COND. Fixed by forcing it into a bool SSA_NAME and comparing that against false. 2020-08-08 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/96424 * omp-expand.c: Include tree-eh.h. (expand_omp_for_init_vars): Handle -fexceptions -fnon-call-exceptions by forcing floating point comparison into a bool temporary. * c-c++-common/gomp/pr96424.c: New test.
Diffstat (limited to 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions