Thanks for submitting the patch. This patch is OK to merge to the master and all open branches that have this target.
A corresponding patch for the RTEMS Source Builder is necessary because a gcc release with this patch won't be available for a while. I am starting a build with this now. If Sebastian pushes it before me, that's OK. --joel On Fri, Apr 6, 2018 at 3:05 PM, Amaan Cheval <amaan.che...@gmail.com> wrote: > Hi! > > All the gcc targets for RTEMS include gcc/config/rtems.h in tm_file to add > specific linker options using LIB_SPEC. > > This patch simply intends to add the same to the x86_64 target. > > There are no tests in this patch because I don't see any tests for any of > the > other RTEMS targets - let me know if you'd be interested in a patch for > that, > and I can look into adding general tests for all the RTEMS targets or just > specific ones that _must_ support these switches - Joel and Sebastian may > be > able to shed light on which it should be, if any. > > P.S. - I've also added this patch to rtems-source-builder and built gcc to > verify that it works (in that the new switches do not throw "unrecognized > command line option" errors anymore, at least). Let me know if you'd like a > patch to test with rtems-source-builder, if that makes it easier for you to > verify. > > Thanks! > > gcc/ChangeLog: > > 2018-04-07 Amaan Cheval <amaan.che...@gmail.com> > > * config.gcc (x86_64-*-rtems*): Add rtems.h to tm_file for > custom LIB_SPEC setup. > > Index: gcc/config.gcc > =================================================================== > --- gcc/config.gcc (revision 259188) > +++ gcc/config.gcc (working copy) > @@ -1496,7 +1496,7 @@ x86_64-*-elf*) > tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h > newlib-stdint.h i386/i386elf.h i386/x86-64.h" > ;; > x86_64-*-rtems*) > - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h > newlib-stdint.h i386/i386elf.h i386/x86-64.h i386/rtemself.h" > + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h > newlib-stdint.h i386/i386elf.h i386/x86-64.h i386/rtemself.h rtems.h" > ;; > i[34567]86-*-rdos*) > tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h > newlib-stdint.h i386/i386elf.h i386/rdos.h" >