Extended std.cfg about alloca function and avr.cfg about a few definitions.

This commit is contained in:
orbitcowboy 2014-06-17 17:00:27 +02:00
parent 11cf4d3215
commit 2255ece5c5
2 changed files with 25 additions and 3 deletions

View File

@ -4,8 +4,6 @@
<!-- Integer types capable of holding object pointers --> <!-- Integer types capable of holding object pointers -->
<podtype name="intptr_t" sign="s" size="2"/> <podtype name="intptr_t" sign="s" size="2"/>
<podtype name="uintptr_t" sign="u" size="2"/> <podtype name="uintptr_t" sign="u" size="2"/>
<podtype name="int_farptr_t" sign="s" size="4"/>
<podtype name="uint_farptr_t" sign="u" size="4"/>
<!-- Minimum-width integer types --> <!-- Minimum-width integer types -->
<podtype name="int_least8_t" sign="s" size="1"/> <podtype name="int_least8_t" sign="s" size="1"/>
<podtype name="uint_least8_t" sign="u" size="1"/> <podtype name="uint_least8_t" sign="u" size="1"/>
@ -17,5 +15,28 @@
<podtype name="uint_least64_t" sign="u" size="8"/> <podtype name="uint_least64_t" sign="u" size="8"/>
<!-- Greatest-width integer types --> <!-- Greatest-width integer types -->
<podtype name="intmax_t" sign="s" size="8"/> <podtype name="intmax_t" sign="s" size="8"/>
<podtype name="uintmax_t" sign="u" size="8"/> <podtype name="uintmax_t" sign="u" size="8"/>
<!-- ctype.h -->
<function name="toascii"> <noreturn>false</noreturn> <leak-ignore/> <arg nr="1"><valid>0:255</valid></arg> </function>
<!-- errno.h -->
<define name="EDOM" value="33"/>
<define name="ERANGE" value="34"/>
<!-- inttypes.h -->
<podtype name="int_farptr_t" sign="s" size="4"/>
<podtype name="uint_farptr_t" sign="u" size="4"/>
<!-- FIXME: add macros for printf and scanf format specifiers,e.g. PRId8 -->
<!-- math.h -->
<define name="M_E" value="2.7182818284590452354"/>
<define name="M_LOG2E" value="1.4426950408889634074"/>
<define name="M_LOG10E" value="0.43429448190325182765"/>
<define name="M_LN2" value="0.69314718055994530942"/>
<define name="M_LN10" value="2.30258509299404568402"/>
<define name="M_PI" value="3.14159265358979323846"/>
<define name="M_PI_2" value="1.57079632679489661923"/>
<define name="M_PI_4" value="0.78539816339744830962"/>
<define name="M_1_PI" value="0.31830988618379067154"/>
<define name="M_2_PI" value="0.63661977236758134308 "/>
<define name="M_2_SQRTPI" value="1.12837916709551257390"/>
<define name="M_SQRT2" value="1.41421356237309504880"/>
<define name="M_SQRT1_2" value="0.70710678118654752440"/>
</def> </def>

View File

@ -150,6 +150,7 @@
<arg nr="2"><not-null/><not-uninit/></arg> <arg nr="2"><not-null/><not-uninit/></arg>
</function> </function>
<function name="malloc"><noreturn>false</noreturn><arg nr="1"><not-uninit/></arg></function> <function name="malloc"><noreturn>false</noreturn><arg nr="1"><not-uninit/></arg></function>
<function name="alloca"><noreturn>false</noreturn><arg nr="1"><not-uninit/></arg></function>
<function name="memchr"> <function name="memchr">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>