bugTiny C Compiler - Bugs: bug #30966, stdio.h error with va_list

 
 

bug #30966: stdio.h error with va_list

Submitter:  None
Submitted:  Sun 05 Sep 2010 06:13:59 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 25 Sep 2010 10:23:33 PM UTC, comment #2: 

Yes, i know that's TCC no GNUC but likes or not working on Windows the open choice is Mingw.
Many open sources/cross-platforms libraries compile with the option GNUC (= Mingw), no TCC (=Mingw).
So, you will expect TCC be a nice partner of Mingw if you want work on Windows: sadly if Mingw's TCC fails, TCC fails (GNUC or not).

Anonymous
Tue 07 Sep 2010 10:23:16 AM UTC, comment #1: 

You cannot expect things to work if you define _GNUC_.  Specifically, TinyCC doesn't know anything about __builtin_va_list.

Anonymous
Sun 05 Sep 2010 06:13:59 AM UTC, original submission:  

Working on Win XP SP2, with parameter "-D__GNUC__=3.45" i get this:
c:/tcc/include/stdio.h:134: ';' expected
being the line 134
typedef __builtin_va_list va_list;


Complete paragrah is:
/*

  • I used to include stdarg.h at this point, in order to allow for the
  • functions later on in the file which use va_list. That conflicts with
  • using stdio.h and varargs.h in the same file, so I do the typedef myself.

 */
#ifndef _VA_LIST
#define _VA_LIST
#if defined _GNUC_ && _GNUC_ >= 3
typedef __builtin_va_list va_list;
#else
typedef char* va_list;
#endif
#endif

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-cf05.
Corresponding source code