gcc using wrong as
Antoine Kaufmann
toni@famkaufmann.info
Thu Feb 7 07:51:00 GMT 2008
Hello
I'm working on a gcc port to a hobby operating system. I got it working
partially (cc1 works and I think I'm not far from get the gcc frontend
working).
Now i wanted to rename my target from i386-elf-lost to i386-pc-lost because I
was told that this would be more canonical. (I don't wanted to rename it to
i386-lost-elf because I was told that this would enable some newlib features,
and we aren't using newlib).
I wanted to recompile gcc for the new target. First I made the changes in
binutils and recompiled them without any problem. Recompiling gcc worked too
after some small changes. But when I tried to compile a simple Hello World,
gcc failed with some assembler error messages about illegal operad size with
some push instructions. As i guessed they seem to come from the host 64bit
as. I compared the error messages by trying to assemble the code manually.
This seems very strange to me, because there were no problems with the old
target name. configure locates as correctly (as far as I can judge this):
checking for as... no
checking for i386-pc-lost-as... i386-pc-lost-as
Any ideas why this doesn't work anymore?
I attached the relevant parts of the diff to the original gcc-source (I left
out some changes in libiberty which are only useful for the native compiler).
Thanks
Toni Kaufmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-4.2.2_new.patch
Type: text/x-diff
Size: 6638 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080207/59251726/attachment.bin>
More information about the Gcc
mailing list