https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85450

--- Comment #7 from Christophe Lyon <clyon at gcc dot gnu.org> ---
Created attachment 44023
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44023&action=edit
Newlib's sysopen.i

I could reproduce the problem with aarch64-none-elf too, and this requires
-mabi=ilp32.

Compiling the attached file with -c ./sysopen.i  -mabi=ilp32:

In file included from
/home/christophe.lyon/src/GCC/sources/newlib/newlib/libc/include/sys/fcntl.h:3,
                 from
/home/christophe.lyon/src/GCC/sources/newlib/newlib/libc/include/fcntl.h:1,
                 from
/home/christophe.lyon/src/GCC/sources/newlib/newlib/libc/syscalls/sysopen.c:4:
/home/christophe.lyon/src/GCC/sources/newlib/newlib/libc/include/sys/_default_fcntl.h:
In function 'open':
/home/christophe.lyon/src/GCC/sources/newlib/newlib/libc/include/sys/_default_fcntl.h:182:12:
error: invalid types in nop conversion
 extern int open _PARAMS ((const char *, int, ...));
            ^~~~
long long int
void *
_19 = (long long int) _18;
/home/christophe.lyon/src/GCC/sources/newlib/newlib/libc/include/sys/_default_fcntl.h:182:12:
error: invalid types in nop conversion
long long int
void *
_28 = (long long int) _18;
during GIMPLE pass: lower_vaarg
/home/christophe.lyon/src/GCC/sources/newlib/newlib/libc/include/sys/_default_fcntl.h:182:12:
internal compiler error: verify_gimple failed
0xc4cd2b verify_gimple_in_cfg(function*, bool)
        /home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk/gcc/tree-cfg.c:5585
0xb03a27 execute_function_todo
        /home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk/gcc/passes.c:1994
0xb04399 execute_todo
        /home/christophe.lyon/src/GCC/sources/gcc-fsf/trunk/gcc/passes.c:2048


My GCC is configured with:
--target=aarch64-none-elf --disable-nls --without-headers --with-newlib
--disable-shared --disable-threads --disable-libssp --disable-libgomp
--disable-libmudflap --disable-libatomic --disable-libcilkrts
--without-libquadmath --disable-libquadmath --enable-languages=c --with-newlib
--disable-tls

Reply via email to