This seems like an obvious typo.  I cannot test SPE, but I noticed
this offset shows up in the debug output for normal configurations.
The condition is inverted, compared to all similar ones.

Is this okay for trunk?


Segher


2015-09-23  Segher Boessenkool  <seg...@kernel.crashing.org>

        * config/rs6000/rs6000.c (debug_stack_info): Invert the test
        for info->spe_gp_size.

---
 gcc/config/rs6000/rs6000.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 5897ea8..f8638f9 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -22703,7 +22703,7 @@ debug_stack_info (rs6000_stack_t *info)
     fprintf (stderr, "\taltivec_save_offset = %5d\n",
             info->altivec_save_offset);
 
-  if (info->spe_gp_size == 0)
+  if (info->spe_gp_size)
     fprintf (stderr, "\tspe_gp_save_offset  = %5d\n",
             info->spe_gp_save_offset);
 
-- 
1.8.1.4

Reply via email to