collect2.c (main): Use "-x c" instead of "-lang-c" for force the compiler into C mode.

* collect2.c (main): Use "-x c" instead of "-lang-c" for force the
        compiler into C mode.

From-SVN: r21087
This commit is contained in:
Jeffrey A Law 1998-07-12 12:11:28 +00:00 committed by Jeff Law
parent 90e5b31fb2
commit cb689bb608
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sun Jul 12 13:08:14 1998 Jeffrey A Law (law@cygnus.com)
* collect2.c (main): Use "-x c" instead of "-lang-c" for force the
compiler into C mode.
Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
* cplus-dem.c (demangle_nested_args): Return a value.

View File

@ -930,7 +930,7 @@ main (argc, argv)
char **object_lst = (char **) xcalloc (sizeof (char *), argc);
char **object = object_lst;
int first_file;
int num_c_args = argc+8;
int num_c_args = argc+9;
#ifdef DEBUG
debug = 1;
@ -1137,7 +1137,8 @@ main (argc, argv)
#endif
ldout = make_temp_file (".ld");
*c_ptr++ = c_file_name;
*c_ptr++ = "-lang-c";
*c_ptr++ = "-x";
*c_ptr++ = "c";
*c_ptr++ = "-c";
*c_ptr++ = "-o";
*c_ptr++ = o_file;