public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102281] New: -ftrivial-auto-var-init=zero causes ice
@ 2021-09-10 18:50 dcb314 at hotmail dot com
  2021-09-13 10:23 ` [Bug c++/102281] " rguenth at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: dcb314 at hotmail dot com @ 2021-09-10 18:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102281
           Summary: -ftrivial-auto-var-init=zero causes ice
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C++ code:

long _mm_set_epi64x___q0;
__attribute__((__vector_size__(2 * sizeof(long)))) long long _mm_set_epi64x() {
  return (__attribute__((__vector_size__(2 * sizeof(long)))) long long){
      _mm_set_epi64x___q0};
}

compiled by recent gcc and compiler flag -ftrivial-auto-var-init=zero,
does this:

$ /home/dcb/gcc/results/bin/gcc  -ftrivial-auto-var-init=zero bug756.cc
bug756.cc: In function ‘__vector(2) long long int _mm_set_epi64x()’:
bug756.cc:2:62: error: invalid operand in return statement
    2 | _attribute__((__vector_size__(2 * sizeof(long)))) long long
_mm_set_epi64x() {
      |                                                            
^~~~~~~~~~~~~~

D.2371

return D.2371;
bug756.cc:2:62: internal compiler error: ‘verify_gimple’ failed
0x105dc3a verify_gimple_in_seq(gimple*)
        ../../trunk.git/gcc/tree-cfg.c:5228

Taking the new flag off causes the code to compile ok:

$ /home/dcb/gcc/results/bin/gcc -c  bug756.cc
$

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

end of thread, other threads:[~2021-11-01 15:17 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10 18:50 [Bug c++/102281] New: -ftrivial-auto-var-init=zero causes ice dcb314 at hotmail dot com
2021-09-13 10:23 ` [Bug c++/102281] " rguenth at gcc dot gnu.org
2021-09-13 10:37 ` jakub at gcc dot gnu.org
2021-09-13 11:08 ` rguenther at suse dot de
2021-09-13 11:13 ` jakub at gcc dot gnu.org
2021-09-13 12:03 ` rguenther at suse dot de
2021-09-13 13:18 ` jakub at gcc dot gnu.org
2021-10-11 20:14 ` qinzhao at gcc dot gnu.org
2021-10-11 20:29 ` jakub at gcc dot gnu.org
2021-10-11 20:48 ` dcb314 at hotmail dot com
2021-10-11 21:54 ` qing.zhao at oracle dot com
2021-10-12 14:50 ` qinzhao at gcc dot gnu.org
2021-10-12 15:28 ` qinzhao at gcc dot gnu.org
2021-10-12 17:38 ` dcb314 at hotmail dot com
2021-10-13 22:08 ` qinzhao at gcc dot gnu.org
2021-10-15 15:24 ` qinzhao at gcc dot gnu.org
2021-10-25 14:53 ` qinzhao at gcc dot gnu.org
2021-11-01 15:14 ` cvs-commit at gcc dot gnu.org
2021-11-01 15:16 ` qinzhao at gcc dot gnu.org
2021-11-01 15:17 ` qinzhao 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).