public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/110272] New: ICE in as_a, at machmode.h:381
@ 2023-06-15 18:31 19373742 at buaa dot edu.cn
  2023-06-15 18:31 ` [Bug c/110272] " 19373742 at buaa dot edu.cn
  2023-06-15 19:11 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: 19373742 at buaa dot edu.cn @ 2023-06-15 18:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110272
           Summary: ICE in as_a, at machmode.h:381
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 19373742 at buaa dot edu.cn
  Target Milestone: ---

Created attachment 55331
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55331&action=edit
The preprocessed file

*******************************************************************************
OS and Platform:
CentOS Linux release 7.9.2009 (Core), x86_64 GNU/Linux
*******************************************************************************
gcc version:
# /home/gcc-releases/gcc-14-0604/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/home/gcc-releases/gcc-14-0604/bin/gcc
COLLECT_LTO_WRAPPER=/home/gcc-releases/gcc-14-0604/libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/home/gcc-releases/gcc-14-0604/
--disable-multilib --enable-languages=c,c++
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20230604 (experimental) (GCC)
*******************************************************************************
Command Lines:

/home/gcc-releases/gcc-14-0604/bin/gcc -I
/home/csmith_record/include/csmith-2.3.0/  -O3
-fno-aggressive-loop-optimizations -fno-align-functions -fno-align-jumps
-fno-align-labels -fno-align-loops -fno-allocation-dce
-fno-asynchronous-unwind-tables -fno-auto-inc-dec -fno-bit-tests
-fno-branch-count-reg -fno-caller-saves -fno-code-hoisting
-fno-combine-stack-adjustments -fno-compare-elim -fno-cprop-registers
-fno-crossjumping -fno-cse-follow-jumps -fno-dce -fno-defer-pop
-fno-devirtualize -fno-devirtualize-speculatively -fno-dse -fno-early-inlining
-fno-expensive-optimizations -fno-forward-propagate -fno-fp-int-builtin-inexact
-fno-function-cse -fno-gcse -fno-gcse-after-reload -fno-gcse-lm
-fno-guess-branch-probability -fno-hoist-adjacent-loads -fno-if-conversion
-fno-if-conversion2 -fno-indirect-inlining -fno-inline -fno-inline-atomics
-fno-inline-functions -fno-inline-functions-called-once
-fno-inline-small-functions -fno-ipa-bit-cp -fno-ipa-cp -fno-ipa-cp-clone
-fno-ipa-icf -fno-ipa-icf-functions -fno-ipa-icf-variables -fno-ipa-modref
-fno-ipa-profile -fno-ipa-pure-const -fno-ipa-ra -fno-ipa-reference
-fno-ipa-reference-addressable -fno-ipa-sra -fno-ipa-stack-alignment
-fno-ipa-strict-aliasing -fno-ipa-vrp -fno-ira-hoist-pressure
-fno-ira-share-save-slots -fno-ira-share-spill-slots
-fno-isolate-erroneous-paths-dereference -fno-ivopts -fno-jump-tables
-fno-lifetime-dse -fno-loop-interchange -fno-loop-unroll-and-jam -fno-lra-remat
-fno-math-errno -fno-move-loop-invariants -fno-move-loop-stores
-fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-optimize-strlen
-fno-partial-inlining -fno-peel-loops -fno-peephole -fno-peephole2 -fno-plt
-fno-predictive-commoning -fno-printf-return-value -fno-ree
-fno-reg-struct-return -fno-reorder-blocks -fno-reorder-blocks-and-partition
-fno-reorder-functions -fno-rerun-cse-after-loop
-fno-sched-critical-path-heuristic -fno-sched-dep-count-heuristic
-fno-sched-group-heuristic -fno-sched-interblock -fno-sched-last-insn-heuristic
-fno-sched-rank-heuristic -fno-sched-spec -fno-sched-spec-insn-heuristic
-fno-sched-stalled-insns-dep -fno-schedule-fusion -fno-schedule-insns2
-fno-semantic-interposition -fno-short-enums -fno-shrink-wrap
-fno-shrink-wrap-separate -fno-signed-zeros -fno-split-ivs-in-unroller
-fno-split-loops -fno-split-paths -fno-split-wide-types -fno-ssa-backprop
-fno-ssa-phiopt -fno-stdarg-opt -fno-store-merging -fno-strict-aliasing
-fno-thread-jumps -fno-toplevel-reorder -fno-trapping-math -fno-tree-bit-ccp
-fno-tree-builtin-call-dce -fno-tree-ccp -fno-tree-ch -fno-tree-coalesce-vars
-fno-tree-copy-prop -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse
-fno-tree-forwprop -fno-tree-fre -fno-tree-loop-distribute-patterns
-fno-tree-loop-distribution -fno-tree-loop-im -fno-tree-loop-ivcanon
-fno-tree-loop-optimize -fno-tree-loop-vectorize -fno-tree-partial-pre
-fno-tree-phiprop -fno-tree-pre -fno-tree-pta -fno-tree-reassoc
-fno-tree-scev-cprop -fno-tree-sink -fno-tree-slp-vectorize -fno-tree-slsr
-fno-tree-sra -fno-tree-switch-conversion -fno-tree-tail-merge -fno-tree-ter
-fno-tree-vrp -fno-unroll-completely-grow-size -fno-unroll-loops
-fno-unswitch-loops -fno-unwind-tables -fno-version-loops-for-strides
-faggressive-loop-optimizations -fno-align-functions -falign-jumps
-fno-align-labels -fno-align-loops -fallocation-dce
-fasynchronous-unwind-tables -fauto-inc-dec -fno-bit-tests -fbranch-count-reg
-fno-caller-saves -fno-code-hoisting -fno-combine-stack-adjustments
-fno-compare-elim -fcprop-registers -fcrossjumping -fcse-follow-jumps -fno-dce
-fno-defer-pop -fdevirtualize -fno-devirtualize-speculatively -fdse
-fno-early-inlining -fno-expensive-optimizations -fno-forward-propagate
-ffp-int-builtin-inexact -fno-function-cse -fgcse -fgcse-after-reload
-fno-gcse-lm -fguess-branch-probability -fhoist-adjacent-loads -fif-conversion
-fno-if-conversion2 -findirect-inlining -finline -fno-inline-atomics
-finline-functions -finline-functions-called-once -finline-small-functions
-fno-ipa-bit-cp -fno-ipa-cp -fno-ipa-cp-clone -fipa-icf -fno-ipa-icf-functions
-fipa-icf-variables -fipa-modref -fno-ipa-profile -fipa-pure-const -fipa-ra
-fno-ipa-reference -fno-ipa-reference-addressable -fipa-sra
-fno-ipa-stack-alignment -fno-ipa-strict-aliasing -fno-ipa-vrp
-fno-ira-hoist-pressure -fno-ira-share-save-slots -fno-ira-share-spill-slots
-fno-isolate-erroneous-paths-dereference -fno-ivopts -fjump-tables
-fno-lifetime-dse -floop-interchange -floop-unroll-and-jam -flra-remat
-fno-math-errno -fno-move-loop-invariants -fmove-loop-stores
-fomit-frame-pointer -fno-optimize-sibling-calls -fno-optimize-strlen
-fno-partial-inlining -fpeel-loops -fno-peephole -fpeephole2 -fno-plt
-fpredictive-commoning -fno-printf-return-value -free -freg-struct-return
-freorder-blocks -fno-reorder-blocks-and-partition -freorder-functions
-fno-rerun-cse-after-loop -fno-sched-critical-path-heuristic
-fsched-dep-count-heuristic -fsched-group-heuristic -fno-sched-interblock
-fno-sched-last-insn-heuristic -fno-sched-rank-heuristic -fsched-spec
-fno-sched-spec-insn-heuristic -fno-sched-stalled-insns-dep
-fno-schedule-fusion -fschedule-insns2 -fsemantic-interposition -fshort-enums
-fshrink-wrap -fno-shrink-wrap-separate -fno-signed-zeros
-fsplit-ivs-in-unroller -fno-split-loops -fno-split-paths -fno-split-wide-types
-fno-ssa-backprop -fno-ssa-phiopt -fno-stdarg-opt -fstore-merging
-fstrict-aliasing -fthread-jumps -fno-toplevel-reorder -ftrapping-math
-fno-tree-bit-ccp -fno-tree-builtin-call-dce -fno-tree-ccp -fno-tree-ch
-ftree-coalesce-vars -fno-tree-copy-prop -fno-tree-dce -fno-tree-dominator-opts
-ftree-dse -fno-tree-forwprop -fno-tree-fre -fno-tree-loop-distribute-patterns
-fno-tree-loop-distribution -ftree-loop-im -fno-tree-loop-ivcanon
-ftree-loop-optimize -ftree-loop-vectorize -fno-tree-partial-pre
-fno-tree-phiprop -ftree-pre -ftree-pta -fno-tree-reassoc -ftree-scev-cprop
-fno-tree-sink -ftree-slp-vectorize -ftree-slsr -fno-tree-sra
-fno-tree-switch-conversion -fno-tree-tail-merge -ftree-ter -fno-tree-vrp
-funroll-completely-grow-size -funroll-loops -funswitch-loops -funwind-tables
-fversion-loops-for-strides -save-temps t.c -o t.o 2>t_error.txt
*******************************************************************************
Error Messages:
during RTL pass: expand
t.c: In function ‘func_1’:
t.c:172:17: internal compiler error: in as_a, at machmode.h:381
  172 | static uint32_t  func_1(void)
      |                 ^~~~~~
0x732418 scalar_int_mode as_a<scalar_int_mode>(machine_mode)
        ../.././gcc/machmode.h:381
0x7347c0 scalar_int_mode as_a<scalar_int_mode>(machine_mode)
        ../.././gcc/expr.cc:12939
0x7347c0 expand_single_bit_test
        ../.././gcc/expr.cc:12914
0x7347c0 do_store_flag
        ../.././gcc/expr.cc:13193
0xb75ce3 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../.././gcc/expr.cc:10251
0xb7d14c expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../.././gcc/expr.cc:10800
0xacd1bb expand_normal(tree_node*)
        ../.././gcc/expr.h:316
0xacd1bb do_jump
        ../.././gcc/dojump.cc:608
0xb775af expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../.././gcc/expr.cc:10540
0xa575a1 expand_gimple_stmt_1
        ../.././gcc/cfgexpand.cc:3983
0xa575a1 expand_gimple_stmt
        ../.././gcc/cfgexpand.cc:4044
0xa5d606 expand_gimple_basic_block
        ../.././gcc/cfgexpand.cc:6106
0xa5ee9f execute
        ../.././gcc/cfgexpand.cc:6841
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug c/110272] ICE in as_a, at machmode.h:381
  2023-06-15 18:31 [Bug c/110272] New: ICE in as_a, at machmode.h:381 19373742 at buaa dot edu.cn
@ 2023-06-15 18:31 ` 19373742 at buaa dot edu.cn
  2023-06-15 19:11 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: 19373742 at buaa dot edu.cn @ 2023-06-15 18:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CTC <19373742 at buaa dot edu.cn> ---
Created attachment 55332
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55332&action=edit
The compiler output

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

* [Bug c/110272] ICE in as_a, at machmode.h:381
  2023-06-15 18:31 [Bug c/110272] New: ICE in as_a, at machmode.h:381 19373742 at buaa dot edu.cn
  2023-06-15 18:31 ` [Bug c/110272] " 19373742 at buaa dot edu.cn
@ 2023-06-15 19:11 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-15 19:11 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is a dup of bug 110117. Confirmed that patch fixes the ICE here.

*** This bug has been marked as a duplicate of bug 110117 ***

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

end of thread, other threads:[~2023-06-15 19:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-15 18:31 [Bug c/110272] New: ICE in as_a, at machmode.h:381 19373742 at buaa dot edu.cn
2023-06-15 18:31 ` [Bug c/110272] " 19373742 at buaa dot edu.cn
2023-06-15 19:11 ` pinskia 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).