[oi-dev] g++ 4.7 headers issue

Alexander Pyhalov alp at rsu.ru
Sun Jun 2 13:10:48 UTC 2013


Hello, all.
Today I've made tests of suggested patch using GCC supplied test suite 
(gcc/testsuite directory in gcc-4.7.3 source archive).
Brief results are the following:

With patched headers
# of expected passes 45403
# of unexpected failures 17
# of expected failures 286
# of unresolved testcases 10
# of unsupported tests 453

With original headers:
# of expected passes 44503
# of unexpected failures 586
# of expected failures 286
# of unresolved testcases 386
# of unsupported tests 453

The only visible error during tests with patched headers was related to 
double abs (double x) definition. It seems that compiler expects it to 
exist in stdlib.h, but it is in math_iso.h, line 159 (and even so it 
shouldn't be hidden by __SUNPRO_CC/__GNUG__ macros, like suggested 
https://www.illumos.org/attachments/908/3787_il.patch or 
https://www.illumos.org/attachments/910/3787_il_studio.patch (changes to 
line 109)).

The main errors which showed up during tests with original headers were 
related to stdlib.h and stdio.h - getc, putc, std::bsearch and 
std::qsort definitions .
More details are available here: 
https://docs.google.com/document/d/1dYlt4TERoL0vws-M2mtKhLIuw0AgXC2vucR5vfAHO5c/edit?pli=1

---
System Administrator of Southern Federal University Computer Center




More information about the oi-dev mailing list