public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103657] New: GCC can no longer throw EH on x86_64-w64-mingw32 hosted 64 bits
@ 2021-12-10 20:02 unlvsur at live dot com
  2021-12-10 20:03 ` [Bug c++/103657] GCC can no longer catch " unlvsur at live dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: unlvsur at live dot com @ 2021-12-10 20:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103657
           Summary: GCC can no longer throw EH on x86_64-w64-mingw32
                    hosted 64 bits
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

#include<cstdio>

int main()
try
{
        throw 0;
}
catch(...)
{
        puts("Hello EH\n");
        return 1;
}


GCC cannot catch EH on windows anymore.

while clang and g++ -m32 all work

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

* [Bug c++/103657] GCC can no longer catch EH on x86_64-w64-mingw32 hosted 64 bits
  2021-12-10 20:02 [Bug c++/103657] New: GCC can no longer throw EH on x86_64-w64-mingw32 hosted 64 bits unlvsur at live dot com
@ 2021-12-10 20:03 ` unlvsur at live dot com
  2021-12-10 20:09 ` [Bug target/103657] " unlvsur at live dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: unlvsur at live dot com @ 2021-12-10 20:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from cqwrteur <unlvsur at live dot com> ---
D:\hg\fast_io\tests\0017.error>g++ -o error error.cc -Ofast -std=c++2b -s -flto
-march=native -I../../include -lntdll

D:\hg\fast_io\tests\0017.error>error

D:\hg\fast_io\tests\0017.error>clang++ -o error error.cc -Ofast -std=c++2b -s
-flto -march=native -I../../include -lntdll -fuse-ld=lld

D:\hg\fast_io\tests\0017.error>error
Hello EH

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

* [Bug target/103657] GCC can no longer catch EH on x86_64-w64-mingw32 hosted 64 bits
  2021-12-10 20:02 [Bug c++/103657] New: GCC can no longer throw EH on x86_64-w64-mingw32 hosted 64 bits unlvsur at live dot com
  2021-12-10 20:03 ` [Bug c++/103657] GCC can no longer catch " unlvsur at live dot com
@ 2021-12-10 20:09 ` unlvsur at live dot com
  2021-12-10 20:35 ` unlvsur at live dot com
  2021-12-12 12:17 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: unlvsur at live dot com @ 2021-12-10 20:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from cqwrteur <unlvsur at live dot com> ---
D:\hg\fast_io\tests\0017.error>g++ -o error error.cc -Ofast -std=c++2b -s
-march=native -I../../include -lntdll -fuse-ld=lld

D:\hg\fast_io\tests\0017.error>error
errc:no_such_file_or_directory


clang++ -o error error.cc -Ofast -std=c++2b -s  -march=native -I../../include
-lntdll

D:\hg\fast_io\tests\0017.error>error



Looks like it is GNU ld linker's issue. Need to report there probably.

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

* [Bug target/103657] GCC can no longer catch EH on x86_64-w64-mingw32 hosted 64 bits
  2021-12-10 20:02 [Bug c++/103657] New: GCC can no longer throw EH on x86_64-w64-mingw32 hosted 64 bits unlvsur at live dot com
  2021-12-10 20:03 ` [Bug c++/103657] GCC can no longer catch " unlvsur at live dot com
  2021-12-10 20:09 ` [Bug target/103657] " unlvsur at live dot com
@ 2021-12-10 20:35 ` unlvsur at live dot com
  2021-12-12 12:17 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: unlvsur at live dot com @ 2021-12-10 20:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from cqwrteur <unlvsur at live dot com> ---
https://sourceware.org/bugzilla/show_bug.cgi?id=28682

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

* [Bug target/103657] GCC can no longer catch EH on x86_64-w64-mingw32 hosted 64 bits
  2021-12-10 20:02 [Bug c++/103657] New: GCC can no longer throw EH on x86_64-w64-mingw32 hosted 64 bits unlvsur at live dot com
                   ` (2 preceding siblings ...)
  2021-12-10 20:35 ` unlvsur at live dot com
@ 2021-12-12 12:17 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2021-12-12 12:17 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Closing then

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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10 20:02 [Bug c++/103657] New: GCC can no longer throw EH on x86_64-w64-mingw32 hosted 64 bits unlvsur at live dot com
2021-12-10 20:03 ` [Bug c++/103657] GCC can no longer catch " unlvsur at live dot com
2021-12-10 20:09 ` [Bug target/103657] " unlvsur at live dot com
2021-12-10 20:35 ` unlvsur at live dot com
2021-12-12 12:17 ` redi 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).