[Top][All Lists]

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

Re: [Tinycc-devel] New warning on ARM since few commits

From: Christian Jullien
Subject: Re: [Tinycc-devel] New warning on ARM since few commits
Date: Sat, 12 Apr 2014 08:21:37 +0200

No comments about this issue?

In fact, this warning is a real BUG if this function is called on ARM


From: address@hidden [mailto:address@hidden On Behalf Of Christian JULLIEN
Sent: lundi 7 avril 2014 16:30
To: tinycc-devel
Subject: [Tinycc-devel] New warning on ARM since few commits


Hi all,

My RPi protests with:

libtcc1.c:588:26: warning: 'dl1.l.upper' may be used uninitialized in this function [-Wuninitialized]

Since this morning, culprit is:

   if (dl1.l.lower == 0 && dl1.l.upper == 0)                                                                                                                 
        return (0);             

/* only for x86 */                                                                                                                                            
union ldouble_long {                                                                                                                                          
    long double ld;                                                                                                                                           
    struct {                                                                                                                                                  
        unsigned long long lower;                                                                                                                             
        unsigned short upper;                                                                                                                                 
    } l;                                                                                                                                                      

On RPi (ARM)
    printf("%d\n", sizeof(long double));
    printf("%d\n", sizeof(long long));


So, upper is not initialized

reply via email to

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