Jan Hubicka wrote:
Andreas Jaeger wrote:
... snip ...
We discussed the problem in June. Gpc runtime uses sets, and to build gpc the backend have to be able to pass sets as parameters. With the patch below cross compiler from i386 to x86_64 is able to build gpc runtime. I am not able to cross-build glibc (I used glibc headers, but I faked libc.a) so the resulting executables have no chance to run, and I have no acces to AMD 64 machine to test ... But the resulting assembly code looks reasonable, so I think that with true glibc the compiler should build OK.
The patch is one possible implementation of passing set arguments. I do not not what Jan Hubicka wants to have in the backend -- in June he did not answer when I sent him the code.
Sorry for the delay. I must have missed your mail twice. The patch is OK for mainline/3.3 branch.
Just a quick thought - Ada also has sets, AFAIK, and is integrated into gcc now. I would expect that their backend solutions would also work for Pascal.