public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances
@ 2011-09-13 20:09 danglin at gcc dot gnu.org
  2011-09-16 18:34 ` [Bug libgomp/50386] [4.7 Regression] " danglin at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-09-13 20:09 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50386
           Summary: libgomp.h:87:5: error: unnamed struct/union that
                    defines no instances
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: danglin@gcc.gnu.org
              Host: armv5tejl-unknown-linux-gnueabi
            Target: armv5tejl-unknown-linux-gnueabi
             Build: armv5tejl-unknown-linux-gnueabi


libtool: compile:  /home/dave/gnu/gcc/objdir/./gcc/xgcc
-B/home/dave/gnu/gcc/obj
dir/./gcc/
-B/home/dave/opt/gnu/gcc/gcc-4.7/armv5tejl-unknown-linux-gnueabi/bin/
 -B/home/dave/opt/gnu/gcc/gcc-4.7/armv5tejl-unknown-linux-gnueabi/lib/ -isystem
/home/dave/opt/gnu/gcc/gcc-4.7/armv5tejl-unknown-linux-gnueabi/include -isystem
/home/dave/opt/gnu/gcc/gcc-4.7/armv5tejl-unknown-linux-gnueabi/sys-include
-DHAV
E_CONFIG_H -I. -I../../../gcc/libgomp -I../../../gcc/libgomp/config/linux/arm
-I
../../../gcc/libgomp/config/linux -I../../../gcc/libgomp/config/posix
-I../../..
/gcc/libgomp -Wall -Werror -pthread -ftls-model=initial-exec -g -O2 -MT
alloc.lo
 -MD -MP -MF .deps/alloc.Tpo -c ../../../gcc/libgomp/alloc.c  -fPIC -DPIC -o
.li
bs/alloc.o
In file included from ../../../gcc/libgomp/alloc.c:29:0:
../../../gcc/libgomp/libgomp.h:87:5: error: unnamed struct/union that defines
no
 instances [-Werror]
../../../gcc/libgomp/libgomp.h:94:5: error: unnamed struct/union that defines
no
 instances [-Werror]
../../../gcc/libgomp/libgomp.h:95:3: error: unnamed struct/union that defines
no
 instances [-Werror]
../../../gcc/libgomp/libgomp.h:146:3: error: unnamed struct/union that defines
n
o instances [-Werror]
../../../gcc/libgomp/libgomp.h:156:3: error: unnamed struct/union that defines
no instances [-Werror]
../../../gcc/libgomp/libgomp.h: In function 'gomp_work_share_init_done':
../../../gcc/libgomp/libgomp.h: In function 'gomp_work_share_init_done':
../../../gcc/libgomp/libgomp.h:502:47: error: 'struct gomp_work_share' has no
member named 'next_ws'
cc1: all warnings being treated as errors

Occurs in stage2 with

-bash-3.2$ ./xgcc -B./ -v
Reading specs from ./specs
COLLECT_GCC=./xgcc
COLLECT_LTO_WRAPPER=./lto-wrapper
Target: armv5tejl-unknown-linux-gnueabi
Configured with: ../gcc/configure --enable-languages=c,c++,fortran,objc,obj-c++
--enable-checking=release --enable-shared --enable-threads --disable-multilib
--disable-libmudflap --disable-libssp --enable-symvers=gnu
--enable-__cxa_atexit --disable-libstdcxx-pch
--prefix=/home/dave/opt/gnu/gcc/gcc-4.7 --with-gmp=/home/dave/opt/gnu
--with-as=/home/dave/opt/gnu/bin/as --with-ld=/home/dave/opt/gnu/bin/ld
Thread model: posix
gcc version 4.7.0 20110912 (experimental) [trunk revision 178782] (GCC)


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

* [Bug libgomp/50386] [4.7 Regression] libgomp.h:87:5: error: unnamed struct/union that defines no instances
  2011-09-13 20:09 [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances danglin at gcc dot gnu.org
@ 2011-09-16 18:34 ` danglin at gcc dot gnu.org
  2011-09-20 11:42 ` ramana at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu.org @ 2011-09-16 18:34 UTC (permalink / raw)
  To: gcc-bugs

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

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|libgomp.h:87:5: error:      |[4.7 Regression]
                   |unnamed struct/union that   |libgomp.h:87:5: error:
                   |defines no instances        |unnamed struct/union that
                   |                            |defines no instances

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> 2011-09-16 18:07:40 UTC ---
Warning doesn't occur with gcc version 4.4.7 20110530.

There is something arm specific in these warnings as they don't
occur on PA.


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

* [Bug libgomp/50386] [4.7 Regression] libgomp.h:87:5: error: unnamed struct/union that defines no instances
  2011-09-13 20:09 [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances danglin at gcc dot gnu.org
  2011-09-16 18:34 ` [Bug libgomp/50386] [4.7 Regression] " danglin at gcc dot gnu.org
@ 2011-09-20 11:42 ` ramana at gcc dot gnu.org
  2011-09-20 14:02 ` dave.anglin at bell dot net
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-09-20 11:42 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

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

--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-09-20 10:49:02 UTC ---
Do you have some date before when trunk managed bootstraps successfully ? 

Ramana


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

* [Bug libgomp/50386] [4.7 Regression] libgomp.h:87:5: error: unnamed struct/union that defines no instances
  2011-09-13 20:09 [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances danglin at gcc dot gnu.org
  2011-09-16 18:34 ` [Bug libgomp/50386] [4.7 Regression] " danglin at gcc dot gnu.org
  2011-09-20 11:42 ` ramana at gcc dot gnu.org
@ 2011-09-20 14:02 ` dave.anglin at bell dot net
  2011-09-20 23:00 ` ramana at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave.anglin at bell dot net @ 2011-09-20 14:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from dave.anglin at bell dot net 2011-09-20 13:46:04 UTC ---
On 9/20/2011 6:49 AM, ramana at gcc dot gnu.org wrote:
> Do you have some date before when trunk managed bootstraps successfully ?
>

This is my last successful build:
http://gcc.gnu.org/ml/gcc-testresults/2011-09/msg00879.html

Dave


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

* [Bug libgomp/50386] [4.7 Regression] libgomp.h:87:5: error: unnamed struct/union that defines no instances
  2011-09-13 20:09 [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-09-20 14:02 ` dave.anglin at bell dot net
@ 2011-09-20 23:00 ` ramana at gcc dot gnu.org
  2011-09-23 16:23 ` dave.anglin at bell dot net
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ramana at gcc dot gnu.org @ 2011-09-20 23:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2011-09-20 22:32:49 UTC ---
I think this is a bootstrap issue rather than a problem with libgomp . A
reduced testcase of this form fails with the stage2 compiler but is ok with the
stage1 compiler. 


struct gomp_work_share
{
  /* This member records the SCHEDULE clause to be used for this construct.
     The user specification of "runtime" will already have been resolved.
     If this is a SECTIONS construct, this value will always be DYNAMIC.  */
  union {
    struct {
      /* This is the chunk_size argument to the SCHEDULE clause.  */
      long chunk_size;

      /* This is the iteration end point.  If this is a SECTIONS construct,
         this is the number of contained sections.  */
      long end;

      /* This is the iteration step.  If this is a SECTIONS construct, this
         is always 1.  */
      long incr;
    }u;

  };
}a;

Where the stage2 compiler goes : 

/home/40000/t1.i:21:3: warning: unnamed struct/union that defines no instances
[enabled by default]


and the stage1 compiler goes quietly. 

Could you check if you see similar behaviour ? 

Ramana


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

* [Bug libgomp/50386] [4.7 Regression] libgomp.h:87:5: error: unnamed struct/union that defines no instances
  2011-09-13 20:09 [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-09-20 23:00 ` ramana at gcc dot gnu.org
@ 2011-09-23 16:23 ` dave.anglin at bell dot net
  2011-09-27 14:01 ` rsandifo at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dave.anglin at bell dot net @ 2011-09-23 16:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from dave.anglin at bell dot net 2011-09-23 16:04:18 UTC ---
On 9/20/2011 6:32 PM, ramana at gcc dot gnu.org wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50386
>
> --- Comment #4 from Ramana Radhakrishnan<ramana at gcc dot gnu.org>  2011-09-20 22:32:49 UTC ---
> I think this is a bootstrap issue rather than a problem with libgomp . A
> reduced testcase of this form fails with the stage2 compiler but is ok with the
> stage1 compiler.
>
>
> struct gomp_work_share
> {
>    /* This member records the SCHEDULE clause to be used for this construct.
>       The user specification of "runtime" will already have been resolved.
>       If this is a SECTIONS construct, this value will always be DYNAMIC.  */
>    union {
>      struct {
>        /* This is the chunk_size argument to the SCHEDULE clause.  */
>        long chunk_size;
>
>        /* This is the iteration end point.  If this is a SECTIONS construct,
>           this is the number of contained sections.  */
>        long end;
>
>        /* This is the iteration step.  If this is a SECTIONS construct, this
>           is always 1.  */
>        long incr;
>      }u;
>
>    };
> }a;
>
> Where the stage2 compiler goes :
>
> /home/40000/t1.i:21:3: warning: unnamed struct/union that defines no instances
> [enabled by default]
>
>
> and the stage1 compiler goes quietly.
>
> Could you check if you see similar behaviour ?
>
Yes, exactly.  I noted in my original report that the error occurred in 
stage2.

While not fully confirmed, it looks like this was introduced by r178692.

Dave


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

* [Bug libgomp/50386] [4.7 Regression] libgomp.h:87:5: error: unnamed struct/union that defines no instances
  2011-09-13 20:09 [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances danglin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-09-23 16:23 ` dave.anglin at bell dot net
@ 2011-09-27 14:01 ` rsandifo at gcc dot gnu.org
  2011-09-27 17:20 ` rsandifo at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2011-09-27 14:01 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo@gcc.gnu.org <rsandifo at gcc dot gnu.org> changed:

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

--- Comment #6 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2011-09-27 13:54:14 UTC ---
Seems to be the same PR50326.  Testing a fix.


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

* [Bug libgomp/50386] [4.7 Regression] libgomp.h:87:5: error: unnamed struct/union that defines no instances
  2011-09-13 20:09 [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances danglin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2011-09-27 14:01 ` rsandifo at gcc dot gnu.org
@ 2011-09-27 17:20 ` rsandifo at gcc dot gnu.org
  2011-09-29 13:26 ` rguenth at gcc dot gnu.org
  2011-10-19  8:50 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2011-09-27 17:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2011-09-27 17:18:29 UTC ---
Author: rsandifo
Date: Tue Sep 27 17:18:22 2011
New Revision: 179285

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179285
Log:
gcc/
    PR middle-end/50386
    PR middle-end/50326
    * tree-sra.c (build_ref_for_model): Use the type of the field as
    the type of the COMPONENT_REF.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-sra.c


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

* [Bug libgomp/50386] [4.7 Regression] libgomp.h:87:5: error: unnamed struct/union that defines no instances
  2011-09-13 20:09 [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances danglin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2011-09-27 17:20 ` rsandifo at gcc dot gnu.org
@ 2011-09-29 13:26 ` rguenth at gcc dot gnu.org
  2011-10-19  8:50 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-09-29 13:26 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-29 13:15:17 UTC ---
Fixed.


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

* [Bug libgomp/50386] [4.7 Regression] libgomp.h:87:5: error: unnamed struct/union that defines no instances
  2011-09-13 20:09 [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances danglin at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2011-09-29 13:26 ` rguenth at gcc dot gnu.org
@ 2011-10-19  8:50 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-10-19  8:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-10-19 08:46:12 UTC ---
Author: jakub
Date: Wed Oct 19 08:45:45 2011
New Revision: 180179

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180179
Log:
    PR target/50350
    Backport from mainline
    2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>

    PR middle-end/50386
    PR middle-end/50326
    * tree-sra.c (build_ref_for_model): Use the type of the field as
    the type of the COMPONENT_REF.

Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/tree-sra.c


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

end of thread, other threads:[~2011-10-19  8:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-13 20:09 [Bug libgomp/50386] New: libgomp.h:87:5: error: unnamed struct/union that defines no instances danglin at gcc dot gnu.org
2011-09-16 18:34 ` [Bug libgomp/50386] [4.7 Regression] " danglin at gcc dot gnu.org
2011-09-20 11:42 ` ramana at gcc dot gnu.org
2011-09-20 14:02 ` dave.anglin at bell dot net
2011-09-20 23:00 ` ramana at gcc dot gnu.org
2011-09-23 16:23 ` dave.anglin at bell dot net
2011-09-27 14:01 ` rsandifo at gcc dot gnu.org
2011-09-27 17:20 ` rsandifo at gcc dot gnu.org
2011-09-29 13:26 ` rguenth at gcc dot gnu.org
2011-10-19  8:50 ` jakub at gcc dot gnu.org

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).