Files
poky/meta/recipes-devtools
Mingli Yu b9b57a52ed gcc-sanitizers: fix -Werror=maybe-uninitialized issue
When DEBUG_BUILD = "1" added in local.conf, there
comes below build error when "bitbake gcc-sanitizers":
| ./../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c: In function 'elf_is_symlink':
| ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized]
|   return S_ISLNK (st.st_mode);

After commit[16643b0322 bitbake.conf: Use -Og in DEBUG_OPTIMIZATION]
introduced, "-Og" added to compiler when debug
build enabled.

Per https://gcc.gnu.org/ml/gcc-patches/2019-04/msg00315.html,
the gcc upstream thinks the warning is a false
positive and suggests to use -O2 rather than -Og
or -O1 when compiling that file, so pass -Wno-error
to compiler when -Og is used to silence the error.

(From OE-Core rev: d8d657f082d4a86f93ce810e5d99eb5c93333d8a)

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-23 23:30:19 +01:00
..
2019-04-01 14:48:44 +01:00
2018-08-23 18:02:23 +01:00
2019-04-16 11:10:02 +01:00
2019-04-05 17:32:50 +01:00
2019-02-25 10:43:07 +00:00
2018-03-06 06:43:10 -08:00
2019-03-06 10:39:25 +00:00
2019-02-15 16:05:37 +00:00
2018-11-14 11:14:39 +00:00
2019-03-18 23:47:43 +00:00
2018-12-20 14:53:55 +00:00
2018-03-09 09:17:03 -08:00
2018-05-11 07:49:37 +01:00
2019-04-16 11:10:02 +01:00
2019-04-16 11:10:02 +01:00
2019-04-12 14:05:37 +01:00
2019-04-03 14:50:13 +01:00
2018-01-30 12:53:16 +00:00
2019-04-16 11:10:02 +01:00
2019-02-15 16:05:37 +00:00
2018-03-31 09:48:42 +01:00
2019-03-04 22:57:05 +00:00
2019-04-01 14:48:44 +01:00
2019-03-25 23:19:53 +00:00
2019-04-12 09:29:06 +01:00
2018-08-23 07:50:01 +01:00
2019-01-27 13:05:17 +00:00
2019-02-25 10:43:07 +00:00
2018-11-14 11:14:39 +00:00
2019-04-16 11:10:02 +01:00
2019-03-24 17:00:52 +00:00
2019-04-12 09:29:06 +01:00
2019-01-14 11:49:07 +00:00
2019-01-27 13:05:17 +00:00
2019-03-04 22:57:05 +00:00
2019-04-16 11:10:02 +01:00
2019-04-05 17:32:50 +01:00