[Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)

2014-11-10 Thread ccoutant at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Cary Coutant  changed:

   What|Removed |Added

 Resolution|FIXED   |DUPLICATE

--- Comment #21 from Cary Coutant  ---
Duplicate of PR 61321.

*** This bug has been marked as a duplicate of bug 61321 ***


[Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)

2014-11-10 Thread ccoutant at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Cary Coutant  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #20 from Cary Coutant  ---
Duplicate of PR 61321.


[Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)

2014-11-07 Thread ccoutant at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Cary Coutant  changed:

   What|Removed |Added

 CC||jason at redhat dot com

--- Comment #19 from Cary Coutant  ---
I'm pretty sure that Pedro's proposed patch here --

https://gcc.gnu.org/ml/gcc-patches/2014-05/msg02279.html

-- will fix this bug.


[Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)

2014-11-07 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #18 from Markus Trippelsdorf  ---
(In reply to Richard Biener from comment #17)
> (In reply to Markus Trippelsdorf from comment #16)
> > Hmm, the 5.0 issue was fixed by r217214. Maybe the fix should be 
> > backported to 4.9?
> 
> The 5.0 issue was new in 5.0.  What testcase of the very many in this bug
> fail with 4.9?

The one from comment 7.


[Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)

2014-11-07 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #17 from Richard Biener  ---
(In reply to Markus Trippelsdorf from comment #16)
> Hmm, the 5.0 issue was fixed by r217214. Maybe the fix should be 
> backported to 4.9?

The 5.0 issue was new in 5.0.  What testcase of the very many in this bug fail
with 4.9?


[Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)

2014-11-07 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Markus Trippelsdorf  changed:

   What|Removed |Added

   Priority|P1  |P3

--- Comment #16 from Markus Trippelsdorf  ---
Hmm, the 5.0 issue was fixed by r217214. Maybe the fix should be 
backported to 4.9?


[Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)

2014-11-07 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #15 from Markus Trippelsdorf  ---
On x86_64:

markus@x4 /tmp % cat sock.i
struct sock
{
  int sk_userlocks : 4;
} a;
const struct sock b;
void
fn1 ()
{
  a.sk_userlocks = b.sk_userlocks & 1;
}

markus@x4 /tmp % gcc -O2 -c sock.i
gcc: internal compiler error: Segmentation fault (program cc1)
0x40c043 execute
../../gcc/gcc/gcc.c:2908
0x40c2f9 do_spec_1
../../gcc/gcc/gcc.c:4724
0x40ef96 process_brace_body
../../gcc/gcc/gcc.c:6007
0x40ef96 handle_braces
../../gcc/gcc/gcc.c:5921
0x40d0e7 do_spec_1
../../gcc/gcc/gcc.c:5378
0x40ef96 process_brace_body
../../gcc/gcc/gcc.c:6007
0x40ef96 handle_braces
../../gcc/gcc/gcc.c:5921
0x40d0e7 do_spec_1
../../gcc/gcc/gcc.c:5378
0x40cfee do_spec_1
../../gcc/gcc/gcc.c:5493
0x40ef96 process_brace_body
../../gcc/gcc/gcc.c:6007
0x40ef96 handle_braces
../../gcc/gcc/gcc.c:5921
0x40d0e7 do_spec_1
../../gcc/gcc/gcc.c:5378
0x40ef96 process_brace_body
../../gcc/gcc/gcc.c:6007
0x40ef96 handle_braces
../../gcc/gcc/gcc.c:5921
0x40d0e7 do_spec_1
../../gcc/gcc/gcc.c:5378
0x40ef96 process_brace_body
../../gcc/gcc/gcc.c:6007
0x40ef96 handle_braces
../../gcc/gcc/gcc.c:5921
0x40d0e7 do_spec_1
../../gcc/gcc/gcc.c:5378
0x40ef96 process_brace_body
../../gcc/gcc/gcc.c:6007
0x40ef96 handle_braces
../../gcc/gcc/gcc.c:5921
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.


[Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)

2014-11-07 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Markus Trippelsdorf  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Priority|P3  |P1
Summary|[4.9 regression] internal   |[4.9/5 regression] internal
   |compiler error: |compiler error:
   |Segmentation fault (program |Segmentation fault (program
   |cc1plus)|cc1plus)

--- Comment #14 from Markus Trippelsdorf  ---
This also happens when building the Linux kernel on ppc64 with 5.0:

trippels@gcc2-power8 linux-3.17.2 % gcc -c -O2 sock.i
gcc: internal compiler error: Segmentation fault (program cc1)
0x1000f7bb execute
../../gcc/gcc/gcc.c:2908
0x1000fd03 do_spec_1
../../gcc/gcc/gcc.c:4724
0x10012807 process_brace_body
../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
../../gcc/gcc/gcc.c:5921
0x1001090f do_spec_1
../../gcc/gcc/gcc.c:5378
0x10012807 process_brace_body
../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
../../gcc/gcc/gcc.c:5921
0x1001090f do_spec_1
../../gcc/gcc/gcc.c:5378
0x1000ffb7 do_spec_1
../../gcc/gcc/gcc.c:5493
0x10012807 process_brace_body
../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
../../gcc/gcc/gcc.c:5921
0x1001090f do_spec_1
../../gcc/gcc/gcc.c:5378
0x10012807 process_brace_body
../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
../../gcc/gcc/gcc.c:5921
0x1001090f do_spec_1
../../gcc/gcc/gcc.c:5378
0x10012807 process_brace_body
../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
../../gcc/gcc/gcc.c:5921
0x1001090f do_spec_1
../../gcc/gcc/gcc.c:5378
0x10012807 process_brace_body
../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
../../gcc/gcc/gcc.c:5921
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

dmesg shows:
[Nov 7 13:23] cc1[65025]: bad frame in setup_rt_frame: 3fffebfbf770 nip
10461268 lr 10465c80

Looks like a stack overflow. Adjusting importance.