GCC 14.1.0 released

FreeMiNT related questions are answered here.
Post Reply
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3412
Joined: Sun Aug 03, 2014 5:54 pm

GCC 14.1.0 released

Post by ThorstenOtto »

Two days ago gcc 14.1.0 was released, and since today it is available for our platform ;)

As usual, you will find the downloads at https://tho-otto.de/crossmint.php (or https://tho-otto.de/snapshots/crossmint/macos/gcc-14/ if you need them for apple silicon)

Have fun!
User avatar
alexh
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3103
Joined: Wed Oct 20, 2004 1:52 pm
Location: UK - Oxford
Contact:

Re: GCC 14.1.0 released

Post by alexh »

Nice. Thank you very much.

There was a thread just recently that explained why the latest versions of GCC is not good for m68k target (vs older GCC releases). @Mikro was commenting on this and it made a lot of sense. I don't know if we can get upstream GCC improvements for m68k architecture through pull request?
AnthonyJ
Captain Atari
Captain Atari
Posts: 165
Joined: Sat Jan 26, 2013 8:16 am

Re: GCC 14.1.0 released

Post by AnthonyJ »

alexh wrote: Thu May 09, 2024 1:51 pm There was a thread just recently that explained why the latest versions of GCC is not good for m68k target (vs older GCC releases). @Mikro was commenting on this and it made a lot of sense.
Note that Mikro's point was actually the opposite of this - despite the fact that older GCC had a better back-end, the improvements in the front-end of newer GCC outperforms the older releases. ie, his tests show that you should use the newer builds of GCC.

That thread highlights there are things that could be improved in the backend for both the old and new releases which have potential to bring big speed boosts. At the moment there isn't a set of patches that actually proves that potential though.
I don't know if we can get upstream GCC improvements for m68k architecture through pull request?
I believe there are practical issues that mean this isn't likely to happen.
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3412
Joined: Sun Aug 03, 2014 5:54 pm

Re: GCC 14.1.0 released

Post by ThorstenOtto »

alexh wrote: Thu May 09, 2024 1:51 pm I don't know if we can get upstream GCC improvements for m68k architecture through pull request?
I don't think that this will happen. There are already some bug reports open reported by vincent, mikro and me, some of them even affecting other targets. Most of them are open already for several years, so i don't expect them to integrate patches for the m68k backend. For smaller fixes, that may sometimes work (eg. the ICE that happened when using -malign-int is now fixed in gcc-14).

Only hope would be to take a closer look at bebbo's patches, but that would be a huge effort maintaining them, and is mostly beyond our skills.
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13541
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: GCC 14.1.0 released

Post by wongck »

ThorstenOtto wrote: Thu May 09, 2024 1:02 pm Two days ago gcc 14.1.0 was released, and since today it is available for our platform ;)
Great stuff... Thank you :cheers:

So just to be clear... so that I do not mess up my dev env... the tar will overwrite /usr/bin with the new binaries (and links) but will create new includes and lib under folder ../14/... for the new headers/c++ stuffs and for libs/other stuffs.
So I can just rm the ../13/.. folder as I do not need any of the v13 stuffs.
Correct ?
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff that are no longer for sale due to them over 30 years old - click here for list
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3412
Joined: Sun Aug 03, 2014 5:54 pm

Re: GCC 14.1.0 released

Post by ThorstenOtto »

Yes, in /usr/bin only the symlinks are overwritten (so the previous gcc is still available as m68k-atari-mint-gcc-13.2.0 in case you want to switch back). All other libraries/includes are stored in folders that end in /14 instead of /13 and won't overwrite anything.
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13541
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: GCC 14.1.0 released

Post by wongck »

Thanks ThorstenOtto.
I will try to keep v13 but a df shows my ext2 drive is like 70% and I have just "clean" it few weeks back.
So I may need to rm v13.
well I need to tar it to another hdd first... arrghhh not so simple.
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff that are no longer for sale due to them over 30 years old - click here for list
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3412
Joined: Sun Aug 03, 2014 5:54 pm

Re: GCC 14.1.0 released

Post by ThorstenOtto »

Unfortunately there were 2 serious bugs (1 only in an intermediate archive uploaded after the announcement), that could cause the native compiler to crash, and (more seriously) could cause also the cross-compiler to produce wrong code. Both have been fixed. Archives for linux and natives binaries have been updated, others will follow soon. Older compilers like gcc-13 are not affected.

Thanks to @wongck who reported the issues.
User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 13541
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: GCC 14.1.0 released

Post by wongck »

Thanks Thorsten.
The 4 C sources are now able to be compiled without any issues using gcc-14.
My Stuff: FB/Falcon CT63 CTPCI ATI RTL8139 USB 512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff that are no longer for sale due to them over 30 years old - click here for list
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3412
Joined: Sun Aug 03, 2014 5:54 pm

Re: GCC 14.1.0 released

Post by ThorstenOtto »

Archives have to been updated to the just-released GCC 14.2.0. Binutils have also been updated to version 2.43.
PeyloW
Atari freak
Atari freak
Posts: 66
Joined: Mon Apr 11, 2011 8:34 pm

Re: GCC 14.1.0 released

Post by PeyloW »

Two questions. Does these 14.1 binaries for macOS include:

Code: Select all

-mfastcall
and

Code: Select all

-flto
support?
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3412
Joined: Sun Aug 03, 2014 5:54 pm

Re: GCC 14.1.0 released

Post by ThorstenOtto »

Yes, they do. Both the ones on http://tho-otto.de/crossmint.php (compiled for macos 10.9 and above) and the ones on http://tho-otto.de/snapshots/crossmint/macos/gcc-14/ (compiled for macos 11 and above, adding support for arm64)

-flto is generally only supported by the mintelf toolchains.
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3412
Joined: Sun Aug 03, 2014 5:54 pm

Re: GCC 14.1.0 released

Post by ThorstenOtto »

binutils have been updated to version 2.44

Edit: macos binaries for apple silicon are now also available. Note that these are now built on macos-13 (the macos-12 image is no longer supported on github)
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 3328
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: GCC 14.1.0 released

Post by Cyprian »

great, thanks
Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Steem SSE / Aranym / Saint
http://260ste.atari.org
Post Reply

Return to “FreeMiNT support”