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]

[x86 patch] Remove duplicate test


Hi,
this removes a duplicate test I wandered over. Earlier in
x86_field_alignment, we bail out if TARGET_ALIGN_DOUBLE
is non-zero.

built & tested on i686-pc-linux-gnu, installed as obvious

nathan
-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>

	* config/i386/i386.c (x86_field_alignment): Remove duplicate test
	of TARGET_ALIGN_DOUBLE.

Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.439
diff -c -3 -p -r1.439 i386.c
*** config/i386/i386.c	24 Jul 2002 13:41:20 -0000	1.439
--- config/i386/i386.c	1 Aug 2002 11:40:00 -0000
*************** x86_field_alignment (field, computed)
*** 13674,13682 ****
      return computed;
    mode = TYPE_MODE (TREE_CODE (TREE_TYPE (field)) == ARRAY_TYPE
  		    ? get_inner_array_type (field) : TREE_TYPE (field));
!   if ((mode == DFmode || mode == DCmode
!       || mode == DImode || mode == CDImode)
!       && !TARGET_ALIGN_DOUBLE)
      return MIN (32, computed);
    return computed;
  }
--- 13674,13680 ----
      return computed;
    mode = TYPE_MODE (TREE_CODE (TREE_TYPE (field)) == ARRAY_TYPE
  		    ? get_inner_array_type (field) : TREE_TYPE (field));
!   if (mode == DFmode || mode == DCmode || mode == DImode || mode == CDImode)
      return MIN (32, computed);
    return computed;
  }

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