public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685
@ 2013-12-13 14:52 dominiq at lps dot ens.fr
  2013-12-13 14:59 ` [Bug bootstrap/59496] " iains at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-12-13 14:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59496

            Bug ID: 59496
           Summary: [4.9 Regression] Bootstrap fails on
                    powerpc-apple-darwin9 after r205685
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: iains at gcc dot gnu.org, jsm28 at gcc dot gnu.org,
                    mpolacek at gcc dot gnu.org
              Host: powerpc-apple-darwin9
            Target: powerpc-apple-darwin9
             Build: powerpc-apple-darwin9

Bootstrap fails on powerpc-apple-darwin9 after r205685 and is not fixed by
r205705:

/opt/gcc/rel_build/./prev-gcc/xg++ -B/opt/gcc/rel_build/./prev-gcc/
-B/opt/gcc/gcc4.9r/powerpc-apple-darwin9.8.0/bin/ -nostdinc++
-B/opt/gcc/rel_build/prev-powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs
-B/opt/gcc/rel_build/prev-powerpc-apple-darwin9.8.0/libstdc++-v3/libsupc++/.libs
-I/opt/gcc/rel_build/prev-powerpc-apple-darwin9.8.0/libstdc++-v3/include/powerpc-apple-darwin9.8.0
-I/opt/gcc/rel_build/prev-powerpc-apple-darwin9.8.0/libstdc++-v3/include
-I/opt/gcc/rel_work/libstdc++-v3/libsupc++
-L/opt/gcc/rel_build/prev-powerpc-apple-darwin9.8.0/libstdc++-v3/src/.libs
-L/opt/gcc/rel_build/prev-powerpc-apple-darwin9.8.0/libstdc++-v3/libsupc++/.libs
-c  -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -g -O2 -mdynamic-no-pic -gtoggle
-DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror  
-DHAVE_CONFIG_H -I. -Ic-family -I../../rel_work/gcc
-I../../rel_work/gcc/c-family -I../../rel_work/gcc/../include -I./../intl
-I../../rel_work/gcc/../libcpp/include -I/opt/mp/include 
-I../../rel_work/gcc/../libdecnumber -I../../rel_work/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../rel_work/gcc/../libbacktrace -DCLOOG_INT_GMP 
-I/opt/mp/include  -o c-family/c-common.o -MT c-family/c-common.o -MMD -MP -MF
c-family/.deps/c-common.TPo ../../rel_work/gcc/c-family/c-common.c
../../rel_work/gcc/c-family/c-common.c: In function 'tree_node*
c_sizeof_or_alignof_type(location_t, tree, bool, bool, int)':
../../rel_work/gcc/c-family/c-common.c:5009:9: error: unused variable 'field'
[-Werror=unused-variable]
    tree field = build_decl (UNKNOWN_LOCATION, FIELD_DECL, NULL_TREE,
         ^
cc1plus: all warnings being treated as errors

The problem comes from the fact that ADJUST_FIELD_ALIGN is defined in
gcc/config/rs6000/darwin.h as

#define ADJUST_FIELD_ALIGN(FIELD, COMPUTED)     \
  (TARGET_ALIGN_NATURAL ? (COMPUTED)            \
   : (COMPUTED) == 128 ? 128                    \
   : MIN ((COMPUTED), 32))

and does not use FIELD, as seen in the preprocessed file

...
   tree field = build_decl_stat (((source_location) 0), FIELD_DECL, (tree)
__null, type )
            ;
   field_align = ((global_options.x_rs6000_alignment_flags & 0x00000001) ?
(field_align) : (field_align) == 128 ? 128 : (((field_align)) < (32) ?
((field_align)) : (32)));

   align = ((align) < (field_align) ? (align) : (field_align));
...

I have fixed the problem with the following patch:

--- gcc/c-family/c-common.c    2013-12-11 13:43:47.000000000 +0100
+++ ../work/gcc/c-family/c-common.c    2013-12-08 00:14:27.000000000 +0100

@@ -5002,7 +5006,7 @@ c_sizeof_or_alignof_type (location_t loc
 #endif
       unsigned int field_align = align;
 #ifdef ADJUST_FIELD_ALIGN
-      tree field = build_decl (UNKNOWN_LOCATION, FIELD_DECL, NULL_TREE,
+      tree __attribute__((unused)) field = build_decl (UNKNOWN_LOCATION,
FIELD_DECL, NULL_TREE,
                    type);
       field_align = ADJUST_FIELD_ALIGN (field, field_align);
 #endif

Yes I know, the line is too long and patches should go to gcc-patches. I'll do
it if there is a consensus that it is the right fix.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/59496] [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685
  2013-12-13 14:52 [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685 dominiq at lps dot ens.fr
@ 2013-12-13 14:59 ` iains at gcc dot gnu.org
  2013-12-19 13:34 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: iains at gcc dot gnu.org @ 2013-12-13 14:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59496

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-12-13
     Ever confirmed|0                           |1

