Questionable code in gcov-io.c

Nathan Sidwell nathan@acm.org
Fri Oct 14 10:53:00 GMT 2016


On 10/13/16 18:10, Andrew Pinski wrote:

> /home/jenkins/workspace/BuildToolchainAARCH64_thunder_elf_upstream/toolchain/scripts/../src/libgcc/libgcov-driver.c:53:0:
> /home/jenkins/workspace/BuildToolchainAARCH64_thunder_elf_upstream/toolchain/scripts/../src/libgcc/../gcc/gcov-io.c:
> In function ‘__gcov_open’:
> /home/jenkins/workspace/BuildToolchainAARCH64_thunder_elf_upstream/toolchain/scripts/../src/libgcc/../gcc/gcov-io.c:184:10:
> error: assignment of read-only variable ‘mode’
>      mode = 1;

Darn, even when I'm paranoid I still mess up :(

fixed.

nathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcov-fix.patch
Type: text/x-patch
Size: 414 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161014/c1de5140/attachment.bin>


More information about the Gcc-patches mailing list