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