aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-common.h
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-11-18 16:24:56 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-11-18 16:24:56 +0000
commitfb52b50a920a7571af3de43d679fa42483c56a96 (patch)
tree45ef94c714a23d36859dc3c9c965f946052c1cbc /gcc/c-family/c-common.h
parentcfaa55890b6f9fb5fde5c84fc51326427dc48259 (diff)
downloadgcc-fb52b50a920a7571af3de43d679fa42483c56a96.zip
gcc-fb52b50a920a7571af3de43d679fa42483c56a96.tar.gz
gcc-fb52b50a920a7571af3de43d679fa42483c56a96.tar.bz2
re PR c/33193 (slopiness in __real/__imag)
gcc/ PR c/33193 * c-typeck.c (build_unary_op): Call build_real_imag_expr for REALPART_EXPR and IMAGPART_EXPR. gcc/c-family/ PR c/33193 * c-common.h (build_real_imag_expr): Declare. * c-semantics.c (build_real_imag_expr): Define. gcc/cp/ PR c/33193 * typeck.c (cp_build_unary_op): Call build_real_imag_expr for REALPART_EXPR and IMAGPART_EXPR. gcc/testsuite/ PR c/33193 * c-c++-common/pr33193.c: New test. From-SVN: r166909
Diffstat (limited to 'gcc/c-family/c-common.h')
-rw-r--r--gcc/c-family/c-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h
index 76842d2..3de32cf 100644
--- a/gcc/c-family/c-common.h
+++ b/gcc/c-family/c-common.h
@@ -822,6 +822,7 @@ extern void warn_for_omitted_condop (location_t, tree);
extern tree do_case (location_t, tree, tree);
extern tree build_stmt (location_t, enum tree_code, ...);
extern tree build_case_label (location_t, tree, tree, tree);
+extern tree build_real_imag_expr (location_t, enum tree_code, tree);
/* These functions must be defined by each front-end which implements
a variant of the C language. They are used in c-common.c. */