This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/39323] MAX_OFILE_ALIGNMENT in elfos.h is too big
- From: "hjl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2009 22:33:46 -0000
- Subject: [Bug c/39323] MAX_OFILE_ALIGNMENT in elfos.h is too big
- References: <bug-39323-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from hjl at gcc dot gnu dot org 2009-03-27 22:33 -------
Subject: Bug 39323
Author: hjl
Date: Fri Mar 27 22:33:16 2009
New Revision: 145136
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145136
Log:
gcc/
2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
PR c/39323
* c-common.c (handle_aligned_attribute): Properly check alignment
overflow. Use (1U << i) instead of (1 << i).
* emit-rtl.c (get_mem_align_offset): Use "unsigned int" for
align.
* expr.h (get_mem_align_offset): Updated.
* tree.h (tree_decl_common): Change align to "unsigned int" and
move it before pointer_alias_set.
gcc/ada/
2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
PR c/39323
* gcc-interface/utils.c (create_field_decl): Use "unsigned int"
on bit_align.
gcc/testsuite/
2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
PR c/39323
* gcc.dg/pr39323-1.c: New.
* gcc.dg/pr39323-2.c: Likewise.
* gcc.dg/pr39323-3.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/pr39323-1.c
trunk/gcc/testsuite/gcc.dg/pr39323-2.c
trunk/gcc/testsuite/gcc.dg/pr39323-3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/gcc-interface/utils.c
trunk/gcc/c-common.c
trunk/gcc/emit-rtl.c
trunk/gcc/expr.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39323