public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/99679] New: [11 Regression] ICE in construct_container at gcc/config/i386/i386.c:2571 since g:5e2eabe1eed1e53d39923517122d3c7de2013ad4
@ 2021-03-20 10:07 marxin at gcc dot gnu.org
  2021-03-20 10:07 ` [Bug target/99679] " marxin at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-03-20 10:07 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99679
           Summary: [11 Regression] ICE in construct_container at
                    gcc/config/i386/i386.c:2571 since
                    g:5e2eabe1eed1e53d39923517122d3c7de2013ad4
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: hjl.tools at gmail dot com
  Target Milestone: ---

The following fails:

$ ./xgcc -B.
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ext/va-arg-pack-1.C -Ofast
-fipa-pta -mno-80387 -c
during IPA pass: pta
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/ext/va-arg-pack-1.C:145:1:
internal compiler error: Segmentation fault
  145 | }
      | ^
0x172225c crash_signal
        /home/marxin/Programming/gcc/gcc/toplev.c:327
0x7ffff789452f ???
       
/usr/src/debug/glibc-2.33-4.1.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x1c2f379 construct_container
        /home/marxin/Programming/gcc/gcc/config/i386/i386.c:2571
0x1c33420 function_value_64
        /home/marxin/Programming/gcc/gcc/config/i386/i386.c:3970
0x1c33a11 ix86_function_value_1
        /home/marxin/Programming/gcc/gcc/config/i386/i386.c:4055
0x1c33abc ix86_function_value
        /home/marxin/Programming/gcc/gcc/config/i386/i386.c:4067
0x11a3cbf hard_function_value(tree_node const*, tree_node const*, tree_node
const*, int)
        /home/marxin/Programming/gcc/gcc/explow.c:2244
0x126d89c aggregate_value_p(tree_node const*, tree_node const*)
        /home/marxin/Programming/gcc/gcc/function.c:2122
0x1a15d33 find_func_aliases_for_call
        /home/marxin/Programming/gcc/gcc/tree-ssa-structalias.c:4933
0x1a16107 find_func_aliases
        /home/marxin/Programming/gcc/gcc/tree-ssa-structalias.c:5010
0x1a20068 ipa_pta_execute
        /home/marxin/Programming/gcc/gcc/tree-ssa-structalias.c:8298
0x1a20f98 execute
        /home/marxin/Programming/gcc/gcc/tree-ssa-structalias.c:8606
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ (gdb) bt
#0  construct_container (mode=E_XFmode, orig_mode=E_XFmode, type=<real_type
0x7ffff76073f0 long double>, in_return=1, nintregs=6, nsseregs=8,
intreg=0x2c90220 <x86_64_int_return_registers>, sse_regno=0) at
/home/marxin/Programming/gcc/gcc/config/i386/i386.c:2571
#1  0x0000000001c33421 in function_value_64 (orig_mode=E_XFmode, mode=E_XFmode,
valtype=<real_type 0x7ffff76073f0 long double>) at
/home/marxin/Programming/gcc/gcc/config/i386/i386.c:3970
#2  0x0000000001c33a12 in ix86_function_value_1 (valtype=<real_type
0x7ffff76073f0 long double>, fntype_or_decl=<tree 0x0>, orig_mode=E_XFmode,
mode=E_XFmode) at /home/marxin/Programming/gcc/gcc/config/i386/i386.c:4055
#3  0x0000000001c33abd in ix86_function_value (valtype=<real_type
0x7ffff76073f0 long double>, fntype_or_decl=<tree 0x0>) at
/home/marxin/Programming/gcc/gcc/config/i386/i386.c:4067
#4  0x00000000011a3cc0 in hard_function_value (valtype=<real_type
0x7ffff76073f0 long double>, func=<tree 0x0>, fntype=<tree 0x0>, outgoing=0) at
/home/marxin/Programming/gcc/gcc/explow.c:2244
#5  0x000000000126d89d in aggregate_value_p (exp=<ssa_name 0x7ffff778dab0 18>,
fntype=<tree 0x0>) at /home/marxin/Programming/gcc/gcc/function.c:2122
#6  0x0000000001a15d34 in find_func_aliases_for_call (fn=0x7ffff77600b8,
t=0x7ffff7777130) at
/home/marxin/Programming/gcc/gcc/tree-ssa-structalias.c:4933
#7  0x0000000001a16108 in find_func_aliases (fn=0x7ffff77600b8,
origt=<gimple_call 0x7ffff7777130>) at
/home/marxin/Programming/gcc/gcc/tree-ssa-structalias.c:5010
#8  0x0000000001a20069 in ipa_pta_execute () at
/home/marxin/Programming/gcc/gcc/tree-ssa-structalias.c:8298
#9  0x0000000001a20f99 in (anonymous namespace)::pass_ipa_pta::execute
(this=0x390ba30) at
/home/marxin/Programming/gcc/gcc/tree-ssa-structalias.c:8606
#10 0x00000000015cf140 in execute_one_pass (pass=<opt_pass* 0x390ba30
"pta"(98)>) at /home/marxin/Programming/gcc/gcc/passes.c:2567
#11 0x00000000015d0251 in execute_ipa_pass_list (pass=<opt_pass* 0x390ba30
"pta"(98)>) at /home/marxin/Programming/gcc/gcc/passes.c:2996
#12 0x00000000010879be in symbol_table::compile (this=0x7ffff75e5000) at
/home/marxin/Programming/gcc/gcc/cgraphunit.c:2325
#13 0x0000000001087e63 in symbol_table::finalize_compilation_unit
(this=0x7ffff75e5000) at /home/marxin/Programming/gcc/gcc/cgraphunit.c:2543
#14 0x00000000017227ba in compile_file () at
/home/marxin/Programming/gcc/gcc/toplev.c:482
#15 0x0000000001726475 in do_compile () at
/home/marxin/Programming/gcc/gcc/toplev.c:2201
#16 0x0000000001726809 in toplev::main (this=0x7fffffffdc8e, argc=22,
argv=0x7fffffffdd98) at /home/marxin/Programming/gcc/gcc/toplev.c:2340
#17 0x000000000297caae in main (argc=22, argv=0x7fffffffdd98) at
/home/marxin/Programming/gcc/gcc/main.c:39
(gdb) p cfun
$1 = (function *) 0x0

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

* [Bug target/99679] [11 Regression] ICE in construct_container at gcc/config/i386/i386.c:2571 since g:5e2eabe1eed1e53d39923517122d3c7de2013ad4
  2021-03-20 10:07 [Bug target/99679] New: [11 Regression] ICE in construct_container at gcc/config/i386/i386.c:2571 since g:5e2eabe1eed1e53d39923517122d3c7de2013ad4 marxin at gcc dot gnu.org
@ 2021-03-20 10:07 ` marxin at gcc dot gnu.org
  2021-03-20 17:12 ` cvs-commit at gcc dot gnu.org
  2021-03-20 17:12 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-03-20 10:07 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-03-20
   Target Milestone|---                         |11.0
      Known to fail|                            |11.0
           Priority|P3                          |P1
     Ever confirmed|0                           |1
      Known to work|                            |10.2.0
             Status|UNCONFIRMED                 |NEW

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

* [Bug target/99679] [11 Regression] ICE in construct_container at gcc/config/i386/i386.c:2571 since g:5e2eabe1eed1e53d39923517122d3c7de2013ad4
  2021-03-20 10:07 [Bug target/99679] New: [11 Regression] ICE in construct_container at gcc/config/i386/i386.c:2571 since g:5e2eabe1eed1e53d39923517122d3c7de2013ad4 marxin at gcc dot gnu.org
  2021-03-20 10:07 ` [Bug target/99679] " marxin at gcc dot gnu.org
