Does "complex xxx" work?
Gabriel Dos Reis
gdr@integrable-solutions.net
Sat Jun 21 18:51:00 GMT 2003
"H. J. Lu" <hjl@lucon.org> writes:
| On Sat, Jun 21, 2003 at 07:29:38PM +0200, Gabriel Dos Reis wrote:
| > "H. J. Lu" <hjl@lucon.org> writes:
| >
| > | c_common_nodes_and_builtins calls
| > |
| > | (*lang_hooks.decls.pushdecl) (build_decl (TYPE_DECL,
| > | get_identifier ("complex int"),
| > | complex_integer_type_node));
| > | (*lang_hooks.decls.pushdecl) (build_decl (TYPE_DECL,
| > | get_identifier ("complex float"),
| > | complex_float_type_node));
| > | (*lang_hooks.decls.pushdecl) (build_decl (TYPE_DECL,
| > | get_identifier ("complex double"),
| > | complex_double_type_node));
| > | (*lang_hooks.decls.pushdecl)
| > | (build_decl (TYPE_DECL, get_identifier ("complex long double"),
| > | complex_long_double_type_node));
| > |
| > | What are they used for? I still can't use any of those in C++.
| >
| > "_Complex type" works in C++. Note that complex, in C99, behaves as if
| >
| > #define complex _Complex
| >
|
| I know "_Complex type" works. My question is "complex type".
OK.
| Those
| calls are not needed for "_Complex type". What are they doing there?
They should be removed, because in C99 complex is supposed to be a
macro.
-- Gaby
More information about the Gcc
mailing list