public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/55438] New: [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028 ICE
@ 2012-11-22  6:58 hp at gcc dot gnu.org
  2012-11-23  0:44 ` [Bug middle-end/55438] [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028, gcc.c-torture/execute/991118-1.c, gcc.c-torture/execute/bf64-1.c, ICE hp at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hp at gcc dot gnu.org @ 2012-11-22  6:58 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55438
           Summary: [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 -
                    t028 ICE
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hp@gcc.gnu.org
                CC: rsandifo@gcc.gnu.org
              Host: x86_64-unknown-linux-gnu
            Target: cris-axis-elf


Created attachment 28761
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28761
cc1 -fpreprocessed t001_x.i -melf -quiet -dumpbase t001_x.c -auxbase-strip
c_compat_x_tst.o -Wno-abi -w -version -fno-diagnostics-show-caret -o t001_x.s

These tests previously passed, now they fail.
A patch in the revision range (last_known_working:first_known_failing)
193600:193604
exposed or caused these regressions.  Since then they fail as follows:

Running
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp ...
FAIL: tmpdir-gcc.dg-struct-layout-1/t001 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t001 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t002 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t002 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t003 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t003 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t004 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t004 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t005 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t005 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t006 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t006 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t007 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t007 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t009 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t009 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t010 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t010 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t011 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t011 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t012 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t012 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t013 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t013 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t014 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t014 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t015 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t015 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t016 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t016 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t017 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t017 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t018 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t018 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t019 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t019 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t020 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t020 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t021 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t021 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t022 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t022 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t023 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t023 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t024 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t024 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t025 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t025 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t026 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t026 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t027 c_compat_y_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t028 c_compat_x_tst.o compile,  (internal
compiler error)
FAIL: tmpdir-gcc.dg-struct-layout-1/t028 c_compat_y_tst.o compile,  (internal
compiler error)

and similarly for g++.dg/compat/struct-layout-1.exp

The messages in gcc.log are similar:

Executing on host: /tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/xgcc
-B/tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/  -fno-diagnostics-show-caret  -w
-I/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/compat -Wno-abi
-DSKIP_DECIMAL_FLOAT -DSKIP_DECIMAL_FLOAT -c   -isystem
/tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/./newlib/targ-include -isystem
/tmp/hpautotest-gcc1/gcc/newlib/libc/include  -o c_compat_x_tst.o
/tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/testsuite/gcc/gcc.dg-struct-layout-1//t001_x.c
   (timeout = 300)
xgcc: internal compiler error: Segmentation fault (program cc1)
0x4082c1 execute
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:2772
0x409214 do_spec_1
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:4564
0x40b647 process_brace_body
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5821
0x40b647 handle_braces
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5735
0x409875 do_spec_1
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5218
0x40b647 process_brace_body
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5821
0x40b647 handle_braces
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5735
0x409875 do_spec_1
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5218
0x409724 do_spec_1
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5323
0x40b647 process_brace_body
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5821
0x40b647 handle_braces
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5735
0x409875 do_spec_1
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5218
0x40b647 process_brace_body
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5821
0x40b647 handle_braces
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5735
0x409875 do_spec_1
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5218
0x40b647 process_brace_body
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5821
0x40b647 handle_braces
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5735
0x409875 do_spec_1
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5218
0x40b647 process_brace_body
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5821
0x40b647 handle_braces
        /tmp/hpautotest-gcc1/gcc/gcc/gcc.c:5735
Please submit a full bug report,

(A guess is that the backtrace from xgcc is due to cc1 not ICE:ing but
SEGV:ing.  Revisions at least around the mentioned range may instead consume
excessive memory; > 10 GiB, and are killed by the kernel OOM.)

Preprocessed t001_x.i and command-line is attached.

Author of all commits in the revision range CC:ed.

Note that when compiling any of the revisions r193595 .. r193667 on a host with
gcc-4.5 or earlier (possibly later versions as well) you need to apply revision
r193667.


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

* [Bug middle-end/55438] [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028,  gcc.c-torture/execute/991118-1.c, gcc.c-torture/execute/bf64-1.c, ICE
  2012-11-22  6:58 [Bug middle-end/55438] New: [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028 ICE hp at gcc dot gnu.org
@ 2012-11-23  0:44 ` hp at gcc dot gnu.org
  2012-11-24 10:37 ` rsandifo at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hp at gcc dot gnu.org @ 2012-11-23  0:44 UTC (permalink / raw)
  To: gcc-bugs


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

Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.8 Regression]:           |[4.8 Regression]:
                   |tmpdir-gcc.dg-struct-layout |tmpdir-gcc.dg-struct-layout
                   |-1/t001 - t028 ICE          |-1/t001 - t028,
                   |                            |gcc.c-torture/execute/99111
                   |                            |8-1.c,
                   |                            |gcc.c-torture/execute/bf64-
                   |                            |1.c, ICE

--- Comment #1 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2012-11-23 00:44:36 UTC ---
Actually, there are two more regressions:
Running
/tmp/hpautotest-gcc0/gcc/gcc/testsuite/gcc.c-torture/execute/execute.exp ...
FAIL: gcc.c-torture/execute/991118-1.c compilation,  -O0  (internal compiler
error)
FAIL: gcc.c-torture/execute/991118-1.c compilation,  -O1  (internal compiler
error)
FAIL: gcc.c-torture/execute/991118-1.c compilation,  -O2  (internal compiler
error)
FAIL: gcc.c-torture/execute/991118-1.c compilation,  -O3 -fomit-frame-pointer 
(internal compiler error)
FAIL: gcc.c-torture/execute/991118-1.c compilation,  -O3 -g  (internal compiler
error)
FAIL: gcc.c-torture/execute/991118-1.c compilation,  -Os  (internal compiler
error)
FAIL: gcc.c-torture/execute/991118-1.c compilation,  -Og -g  (internal compiler
error)
FAIL: gcc.c-torture/execute/991118-1.c compilation,  -O2 -flto
-fno-use-linker-plugin -flto-partition=none  (internal compiler error)
FAIL: gcc.c-torture/execute/bf64-1.c compilation,  -O0  (internal compiler
error)
FAIL: gcc.c-torture/execute/bf64-1.c compilation,  -O1  (internal compiler
error)
FAIL: gcc.c-torture/execute/bf64-1.c compilation,  -O2  (internal compiler
error)
FAIL: gcc.c-torture/execute/bf64-1.c compilation,  -O3 -fomit-frame-pointer 
(internal compiler error)
FAIL: gcc.c-torture/execute/bf64-1.c compilation,  -O3 -g  (internal compiler
error)
FAIL: gcc.c-torture/execute/bf64-1.c compilation,  -Os  (internal compiler
error)
FAIL: gcc.c-torture/execute/bf64-1.c compilation,  -Og -g  (internal compiler
error)
FAIL: gcc.c-torture/execute/bf64-1.c compilation,  -O2 -flto
-fno-use-linker-plugin -flto-partition=none  (internal compiler error)

Similar messages in gcc.log as for the struct-layout-1 regressions.


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

* [Bug middle-end/55438] [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028,  gcc.c-torture/execute/991118-1.c, gcc.c-torture/execute/bf64-1.c, ICE
  2012-11-22  6:58 [Bug middle-end/55438] New: [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028 ICE hp at gcc dot gnu.org
  2012-11-23  0:44 ` [Bug middle-end/55438] [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028, gcc.c-torture/execute/991118-1.c, gcc.c-torture/execute/bf64-1.c, ICE hp at gcc dot gnu.org
@ 2012-11-24 10:37 ` rsandifo at gcc dot gnu.org
  2012-11-25 15:52 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2012-11-24 10:37 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-11-24
         AssignedTo|unassigned at gcc dot       |rsandifo at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #2 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2012-11-24 10:36:34 UTC ---
Gah, I'd misremembered what BIGGEST_ALIGMNENT means.
Testing a patch.


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

* [Bug middle-end/55438] [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028,  gcc.c-torture/execute/991118-1.c, gcc.c-torture/execute/bf64-1.c, ICE
  2012-11-22  6:58 [Bug middle-end/55438] New: [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028 ICE hp at gcc dot gnu.org
  2012-11-23  0:44 ` [Bug middle-end/55438] [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028, gcc.c-torture/execute/991118-1.c, gcc.c-torture/execute/bf64-1.c, ICE hp at gcc dot gnu.org
  2012-11-24 10:37 ` rsandifo at gcc dot gnu.org
@ 2012-11-25 15:52 ` rguenth at gcc dot gnu.org
  2012-11-28 20:14 ` rsandifo at gcc dot gnu.org
  2012-11-28 20:23 ` rsandifo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-11-25 15:52 UTC (permalink / raw)
  To: gcc-bugs


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0


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

* [Bug middle-end/55438] [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028,  gcc.c-torture/execute/991118-1.c, gcc.c-torture/execute/bf64-1.c, ICE
  2012-11-22  6:58 [Bug middle-end/55438] New: [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028 ICE hp at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-11-25 15:52 ` rguenth at gcc dot gnu.org
@ 2012-11-28 20:14 ` rsandifo at gcc dot gnu.org
  2012-11-28 20:23 ` rsandifo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2012-11-28 20:14 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2012-11-28 20:13:39 UTC ---
Author: rsandifo
Date: Wed Nov 28 20:13:22 2012
New Revision: 193905

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193905
Log:
gcc/
    PR middle-end/55438
    * expmed.c (simple_mem_bitfield_p): New function, extracted from
    store_bit_field_1 and extract_bit_field_1.  Use GET_MODE_ALIGNMENT
    rather than bitsize when checking the alignment.
    (store_bit_field_1, extract_bit_field_1): Call it.
    * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
    Don't limit ALIGN_.  Assume that memory is mapped in chunks of at
    least word size, regardless of BIGGEST_ALIGNMENT.
    (bit_field_mode_iterator::get_mode): Use GET_MODE_ALIGNMENT rather
    than unit when checking the alignment.
    (get_best_mode): Use GET_MODE_ALIGNMENT.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/expmed.c
    trunk/gcc/stor-layout.c


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

* [Bug middle-end/55438] [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028,  gcc.c-torture/execute/991118-1.c, gcc.c-torture/execute/bf64-1.c, ICE
  2012-11-22  6:58 [Bug middle-end/55438] New: [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028 ICE hp at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-11-28 20:14 ` rsandifo at gcc dot gnu.org
@ 2012-11-28 20:23 ` rsandifo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2012-11-28 20:23 UTC (permalink / raw)
  To: gcc-bugs


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

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

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

--- Comment #4 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2012-11-28 20:23:24 UTC ---
Patch applied.


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

end of thread, other threads:[~2012-11-28 20:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-22  6:58 [Bug middle-end/55438] New: [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028 ICE hp at gcc dot gnu.org
2012-11-23  0:44 ` [Bug middle-end/55438] [4.8 Regression]: tmpdir-gcc.dg-struct-layout-1/t001 - t028, gcc.c-torture/execute/991118-1.c, gcc.c-torture/execute/bf64-1.c, ICE hp at gcc dot gnu.org
2012-11-24 10:37 ` rsandifo at gcc dot gnu.org
2012-11-25 15:52 ` rguenth at gcc dot gnu.org
2012-11-28 20:14 ` rsandifo at gcc dot gnu.org
2012-11-28 20:23 ` rsandifo 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).