]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR rtl-optimization/6627 (-fno-align-functions regression from 2.95)
authorRoger Sayle <roger@eyesopen.com>
Wed, 2 Oct 2002 18:46:45 +0000 (18:46 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 2 Oct 2002 18:46:45 +0000 (18:46 +0000)
commitf963b5d977a838a7e219bbf7b94f22fd79058a51
treef72d300500fae0fe8ccdc82f9dfd48580a10d90f
parent327d975a3af27d13a179712ed162e72e19e86b33
re PR rtl-optimization/6627 (-fno-align-functions regression from 2.95)

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.

From-SVN: r57745
gcc/ChangeLog
gcc/config/i386/i386.h
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/flags.h
gcc/java/ChangeLog
gcc/java/lang.c
gcc/toplev.c
gcc/tree.h
gcc/varasm.c