Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizer "b" issue #240

Closed
githubaf opened this issue Dec 11, 2024 · 9 comments
Closed

Optimizer "b" issue #240

githubaf opened this issue Dec 11, 2024 · 9 comments
Labels
close pending the ticket will be closed soon, whether fixed or not

Comments

@githubaf
Copy link

While working on testing of WCS I encountered another issue

When compiled with -O0 for 68020 WCS renders correctly. With -O2 the sun and moon become black.
The problem occurs in GlobeMapSupport.c in function Celestial_Bodies().

I experimented with -fbbb settings and the problem disappears if I remove the "b" option.

Please find attached the preprocessed source.

My compiler command line is
m68k-amigaos-gcc -DFORCE_MUIMASTER_VMIN=19 -DSTATIC_FCN= -DAMIGA_GUI -DTOOLCHAIN_VER=\"'%@@=492:?iaf}@Gac 9EEADi^^8:E9F3]4@>^3633@^2>:82\\844]8:E $sxic2f7d7e 2>:82\\844i__ffc7_ 2>:82\\?6E:?4=F56id2bhe2a 2C@D\\DEF77i4_2_e3c 3:?FE:=Dih32_3b32 4=:3ai6223dd 75aAC28>2i6hg7_h_ 75aD75i35f6e55 844i3de54dae :C2i333f2ge :I6>F=i7_55hhf =:3$s{aibac7e34 =:3563F8ica5h5b2 =:3?:Iibebca44 ?6H=:3\\4J8H:?i3b56bh4 D754i_6h72ag G2D>i5a73hb G344idae6h2_ G=:?<ih3b5be'\" -I"/home/developer/Desktop/SelcoGit/3DNature/Amiga" -O2 -Wall -c -fmessage-length=0 -funsigned-char -MMD -MP -MF"GlobeMapSupport.d" -MT"GlobeMapSupport.o" -o "GlobeMapSupport.o" "../GlobeMapSupport.c" -DBUILDID=\"g/'18b45a4-dirty'\" -noixemul -m68020 -m68881 -DSTATIC_FCN= -DSTATIC_VAR=static -Winline -DSWMEM_FAST_INLINE

The problem also occurs when compiled with -m68040 -m68881.
It does not occure when compiled with -m68060 -m68881 or -m68020-60 -m68881
GlobeMapSupport_prepro.zip

Used tool chain is from 27Nov24

@bebbo
Copy link
Owner

bebbo commented Dec 11, 2024

@bebbo
Copy link
Owner

bebbo commented Dec 11, 2024

the insns contain something new (for me):

(fix:DF (mem:DF (plus:SI (reg:SI 11 a3)
                    (const_int 456 [0x1c8])) [0  S8 A16])))

the fix:DF is not handled correctly

@bebbo bebbo transferred this issue from bebbo/amiga-gcc Dec 12, 2024
@bebbo
Copy link
Owner

bebbo commented Dec 12, 2024

please test

@githubaf
Copy link
Author

I am getting an internal compiler error on Ubuntu 22.04.5 LTS right now:

/home/developer/amiga-gcc/projects/libnix/sources/nix/stdio/__vfprintf_total_size.c
/home/developer/amiga-gcc/projects/libnix/sources/nix/stdio/__vwfprintf_total_size.c
m68k-amigaos-gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:231: libm.a] Error 4
make[3]: Leaving directory '/home/developer/amiga-gcc/build-Linux-m68k-amigaos/libnix/libm020bb881'
make[2]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:199: libm] Error 2
make[2]: Leaving directory '/home/developer/amiga-gcc/build-Linux-m68k-amigaos/libnix'
make[1]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:107: libm020bb881] Error 2
make[1]: *** Waiting for unfinished jobs....
m68k-amigaos-gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:231: libm.a] Error 4
make[3]: Leaving directory '/home/developer/amiga-gcc/build-Linux-m68k-amigaos/libnix/libm020bb32881'
make[2]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:199: libm] Error 2
make[2]: Leaving directory '/home/developer/amiga-gcc/build-Linux-m68k-amigaos/libnix'
make[1]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:111: libm020bb32881] Error 2
make[1]: Leaving directory '/home/developer/amiga-gcc/build-Linux-m68k-amigaos/libnix'

@bebbo
Copy link
Owner

bebbo commented Dec 23, 2024

I am getting an internal compiler error on Ubuntu 22.04.5 LTS right now:

/home/developer/amiga-gcc/projects/libnix/sources/nix/stdio/__vfprintf_total_size.c
/home/developer/amiga-gcc/projects/libnix/sources/nix/stdio/__vwfprintf_total_size.c
m68k-amigaos-gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:231: libm.a] Error 4
make[3]: Leaving directory '/home/developer/amiga-gcc/build-Linux-m68k-amigaos/libnix/libm020bb881'
make[2]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:199: libm] Error 2
make[2]: Leaving directory '/home/developer/amiga-gcc/build-Linux-m68k-amigaos/libnix'
make[1]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:107: libm020bb881] Error 2
make[1]: *** Waiting for unfinished jobs....
m68k-amigaos-gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:231: libm.a] Error 4
make[3]: Leaving directory '/home/developer/amiga-gcc/build-Linux-m68k-amigaos/libnix/libm020bb32881'
make[2]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:199: libm] Error 2
make[2]: Leaving directory '/home/developer/amiga-gcc/build-Linux-m68k-amigaos/libnix'
make[1]: *** [/home/developer/amiga-gcc/projects/libnix/Makefile.gcc6:111: libm020bb32881] Error 2
make[1]: Leaving directory '/home/developer/amiga-gcc/build-Linux-m68k-amigaos/libnix'

can't reproduce, sorry

@bebbo
Copy link
Owner

bebbo commented Dec 24, 2024

btw: Ubuntu 22.04.5 LTS should create some crash report.

@githubaf
Copy link
Author

Thanks for looking.
I see the same problem on another PC running Ubuntu 20.04 Focal Fossa.
I will try to find more info...

Merry Christmas!

@githubaf
Copy link
Author

githubaf commented Jan 9, 2025

Happy new year!

The issue (gcc internal compiler error) started with the commits from 12.Dec.
Last working version was from 8.Dec.

The commit from yesterday, 8.Jan

projects/gcc
commit f4faa83
refs #241: prevent infinite loop

has solved the issue! GCC works again. Also the black sun and moon are fixed.
Thank you!

@bebbo
Copy link
Owner

bebbo commented Jan 9, 2025

Happy new year too!

Thanks for the reporting and your patience :-)

@bebbo bebbo added the close pending the ticket will be closed soon, whether fixed or not label Jan 9, 2025
@bebbo bebbo closed this as completed Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
close pending the ticket will be closed soon, whether fixed or not
Projects
None yet
Development

No branches or pull requests

2 participants