No comments about this issue?

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

 

From: [email protected] 
[mailto:[email protected]] 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));

print
8
8

So, upper is not initialized

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

Reply via email to