Author Topic: New frontends for GCC 13...  (Read 7368 times)

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2107
  • Karma: +163/-0
    • View Profile
New frontends for GCC 13...
« on: December 07, 2022, 12:17:07 am »
...due sometime next year..

https://www.phoronix.com/news/GCC-Modula-2-Ready
https://www.phoronix.com/news/GCC-Rust-v4-Cleared-For-Landing

When the GCC 13 code gets closer to release, I'll look at building it, noting that GCC 13 will drop support for STABS debug code, so we won't be able to built debug code....

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4831
  • Karma: +101/-1
    • View Profile
Re: New frontends for GCC 13...
« Reply #1 on: December 07, 2022, 01:27:16 am »
What about one of the debug formats that Open Watcom supports?

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2107
  • Karma: +163/-0
    • View Profile
Re: New frontends for GCC 13...
« Reply #2 on: December 07, 2022, 03:10:39 am »
What about one of the debug formats that Open Watcom supports?

dwarf output should work, but not sure it can be encapsulated into aout object files, and tools like emxomf will certainly choke on it....

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4831
  • Karma: +101/-1
    • View Profile
Re: New frontends for GCC 13...
« Reply #3 on: December 07, 2022, 04:25:19 am »
What about one of the debug formats that Open Watcom supports?

dwarf output should work, but not sure it can be encapsulated into aout object files, and tools like emxomf will certainly choke on it....

With luck, the patch removing stabs can be easily reversed.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2107
  • Karma: +163/-0
    • View Profile
Re: New frontends for GCC 13...
« Reply #4 on: December 07, 2022, 05:03:27 am »
Yes that will be the initial plan....

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2107
  • Karma: +163/-0
    • View Profile

Andy Willis

  • Sr. Member
  • ****
  • Posts: 302
  • Karma: +7/-0
    • View Profile
Re: New frontends for GCC 13...
« Reply #6 on: December 16, 2022, 02:04:26 am »
https://www.phoronix.com/news/Module-2-GCC-Merged
Reading that reminds me, have you had a chance to look any more at GO support?

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2107
  • Karma: +163/-0
    • View Profile
Re: New frontends for GCC 13...
« Reply #7 on: December 16, 2022, 04:55:57 am »
Hey Andy,
https://www.phoronix.com/news/Module-2-GCC-Merged
Reading that reminds me, have you had a chance to look any more at GO support?
Not recently, but it's a good point - I should take another look. I forget now what the issues were when I last tried enabling it!

Cheers,

Paul

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2107
  • Karma: +163/-0
    • View Profile
Re: New frontends for GCC 13...
« Reply #8 on: December 16, 2022, 09:19:51 am »
Go seemed to build ok, but when it tries to compile code, it fails with:
Code: [Select]
libtool: compile:  U:/DEV/gcc-os2/host-i686-pc-os2-emx/gcc/gccgo -BU:/DEV/gcc-os2/host-i686-pc-os2-emx/gcc/ -B/usr/local1220/i686-pc-os2-emx/bin/ -B/usr/local1220/i686-pc-os2-emx/lib/ -isystem /usr/local1220/i686-pc-os2-emx/include -isystem /usr/local1220/i686-pc-os2-emx/sys-include -minline-all-stringops -g -D__EMX__ -DEMX -DOS2 -D__ST_MT_ERRNO__ -O2 -march=pentium -mtune=pentium4 -static-libgcc -I . -c -fgo-pkgpath=internal/goarch ../.././libgo/go/internal/goarch/goarch.go zgoarch.go
go1.exe: internal compiler error: in go_write_export_data, at go/go-backend.cc:108
libbacktrace could not find executable to open
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

go/go-backend.cc:108 as:
Code: [Select]
      gcc_assert (targetm_common.have_named_sections);

emx.h has:
#define TARGET_HAVE_NAMED_SECTIONS false

So this assertion will always fail.

I don't think a.out supports named sections?? Edit: https://sourceware.org/binutils/docs/as/Section.html seems to confirm...

Olafur Gunnlaugsson

  • Full Member
  • ***
  • Posts: 246
  • Karma: +6/-0
    • View Profile
Re: New frontends for GCC 13...
« Reply #9 on: December 17, 2022, 11:17:38 am »
...due sometime next year..

https://www.phoronix.com/news/GCC-Modula-2-Ready
https://www.phoronix.com/news/GCC-Rust-v4-Cleared-For-Landing

When the GCC 13 code gets closer to release, I'll look at building it, noting that GCC 13 will drop support for STABS debug code, so we won't be able to built debug code....

The M2 integration was supposed to happen with GCC12 (and funnily enough with GCC 0.x as well), so I am not holding my breath ...

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2107
  • Karma: +163/-0
    • View Profile
Re: New frontends for GCC 13...
« Reply #10 on: December 17, 2022, 11:19:21 am »
M2 has been merged, so will be in gcc 13..

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4831
  • Karma: +101/-1
    • View Profile
Re: New frontends for GCC 13...
« Reply #11 on: December 18, 2022, 03:55:41 am »
Just thought of another problem with the lack of stabs support, Dmik hacked the Mozilla build system to get the symbols for xul.dll from the stabs info.