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
gcc-2.95.3: Internal compiler error in `instantiate_virtual_regs_1', at function.c:3885 #29
Comments
From the patch set I cannot really tell which instructions are affected. I suppose it is int32 * int32 -> int64. I'll investigate machine description file and try to apply the patch. |
Hmm... could you explain in details how AmiSSL can be compiled with bare amigaos-cross-toolchain? Do I need some specific setup? EDIT: I see... clib2 is required I presume? |
A bit. All you need in principle is a Linux-based cross compiler setup with m68k-amigaos-gcc in your PATH. Then checkout the git repo and do:
However, you will require clib2 for OS3/m68k manually setup with your cross-toolchain. That's a little bit harder to achieve and that's why I have added ticket #32 to directly add the possibility to your toolchain to add cllib2 support. Another thing that is required to have a fixed baserel support is binutils-2.14 for which we still have proper patches in the adtools project. But to trigger the compiler error mentioned here binutils-2.14 isn't required. Please note also that I have added workarounds for the problem reported here. Now the default debug build is performed with -O1 rather than -O0 which shows the problem reported here. Also note that I have already tried to apply the patch I listed here already and it didn't make the bug go away. So there might be other effects causing it. |
Porting |
Why trying to compile the latest amisslv4 sources (https://github.com/jens-maus/amissl/tree/master) using yours (and other existing) gcc-2.95.3 based cross compilers I run into the following issue:
Compiling with anything higher than -O0 (e.g. -O1) already worksaround this problem.
After investigation I found the following gcc bugzilla entry reporting on a similar issue with GCC 2.95.3 and m68k builds:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8343
This resource suggests the following patch to be applied:
After having added that match to the
patches/gcc-2.95.3/gcc/config/m68k/m68k.md.diff
file in your repository the problem still exists and prevents from building a nice debug build of the latest AmiSSL developer build.I might be missing something here as I can't see that the gcc binary actually changed at all with the patch applied?!? Any help appreciated.
The text was updated successfully, but these errors were encountered: