[PATCH] Fix PR bootstrap/81638
David Edelsohn
dje.gcc@gmail.com
Wed Aug 2 12:43:00 GMT 2017
To fix the false-positive uninitialized warning, this patch
initializes the "incl" variable.
* xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
Index: xcoff.c
===================================================================
--- xcoff.c (revision 250806)
+++ xcoff.c (working copy)
@@ -774,7 +774,7 @@ xcoff_process_linenos (struct backtrace_state *sta
const b_xcoff_lineno *lineno;
const unsigned char *lineptr;
const char *function;
- struct xcoff_incl *incl;
+ struct xcoff_incl *incl = NULL;
uintptr_t lnnoptr;
uintptr_t pc;
uint32_t lnno;
More information about the Gcc-patches
mailing list