aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-07-12 12:11:28 +0000
committerJeffrey A Law <law@cygnus.com>1998-07-12 12:11:28 +0000
commit637ca102dbf9fc74005ada645719b5f47069b3de (patch)
tree7b9a2c67020fffbd3950e7a778b8279a3dc18543 /gcc/collect2.c
parentbef59e3631fc41ff0881a2adb3ba4c0afc8af512 (diff)
* collect2.c (main): Use "-x c" instead of "-lang-c" for force the
compiler into C mode. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@21087 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 442af243459..539e088472f 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -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;