public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/113194] New: Hangup build ExtractAPIConsumer.cpp at -Og
@ 2024-01-02 4:06 paul.hua.gm at gmail dot com
2024-01-02 4:08 ` [Bug c++/113194] " paul.hua.gm at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: paul.hua.gm at gmail dot com @ 2024-01-02 4:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113194
Bug ID: 113194
Summary: Hangup build ExtractAPIConsumer.cpp at -Og
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: paul.hua.gm at gmail dot com
Target Milestone: ---
build cmd on LoongArch:
cc1plus -fpreprocessed
tools/clang/lib/ExtractAPI/CMakeFiles/obj.clangExtractAPI.dir/ExtractAPIConsumer.cpp.ii
-quiet -dumpdir tools/clang/lib/ExtractAPI/CMakeFiles/obj.clangExtractAPI.dir/
-dumpbase ExtractAPIConsumer.cpp.cpp -dumpbase-ext .cpp -mabi=lp64d
-march=loongarch64 -mfpu=64 -mcmodel=normal -mtune=la464 -g -Og -Og
-Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wno-missing-field-initializers -Wpedantic -Wno-long-long
-Wimplicit-fallthrough=3 -Wno-maybe-uninitialized -Wno-nonnull
-Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move
-Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment
-Wno-misleading-indentation -Wctad-maybe-unsupported -Woverloaded-virtual=2
-std=c++17 -version -fdiagnostics-color=always -fPIC
-fno-semantic-interposition -fvisibility-inlines-hidden -fno-lifetime-dse
-ffunction-sections -fdata-sections -fno-common -fno-strict-aliasing
-fno-exceptions -funwind-tables -fno-rtti -o
tools/clang/lib/ExtractAPI/CMakeFiles/obj.clangExtractAPI.dir/ExtractAPIConsumer.cpp.s
Also Hangup on x86.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/113194] Hangup build ExtractAPIConsumer.cpp at -Og
2024-01-02 4:06 [Bug c++/113194] New: Hangup build ExtractAPIConsumer.cpp at -Og paul.hua.gm at gmail dot com
@ 2024-01-02 4:08 ` paul.hua.gm at gmail dot com
2024-01-02 4:29 ` [Bug middle-end/113194] " pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: paul.hua.gm at gmail dot com @ 2024-01-02 4:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113194
--- Comment #1 from Paul Hua <paul.hua.gm at gmail dot com> ---
Created attachment 56972
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56972&action=edit
preprocessed file
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/113194] Hangup build ExtractAPIConsumer.cpp at -Og
2024-01-02 4:06 [Bug c++/113194] New: Hangup build ExtractAPIConsumer.cpp at -Og paul.hua.gm at gmail dot com
2024-01-02 4:08 ` [Bug c++/113194] " paul.hua.gm at gmail dot com
@ 2024-01-02 4:29 ` pinskia at gcc dot gnu.org
2024-01-02 4:37 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-02 4:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113194
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Works for me with r14-6875-g3a7dd24eadeb91 on x86_64:
./cc1plus tmp/ExtractAPIConsumer.cpp.ii -quiet -Og -fPIC
-fno-semantic-interposition -fvisibility-inlines-hidden -fno-lifetime-dse
-ffunction-sections -fdata-sections -fno-common -fno-strict-aliasing
-fno-exceptions -funwind-tables -fno-rtti -Werror=date-time -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -Wpedantic -Wno-long-long
-Wimplicit-fallthrough=3 -Wno-maybe-uninitialized -Wno-nonnull
-Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move
-Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment
-Wno-misleading-indentation -Wctad-maybe-unsupported -Woverloaded-virtual=2
-std=c++17
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/113194] Hangup build ExtractAPIConsumer.cpp at -Og
2024-01-02 4:06 [Bug c++/113194] New: Hangup build ExtractAPIConsumer.cpp at -Og paul.hua.gm at gmail dot com
2024-01-02 4:08 ` [Bug c++/113194] " paul.hua.gm at gmail dot com
2024-01-02 4:29 ` [Bug middle-end/113194] " pinskia at gcc dot gnu.org
@ 2024-01-02 4:37 ` pinskia at gcc dot gnu.org
2024-01-02 8:10 ` paul.hua.gm at gmail dot com
2024-01-02 11:48 ` [Bug debug/113194] " pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-02 4:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113194
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There seems to be some high memory usage in the front-end though:
template instantiation : 12.13 ( 29%) 4.33 ( 35%) 16.72 ( 31%)
759M ( 44%)
But other than that it works for me on x86_64.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/113194] Hangup build ExtractAPIConsumer.cpp at -Og
2024-01-02 4:06 [Bug c++/113194] New: Hangup build ExtractAPIConsumer.cpp at -Og paul.hua.gm at gmail dot com
` (2 preceding siblings ...)
2024-01-02 4:37 ` pinskia at gcc dot gnu.org
@ 2024-01-02 8:10 ` paul.hua.gm at gmail dot com
2024-01-02 11:48 ` [Bug debug/113194] " pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: paul.hua.gm at gmail dot com @ 2024-01-02 8:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113194
--- Comment #4 from Paul Hua <paul.hua.gm at gmail dot com> ---
(In reply to Andrew Pinski from comment #2)
> Works for me with r14-6875-g3a7dd24eadeb91 on x86_64:
> ./cc1plus tmp/ExtractAPIConsumer.cpp.ii -quiet -Og -fPIC
> -fno-semantic-interposition -fvisibility-inlines-hidden -fno-lifetime-dse
> -ffunction-sections -fdata-sections -fno-common -fno-strict-aliasing
> -fno-exceptions -funwind-tables -fno-rtti -Werror=date-time -Wall -Wextra
> -Wno-unused-parameter -Wwrite-strings -Wcast-qual
> -Wno-missing-field-initializers -Wpedantic -Wno-long-long
> -Wimplicit-fallthrough=3 -Wno-maybe-uninitialized -Wno-nonnull
> -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move
> -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment
> -Wno-misleading-indentation -Wctad-maybe-unsupported -Woverloaded-virtual=2
> -std=c++17
The key is "-g", with "-g" it will hangup.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug debug/113194] Hangup build ExtractAPIConsumer.cpp at -Og
2024-01-02 4:06 [Bug c++/113194] New: Hangup build ExtractAPIConsumer.cpp at -Og paul.hua.gm at gmail dot com
` (3 preceding siblings ...)
2024-01-02 8:10 ` paul.hua.gm at gmail dot com
@ 2024-01-02 11:48 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-02 11:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113194
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |debug
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Just another value tracking slowness:
```
#0 0x00000000016b0916 in mul_mod (shift=<optimized out>, inv=<optimized out>,
y=<optimized out>, x=<optimized out>) at
/home/apinski/src/upstream-gcc-match/gcc/gcc/hash-table.h:332
#1 hash_table_mod2 (index=<optimized out>, hash=<optimized out>) at
/home/apinski/src/upstream-gcc-match/gcc/gcc/hash-table.h:354
#2 hash_table<variable_hasher, false, xcallocator>::find_slot_with_hash
(this=this@entry=0x536b4e0, comparable=..., hash=1378369,
insert=insert@entry=INSERT) at
/home/apinski/src/upstream-gcc-match/gcc/gcc/hash-table.h:1052
#3 0x00000000016a250e in vars_copy (src=<optimized out>, dst=0x536b4e0) at
/home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:1826
#4 shared_hash_unshare (vars=0x4f30050) at
/home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:1619
#5 0x00000000016a6131 in shared_hash_find_slot_unshare_1 (ins=INSERT,
dvhash=13, dv=..., pvars=<optimized out>) at
/home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:1655
#6 shared_hash_find_slot_unshare (ins=INSERT, dv=..., pvars=<optimized out>)
at /home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:1663
#7 set_variable_part (set=0x4bd2750, loc=0x7fffcda86780, dv=..., offset=0,
initialized=VAR_INIT_STATUS_INITIALIZED, set_src=0x0, iopt=INSERT) at
/home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:7893
#8 0x00000000016ac559 in val_bind (modified=true, loc=0x7fffcda86780,
val=0x50b30b0, set=0x4bd2750) at
/home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:1404
#9 val_store (set=0x4bd2750, val=0x50b30b0, loc=0x7fffcda86780,
insn=<optimized out>, modified=true) at
/home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:2531
#10 0x00000000016acdbc in compute_bb_dataflow (bb=0x7fffa8418660) at
/home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:6946
#11 0x00000000016aedee in vt_find_locations () at
/home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:7185
#12 0x00000000016afc3d in variable_tracking_main_1 () at
/home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:10525
#13 0x00000000016afddc in variable_tracking_main () at
/home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:10571
#14 (anonymous namespace)::pass_variable_tracking::execute (this=<optimized
out>) at /home/apinski/src/upstream-gcc-match/gcc/gcc/var-tracking.cc:10608
```
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-01-02 11:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-02 4:06 [Bug c++/113194] New: Hangup build ExtractAPIConsumer.cpp at -Og paul.hua.gm at gmail dot com
2024-01-02 4:08 ` [Bug c++/113194] " paul.hua.gm at gmail dot com
2024-01-02 4:29 ` [Bug middle-end/113194] " pinskia at gcc dot gnu.org
2024-01-02 4:37 ` pinskia at gcc dot gnu.org
2024-01-02 8:10 ` paul.hua.gm at gmail dot com
2024-01-02 11:48 ` [Bug debug/113194] " 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).