This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR47239


Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2011-01-11  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47239
	* tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.

Index: gcc/tree-ssa-ccp.c
===================================================================
*** gcc/tree-ssa-ccp.c	(revision 168651)
--- gcc/tree-ssa-ccp.c	(working copy)
*************** get_value_from_alignment (tree expr)
*** 522,527 ****
--- 522,531 ----
      val = bit_value_binop (PLUS_EXPR, TREE_TYPE (expr),
  			   TREE_OPERAND (base, 0), TREE_OPERAND (base, 1));
    else if (base
+ 	   /* ???  While function decls have DECL_ALIGN their addresses
+ 	      may encode extra information in the lower bits on some
+ 	      targets (PR47239).  Simply punt for function decls for now.  */
+ 	   && TREE_CODE (base) != FUNCTION_DECL
  	   && ((align = get_object_alignment (base, BIGGEST_ALIGNMENT))
  		> BITS_PER_UNIT))
      {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]