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

--- Comment #32 from Greg Chandler <chandleg at wizardsworks dot org> ---

Starting to get some progress....
I added a print statement in gcc.cc to see what is being executed:

-> 3298 /*####HERE####*/
-> 3299   for (n_commands = 1, i = 0; argbuf.iterate (i, &arg); i++)
-> 3300     fprintf (stdout, "%s\n", argbuf[0]);
   3301
   3302   for (n_commands = 1, i = 0; argbuf.iterate (i, &arg); i++)
   3303     if (arg && strcmp (arg, "|") == 0)
   3304       {                         /* each command.  */
   3305 #if defined (__MSDOS__) || defined (OS2) || defined (VMS)
   3306         fatal_error (input_location, "%<-pipe%> not supported");
   3307 #endif
   3308         argbuf[i] = 0; /* Termination of command args.  */
   3309         commands[n_commands].prog = argbuf[i + 1];
   3310         commands[n_commands].argv
   3311           = &(argbuf.address ())[i + 1];
   3312         string = find_a_program(commands[n_commands].prog);
   3313         if (string)
   3314           commands[n_commands].argv[0] = string;
   3315         n_commands++;
   3316       }


So this should be printing out everything including the stuff containing pipes.
What I see is:


root@bigbang:/tmp# gcc 1.c
/usr/libexec/gcc/alpha-linux-gnu/14.3.0/cc1
/usr/libexec/gcc/alpha-linux-gnu/14.3.0/cc1
{hang}

root@bigbang:/tmp# gcc 1.s
/usr/lib/gcc/alpha-linux-gnu/14.3.0/../../../../alpha-linux-gnu/bin/as
/usr/lib/gcc/alpha-linux-gnu/14.3.0/../../../../alpha-linux-gnu/bin/as
/usr/lib/gcc/alpha-linux-gnu/14.3.0/../../../../alpha-linux-gnu/bin/as
gcc: internal compiler error: Segmentation fault signal terminated program as
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.


Still not seeing the args, but am getting to see what is being done now.

Reply via email to