Opened 9 years ago
Closed 9 years ago
#4 closed defect (fixed)
Compiling warning/error with gcc 4.6.3
Reported by: | XiangLi | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | HM-14.0-KTA-2.0 |
Component: | JEM | Version: | HM-14.0-KTA-2.0 |
Keywords: | Cc: | wien@…, ksuehring, XiangLi, vceg-experts@… |
Description
It was reported by Mathias Wien that HM-14.0-KTA-2.0 caused compiling warning/error with gcc 4.6.3. The warning/errors are as follows
/data/wien/jctvc/software/kta2.0/build/linux/lib/TLibCommon/../../../../source/Lib/TLibCommon/TComRdCost.cpp:580:51: error: array subscript is above array bounds [-Werror=array-bounds]
/data/wien/jctvc/software/kta2.0/build/linux/lib/TLibCommon/../../../../source/Lib/TLibCommon/TComRdCost.cpp:580:103: error: array subscript is above array bounds [-Werror=array-bounds]
/data/wien/jctvc/software/kta2.0/build/linux/lib/TLibCommon/../../../../source/Lib/TLibCommon/TComRdCost.cpp:581:51: error: array subscript is above array bounds [-Werror=array-bounds]
/data/wien/jctvc/software/kta2.0/build/linux/lib/TLibCommon/../../../../source/Lib/TLibCommon/TComRdCost.cpp:581:51: error: array subscript is above array bounds [-Werror=array-bounds]
Change history (1)
comment:1 Changed 9 years ago by XiangLi
- Resolution set to fixed
- Status changed from new to closed
The compiling warnings looked due to a bug with gcc 4.6.x optimization option -tree-vrp (O2 level). A patch to disable such optimization for several functions were applied in /branches/HM-14.0-KTA-1.0-dev as r61.