public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/61553] New: __atomic_store with non-pointer arg ICE
@ 2014-06-18 18:12 bstarynk at gcc dot gnu.org
  2014-06-23 13:38 ` [Bug c/61553] " mpolacek at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bstarynk at gcc dot gnu.org @ 2014-06-18 18:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61553

            Bug ID: 61553
           Summary: __atomic_store with non-pointer arg ICE
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bstarynk at gcc dot gnu.org

Created attachment 32968
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32968&action=edit
faulty source code

(On Debian/Sid/AMD64)

The attached file (with an incorrect __atomic_store) gives an ICE.

badatomicstore.c: In function ‘clear_s1’:
badatomicstore.c:9:6: internal compiler error: in tree_to_uhwi, at tree.h:3660
      __atomic_store(s->i_name, NULL, __ATOMIC_SEQ_CST);
      ^
Please submit a full bug report,


Of course, the instruction is incorrect; it should be

     __atomic_store_n(&s->i_name, NULL, __ATOMIC_SEQ_CST);
>From gcc-bugs-return-454505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 18 19:33:52 2014
Return-Path: <gcc-bugs-return-454505-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23218 invoked by alias); 18 Jun 2014 19:33:51 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23187 invoked by uid 48); 18 Jun 2014 19:33:47 -0000
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/61554] New: ice in bb_seq_addr
Date: Wed, 18 Jun 2014 19:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dcb314 at hotmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created
Message-ID: <bug-61554-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-06/txt/msg01587.txt.bz2
Content-length: 1934

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61554

            Bug ID: 61554
           Summary: ice in bb_seq_addr
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

Created attachment 32969
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32969&action=edit
gzipped C++ source code

The attached source code, when compiled by trunk dated today, 20140618,
does this when compiled with -O2

 ../results/bin/gcc -c -O2 bug149.cc
/home/dcb/rpmbuild/BUILD/stdair-1.00.1/stdair/bom/SegmentSnapshotTable.cpp: In
member function ‘boost::multi_array<T, NumDims, Allocator>&
boost::multi_array<T, NumDims, Allocator>::resize(const
boost::detail::multi_array::extent_gen<NumDims>&) [with T = double; long
unsigned int NumDims = 2ul; Allocator = std::allocator<double>]’:
/home/dcb/rpmbuild/BUILD/stdair-1.00.1/stdair/bom/SegmentSnapshotTable.cpp:469:1:
internal compiler error: Segmentation fault
 }
 ^
0xa9697f crash_signal
    ../../src/trunk/gcc/toplev.c:337
0x890bbc bb_seq_addr
    ../../src/trunk/gcc/gimple.h:1389
0x890bbc gsi_start_bb
    ../../src/trunk/gcc/gimple-iterator.h:118
0x890bbc gsi_for_stmt(gimple_statement_base*)
    ../../src/trunk/gcc/gimple-iterator.c:620
0xbc031c substitute_and_fold(tree_node* (*)(tree_node*), bool
(*)(gimple_stmt_iterator*), bool)
    ../../src/trunk/gcc/tree-ssa-propagate.c:1225
0xb45aea ccp_finalize
    ../../src/trunk/gcc/tree-ssa-ccp.c:926
0xb45aea do_ssa_ccp
    ../../src/trunk/gcc/tree-ssa-ccp.c:2341
0xb45aea execute
    ../../src/trunk/gcc/tree-ssa-ccp.c:2374
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-454506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 18 19:41:24 2014
Return-Path: <gcc-bugs-return-454506-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27521 invoked by alias); 18 Jun 2014 19:41:23 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27443 invoked by uid 48); 18 Jun 2014 19:41:18 -0000
From: "gerald at pfeifer dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug inline-asm/29357] inline asm %c0 template form not documented
Date: Wed, 18 Jun 2014 19:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: inline-asm
X-Bugzilla-Version: 4.2.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: trivial
X-Bugzilla-Who: gerald at pfeifer dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cc resolution cf_known_to_fail
Message-ID: <bug-29357-4-92CEAnhRbX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-29357-4@http.gcc.gnu.org/bugzilla/>
References: <bug-29357-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-06/txt/msg01588.txt.bz2
Content-length: 827

https://gcc.gnu.org/bugzilla/show_bug.cgi?id)357

Gerald Pfeifer <gerald at pfeifer dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |gerald at pfeifer dot com
         Resolution|---                         |FIXED
      Known to fail|                            |4.10.0

--- Comment #3 from Gerald Pfeifer <gerald at pfeifer dot com> ---
Hi Avi, I am sorry nobody looked into this earlier.

David indicated this actually is covered in
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#i386Operandmodifiers

Can you please advise if there is anything you see missing or there
are changes you'd still like to see?


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

* [Bug c/61553] __atomic_store with non-pointer arg ICE
  2014-06-18 18:12 [Bug c/61553] New: __atomic_store with non-pointer arg ICE bstarynk at gcc dot gnu.org
@ 2014-06-23 13:38 ` mpolacek at gcc dot gnu.org
  2014-06-23 17:00 ` mpolacek at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-06-23 13:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61553

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-06-23
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |4.10.0
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Taking.  Andrew M. has provided a patch on gcc@.


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

* [Bug c/61553] __atomic_store with non-pointer arg ICE
  2014-06-18 18:12 [Bug c/61553] New: __atomic_store with non-pointer arg ICE bstarynk at gcc dot gnu.org
  2014-06-23 13:38 ` [Bug c/61553] " mpolacek at gcc dot gnu.org
