diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2001-01-05 18:24:08 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2001-01-05 18:24:08 +0000 |
commit | 341e3d116940dd736e1bd9af1645bf4c03fd8147 (patch) | |
tree | cae858fa1cc9c29db5a7d0166db607c208716c6e /gcc/builtins.c | |
parent | 604bb87de90164862b561526770dd9c265114971 (diff) | |
download | gcc-341e3d116940dd736e1bd9af1645bf4c03fd8147.zip gcc-341e3d116940dd736e1bd9af1645bf4c03fd8147.tar.gz gcc-341e3d116940dd736e1bd9af1645bf4c03fd8147.tar.bz2 |
builtins.def (BUILT_IN_CONJ, [...]): Define.
* builtins.def (BUILT_IN_CONJ, BUILT_IN_CREAL, BUILT_IN_CIMAG):
Define.
* builtins.c (expand_builtin): Abort on BUILT_IN_CONJ,
BUILT_IN_CREAL and BUILT_IN_CIMAG.
* c-common.c (c_common_nodes_and_builtins): Create builtin conjf,
conj, conjl, crealf, creal, creall, cimagf, cimag and cimagl.
(expand_tree_builtin): Handle BUILT_IN_CONJ, BUILT_IN_CREAL and
BUILT_IN_CIMAG.
* extend.texi: Document these builtins.
testsuite:
* gcc.c-torture/execute/builtin-complex-1.c: New test.
From-SVN: r38716
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index a822d19..1ad33f2 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -3299,6 +3299,13 @@ expand_builtin (exp, target, subtarget, mode, ignore) /* build_function_call changes these into ABS_EXPR. */ abort (); + case BUILT_IN_CONJ: + case BUILT_IN_CREAL: + case BUILT_IN_CIMAG: + /* expand_tree_builtin changes these into CONJ_EXPR, REALPART_EXPR + and IMAGPART_EXPR. */ + abort (); + case BUILT_IN_SIN: case BUILT_IN_COS: /* Treat these like sqrt, but only if the user asks for them. */ |