NetBSD-Bugs archive

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

re: kern/57829: pci_subr.c: gcc -O failed 'str' may be used uninitialized in this function



The following reply was made to PR kern/57829; it has been noted by GNATS.

From: matthew green <mrg%eterna23.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
    netbsd-bugs%netbsd.org@localhost
Subject: re: kern/57829: pci_subr.c: gcc -O failed 'str' may be used uninitialized in this function
Date: Mon, 08 Jan 2024 17:37:08 +1100

 this is a compiler bug and doesn't occur with -O2.  the condition
 is impossible and can't happen but plain -O doesn't detect it.
 
 i don't think we should commit the patch, but if necessary, add
 some hack to detect GCC + -O, but i only saw this when forcing
 builds to use -O instead of -O2, so i'd rather avoid anything
 at all if it can be fixed not forcing -O.
 
 
 .mrg.
 


Home | Main Index | Thread Index | Old Index