[patch] harmonize {|c_|cplus_}tree_code

Andrew Pinski pinskia@gmail.com
Fri May 18 16:45:00 GMT 2007


On 5/17/07, Thomas Neumann <tneumann@users.sourceforge.net> wrote:
> :ADDPATCH C/C++:
>
> The attached patch harmonizes the definitions of tree_code, c_tree_code,
> and cp_tree code by ensuring that the underlying domain is the same.
> This is required by the C++ standard to meaningful cast between them
> (perhaps by the C standard, too).

It is not required by the C standard, as long as the underlying type
is large enough.  The underlying type is an implemenation defined so
it could be needed for some C implementations but GCC does have docs
on how we define this :).

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list