[gcc-in-cxx] Avoid goto in gcov.c

Ian Lance Taylor iant@google.com
Tue Feb 3 15:59:00 GMT 2009


C++ does not permit a goto into a block which defines initialized
local variables.  This patch fixes a case where this happens in gcov.c
by duplicating an error message.  This could probably be fixed more
cleanly on mainline by using a helper function.

Ian


2009-02-03  Ian Lance Taylor  <iant@google.com>

	* gcov.c (read_count_file): Avoid goto.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 797 bytes
Desc: Avoid goto in gcov.c
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090203/dd5e25cd/attachment.bin>


More information about the Gcc-patches mailing list