aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorZiemowit Laski <zlaski@apple.com>2004-08-18 01:58:13 +0000
committerZiemowit Laski <zlaski@gcc.gnu.org>2004-08-18 01:58:13 +0000
commitad8c162bc1f1ea2113598c0009fdba2c1c0b361d (patch)
treee96c191583dd94357f6928dca746faaf24ca6aa5 /gcc/gcc.c
parent3bc268e64b4167a3566c8b53decda0b06668f6fe (diff)
downloadgcc-ad8c162bc1f1ea2113598c0009fdba2c1c0b361d.zip
gcc-ad8c162bc1f1ea2113598c0009fdba2c1c0b361d.tar.gz
gcc-ad8c162bc1f1ea2113598c0009fdba2c1c0b361d.tar.bz2
gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii" Objective-C++ extensions.
[gcc/ChangeLog] 2004-08-18 Ziemowit Laski <zlaski@apple.com> * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii" Objective-C++ extensions. * gengtype.c (get_file_basename): Match entire subdirectory name ('cp', 'objc', 'objcp') rather than just its suffix. (get_base_file_bitmap): Allow for files to belong to more than one language. (get_output_file_with_visibility): Treat objc/objc-act.h as a header used by more than one front-end. From-SVN: r86167
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 78974ab..bce27bc 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -918,6 +918,8 @@ static const struct compiler default_compilers[] =
and be given a more meaningful error than "file not used since
linking is not done". */
{".m", "#Objective-C", 0, 0, 0}, {".mi", "#Objective-C", 0, 0, 0},
+ {".mm", "#Objective-C++", 0, 0, 0}, {".M", "#Objective-C++", 0, 0, 0},
+ {".mii", "#Objective-C++", 0, 0, 0},
{".cc", "#C++", 0, 0, 0}, {".cxx", "#C++", 0, 0, 0},
{".cpp", "#C++", 0, 0, 0}, {".cp", "#C++", 0, 0, 0},
{".c++", "#C++", 0, 0, 0}, {".C", "#C++", 0, 0, 0},