[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] tcc: fix -m32 and add -m64 option
From: |
Henry Kroll |
Subject: |
[Tinycc-devel] tcc: fix -m32 and add -m64 option |
Date: |
Wed, 08 Dec 2010 01:10:49 -0800 |
Fixed -m32 so it *always* works, no matter who calls it. (Unless no
suitable 32 bit code generator can be found, in which case it always
gives an error, so the programmer will know it did not work and why.)
Added -m64 option in the same function.
Handles all combinations of 64/32 -m## -> 64/32 including future ones.
http://repo.or.cz/w/tinycc.git/commitdiff/b3be007afa46a9bb099b261c14c1dc42cc5fff99
Options -m33 and -m65 are reserved for testing to force an error.
Using them caused me to find a bug in my error handler format string. I
was using %s instead of %i and I never caught it because these errors
should never be generated. But anyway, for completeness, the following
patches...
http://repo.or.cz/w/tinycc.git/commitdiff/ffb9fcc5a24e388776b383b1c0f1233dd1c1e677
http://repo.or.cz/w/tinycc.git/commitdiff/c6f5d819af91284959d02bc109dbdb0d9cbb0c15
- [Tinycc-devel] tcc: fix -m32 and add -m64 option,
Henry Kroll <=