From 55b8093e206dd101e70e329d9c42d2a71f8dc835 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Sun, 9 Sep 2007 18:29:24 -0400 Subject: [PATCH] invoke.texi (Overall Options): Add .sx file extension as a synonym for .S. 2007-09-09 Sandra Loosemore Nigel Stephens gcc/ * doc/invoke.texi (Overall Options): Add .sx file extension as a synonym for .S. * cppspec.c (known_suffixes): Likewise. * gcc.c (default_compilers): Likewise. Co-Authored-By: Nigel Stephens From-SVN: r128308 --- ChangeLog | 8 ++++++++ gcc/cppspec.c | 1 + gcc/doc/invoke.texi | 1 + gcc/gcc.c | 1 + 4 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index c06d29ace95..6441466baad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-09-09 Sandra Loosemore + Nigel Stephens + + * doc/invoke.texi (Overall Options): Add .sx file extension + as a synonym for .S. + * cppspec.c (known_suffixes): Likewise. + * gcc.c (default_compilers): Likewise. + 2007-09-07 Andrew Haley * configure.ac (noconfigdirs): Remove target-libffi and diff --git a/gcc/cppspec.c b/gcc/cppspec.c index 8c57ca3db2e..344da17a37e 100644 --- a/gcc/cppspec.c +++ b/gcc/cppspec.c @@ -45,6 +45,7 @@ static const char *const known_suffixes[] = { ".c", ".C", ".S", ".m", ".cc", ".cxx", ".cpp", ".cp", ".c++", + ".sx", NULL }; diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 0761733170e..7413abd3ef3 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -978,6 +978,7 @@ package body). Such files are also called @dfn{bodies}. Assembler code. @item @var{file}.S +@itemx @var{file}.sx Assembler code which must be preprocessed. @item @var{other} diff --git a/gcc/gcc.c b/gcc/gcc.c index 99bcd787f06..e40156a6417 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1023,6 +1023,7 @@ static const struct compiler default_compilers[] = {".s", "@assembler", 0, 1, 0}, {"@assembler", "%{!M:%{!MM:%{!E:%{!S:as %(asm_debug) %(asm_options) %i %A }}}}", 0, 1, 0}, + {".sx", "@assembler-with-cpp", 0, 1, 0}, {".S", "@assembler-with-cpp", 0, 1, 0}, {"@assembler-with-cpp", #ifdef AS_NEEDS_DASH_FOR_PIPED_INPUT