tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] New error found on RPi3 buster with gcc 8.3 on test 9


From: grischka
Subject: Re: [Tinycc-devel] New error found on RPi3 buster with gcc 8.3 on test 93
Date: Wed, 26 Jun 2019 00:59:14 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Christian Jullien wrote:


Test: 93_integer_promotion...

--- 93_integer_promotion.expect 2019-06-25 23:11:21.865155888 +0200

+++ 93_integer_promotion.output 2019-06-25 23:12:31.445089726 +0200

(Is that "Microsoft Outlook 14.0" with the extra new-lines?)


@@ -6,7 +6,7 @@



    signed : (1 ? s.ub : 1)

  unsigned : (1 ? s.u : 1)

-   signed : (1 ? s.ullb : 1)

+ unsigned : (1 ? s.ullb : 1)

  unsigned : (1 ? s.ull : 1)

    signed : (1 ? s.c : 1)



make[3]: *** [Makefile:74: 93_integer_promotion.test] Error 1

This change might help:
--- a/tccgen.c
+++ b/tccgen.c
@@ -5914,6 +5914,7 @@ static void expr_cond(void)
                 tt = gjmp(0);
             }
             gsym(u);
+            nocode_wanted = ncw_prev;

             /* this is horrible, but we must also convert first
                operand */
@@ -5937,7 +5938,6 @@ static void expr_cond(void)
             if (islv)
                 indir();
         }
-        nocode_wanted = ncw_prev;
     }
 }






It also produces new warnings:



------------ test3 ------------

../tcc -B.. -I../include -I.. -I..
-DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" -DTCC_CPU_VERSION=7
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -run
../tcc.c -B.. -I../include -I.. -I..
-DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" -DTCC_CPU_VERSION=7
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -run
../tcc.c -B.. -I../include -I.. -I..
-DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" -DTCC_CPU_VERSION=7
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -run
../tcc.c -B.. -I../include -I.. -I.. -run tcctest.c > test.out3

In file included from ../tcc.c:23:

In file included from ../libtcc.c:50:

../arm-gen.c:410: warning: function might return no value: 'intr'

In file included from ../tcc.c:23:

In file included from ../libtcc.c:50:

../arm-gen.c:410: warning: function might return no value: 'intr'

In file included from ../tcc.c:23:

In file included from ../libtcc.c:50:

../arm-gen.c:410: warning: function might return no value: 'intr'

Auto Test3 OK

That is maybe because your headers #define __attribute__ <to empty>
Try
#undef __attribute__
somewhere.

--- grischka




reply via email to

[Prev in Thread] Current Thread [Next in Thread]