Ticket #319: output_name.diff

File output_name.diff, 543 bytes (added by KO Myung-Hun, 10 years ago)

patch for an output file name problem

  • src/gcc/gcc/gcc.c

    diff --git a/src/gcc/gcc/gcc.c b/src/gcc/gcc/gcc.c
    index 9306ca1..1ab14b9 100755
    a b main (argc, argv)  
    63806380     with %b in LINK_SPEC on a target that prefers not to emit a.out
    63816381     by default.  */
    63826382  if (n_infiles > 0)
    6383     set_input (infiles[0].name);
     6383    {
     6384      int i;
     6385
     6386      for (i = 0; i < n_infiles ; i++)
     6387        if (!infiles[i].language || infiles[i].language[0] != '*')
     6388          {
     6389            set_input (infiles[i].name);
     6390            break;
     6391          }
     6392    }
    63846393
    63856394  if (error_count == 0)
    63866395    {