public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104967] New: ICE: Segmentation fault (in find_instance)
@ 2022-03-17 12:36 asolokha at gmx dot com
  2022-03-23  2:46 ` [Bug target/104967] " linkw at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: asolokha at gmx dot com @ 2022-03-17 12:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104967
           Summary: ICE: Segmentation fault (in find_instance)
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpc-e300c3-linux-gnu

gcc 12.0.1 20220313 snapshot (g:7e28750395889d16a9cba49cd5935ced7dc00ce8) ICEs
when compiling the following testcase, reduced from
gcc/testsuite/gcc.target/powerpc/float128-hw4.c, for 32-bit BE target:

long double
set_float128_exponent_float128 (long double a, int e)
{
  return __builtin_vec_scalar_insert_exp (a, e);
}

% powerpc-e300c3-linux-gnu-gcc-12.0.1 -c iudcdop7.c
iudcdop7.c: In function 'set_float128_exponent_float128':
iudcdop7.c:4:3: internal compiler error: Segmentation fault
    4 |   return __builtin_vec_scalar_insert_exp (a, e);
      |   ^~~~~~
0xe3e12f crash_signal
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/toplev.cc:322
0x8f5e88 tree_check2(tree_node*, char const*, int, char const*, tree_code,
tree_code)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/tree.h:3467
0x8f5e88 find_instance(bool*, ovlddata**, rs6000_gen_builtins,
rs6000_gen_builtins, tree_node**, tree_node**)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/config/rs6000/rs6000-c.cc:1690
0x8f692c altivec_resolve_overloaded_builtin(unsigned int, tree_node*, void*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/config/rs6000/rs6000-c.cc:1951
0x81e3d4 c_build_function_call_vec(unsigned int, vec<unsigned int, va_heap,
vl_ptr> const&, tree_node*, vec<tree_node*, va_gc, vl_embed>*, vec<tree_node*,
va_gc, vl_embed>*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-typeck.cc:3268
0x83fdd7 c_parser_postfix_expression_after_primary
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:10561
0x836f98 c_parser_postfix_expression
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:10234
0x83b47a c_parser_unary_expression
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:8261
0x83cc51 c_parser_cast_expression
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:8103
0x83cee1 c_parser_binary_expression
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:7906
0x83e3ae c_parser_conditional_expression
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:7606
0x83ec00 c_parser_expr_no_commas
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:7521
0x83ee91 c_parser_expression
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:10697
0x83f668 c_parser_expression_conv
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:10736
0x8351cb c_parser_statement_after_labels
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:6173
0x836ada c_parser_compound_statement_nostart
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:5800
0x8573e5 c_parser_compound_statement
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:5609
0x858f78 c_parser_declaration_or_fndef
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:2544
0x861363 c_parser_external_declaration
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:1779
0x861dbb c_parser_translation_unit
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/c/c-parser.cc:1652

I'm not sure if it is related to PR104482.

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

* [Bug target/104967] ICE: Segmentation fault (in find_instance)
  2022-03-17 12:36 [Bug target/104967] New: ICE: Segmentation fault (in find_instance) asolokha at gmx dot com
@ 2022-03-23  2:46 ` linkw at gcc dot gnu.org
  2022-03-23  9:34 ` linkw at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: linkw at gcc dot gnu.org @ 2022-03-23  2:46 UTC (permalink / raw)
  To: gcc-bugs

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

Kewen Lin <linkw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-03-23
           Assignee|unassigned at gcc dot gnu.org      |linkw at gcc dot gnu.org
     Ever confirmed|0                           |1
                 CC|                            |linkw at gcc dot gnu.org
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #1 from Kewen Lin <linkw at gcc dot gnu.org> ---
Confirmed, it's not a dup of PR104482.

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

* [Bug target/104967] ICE: Segmentation fault (in find_instance)
  2022-03-17 12:36 [Bug target/104967] New: ICE: Segmentation fault (in find_instance) asolokha at gmx dot com
  2022-03-23  2:46 ` [Bug target/104967] " linkw at gcc dot gnu.org
@ 2022-03-23  9:34 ` linkw at gcc dot gnu.org
  2022-03-24  1:47 ` cvs-commit at gcc dot gnu.org
  2022-03-24  2:09 ` linkw at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: linkw at gcc dot gnu.org @ 2022-03-23  9:34 UTC (permalink / raw)
  To: gcc-bugs

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

Kewen Lin <linkw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://gcc.gnu.org/piperma
                   |                            |il/gcc-patches/2022-March/5
                   |                            |92167.html

--- Comment #2 from Kewen Lin <linkw at gcc dot gnu.org> ---
The fix was just posted at
https://gcc.gnu.org/pipermail/gcc-patches/2022-March/592167.html

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

* [Bug target/104967] ICE: Segmentation fault (in find_instance)
  2022-03-17 12:36 [Bug target/104967] New: ICE: Segmentation fault (in find_instance) asolokha at gmx dot com
  2022-03-23  2:46 ` [Bug target/104967] " linkw at gcc dot gnu.org
  2022-03-23  9:34 ` linkw at gcc dot gnu.org
@ 2022-03-24  1:47 ` cvs-commit at gcc dot gnu.org
  2022-03-24  2:09 ` linkw at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-24  1:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kewen Lin <linkw@gcc.gnu.org>:

https://gcc.gnu.org/g:497bde3ab92b2c292f78672db341bbb7cc1bcf1f

commit r12-7792-g497bde3ab92b2c292f78672db341bbb7cc1bcf1f
Author: Kewen Lin <linkw@linux.ibm.com>
Date:   Wed Mar 23 20:46:06 2022 -0500

    rs6000: Skip overload instances with NULL fntype [PR104967]

    For some overload built-in function instance, if it requires
    a data type which isn't defined on the target, its fntype
    would be initialized as NULL.  This patch is to consider
    this possibility in function find_instance, as shown in
    PR104967.

            PR target/104967

    gcc/ChangeLog:

            * config/rs6000/rs6000-c.cc (find_instance): Skip instances with
null
            function types.

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

* [Bug target/104967] ICE: Segmentation fault (in find_instance)
  2022-03-17 12:36 [Bug target/104967] New: ICE: Segmentation fault (in find_instance) asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2022-03-24  1:47 ` cvs-commit at gcc dot gnu.org
@ 2022-03-24  2:09 ` linkw at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: linkw at gcc dot gnu.org @ 2022-03-24  2:09 UTC (permalink / raw)
  To: gcc-bugs

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

Kewen Lin <linkw at gcc dot gnu.org> changed:

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

--- Comment #4 from Kewen Lin <linkw at gcc dot gnu.org> ---
Should be fixed on trunk.

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

end of thread, other threads:[~2022-03-24  2:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17 12:36 [Bug target/104967] New: ICE: Segmentation fault (in find_instance) asolokha at gmx dot com
2022-03-23  2:46 ` [Bug target/104967] " linkw at gcc dot gnu.org
2022-03-23  9:34 ` linkw at gcc dot gnu.org
2022-03-24  1:47 ` cvs-commit at gcc dot gnu.org
2022-03-24  2:09 ` linkw 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).