Welcome, Guest. Please login or register.

Author Topic: Looking for backers to support the funding of modernizing gcc on m68k  (Read 4160 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline wawrzon

Re: Looking for backers to support the funding of modernizing gcc on m68k
« Reply #14 from previous page: October 03, 2019, 03:19:04 PM »
Quote
AROS has an out of tree LLVM backend for m68k? Where? And what patches do they have for gcc?
actually aros patches are not platform specific. afair i have once tried to compile the latest clang/llvm toolchain there is (llvm7) with aros patch for m68k but i havent went far, let alone it worked. but gcc 9.1 works.
the crosstools patches are here:
https://github.com/aros-development-team/AROS/tree/master/tools/crosstools

Quote
The thing is. If we don't get this task finished that I started the BountySource campaign for, all projects working on m68k will be stuck with gcc-10 forever as all cc0 backends are planned to be removed for gcc-11. So, this is actually rather urgent.

im not questioning your initiative, even if i cannot contribute as present.

Quote
This isn't about optimizations or generating HUNK binaries. This is about making sure m68k support is not killed off with gcc-11.

the patches i mentioned are used to adopt the compiler to the system itself, since the architecture is still supported anyway, it doesnt probably help anything to bother with amigaos or aros patches, one simply needs to work on the upstream 68k backend. sorry for a stupid proposal.
 

Offline adrian82Topic starter

Re: Looking for backers to support the funding of modernizing gcc on m68k
« Reply #15 on: October 03, 2019, 04:55:34 PM »
@adrian82

I see VAX is also among the "endangered species" - is there a similar effort to keep it alive? :)

Well, you could create one for sure. Just open a bug report on gcc and link that to BountySource. I would be willing to donate for this cause as well.

Quote
What counts as "a Free simulator"? I see m68k has "?" on that column.

I already complained in the #gcc IRC channel. They told me the list is horribly outdated. There is now qemu for m68k, for example.

