bugTiny C Compiler - Bugs: bug #42887, Please add memory model macros

 
 

bug #42887: Please add memory model macros

Submitter:  Reuben Thomas <rrt>
Submitted:  Thu 31 Jul 2014 12:37:21 PM 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
   

Thu 31 Jul 2014 02:50:28 PM UTC, comment #1: 

I'd just like to say that with this patch, and a patch that I've just submitted to libtool, and a few tiny changes to Fontforge (errors that tcc found for me, thanks!) which I'll shortly push, I can build and run FontForge, which is a huge (500kLoC) oldish (~15 years) C program. I was hoping for a faster build with tcc (and got it!), so massive kudos to tcc for having everything working.

Reuben Thomas <rrt>
Thu 31 Jul 2014 12:37:21 PM UTC, original submission:  

Trying to use tcc to compile a project that uses libpython, I foudn it barfed on my x86_64 system because without a memory model macro pyconfig.h can't tell which system header to use: it wants to know whether my Linux system is LP64 or ILP32.

Hence, defining at least _LP64_ and _ILP32_ as appropriate would fix this problem. Of course, you would ideally define other macros such as _LLP64_ (indeed, that may well be the only other one tcc supports).

Reuben Thomas <rrt>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #31807:  0001-libtcc.c-add-memory-model-macros-__-L-LP64__.patch added by rrt (851B - text/x-diff - Attached, a two-line patch which seems to work)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rrt (Submitted the item)
  •  

    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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-07-31 rrt Attached File- Added 0001-libtcc.c-add-memory-model-macros-__-L-LP64__.patch, #31807

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code