This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Enabled -frecord-gcc-switches for ELF based targets


Hi Nick,

excuse me if I am getting this wrong but... are you committing these
changes to mainline or to 4.2 branch? I mention this because you added
your project as committed to http://gcc.gnu.org/wiki/GCC_4.2_Projects
. Perhaps you meant to add it to
http://gcc.gnu.org/wiki/GCC_4.3_Release_Planning

Cheers,

Manuel.

On 07/12/06, Nick Clifton <nickc@redhat.com> wrote:
Hi Guys,

  Now that the patch to implement -frecord-gcc-switches has been
  checked into the sources, I would like to enable it for ELF based
  targets.  Please may I therefore apply the patch below ?

  Checked by building and testing an x86 native and an arm-eabi cross
  toolchain, with no regressions.

Cheers
  Nick

gcc/ChangeLog
2006-12-07  Nick Clifton  <nickc@redhat.com>

        * config/elfos.h (TARGET_ASM_RECORD_GCC_SWITCHES): Set to
        elf_record_gcc_switches.

Index: gcc/config/elfos.h
===================================================================
--- gcc/config/elfos.h  (revision 119614)
+++ gcc/config/elfos.h  (working copy)
@@ -499,3 +499,8 @@ Boston, MA 02110-1301, USA.  */
         fprintf ((FILE), "\"\n");                                      \
     }                                                                  \
   while (0)
+
+/* Allow the use of the -frecord-gcc-switches switch via the
+   elf_record_gcc_switches function defined in varasm.c.  */
+#undef  TARGET_ASM_RECORD_GCC_SWITCHES
+#define TARGET_ASM_RECORD_GCC_SWITCHES elf_record_gcc_switches




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]