combined arm patch

Attached is the current ARM patch. It allows the LLVM branch to
compile on linux/arm and the resulting libgcc is compatible with a
glibc compiled a vanilla gcc,i.e, a statically compiled hello world
works :slight_smile:

The patch was constructed by merging patches from gcc 4.1 with minimal
editing for making merging easier. It was requested that I bracket the
changes, I will try to remove all unnecessary parts, like C++ support.
Is this ok or should I bracket the complete patch? Note that some
changes are just updates to auto generated files...

Best Regards,
Rafael

arm.patch.bz2 (37.2 KB)

Rafael,

Please bracket portions of your changes that involve modification of C/C++ source code. For cases of modifying configuration scripts and make files, use your best judgement. Obviously having the brackets emitted in generated code is problematic (line numbers et cetera), so don't bother in those cases.

Beside marking the changes we've made, the purpose of APPLE LOCAL brackets is reduce confusion when we merge with the main branch (sometimes a very hairy task when there are lots of conflicts.)

Cheers,

-- Jim

Rafael,

Please bracket portions of your changes that involve modification of
C/C++ source code. For cases of modifying configuration scripts and
make files, use your best judgement. Obviously having the brackets
emitted in generated code is problematic (line numbers et cetera), so
don't bother in those cases.

Beside marking the changes we've made, the purpose of APPLE LOCAL
brackets is reduce confusion when we merge with the main branch
(sometimes a very hairy task when there are lots of conflicts.)

I think that adding the marks may actually increase the number of
spurious conflicts (I had some problem with them while backporting
patches from 4.1).

Anyway, I have attached a version with the brackets. Is it ok? I
believe that it is mostly ARM specific. A bootstrap on a AMD64 breaks
on the same spot as before :slight_smile:

Cheers,

Best Regards,
Rafael

arm.patch.bz2 (36.2 KB)

Greatly appreciated, I attempt to make tomorrows mirror.

Cheers,

-- Jim

Try again. I'll attempt to make tomorrows mirror.

This patch should be in today's mirror ~6am PST.

Cheers,

-- Jim

arm.patch.bz2 (36.2 KB)

I had to revert these changes. When I did a clean build I was inundated with errors. I'm not sure if I made the cut off time for the mirror.

-- Jim

I had to revert these changes. When I did a clean build I was
inundated with errors. I'm not sure if I made the cut off time for
the mirror.

Could you please send me the log? The bootstrap is broken on linux
amd64 for some time now, so it is hard for me to do a full test :frowning:

-- Jim

Sorry for the problems,
Rafael

Log sent to Rafael offline.

Apparently the problem is caused by the patch making gcc/unwind.h
empty but not removing it !!!!

Could you please try to remove the empty gcc/unwind.h and try again? I
am currently compiling on a powerbook. I will report as soon as it
finishes.

Best Regards,
Rafael

Could you please try to remove the empty gcc/unwind.h and try again? I
am currently compiling on a powerbook. I will report as soon as it
finishes.

The build finished successfully!

Rafael

The following patch updates Rafael’s patch to apply it on svn revision 247.

Lauro

2006/12/6, Rafael EspĂ­ndola <rafael.espindola@gmail.com >:

arm.patch.bz2 (32.8 KB)