Work around GCC bug 63748
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 10 Nov 2014 14:11:44 +0000 (15:11 +0100)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 10 Nov 2014 14:11:44 +0000 (15:11 +0100)
commitb1f28d992c916eab861df3fa62d436755f874b62
treee11a5f334c35e78dc3e6fdce7800dde11194e49e
parentaceb5ff54262c4b03a11b95656e9080cfd23a9ef
Work around GCC bug 63748

A recent change to eval.c triggered a GCC bug that causes a false positive
"may be used uninitialized" warning in evaluate_subexp_standard.  This seems
to be triggered by a specific CFG constructed via setjmp and gotos.

While the GCC bug is in the process of being fixed, there are released
compiler versions (in particular GCC 4.9) in the field that show this
problem.  In order to allow compiling GDB with one of those compilers,
this commit slightly reworks the CFG (in an equivalent way) of the
affected function, so that the GCC bug is no longer triggered.

gdb/ChangeLog:

* eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
gdb/ChangeLog
gdb/eval.c
This page took 0.039658 seconds and 4 git commands to generate.