public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107077] New: ICE in get_expr_operands, at tree-ssa-operands.cc:940
@ 2022-09-28 17:39 gscfq@t-online.de
  2022-09-28 18:15 ` [Bug c/107077] __GIMPLE vs excess precision setting in std C with -m32 on x86_64 (ICE) pinskia at gcc dot gnu.org
  2022-09-29  8:19 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: gscfq@t-online.de @ 2022-09-28 17:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107077
           Summary: ICE in get_expr_operands, at tree-ssa-operands.cc:940
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r9 and file gcc.dg/vect/vect-cond-arith-2.c :


$ gcc-13-20220925 -c vect-cond-arith-2.c -m32 -std=c89 -fgimple
unhandled expression in get_expr_operands():
 <excess_precision_expr 0x7ff51adef5c0
    type <real_type 0x7ff51aceb498 double DF
        size <integer_cst 0x7ff51acc4dc8 constant 64>
        unit-size <integer_cst 0x7ff51acc4de0 constant 8>
        align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ff51aceb498 precision:64
        pointer_to_this <pointer_type 0x7ff51aceba80>>

    arg:0 <real_cst 0x7ff51ae13900
        type <real_type 0x7ff51aceb540 long double XF
            size <integer_cst 0x7ff51ace7240 constant 96>
            unit-size <integer_cst 0x7ff51ace7258 constant 12>
            align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ff51aceb540 precision:80
            pointer_to_this <pointer_type 0x7ff51acebb28>>
        constant 0.0>
    vect-cond-arith-2.c:20:25 start: vect-cond-arith-2.c:20:25 finish:
vect-cond-arith-2.c:20:27>

vect-cond-arith-2.c: In function 'neg_xi':
vect-cond-arith-2.c:36:2: internal compiler error: in get_expr_operands, at
tree-ssa-operands.cc:940
   36 |  __BB(3):
      |  ^~~~
0x10bcb61 operands_scanner::get_expr_operands(tree_node**, int)
        ../../gcc/tree-ssa-operands.cc:940
0x10bd8d5 operands_scanner::parse_ssa_operands()
        ../../gcc/tree-ssa-operands.cc:990
0x10bee21 operands_scanner::build_ssa_operands()
        ../../gcc/tree-ssa-operands.cc:1005
0x10bf650 update_stmt_operands(function*, gimple*)
        ../../gcc/tree-ssa-operands.cc:1147
0xb35df4 update_stmt_if_modified
        ../../gcc/gimple-ssa.h:185
0xb35df4 update_modified_stmts(gimple*)
        ../../gcc/gimple-iterator.cc:58
0xb35f14 gsi_insert_seq_after(gimple_stmt_iterator*, gimple*,
gsi_iterator_update)
        ../../gcc/gimple-iterator.cc:332
0x85b5bb c_parser_gimple_compound_statement
        ../../gcc/c/gimple-parser.cc:584
0x85cbf9 c_parser_parse_gimple_body(c_parser*, char*, c_declspec_il,
profile_count)
        ../../gcc/c/gimple-parser.cc:253
0x84626c c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.cc:2548
0x85141f c_parser_external_declaration
        ../../gcc/c/c-parser.cc:1789
0x851d4b c_parser_translation_unit
        ../../gcc/c/c-parser.cc:1662
0x851d4b c_parse_file()
        ../../gcc/c/c-parser.cc:23694
0x8c1631 c_common_parse_file()
        ../../gcc/c-family/c-opts.cc:1255

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

* [Bug c/107077] __GIMPLE vs excess precision setting in std C with -m32 on x86_64 (ICE)
  2022-09-28 17:39 [Bug c/107077] New: ICE in get_expr_operands, at tree-ssa-operands.cc:940 gscfq@t-online.de
@ 2022-09-28 18:15 ` pinskia at gcc dot gnu.org
  2022-09-29  8:19 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-09-28 18:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The problem here is the C front-end adds a wrapper for double, float types (and
sometimes half float types) and the gimple front-end part does not understand
that.

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

* [Bug c/107077] __GIMPLE vs excess precision setting in std C with -m32 on x86_64 (ICE)
  2022-09-28 17:39 [Bug c/107077] New: ICE in get_expr_operands, at tree-ssa-operands.cc:940 gscfq@t-online.de
  2022-09-28 18:15 ` [Bug c/107077] __GIMPLE vs excess precision setting in std C with -m32 on x86_64 (ICE) pinskia at gcc dot gnu.org
@ 2022-09-29  8:19 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-09-29  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
             Blocks|                            |101057
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-09-29

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  We probably need to apply some magic here.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101057
[Bug 101057] [gimplefe] GIMPLE frontend issues

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

end of thread, other threads:[~2022-09-29  8:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-28 17:39 [Bug c/107077] New: ICE in get_expr_operands, at tree-ssa-operands.cc:940 gscfq@t-online.de
2022-09-28 18:15 ` [Bug c/107077] __GIMPLE vs excess precision setting in std C with -m32 on x86_64 (ICE) pinskia at gcc dot gnu.org
2022-09-29  8:19 ` rguenth 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).