[all-commits] [llvm/llvm-project] fc4f45: [flang] Fix ARM/POWER test failure (folding20.f90)

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jun 16 16:41:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc4f457fcc531871e86ecaaffc46ef98249b8e6a
      https://github.com/llvm/llvm-project/commit/fc4f457fcc531871e86ecaaffc46ef98249b8e6a
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-06-16 (Wed, 16 Jun 2021)

  Changed paths:
    M flang/lib/Evaluate/fold-character.cpp

  Log Message:
  -----------
  [flang] Fix ARM/POWER test failure (folding20.f90)

Recent code for folding MINVAL() didn't allow for architectures
whose C/C++ char type is unsigned, so the value of the maximum
Fortran character was incorrect.  This was caught by the
folding20.f90 test.  The fix is to avoid numeric_limits<> and
use hard values for max signed integers of various character kinds.

Pushing into llvm-project/main to restore ARM/POWER buildbots.




More information about the All-commits mailing list