* [Bug c/105970] ICE in ix86_function_arg, at config/i386/i386.cc:3351
2022-06-14 10:25 [Bug c/105970] New: ICE in ix86_function_arg, at config/i386/i386.cc:3351 gscfq@t-online.de
@ 2022-06-14 11:55 ` ubizjak at gmail dot com
2022-06-14 15:12 ` hjl.tools at gmail dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ubizjak at gmail dot com @ 2022-06-14 11:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105970
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-06-14
CC| |hjl.tools at gmail dot com
Ever confirmed|0 |1
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Probably something like:
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index 3d189e124e4..f158cc3aaea 100644
--- a/gcc/config/i386/i386.cc
+++ b/gcc/config/i386/i386.cc
@@ -3348,7 +3348,7 @@ ix86_function_arg (cumulative_args_t cum_v, const
function_arg_info &arg)
if (POINTER_TYPE_P (arg.type))
{
/* This is the pointer argument. */
- gcc_assert (TYPE_MODE (arg.type) == Pmode);
+ gcc_assert (TYPE_MODE (arg.type) == ptr_mode);
/* It is at -WORD(AP) in the current frame in interrupt and
exception handlers. */
reg = plus_constant (Pmode, arg_pointer_rtx, -UNITS_PER_WORD);
Pointer mode and Pmode can be distinct for x32 target. However, I have no idea
what goes into interrupt frame for x32. Let's ask HJ.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/105970] ICE in ix86_function_arg, at config/i386/i386.cc:3351
2022-06-14 10:25 [Bug c/105970] New: ICE in ix86_function_arg, at config/i386/i386.cc:3351 gscfq@t-online.de
2022-06-14 11:55 ` [Bug c/105970] " ubizjak at gmail dot com
@ 2022-06-14 15:12 ` hjl.tools at gmail dot com
2022-06-17 15:02 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2022-06-14 15:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105970
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Uroš Bizjak from comment #1)
> Probably something like:
>
> diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
> index 3d189e124e4..f158cc3aaea 100644
> --- a/gcc/config/i386/i386.cc
> +++ b/gcc/config/i386/i386.cc
> @@ -3348,7 +3348,7 @@ ix86_function_arg (cumulative_args_t cum_v, const
> function_arg_info &arg)
> if (POINTER_TYPE_P (arg.type))
> {
> /* This is the pointer argument. */
> - gcc_assert (TYPE_MODE (arg.type) == Pmode);
> + gcc_assert (TYPE_MODE (arg.type) == ptr_mode);
This looks reasonable since pointer mode should be ptr_mode.
> /* It is at -WORD(AP) in the current frame in interrupt and
> exception handlers. */
> reg = plus_constant (Pmode, arg_pointer_rtx, -UNITS_PER_WORD);
>
> Pointer mode and Pmode can be distinct for x32 target. However, I have no
> idea what goes into interrupt frame for x32. Let's ask HJ.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/105970] ICE in ix86_function_arg, at config/i386/i386.cc:3351
2022-06-14 10:25 [Bug c/105970] New: ICE in ix86_function_arg, at config/i386/i386.cc:3351 gscfq@t-online.de
2022-06-14 11:55 ` [Bug c/105970] " ubizjak at gmail dot com
2022-06-14 15:12 ` hjl.tools at gmail dot com
@ 2022-06-17 15:02 ` cvs-commit at gcc dot gnu.org
2022-06-20 18:33 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-06-17 15:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105970
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Uros Bizjak <uros@gcc.gnu.org>:
https://gcc.gnu.org/g:1f8278bfcfc7f7157bf2b405471e67dd5097636b
commit r13-1156-g1f8278bfcfc7f7157bf2b405471e67dd5097636b
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Fri Jun 17 17:01:31 2022 +0200
i386: Fix assert in ix86_function_arg [PR105970]
The mode of pointer argument should equal ptr_mode, not Pmode.
2022-06-17 Uroš Bizjak <ubizjak@gmail.com>
gcc/ChangeLog:
PR target/105970
* config/i386/i386.cc (ix86_function_arg): Assert that
the mode of pointer argumet is equal to ptr_mode, not Pmode.
gcc/testsuite/ChangeLog:
PR target/105970
* gcc.target/i386/pr105970.c: New test.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/105970] ICE in ix86_function_arg, at config/i386/i386.cc:3351
2022-06-14 10:25 [Bug c/105970] New: ICE in ix86_function_arg, at config/i386/i386.cc:3351 gscfq@t-online.de
` (2 preceding siblings ...)
2022-06-17 15:02 ` cvs-commit at gcc dot gnu.org
@ 2022-06-20 18:33 ` cvs-commit at gcc dot gnu.org
2022-06-20 20:06 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-06-20 18:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105970
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Uros Bizjak <uros@gcc.gnu.org>:
https://gcc.gnu.org/g:ddc9b963ab9f267e8cc54be1fa6fcca2e8b0eb84
commit r12-8498-gddc9b963ab9f267e8cc54be1fa6fcca2e8b0eb84
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Fri Jun 17 17:01:31 2022 +0200
i386: Fix assert in ix86_function_arg [PR105970]
The mode of pointer argument should equal ptr_mode, not Pmode.
2022-06-17 Uroš Bizjak <ubizjak@gmail.com>
gcc/ChangeLog:
PR target/105970
* config/i386/i386.cc (ix86_function_arg): Assert that
the mode of pointer argumet is equal to ptr_mode, not Pmode.
gcc/testsuite/ChangeLog:
PR target/105970
* gcc.target/i386/pr105970.c: New test.
(cherry picked from commit 1f8278bfcfc7f7157bf2b405471e67dd5097636b)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/105970] ICE in ix86_function_arg, at config/i386/i386.cc:3351
2022-06-14 10:25 [Bug c/105970] New: ICE in ix86_function_arg, at config/i386/i386.cc:3351 gscfq@t-online.de
` (3 preceding siblings ...)
2022-06-20 18:33 ` cvs-commit at gcc dot gnu.org
@ 2022-06-20 20:06 ` cvs-commit at gcc dot gnu.org
2022-06-20 20:32 ` cvs-commit at gcc dot gnu.org
2022-06-20 20:36 ` [Bug target/105970] " ubizjak at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-06-20 20:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105970
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Uros Bizjak <uros@gcc.gnu.org>:
https://gcc.gnu.org/g:84fe5ace4734cb0eeb342114e744455a7178b0e2
commit r11-10082-g84fe5ace4734cb0eeb342114e744455a7178b0e2
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Fri Jun 17 17:01:31 2022 +0200
i386: Fix assert in ix86_function_arg [PR105970]
The mode of pointer argument should equal ptr_mode, not Pmode.
2022-06-17 Uroš Bizjak <ubizjak@gmail.com>
gcc/ChangeLog:
PR target/105970
* config/i386/i386.c (ix86_function_arg): Assert that
the mode of pointer argumet is equal to ptr_mode, not Pmode.
gcc/testsuite/ChangeLog:
PR target/105970
* gcc.target/i386/pr105970.c: New test.
(cherry picked from commit 1f8278bfcfc7f7157bf2b405471e67dd5097636b)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/105970] ICE in ix86_function_arg, at config/i386/i386.cc:3351
2022-06-14 10:25 [Bug c/105970] New: ICE in ix86_function_arg, at config/i386/i386.cc:3351 gscfq@t-online.de
` (4 preceding siblings ...)
2022-06-20 20:06 ` cvs-commit at gcc dot gnu.org
@ 2022-06-20 20:32 ` cvs-commit at gcc dot gnu.org
2022-06-20 20:36 ` [Bug target/105970] " ubizjak at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-06-20 20:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105970
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Uros Bizjak <uros@gcc.gnu.org>:
https://gcc.gnu.org/g:570a6067ff6928fe76bb13cece38346d9a966a13
commit r10-10860-g570a6067ff6928fe76bb13cece38346d9a966a13
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Fri Jun 17 17:01:31 2022 +0200
i386: Fix assert in ix86_function_arg [PR105970]
The mode of pointer argument should equal ptr_mode, not Pmode.
2022-06-17 Uroš Bizjak <ubizjak@gmail.com>
gcc/ChangeLog:
PR target/105970
* config/i386/i386.c (ix86_function_arg): Assert that
the mode of pointer argumet is equal to ptr_mode, not Pmode.
gcc/testsuite/ChangeLog:
PR target/105970
* gcc.target/i386/pr105970.c: New test.
(cherry picked from commit 1f8278bfcfc7f7157bf2b405471e67dd5097636b)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/105970] ICE in ix86_function_arg, at config/i386/i386.cc:3351
2022-06-14 10:25 [Bug c/105970] New: ICE in ix86_function_arg, at config/i386/i386.cc:3351 gscfq@t-online.de
` (5 preceding siblings ...)
2022-06-20 20:32 ` cvs-commit at gcc dot gnu.org
@ 2022-06-20 20:36 ` ubizjak at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: ubizjak at gmail dot com @ 2022-06-20 20:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105970
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Target Milestone|--- |10.4
Component|c |target
Resolution|--- |FIXED
--- Comment #7 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed for gcc-10.4+
^ permalink raw reply [flat|nested] 8+ messages in thread