public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107478] New: ICE compiling for arm-none-eabi during GIMPLE pass: dom
@ 2022-10-31 18:30 jwhitakera at gmail dot com
  2022-10-31 18:31 ` [Bug tree-optimization/107478] " jwhitakera at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jwhitakera at gmail dot com @ 2022-10-31 18:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107478
           Summary: ICE compiling for arm-none-eabi during GIMPLE pass:
                    dom
           Product: gcc
           Version: 11.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jwhitakera at gmail dot com
  Target Milestone: ---

Attempting to compile open source code provided by ST Microelectronics which
resulted in the following crash.

Compiles successfully with: 
arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824
(release)

Fails similarly with: 
GNU C11 (Arm GNU Toolchain 11.3.Rel1) version 11.3.1 20220712 (arm-none-eabi)

Reproduction command:

/path/to/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin/../libexec/gcc/arm-none-eabi/11.3.1/cc1
-fpreprocessed stm32u5xx_hal_dma_ex.i -quiet -mcpu=cortex-m33 -mfpu=fpv5-sp-d16
-mfloat-abi=hard -mthumb -mlibarch=armv8-m.main+dsp+fp
-march=armv8-m.main+dsp+fp -g3 -O2 -Wall -std=gnu11 -version
-ffunction-sections -fdata-sections -o stm32u5xx_hal_dma_ex.s

GNU C11 (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.14))
version 11.2.1 20220111 (arm-none-eabi)
        compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-44), GMP
version 6.2.1, MPFR version 3.1.6, MPC version 1.0.3, isl version
isl-0.15-1-g835ea3a-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C11 (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.14))
version 11.2.1 20220111 (arm-none-eabi)
        compiled by GNU C version 4.8.5 20150623 (Red Hat 4.8.5-44), GMP
version 6.2.1, MPFR version 3.1.6, MPC version 1.0.3, isl version
isl-0.15-1-g835ea3a-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: bbcc971fe1d982fd7c3c6bbfd8b1bd3d
during GIMPLE pass: dom
../Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_dma_ex.c: In function
'HAL_DMAEx_List_InsertNode_Head':
../Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_dma_ex.c:1263:19: internal
compiler error: Segmentation fault
0x7f8c9ad2751f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f8c9ad0ed8f __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7f8c9ad0ee3f __libc_start_main_impl
        ../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.linaro.org/> for instructions.

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

* [Bug tree-optimization/107478] ICE compiling for arm-none-eabi during GIMPLE pass: dom
  2022-10-31 18:30 [Bug c/107478] New: ICE compiling for arm-none-eabi during GIMPLE pass: dom jwhitakera at gmail dot com
@ 2022-10-31 18:31 ` jwhitakera at gmail dot com
  2022-10-31 18:45 ` jwhitakera at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jwhitakera at gmail dot com @ 2022-10-31 18:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jacob Abrams <jwhitakera at gmail dot com> ---
Created attachment 53805
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53805&action=edit
preprocessed file

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

* [Bug tree-optimization/107478] ICE compiling for arm-none-eabi during GIMPLE pass: dom
  2022-10-31 18:30 [Bug c/107478] New: ICE compiling for arm-none-eabi during GIMPLE pass: dom jwhitakera at gmail dot com
  2022-10-31 18:31 ` [Bug tree-optimization/107478] " jwhitakera at gmail dot com
@ 2022-10-31 18:45 ` jwhitakera at gmail dot com
  2022-10-31 18:53 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jwhitakera at gmail dot com @ 2022-10-31 18:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jacob Abrams <jwhitakera at gmail dot com> ---
I mean to say it similarly reproduces with:

GNU C11 (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.14))
version 11.2.1 20220111 (arm-none-eabi)

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

* [Bug tree-optimization/107478] ICE compiling for arm-none-eabi during GIMPLE pass: dom
  2022-10-31 18:30 [Bug c/107478] New: ICE compiling for arm-none-eabi during GIMPLE pass: dom jwhitakera at gmail dot com
  2022-10-31 18:31 ` [Bug tree-optimization/107478] " jwhitakera at gmail dot com
  2022-10-31 18:45 ` jwhitakera at gmail dot com
@ 2022-10-31 18:53 ` pinskia at gcc dot gnu.org
  2022-10-31 18:54 ` pinskia at gcc dot gnu.org
  2022-10-31 18:54 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-31 18:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |11.2.1

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---

0x148781c operator_bitwise_not::fold_range(irange&, tree_node*, irange const&,
irange const&) const
        ???:0
0xe0d0a5 range_fold_unary_expr(int_range<1u>*, tree_code, tree_node*,
int_range<1u> const*, tree_node*)
        ???:0
0xe74ca1 vr_values::extract_range_from_unary_expr(value_range_equiv*,
tree_code, tree_node*, tree_node*)
        ???:0
0xe7f5b8 vr_values::extract_range_from_assignment(value_range_equiv*, gassign*)
        ???:0
0x13ab98e evrp_range_analyzer::record_ranges_from_stmt(gimple*, bool)
        ???:0
0xc7d3ab dom_opt_dom_walker::before_dom_children(basic_block_def*)
        ???:0

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

* [Bug tree-optimization/107478] ICE compiling for arm-none-eabi during GIMPLE pass: dom
  2022-10-31 18:30 [Bug c/107478] New: ICE compiling for arm-none-eabi during GIMPLE pass: dom jwhitakera at gmail dot com
                   ` (2 preceding siblings ...)
  2022-10-31 18:53 ` pinskia at gcc dot gnu.org
@ 2022-10-31 18:54 ` pinskia at gcc dot gnu.org
  2022-10-31 18:54 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-31 18:54 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 106878.

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

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

* [Bug tree-optimization/107478] ICE compiling for arm-none-eabi during GIMPLE pass: dom
  2022-10-31 18:30 [Bug c/107478] New: ICE compiling for arm-none-eabi during GIMPLE pass: dom jwhitakera at gmail dot com
                   ` (3 preceding siblings ...)
  2022-10-31 18:54 ` pinskia at gcc dot gnu.org
@ 2022-10-31 18:54 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-31 18:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The code which is causing the ICE:
    pNewNode->LinkRegisters[cllr_offset] = ((uint32_t)pQList->Head & (0x3FFFUL
<< (2U))) | cllr_mask;

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

end of thread, other threads:[~2022-10-31 18:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-31 18:30 [Bug c/107478] New: ICE compiling for arm-none-eabi during GIMPLE pass: dom jwhitakera at gmail dot com
2022-10-31 18:31 ` [Bug tree-optimization/107478] " jwhitakera at gmail dot com
2022-10-31 18:45 ` jwhitakera at gmail dot com
2022-10-31 18:53 ` pinskia at gcc dot gnu.org
2022-10-31 18:54 ` pinskia at gcc dot gnu.org
2022-10-31 18:54 ` 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).