summaryrefslogtreecommitdiff
path: root/gcc/lto-wrapper.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-07 12:14:48 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-07 12:14:48 +0000
commit91e6823940324cb8ecbd5cc3ec2bad742e9b99b2 (patch)
treedc444a895416fd52be43723a898bba83e028b9b7 /gcc/lto-wrapper.c
parent57fab851920a44fb5bd75106a02a2aab99b39068 (diff)
downloadgcc-91e6823940324cb8ecbd5cc3ec2bad742e9b99b2.tar.gz
2011-01-07 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 168562 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@168566 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r--gcc/lto-wrapper.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 143e3fd1b66..6f106a31f45 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -422,7 +422,7 @@ run_gcc (unsigned argc, char *argv[])
argv_ptr[1] = "-o";
argv_ptr[2] = flto_out;
}
- else if (lto_mode == LTO_MODE_WHOPR)
+ else
{
const char *list_option = "-fltrans-output-list=";
size_t list_option_len = strlen (list_option);
@@ -457,8 +457,6 @@ run_gcc (unsigned argc, char *argv[])
argv_ptr[2] = "-fwpa";
}
- else
- fatal ("invalid LTO mode");
/* Append the input objects and possible preceeding arguments. */
for (i = 1; i < argc; ++i)
@@ -473,7 +471,7 @@ run_gcc (unsigned argc, char *argv[])
free (flto_out);
flto_out = NULL;
}
- else if (lto_mode == LTO_MODE_WHOPR)
+ else
{
FILE *stream = fopen (ltrans_output_file, "r");
FILE *mstream = NULL;
@@ -615,8 +613,6 @@ cont:
free (input_names);
free (list_option_full);
}
- else
- fatal ("invalid LTO mode");
obstack_free (&env_obstack, NULL);
}