Skip to content
Snippets Groups Projects
  • Clément Chigot's avatar
    14e0d832
    aix: handle 64bit inodes for include directories · 14e0d832
    Clément Chigot authored
    On AIX, stat will store inodes in 32bit even when using LARGE_FILES.
    If the inode is larger, it will return -1 in st_ino.
    Thus, in incpath.c when comparing include directories, if several
    of them have 64bit inodes, they will be considered as duplicated.
    
    gcc/ChangeLog:
    2022-01-12  Clément Chigot  <clement.chigot@atos.net>
    
    	* configure.ac: Check sizeof ino_t and dev_t.
    	(HOST_STAT_FOR_64BIT_INODES): New AC_DEFINE to provide stat
    	syscall being able to handle 64bit inodes.
    	* config.in: Regenerate.
    	* configure: Regenerate.
    	* incpath.c (HOST_STAT_FOR_64BIT_INODES): New define.
    	(remove_duplicates): Use it.
    
    libcpp/ChangeLog:
    2022-01-12  Clément Chigot  <clement.chigot@atos.net>
    
    	* configure.ac: Check sizeof ino_t and dev_t.
    	* config.in: Regenerate.
    	* configure: Regenerate.
    	* include/cpplib.h (INO_T_CPP): Change for AIX.
    	(DEV_T_CPP): New macro.
    	(struct cpp_dir): Use it.
    14e0d832
    History
    aix: handle 64bit inodes for include directories
    Clément Chigot authored
    On AIX, stat will store inodes in 32bit even when using LARGE_FILES.
    If the inode is larger, it will return -1 in st_ino.
    Thus, in incpath.c when comparing include directories, if several
    of them have 64bit inodes, they will be considered as duplicated.
    
    gcc/ChangeLog:
    2022-01-12  Clément Chigot  <clement.chigot@atos.net>
    
    	* configure.ac: Check sizeof ino_t and dev_t.
    	(HOST_STAT_FOR_64BIT_INODES): New AC_DEFINE to provide stat
    	syscall being able to handle 64bit inodes.
    	* config.in: Regenerate.
    	* configure: Regenerate.
    	* incpath.c (HOST_STAT_FOR_64BIT_INODES): New define.
    	(remove_duplicates): Use it.
    
    libcpp/ChangeLog:
    2022-01-12  Clément Chigot  <clement.chigot@atos.net>
    
    	* configure.ac: Check sizeof ino_t and dev_t.
    	* config.in: Regenerate.
    	* configure: Regenerate.
    	* include/cpplib.h (INO_T_CPP): Change for AIX.
    	(DEV_T_CPP): New macro.
    	(struct cpp_dir): Use it.