bugTiny C Compiler - Bugs: bug #14957, `-b' simply doesn't work when...

 
 

bug #14957: `-b' simply doesn't work when supplied with `-run' in `#!'-lines

Submitted by:  None
Submitted on:  Fri 11 Nov 2005 05:57:12 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 11 Nov 2005 05:57:12 PM UTC, original submission:

A script like the following one

#!/usr/local/bin/tcc -run -b
#include <stdio.h>

int main (int args, char *argv)
{
...
}

simply doesn't work - `tcc' writes only it's usage message and stoppes the execution. I found the reason for this in line 10350 of `tcc.c' (version 0.9.23 of `tcc'). When recursively called and no library or file or search path was supplied, the recursive call leads to an output of the usage message, because `nb_files' is still 0 when the end of `-run ...' argument list is reached. (I think that even in script programs, the`-b'-option is useful).

I'm supplying a little patch for this problem ...

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #2712:  tcc_-run_args.patch added by None (1KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by grischka (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 18 Oct 2012 04:58:26 PM UTCgrischkaStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 11 Nov 2005 05:57:12 PM UTCNoneAttached File-=>Added tcc_-run_args.patch, #3096

    Back to the top


    Powered by Savane 3.1-cleanup1