gcc/gcc/java
Geoffrey Keating 837edd5f11 re PR bootstrap/32617 (explow.c references DECL_ALIGN of a FUNCTION_DECL)
2007-07-09  Geoffrey Keating  <geoffk@apple.com>

	PR 32617
	* c-common.c (c_alignof_expr): Look at DECL_ALIGN of
	FUNCTION_DECLs.
	(handle_aligned_attribute): Allow use on FUNCTION_DECLs.
	* varasm.c (assemble_start_function): Honor DECL_ALIGN
	for FUNCTION_DECLs.  Don't use align_functions_log if
	DECL_USER_ALIGN.
	* print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
	even for FUNCTION_DECLs.
	* c-decl.c (merge_decls): Propagate DECL_ALIGN even for
	FUNCTION_DECLs.
	* tree.h (DECL_ALIGN): Update for new location of 'align'.
	(DECL_FUNCTION_CODE): Update for new location and name of
	'function_code'.
	(DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
	(struct tree_decl_common): Move 'align' and 'off_align' out
	of union, ensure they're still on a 32-bit boundary.  Remove
	other fields in union 'u1'.
	(struct tree_function_decl): Add field 'function_code' replacing
	'u1.f' in tree_decl_common.
	* tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
	* doc/extend.texi (Function Attributes): Add 'aligned' attribute.
	(Variable Attributes): Cross-reference 'aligned' attribute
	to Function Attributes.
	* flags.h (force_align_functions_log): Delete.
	* toplev.c (force_align_functions_log): Delete.

Index: gcc/testsuite/ChangeLog
2007-07-09  Geoffrey Keating  <geoffk@apple.com>

	PR 32617
	* gcc.c-torture/execute/align-3.c: New.

Index: gcc/java/ChangeLog
2007-07-09  Geoffrey Keating  <geoffk@apple.com>

	PR 32617
	* lang.c (java_init): Remove setting of force_align_functions_log.
	* class.c (add_method_1): Set DECL_ALIGN of non-static method
	to cope with ptrmemfunc_vbit_in_pfn.

Index: gcc/cp/ChangeLog
2007-07-09  Geoffrey Keating  <geoffk@apple.com>

	PR 32617
	* decl.c (cxx_init_decl_processing): Don't set
	force_align_functions_log.
	(grokfndecl): Honour ptrmemfunc_vbit_in_pfn.
	* typeck.c (cxx_alignof_expr): When alignof is used on a plain
	FUNCTION_DECL, return its alignment.

From-SVN: r126529
2007-07-10 23:08:52 +00:00
..
ChangeLog re PR bootstrap/32617 (explow.c references DECL_ALIGN of a FUNCTION_DECL) 2007-07-10 23:08:52 +00:00
ChangeLog.ptr [multiple changes] 2007-06-15 22:42:36 -07:00
ChangeLog.tree-ssa
Make-lang.in Make-lang.in (doc/gcj.info): Add $(gcc_docdir) to include path. 2007-07-03 20:52:33 +00:00
boehm.c
builtins.c
class.c re PR bootstrap/32617 (explow.c references DECL_ALIGN of a FUNCTION_DECL) 2007-07-10 23:08:52 +00:00
config-lang.in
constants.c
decl.c
except.c [multiple changes] 2007-06-15 22:42:36 -07:00
expr.c [multiple changes] 2007-06-15 22:42:36 -07:00
gcj.texi
java-except.h
java-gimplify.c
java-opcodes.h
java-tree.def
java-tree.h really remove signed(_or_unsigned)?_type langhooks 2007-06-11 15:40:55 +00:00
javaop.def
javaop.h
jcf-depend.c
jcf-dump.c Index: gcc/java/ChangeLog 2007-05-18 23:05:50 +00:00
jcf-io.c
jcf-parse.c
jcf-path.c
jcf-reader.c
jcf.h
jvgenmain.c
jvspec.c
lang-specs.h
lang.c re PR bootstrap/32617 (explow.c references DECL_ALIGN of a FUNCTION_DECL) 2007-07-10 23:08:52 +00:00
lang.opt
mangle.c
mangle_name.c
parse.h
resource.c
typeck.c really remove signed(_or_unsigned)?_type langhooks 2007-06-11 15:40:55 +00:00
verify-glue.c
verify-impl.c
verify.h
win32-host.c
zextract.c
zipfile.h