Assume TARGET_BYTE_ORDER_SELECTABLE{,_P} is always true.

This commit is contained in:
Andrew Cagney
2002-01-20 19:26:50 +00:00
parent 3e36a0f45e
commit 3fd3d7d29c
19 changed files with 46 additions and 138 deletions

View File

@ -88,10 +88,8 @@ create_inferior (char *program, char **argv)
{
bfd *abfd;
int pid = 0;
#ifdef TARGET_BYTE_ORDER_SELECTABLE
char **new_argv;
int nargs;
#endif
abfd = bfd_openr (program, 0);
if (!abfd)
@ -108,7 +106,6 @@ create_inferior (char *program, char **argv)
exit (1);
}
#ifdef TARGET_BYTE_ORDER_SELECTABLE
/* Add "-E big" or "-E little" to the argument list depending on the
endianness of the program to be loaded. */
for (nargs = 0; argv[nargs] != NULL; nargs++) /* count the args */
@ -120,7 +117,6 @@ create_inferior (char *program, char **argv)
new_argv[nargs + 1] = bfd_big_endian (abfd) ? "big" : "little";
new_argv[nargs + 2] = NULL;
argv = new_argv;
#endif
/* Create an instance of the simulator. */
default_callback.init (&default_callback);