Commit c7169779 by Jan-Benedict Glaw Committed by Iain Sandoe

re PR bootstrap/59496 (Bootstrap fails on powerpc-apple-darwin9 after r205685)

gcc:

	PR bootstrap/59496
	* config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
	warning.  Amend comment to reflect current functionality.


Co-Authored-By: Iain Sandoe <iain@codesourcery.com>

From-SVN: r206802
parent 409b6ac1
2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
Iain Sandoe <iain@codesourcery.com>
PR bootstrap/59496
* config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
warning. Amend comment to reflect current functionality.
2014-01-20 Richard Biener <rguenther@suse.de> 2014-01-20 Richard Biener <rguenther@suse.de>
PR middle-end/59860 PR middle-end/59860
......
...@@ -321,16 +321,19 @@ extern int darwin_emit_branch_islands; ...@@ -321,16 +321,19 @@ extern int darwin_emit_branch_islands;
? GENERAL_REGS \ ? GENERAL_REGS \
: (CLASS)) : (CLASS))
/* Compute field alignment. This is similar to the version of the /* Compute field alignment.
macro in the Apple version of GCC, except that version supports This implements the 'power' alignment rule by pegging the alignment of
'mac68k' alignment, and that version uses the computed alignment items (beyond the first aggregate field) to 32 bits. The pegging is
always for the first field of a structure. The first-field suppressed for vector and long double items (both 128 in size).
behavior is dealt with by There is a dummy use of the FIELD argument to avoid an unused variable
darwin_rs6000_special_round_type_align. */ warning (see PR59496). */
#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \ #define ADJUST_FIELD_ALIGN(FIELD, COMPUTED) \
(TARGET_ALIGN_NATURAL ? (COMPUTED) \ ((void) (FIELD), \
: (COMPUTED) == 128 ? 128 \ (TARGET_ALIGN_NATURAL \
: MIN ((COMPUTED), 32)) ? (COMPUTED) \
: (COMPUTED) == 128 \
? 128 \
: MIN ((COMPUTED), 32)))
/* Darwin increases natural record alignment to doubleword if the first /* Darwin increases natural record alignment to doubleword if the first
field is an FP double while the FP fields remain word aligned. */ field is an FP double while the FP fields remain word aligned. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment