[all-commits] [llvm/llvm-project] 9dcd23: [clang][driver][NFC] Call IsARMBigEndain function ...
    simpal01 via All-commits 
    all-commits at lists.llvm.org
       
    Tue Jul 25 01:21:14 PDT 2023
    
    
  
  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9dcd232f4afabdad46e5bc2d71834765acd7738c
      https://github.com/llvm/llvm-project/commit/9dcd232f4afabdad46e5bc2d71834765acd7738c
  Author: Simi Pallipurath <simi.pallipurath at arm.com>
  Date:   2023-07-25 (Tue, 25 Jul 2023)
  Changed paths:
    M clang/lib/Driver/ToolChains/BareMetal.cpp
    M clang/lib/Driver/ToolChains/Gnu.cpp
  Log Message:
  -----------
  [clang][driver][NFC] Call IsARMBigEndain function only for isARM and isThumb.
IsARMBIgEndian function returns true only if:
  1. The triples are either arm or thumb and the
     commandline has the  option -mbig-endian
  2. The triples are either armeb or thumbeb.
Missing the checking of arm or thumb triples in the
first case pass through the --be8 endian flag to
linker For AArch64 as well which is not expected.
This is the regression happened from the previous
patch https://reviews.llvm.org/D154786.
It is better to refactor to only call IsARMBigEndian
for isARM and isthumb satisfying conditions which
keeps ARM and AArch64 separate.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D155808
    
    
More information about the All-commits
mailing list