Quote
( Also, perhaps a Linux/68k port of Toni Wilen's 68k CPU core tester/validator is possible?
http://eab.abime.net/showthread.php?t=98747 )

QEMU should be fine as it's used for most ports as well.

Adrian
- Amiga 1200 w/ Blizzard 1220/4 - ACA-1230/56MHz/64MB, OS3.9 + Debian unstable, Squirrel SCSI + CD-Writer and 160GB HDD
- Amiga 2000 ECS with A2090 and Genlock, OS 3.1
- Amiga 2000 with Blizzard 68060/128 MiB FastRAM
- Amiga 4000 Tower with Blizzard 68060/128 MiB FastRAM
- 2x Amiga 4000 with unknown accelerators
- 4x Amiga 500, Protar A500HD 2MB, C= A590 2MB, OS3.1
- Amiga 600 Standard + A601, OS3.1
- several 68k Macs
- Atari ST Mega
- 6
 

Offline adrian82Topic starter

Re: Looking for backers to support the funding of modernizing gcc on m68k
« Reply #16 on: October 03, 2019, 04:58:37 PM »
Quote
AROS has an out of tree LLVM backend for m68k? Where? And what patches do they have for gcc?
actually aros patches are not platform specific. afair i have once tried to compile the latest clang/llvm toolchain there is (llvm7) with aros patch for m68k but i havent went far, let alone it worked. but gcc 9.1 works.
the crosstools patches are here:
https://github.com/aros-development-team/AROS/tree/master/tools/crosstools

Those patches just add "AROS" as a valid operating system to clang. They don't actually add m68k support to LLVM which is a much more involved task.

Quote
Quote
This isn't about optimizations or generating HUNK binaries. This is about making sure m68k support is not killed off with gcc-11.

the patches i mentioned are used to adopt the compiler to the system itself, since the architecture is still supported anyway, it doesnt probably help anything to bother with amigaos or aros patches, one simply needs to work on the upstream 68k backend. sorry for a stupid proposal.

Yes, the patches are merely adding "AROS" as a valid operating system. This does not change the fact that LLVM does not know how to generate code for m68k. Therefore the LLVM port for m68k mentioned earlier in this thread exists and will also need support from the community as well.

PS: We're at $2.575 now ;).

Adrian
- Amiga 1200 w/ Blizzard 1220/4 - ACA-1230/56MHz/64MB, OS3.9 + Debian unstable, Squirrel SCSI + CD-Writer and 160GB HDD
- Amiga 2000 ECS with A2090 and Genlock, OS 3.1
- Amiga 2000 with Blizzard 68060/128 MiB FastRAM
- Amiga 4000 Tower with Blizzard 68060/128 MiB FastRAM
- 2x Amiga 4000 with unknown accelerators
- 4x Amiga 500, Protar A500HD 2MB, C= A590 2MB, OS3.1
- Amiga 600 Standard + A601, OS3.1
- several 68k Macs
- Atari ST Mega
- 6
 

Offline kolla

Re: Looking for backers to support the funding of modernizing gcc on m68k
« Reply #17 on: October 03, 2019, 07:33:28 PM »
Quote
( Also, perhaps a Linux/68k port of Toni Wilen's 68k CPU core tester/validator is possible?
http://eab.abime.net/showthread.php?t=98747 )
QEMU should be fine as it's used for most ports as well.

Yes, I understand that. The link is about software to test for example the Qemu 68k emulation, find missing or misbehaving instructions etc. if I understand things right.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline adrian82Topic starter

Re: Looking for backers to support the funding of modernizing gcc on m68k
« Reply #18 on: October 27, 2019, 02:27:07 PM »
For anyone interested, I have created a guide now how to install Debian/m68k inside qemu-system-m68k: https://wiki.debian.org/M68k/QemuSystemM68k

And our Bountysource campaign is at $5000 now!
- Amiga 1200 w/ Blizzard 1220/4 - ACA-1230/56MHz/64MB, OS3.9 + Debian unstable, Squirrel SCSI + CD-Writer and 160GB HDD
- Amiga 2000 ECS with A2090 and Genlock, OS 3.1
- Amiga 2000 with Blizzard 68060/128 MiB FastRAM
- Amiga 4000 Tower with Blizzard 68060/128 MiB FastRAM
- 2x Amiga 4000 with unknown accelerators
- 4x Amiga 500, Protar A500HD 2MB, C= A590 2MB, OS3.1
- Amiga 600 Standard + A601, OS3.1
- several 68k Macs
- Atari ST Mega
- 6
 

Offline adrian82Topic starter

Re: Looking for backers to support the funding of modernizing gcc on m68k
« Reply #19 on: November 13, 2019, 10:31:59 PM »
Hi!

The first set of patches has now been submitted by a long-time GCC developer:

https://gcc.gnu.org/ml/gcc-patches/2019-11/msg01028.html [0/4]
https://gcc.gnu.org/ml/gcc-patches/2019-11/msg01029.html [1/4]
https://gcc.gnu.org/ml/gcc-patches/2019-11/msg01030.html [2/4]
https://gcc.gnu.org/ml/gcc-patches/2019-11/msg01031.html [3/4]
https://gcc.gnu.org/ml/gcc-patches/2019-11/msg01032.html [4/4]

The task will be finished once the patches have been merged by GCC upstream which I assume will happen within the next one or two weeks.

So, GCC on m68k will continue to be available beyond GCC-10 :).

Adrian
- Amiga 1200 w/ Blizzard 1220/4 - ACA-1230/56MHz/64MB, OS3.9 + Debian unstable, Squirrel SCSI + CD-Writer and 160GB HDD
- Amiga 2000 ECS with A2090 and Genlock, OS 3.1
- Amiga 2000 with Blizzard 68060/128 MiB FastRAM
- Amiga 4000 Tower with Blizzard 68060/128 MiB FastRAM
- 2x Amiga 4000 with unknown accelerators
- 4x Amiga 500, Protar A500HD 2MB, C= A590 2MB, OS3.1
- Amiga 600 Standard + A601, OS3.1
- several 68k Macs
- Atari ST Mega
- 6
 

Offline kolla

Re: Looking for backers to support the funding of modernizing gcc on m68k
« Reply #20 on: November 14, 2019, 05:17:15 AM »
Very nice! :)
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline adrian82Topic starter

Re: Looking for backers to support the funding of modernizing gcc on m68k
« Reply #21 on: November 25, 2019, 01:17:02 PM »
Hi!

The task has been completed successfully and all changes have been committed to the gcc SVN repository.

Anyone who has backed the BountySource campaign should now click "Accept" to accept the claim.

Adrian
- Amiga 1200 w/ Blizzard 1220/4 - ACA-1230/56MHz/64MB, OS3.9 + Debian unstable, Squirrel SCSI + CD-Writer and 160GB HDD
- Amiga 2000 ECS with A2090 and Genlock, OS 3.1
- Amiga 2000 with Blizzard 68060/128 MiB FastRAM
- Amiga 4000 Tower with Blizzard 68060/128 MiB FastRAM
- 2x Amiga 4000 with unknown accelerators
- 4x Amiga 500, Protar A500HD 2MB, C= A590 2MB, OS3.1
- Amiga 600 Standard + A601, OS3.1
- several 68k Macs
- Atari ST Mega
- 6
 

Offline kolla

Re: Looking for backers to support the funding of modernizing gcc on m68k
« Reply #22 on: November 25, 2019, 01:28:15 PM »
Excellent!!
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS