* [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