@ 2014-06-23 17:00 ` mpolacek at gcc dot gnu.org
  2014-06-23 18:23 ` mpolacek at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-06-23 17:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61553

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.


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

* [Bug c/61553] __atomic_store with non-pointer arg ICE
  2014-06-18 18:12 [Bug c/61553] New: __atomic_store with non-pointer arg ICE bstarynk at gcc dot gnu.org
  2014-06-23 13:38 ` [Bug c/61553] " mpolacek at gcc dot gnu.org
  2014-06-23 17:00 ` mpolacek at gcc dot gnu.org
@ 2014-06-23 18:23 ` mpolacek at gcc dot gnu.org
  2015-01-20 14:18 ` mpolacek at gcc dot gnu.org
  2015-01-20 14:20 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-06-23 18:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61553

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Jun 23 18:23:19 2014
New Revision: 211910

URL: https://gcc.gnu.org/viewcvs?rev=211910&root=gcc&view=rev
Log:
    PR c/61553
    * c-c++-common/pr61553.c (foo): Add dg-error.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/pr61553.c


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

* [Bug c/61553] __atomic_store with non-pointer arg ICE
  2014-06-18 18:12 [Bug c/61553] New: __atomic_store with non-pointer arg ICE bstarynk at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-06-23 18:23 ` mpolacek at gcc dot gnu.org
@ 2015-01-20 14:18 ` mpolacek at gcc dot gnu.org
  2015-01-20 14:20 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-01-20 14:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61553

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Jan 20 14:17:51 2015
New Revision: 219895

URL: https://gcc.gnu.org/viewcvs?rev=219895&root=gcc&view=rev
Log:
    Backport from mainline
    2014-06-23  Marek Polacek  <polacek@redhat.com>

    PR c/61553
    * c-common.c (get_atomic_generic_size): Don't segfault if the
    type doesn't have a size.

    * c-c++-common/pr61553.c: New test.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/pr61553.c
Modified:
    branches/gcc-4_9-branch/gcc/c-family/ChangeLog
    branches/gcc-4_9-branch/gcc/c-family/c-common.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


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

* [Bug c/61553] __atomic_store with non-pointer arg ICE
  2014-06-18 18:12 [Bug c/61553] New: __atomic_store with non-pointer arg ICE bstarynk at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-01-20 14:18 ` mpolacek at gcc dot gnu.org
@ 2015-01-20 14:20 ` mpolacek at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-01-20 14:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61553

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Jan 20 14:19:35 2015
New Revision: 219897

URL: https://gcc.gnu.org/viewcvs?rev=219897&root=gcc&view=rev
Log:
    Backport from mainline
    2014-06-23  Marek Polacek  <polacek@redhat.com>

    PR c/61553
    * c-common.c (get_atomic_generic_size): Don't segfault if the
    type doesn't have a size.

    * c-c++-common/pr61553.c: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/pr61553.c
Modified:
    branches/gcc-4_8-branch/gcc/c-family/ChangeLog
    branches/gcc-4_8-branch/gcc/c-family/c-common.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


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

end of thread, other threads:[~2015-01-20 14:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-18 18:12 [Bug c/61553] New: __atomic_store with non-pointer arg ICE bstarynk at gcc dot gnu.org
2014-06-23 13:38 ` [Bug c/61553] " mpolacek at gcc dot gnu.org
2014-06-23 17:00 ` mpolacek at gcc dot gnu.org
2014-06-23 18:23 ` mpolacek at gcc dot gnu.org
2015-01-20 14:18 ` mpolacek at gcc dot gnu.org
2015-01-20 14:20 ` mpolacek 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).