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

--- Comment #13 from Deepthi H <deepadeepthi98 at gmail dot com> ---
Test logs ::

:~/$ big_100k_var=$(printf "%0*d" 100000 0)

Host gcc binary (Without fix)::

:~/$ gcc a.c -DA=$big_100k_var -DB=$big_100k_var
gcc: fatal error: cannot execute ‘/usr/lib/gcc/x86_64-linux-gnu/11/cc1’: execv:
Argument list too long
compilation terminated.


Gcc binary with fix included ::
:~$ ./gcc a.c -DA=$big_100k_var -DB=$big_100k_var
:~$ ls a.o*
a.out

Test Logs::

                === gcc Summary ===

# of expected passes            8
# of expected failures          2

PASS: gcc.dg/longcmd/pr111527-1.c (test for excess errors)
PASS: gcc.dg/longcmd/pr111527-1.c execution test  

PASS: gcc.dg/longcmd/pr111527-2.c (test for excess errors)
PASS: gcc.dg/longcmd/pr111527-2.c execution test
PASS: gcc.dg/longcmd/pr111527-2.c output-exists ./pr111527-2.exe

PASS: gcc.dg/longcmd/pr111527-3.c (test for excess errors)
PASS: gcc.dg/longcmd/pr111527-3.c execution test
PASS: gcc.dg/longcmd/pr111527-3.c output-exists ./pr111527-3.exe

XFAIL: *-*-*
xgcc: fatal error: cannot execute 'cc1': posix_spawn: Argument list too long^M
compilation terminated.^M
compiler exited with status 1
XFAIL: gcc.dg/longcmd/pr111527-4.c (test for excess errors)

Reply via email to