summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-24 12:07:46 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-24 12:07:46 +0000
commit902b4e012d3fd2dc8d708a42a79a85a81f731160 (patch)
treeadef91f04544976faec6a008d13e5bd087582d2d /gcc/c-common.h
parenta7e1057980f3d72a0e0a150e122dc3a9d8746fb6 (diff)
downloadgcc-902b4e012d3fd2dc8d708a42a79a85a81f731160.tar.gz
* c-common.c (c_alignof, c_alignof_expr): Move here...
* c-typeck.c: ...from here. * c-tree.h, c-common.h: Adjust. * tree.c (cp_build_qualified_type_real): Use get_qualified_type. (build_cplus_array_type): Use cp_build_qualified_type, not TYPE_MAIN_VARIANT, to get an unqualified version. * decl2.c (grok_alignof): Lose. (build_expr_from_tree): Use expr_sizeof and c_alignof_expr. * typeck.c (c_alignof): Lose. * semantics.c (finish_sizeof, finish_alignof): New. * parse.y: Use them. * cp-tree.h: Declare them. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45145 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 2b245601979..e93f2123aae 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -410,6 +410,11 @@ extern int warn_sequence_point;
extern int warn_missing_format_attribute;
+/* Nonzero means warn about sizeof (function) or addition/subtraction
+ of function pointers. */
+
+extern int warn_pointer_arith;
+
/* Nonzero means do some things the same way PCC does. */
extern int flag_traditional;
@@ -522,6 +527,9 @@ extern void set_Wformat PARAMS ((int));
extern void decl_handle_format_attribute PARAMS ((tree, tree));
extern void decl_handle_format_arg_attribute PARAMS ((tree, tree));
extern void c_apply_type_quals_to_decl PARAMS ((int, tree));
+extern tree c_sizeof PARAMS ((tree));
+extern tree c_alignof PARAMS ((tree));
+extern tree c_alignof_expr PARAMS ((tree));
/* Print an error message for invalid operands to arith operation CODE.
NOP_EXPR is used as a special case (see truthvalue_conversion). */
extern void binary_op_error PARAMS ((enum tree_code));