c-cppbuiltin.c (builtin_define_type_sizeof): New function.
authorAndreas Krebbel <krebbel1@de.ibm.com>
Wed, 24 Jan 2007 12:03:38 +0000 (12:03 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Wed, 24 Jan 2007 12:03:38 +0000 (12:03 +0000)
commit024a85aeb6a912811d917f737eaad39140c2fb0c
tree06f74328e5fa1bec8c013b5ce2683658b5237193
parent9db27449884f6c83ff2862450620ca979b541427
c-cppbuiltin.c (builtin_define_type_sizeof): New function.

2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>

* c-cppbuiltin.c (builtin_define_type_sizeof): New function.
(c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
__SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
__SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
__SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
__SIZEOF_PTRDIFF_T__.
* doc/cpp.texi: Documentation for the new builtin macros added.

2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>

* gcc.c-torture/compile/sizeof-macros-1.c: New testcase.

From-SVN: r121107
gcc/ChangeLog
gcc/c-cppbuiltin.c
gcc/doc/cpp.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/sizeof-macros-1.c [new file with mode: 0644]