Commit 2515981d by Jan-Benedict Glaw Committed by Dominique d'Humieres

re PR target/26427 (with -fsection-anchors with zero sized structs)

2015-12-11  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
	    Dominique d'Humieres  <dominiq@lps.ens.fr>

	PR target/26427
	PR target/33120
	PR testsuite/35710

	* config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
	trailing whitespace.


Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>

From-SVN: r231571
parent 60385364
2015-12-11 Jan-Benedict Glaw <jbglaw@lug-owl.de>
Dominique d'Humieres <dominiq@lps.ens.fr>
PR target/26427
PR target/33120
PR testsuite/35710
* config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
trailing whitespace.
2015-12-11 Jan Beulich <jbeulich@suse.com> 2015-12-11 Jan Beulich <jbeulich@suse.com>
* cfgexpand.c (expand_one_var): Exit early for static and * cfgexpand.c (expand_one_var): Exit early for static and
...@@ -2997,23 +2997,23 @@ darwin_asm_output_anchor (rtx symbol) ...@@ -2997,23 +2997,23 @@ darwin_asm_output_anchor (rtx symbol)
SYMBOL_REF_BLOCK_OFFSET (symbol)); SYMBOL_REF_BLOCK_OFFSET (symbol));
} }
/* Disable section anchoring on any section containing a zero-sized /* Disable section anchoring on any section containing a zero-sized
object. */ object. */
bool bool
darwin_use_anchors_for_symbol_p (const_rtx symbol) darwin_use_anchors_for_symbol_p (const_rtx symbol)
{ {
if (DARWIN_SECTION_ANCHORS && flag_section_anchors) if (DARWIN_SECTION_ANCHORS && flag_section_anchors)
{ {
section *sect; section *sect;
/* If the section contains a zero-sized object it's ineligible. */ /* If the section contains a zero-sized object it's ineligible. */
sect = SYMBOL_REF_BLOCK (symbol)->sect; sect = SYMBOL_REF_BLOCK (symbol)->sect;
/* This should have the effect of disabling anchors for vars that follow /* This should have the effect of disabling anchors for vars that follow
any zero-sized one, in a given section. */ any zero-sized one, in a given section. */
if (sect->common.flags & SECTION_NO_ANCHOR) if (sect->common.flags & SECTION_NO_ANCHOR)
return false; return false;
/* Also check the normal reasons for suppressing. */ /* Also check the normal reasons for suppressing. */
return default_use_anchors_for_symbol_p (symbol); return default_use_anchors_for_symbol_p (symbol);
} }
else else
return false; return false;
......
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