--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> ---
from the point of view of powerpc-darwin, this is the right fix (it doesn't
need to act on FIELD in this context).


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/59496] [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685
  2013-12-13 14:52 [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685 dominiq at lps dot ens.fr
  2013-12-13 14:59 ` [Bug bootstrap/59496] " iains at gcc dot gnu.org
@ 2013-12-19 13:34 ` rguenth at gcc dot gnu.org
  2013-12-19 15:43 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-12-19 13:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59496

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/59496] [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685
  2013-12-13 14:52 [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685 dominiq at lps dot ens.fr
  2013-12-13 14:59 ` [Bug bootstrap/59496] " iains at gcc dot gnu.org
  2013-12-19 13:34 ` rguenth at gcc dot gnu.org
@ 2013-12-19 15:43 ` rguenth at gcc dot gnu.org
  2013-12-19 15:50 ` iains at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-12-19 15:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59496

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
darwin should simply add a dummy use of field, like via ((field), (...))


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/59496] [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685
  2013-12-13 14:52 [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685 dominiq at lps dot ens.fr
                   ` (2 preceding siblings ...)
  2013-12-19 15:43 ` rguenth at gcc dot gnu.org
@ 2013-12-19 15:50 ` iains at gcc dot gnu.org
  2014-01-13 16:54 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: iains at gcc dot gnu.org @ 2013-12-19 15:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59496

--- Comment #3 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> darwin should simply add a dummy use of field, like via ((field), (...))

well, I thought of doing that, but it seems a kludge - is the target obliged to
use the macro values?


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/59496] [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685
  2013-12-13 14:52 [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685 dominiq at lps dot ens.fr
                   ` (3 preceding siblings ...)
  2013-12-19 15:50 ` iains at gcc dot gnu.org
@ 2014-01-13 16:54 ` jakub at gcc dot gnu.org
  2014-01-13 16:56 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-13 16:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59496

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #3)
> (In reply to Richard Biener from comment #2)
> > darwin should simply add a dummy use of field, like via ((field), (...))
> 
> well, I thought of doing that, but it seems a kludge - is the target obliged
> to use the macro values?

Given that all other targets use it, I'd say yes in this case.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/59496] [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685
  2013-12-13 14:52 [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685 dominiq at lps dot ens.fr
                   ` (4 preceding siblings ...)
  2014-01-13 16:54 ` jakub at gcc dot gnu.org
@ 2014-01-13 16:56 ` jakub at gcc dot gnu.org
  2014-01-18 21:12 ` dominiq at lps dot ens.fr
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-13 16:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59496

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Also, ppc*-darwin* isn't primary nor secondary target and the only one
affected, downgrading to P4.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/59496] [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685
  2013-12-13 14:52 [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685 dominiq at lps dot ens.fr
                   ` (5 preceding siblings ...)
  2014-01-13 16:56 ` jakub at gcc dot gnu.org
@ 2014-01-18 21:12 ` dominiq at lps dot ens.fr
  2014-01-20 11:21 ` iains at gcc dot gnu.org
  2014-01-21  8:52 ` dominiq at lps dot ens.fr
  8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-01-18 21:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59496

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Patch posted at http://gcc.gnu.org/ml/gcc-patches/2014-01/msg00816.html.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/59496] [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685
  2013-12-13 14:52 [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685 dominiq at lps dot ens.fr
                   ` (6 preceding siblings ...)
  2014-01-18 21:12 ` dominiq at lps dot ens.fr
@ 2014-01-20 11:21 ` iains at gcc dot gnu.org
  2014-01-21  8:52 ` dominiq at lps dot ens.fr
  8 siblings, 0 replies; 10+ messages in thread
From: iains at gcc dot gnu.org @ 2014-01-20 11:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59496

--- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> ---
Author: iains
Date: Mon Jan 20 11:20:24 2014
New Revision: 206802

URL: http://gcc.gnu.org/viewcvs?rev=206802&root=gcc&view=rev
Log:
gcc:

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


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/darwin.h


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/59496] [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685
  2013-12-13 14:52 [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685 dominiq at lps dot ens.fr
                   ` (7 preceding siblings ...)
  2014-01-20 11:21 ` iains at gcc dot gnu.org
@ 2014-01-21  8:52 ` dominiq at lps dot ens.fr
  8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-01-21  8:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59496

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Thanks for the fix. Closing.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-21  8:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-13 14:52 [Bug bootstrap/59496] New: [4.9 Regression] Bootstrap fails on powerpc-apple-darwin9 after r205685 dominiq at lps dot ens.fr
2013-12-13 14:59 ` [Bug bootstrap/59496] " iains at gcc dot gnu.org
2013-12-19 13:34 ` rguenth at gcc dot gnu.org
2013-12-19 15:43 ` rguenth at gcc dot gnu.org
2013-12-19 15:50 ` iains at gcc dot gnu.org
2014-01-13 16:54 ` jakub at gcc dot gnu.org
2014-01-13 16:56 ` jakub at gcc dot gnu.org
2014-01-18 21:12 ` dominiq at lps dot ens.fr
2014-01-20 11:21 ` iains at gcc dot gnu.org
2014-01-21  8:52 ` dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).