summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-02 18:46:45 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-02 18:46:45 +0000
commitfc5cb4c0a212aa84276241f4483c5e3cc7e877cb (patch)
treef72d300500fae0fe8ccdc82f9dfd48580a10d90f /gcc/flags.h
parent4aac350f06e632386f116898bb5741d8869ed567 (diff)
downloadgcc-fc5cb4c0a212aa84276241f4483c5e3cc7e877cb.tar.gz
PR optimization/6627
* toplev.c (force_align_functions_log): New global variable. * flags.h (force_align_functions_log): Add extern prototype. * varasm.c (assemble_start_function): Use it to force minimum function alignment. * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct minimum function alignment to one byte. (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in the least significant bit of vtable member function pointers. * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to here from cp/cp-tree.h. * cp/cp-tree.h (enum ptrmemfunc_vbit_where_t): Delete definition from here, and move it to tree.h. * cp/decl.c (cxx_init_decl_processing): If storing the vbit in function pointers, ensure that force_align_functions_log is atleast one. * java/lang.c (java_init): If storing the vbit in function pointers, ensure that force_align_functions_log is atleast one to aid compatability with g++ vtables. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57745 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index 1578a2499cd..e0e7b09a168 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -616,6 +616,10 @@ extern int align_labels_max_skip;
extern int align_functions;
extern int align_functions_log;
+/* Like align_functions_log above, but used by front-ends to force the
+ minimum function alignment. Zero means no alignment is forced. */
+extern int force_align_functions_log;
+
/* Nonzero if we dump in VCG format, not plain text. */
extern int dump_for_graph;