http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59346
Bug ID: 59346 Summary: [4.9 Regression] s-osinte.adb:107:35: expected type "Interfaces.C.long" Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Host: hppa2.0w-hp-hpux11.11 Target: hppa2.0w-hp-hpux11.11 Build: hppa2.0w-hp-hpux11.11 /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/ -B/opt/gnu/gcc/gcc -4.9/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-4.9/hppa2.0w-hp-hpux11.11/lib / -isystem /opt/gnu/gcc/gcc-4.9/hppa2.0w-hp-hpux11.11/include -isystem /opt/gnu/ gcc/gcc-4.9/hppa2.0w-hp-hpux11.11/sys-include -c -g -O2 -fPIC -W -Wall -gna tpg -nostdinc s-osinte.adb -o s-osinte.o s-osinte.adb:107:35: expected type "Interfaces.C.long" s-osinte.adb:107:35: found type "System.Os_Interface.time_t" make[7]: *** [s-osinte.o] Error 1 # ls -l *osint* lrwxr-xr-x 1 bin bin 44 Nov 21 05:43 s-osinte.adb -> /test/gnu/gcc/gcc/gcc/ada/s-osinte-posix.adb lrwxr-xr-x 1 bin bin 43 Nov 21 05:43 s-osinte.ads -> /test/gnu/gcc/gcc/gcc/ada/s-osinte-hpux.ads return timespec'(tv_sec => S, tv_nsec => time_t (Long_Long_Integer (F * 10#1#E9))); Probably introduced by the following change: 2013-11-15 H.J. Lu <hongjiu...@intel.com> PR ada/54040 * s-linux-x32.ads: New file. * s-osprim-x32.adb: Likewise. * s-linux.ads (time_t): New type. * s-linux-alpha.ads (time_t): Likewise. * s-linux-hppa.ads (time_t): Likewise. * s-linux-mipsel.ads (time_t): Likewise. * s-linux-sparc.ads (time_t): Likewise. * s-osinte-linux.ads (time_t): Mark it private. Replace long with System.Linux.time_t. (timespec): Replace long with time_t. * s-osinte-posix.adb (To_Timespec): Likewise. * s-taprop-linux.adb (timeval): Replace C.long with System.OS_Interface.time_t. * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Replace s-linux.ads with s-linux-x32.ads, s-osprim-posix.adb with s-osprim-x32.adb for x32.