conftest.exe is built, it fails for 'version' though:
+ CONFTEST=./conftest.exe
+ test -z ''
+ gcc -o ./conftest.exe /c/Users/austin/Documents/tinycc/conftest.c
++ ./conftest.exe bigendian
+ bigendian=no
++ ./conftest.exe version
+ gcc_major=
++ ./conftest.exe minor
+ gcc_minor=8
+ test yes = no

a simple patch fixes it:
diff --git a/configure b/configure
index 8c44e5c..c05315f 100755
--- a/configure
+++ b/configure
@@ -299,8 +299,8 @@ if test -z "$cross_prefix" ; then
     echo "configure: error: '$cc' failed to compile conftest.c."
   else
     bigendian="$($CONFTEST bigendian)"
-    gcc_major="$($CONFTEST version)"
-    gcc_minor="$($CONFTEST minor)"
+    gcc_major="$($CONFTEST v)"
+    gcc_minor="$($CONFTEST m)"
     if test "$mingw32" = "no" ; then
       triplet="$($CONFTEST triplet)"
       if test -f "/usr/lib/$triplet/crti.o" ; then


it could be a gcc/mingw regression. This is gcc-4.8.1 (I haven't tried
other versions though).

After that, all tests pass with HEAD (32af4962).

Would you like me to push that to mob?


On Wed, Jan 22, 2014 at 8:40 AM, grischka <[email protected]> wrote:

> Austin English wrote:
>
>> tcctest.c:6:15: error: operator '>=' has no left operand
>>  #if GCC_MAJOR >= 3
>>
>
> Check how it comes that conftest(.exe) is not built or gcc_major
> is not set from configure, lines 295-304.
>
> --- grischka
>
>
>
> _______________________________________________
> Tinycc-devel mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>



-- 
-Austin
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to