Michael Troß writes: gen_wctype segfaults on my system when optimized with -O2. It does work  without optimization, even -O1 does not cause the segfault.  Problem is in  newopt, at gen_wctype.c:865: 	memcpy(tbl->ti + i * blocksize, ti[uniqblock[i]], blocksize);
Michael Troß writes:
gen_wctype segfaults on my system when optimized with -O2. It does work 
without optimization, even -O1 does not cause the segfault.  Problem is in 
newopt, at gen_wctype.c:865:
	memcpy(tbl->ti + i * blocksize, ti[uniqblock[i]], blocksize);

The segfault is caused by the uninitialized variable uniqblock when
newopt is called recursively.  The attached patch fixes this.

m-labs/uclibc-lm32,hjl-tools/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,m-labs/uclibc-lm32,groundwater/uClibc,hjl-tools/uClibc,ChickenRunjyd/klee-uclibc,czankel/xtensa-uclibc,ddcc/klee-uclibc-0.9.33.2,atgreen/uClibc-moxie,OpenInkpot-archive/iplinux-uclibc,waweber/uclibc-clang,foss-xtensa/uClibc,klee/klee-uclibc,ddcc/klee-uclibc-0.9.33.2,majek/uclibc-vx32,wbx-github/uclibc-ng,majek/uclibc-vx32,ddcc/klee-uclibc-0.9.33.2,skristiansson/uClibc-or1k,atgreen/uClibc-moxie,mephi42/uClibc,czankel/xtensa-uclibc,wbx-github/uclibc-ng,hwoarang/uClibc,OpenInkpot-archive/iplinux-uclibc,ffainelli/uClibc,foss-xtensa/uClibc,hjl-tools/uClibc,brgl/uclibc-ng,kraj/uClibc,kraj/uClibc,hwoarang/uClibc,m-labs/uclibc-lm32,waweber/uclibc-clang,kraj/uclibc-ng,majek/uclibc-vx32,mephi42/uClibc,ysat0/uClibc,ysat0/uClibc,czankel/xtensa-uclibc,groundwater/uClibc,ndmsystems/uClibc,OpenInkpot-archive/iplinux-uclibc,gittup/uClibc,ffainelli/uClibc,ndmsystems/uClibc,OpenInkpot-archive/iplinux-uclibc,brgl/uclibc-ng,atgreen/uClibc-moxie,hjl-tools/uClibc,foss-xtensa/uClibc,klee/klee-uclibc,klee/klee-uclibc,mephi42/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,foss-xtensa/uClibc,wbx-github/uclibc-ng,skristiansson/uClibc-or1k,waweber/uclibc-clang,waweber/uclibc-clang,ddcc/klee-uclibc-0.9.33.2,kraj/uclibc-ng,kraj/uclibc-ng,ndmsystems/uClibc,brgl/uclibc-ng,ChickenRunjyd/klee-uclibc,hjl-tools/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,ffainelli/uClibc,atgreen/uClibc-moxie,hwoarang/uClibc,m-labs/uclibc-lm32,kraj/uClibc,ysat0/uClibc,mephi42/uClibc,ChickenRunjyd/klee-uclibc,brgl/uclibc-ng,czankel/xtensa-uclibc,ChickenRunjyd/klee-uclibc,ffainelli/uClibc,gittup/uClibc,groundwater/uClibc,ndmsystems/uClibc,groundwater/uClibc,kraj/uClibc,ysat0/uClibc,ffainelli/uClibc,groundwater/uClibc,gittup/uClibc,wbx-github/uclibc-ng,klee/klee-uclibc,kraj/uclibc-ng,majek/uclibc-vx32,skristiansson/uClibc-or1k,hwoarang/uClibc,skristiansson/uClibc-or1k,gittup/uClibc