@ 2021-03-20 17:12 ` cvs-commit at gcc dot gnu.org
  2021-03-20 17:12 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-20 17:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:19ff0b0d816e6e7d7657a8559e9957d79dc1d77f

commit r11-7751-g19ff0b0d816e6e7d7657a8559e9957d79dc1d77f
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sat Mar 20 05:17:36 2021 -0700

    x86: Check cfun != NULL before accessing silent_p

    Since construct_container may be called with cfun == NULL, check
    cfun != NULL before accessing silent_p.

    gcc/

            PR target/99679
            * config/i386/i386.c (construct_container): Check cfun != NULL
            before accessing silent_p.

    gcc/testsuite/

            PR target/99679
            * g++.target/i386/pr99679-1.C: New test.
            * g++.target/i386/pr99679-2.C: Likewise.

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

* [Bug target/99679] [11 Regression] ICE in construct_container at gcc/config/i386/i386.c:2571 since g:5e2eabe1eed1e53d39923517122d3c7de2013ad4
  2021-03-20 10:07 [Bug target/99679] New: [11 Regression] ICE in construct_container at gcc/config/i386/i386.c:2571 since g:5e2eabe1eed1e53d39923517122d3c7de2013ad4 marxin at gcc dot gnu.org
  2021-03-20 10:07 ` [Bug target/99679] " marxin at gcc dot gnu.org
  2021-03-20 17:12 ` cvs-commit at gcc dot gnu.org
@ 2021-03-20 17:12 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-20 17:12 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.

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

end of thread, other threads:[~2021-03-20 17:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-20 10:07 [Bug target/99679] New: [11 Regression] ICE in construct_container at gcc/config/i386/i386.c:2571 since g:5e2eabe1eed1e53d39923517122d3c7de2013ad4 marxin at gcc dot gnu.org
2021-03-20 10:07 ` [Bug target/99679] " marxin at gcc dot gnu.org
2021-03-20 17:12 ` cvs-commit at gcc dot gnu.org
2021-03-20 17:12 ` hjl.tools at gmail dot com

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).