[Bug middle-end/113194] Hangup build ExtractAPIConsumer.cpp at -Og

2024-01-02 Thread paul.hua.gm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113194

--- Comment #4 from Paul Hua  ---
(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.

[Bug c++/113194] Hangup build ExtractAPIConsumer.cpp at -Og

2024-01-01 Thread paul.hua.gm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113194

--- Comment #1 from Paul Hua  ---
Created attachment 56972
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56972=edit
preprocessed file

[Bug c++/113194] New: Hangup build ExtractAPIConsumer.cpp at -Og

2024-01-01 Thread paul.hua.gm at gmail dot com via 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.

[Bug target/106459] Compiler crashing for loongarch64-linux-gnu on windows

2022-08-24 Thread paul.hua.gm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106459

Paul Hua  changed:

   What|Removed |Added

 CC||paul.hua.gm at gmail dot com

--- Comment #6 from Paul Hua  ---
Fix patch.
https://gcc.gnu.org/pipermail/gcc-patches/2022-August/600185.html

[Bug tree-optimization/94920] Failure to optimize abs pattern from arithmetic with selected operands based on comparisons with 0

2022-08-06 Thread paul.hua.gm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94920

Paul Hua  changed:

   What|Removed |Added

 CC||paul.hua.gm at gmail dot com

--- Comment #5 from Paul Hua  ---
(In reply to CVS Commits from comment #3)
> The master branch has been updated by Jakub Jelinek :
> 
> https://gcc.gnu.org/g:0bc1566dec0cab9410723c96d2ef3280fdab8e8e
> 
> commit r13-1854-g0bc1566dec0cab9410723c96d2ef3280fdab8e8e
> Author: Jakub Jelinek 
> Date:   Wed Jul 27 12:02:12 2022 +0200
> 
> testsuite: Add -Wno-psabi to pr94920 tests [PR94920]
> 
> These tests fail on ia32, because we get -Wpsabi warnings.
> Fixed by adding -Wno-psabi.  The pr94920.C test still fails the
> ABS_EXPR scan-tree-dump though, I think we'll need to add vect
> options and use vect_int effective target or something similar.

Yes, we should do. This also fails the ABS_EXPR scan-tree-dump on LoongArch.

> 
> 2022-07-27  Jakub Jelinek  
> 
> PR tree-optimization/94920
> * g++.dg/pr94920.C: Add -Wno-psabi to dg-options.
> * g++.dg/pr94920-1.C: Add dg-additional-options -Wno-psabi.

[Bug bootstrap/98616] Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS

2021-01-24 Thread paul.hua.gm at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616

Paul Hua  changed:

   What|Removed |Added

 CC||paul.hua.gm at gmail dot com

--- Comment #2 from Paul Hua  ---
Hi,

The error message show:

-
 configure: error: in
`/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/mips64el-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
make[2]: *** [Makefile:16845: configure-stage1-target-libgcc] Error 1
---

please see config.log for more details.