Commit d96d674b by Michael Haubenwallner Committed by David Edelsohn

collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable if -bnortl.

2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>

        * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
        if -bnortl. Convert to strcmp and strncmp.

From-SVN: r195837
parent 921f2dee
2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
* collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
if -bnortl. Convert to strcmp and strncmp.
2013-02-07 Alan Modra <amodra@gmail.com> 2013-02-07 Alan Modra <amodra@gmail.com>
PR target/54009 PR target/54009
......
...@@ -1022,20 +1022,20 @@ main (int argc, char **argv) ...@@ -1022,20 +1022,20 @@ main (int argc, char **argv)
selected_linker = USE_GOLD_LD; selected_linker = USE_GOLD_LD;
#ifdef COLLECT_EXPORT_LIST #ifdef COLLECT_EXPORT_LIST
/* since -brtl, -bexport, -b64 are not position dependent /* These flags are position independent, although their order
also check for them here */ is important - subsequent flags override earlier ones. */
if ((argv[i][0] == '-') && (argv[i][1] == 'b')) else if (strcmp (argv[i], "-b64") == 0)
{ aix64_flag = 1;
arg = argv[i]; /* -bexport:filename always needs the :filename */
/* We want to disable automatic exports on AIX when user else if (strncmp (argv[i], "-bE:", 4) == 0
explicitly puts an export list in command line */ || strncmp (argv[i], "-bexport:", 9) == 0)
if (arg[2] == 'E' || strncmp (&arg[2], "export", 6) == 0) export_flag = 1;
export_flag = 1; else if (strcmp (argv[i], "-brtl") == 0
else if (arg[2] == '6' && arg[3] == '4') || strcmp (argv[i], "-bsvr4") == 0
aix64_flag = 1; || strcmp (argv[i], "-G") == 0)
else if (arg[2] == 'r' && arg[3] == 't' && arg[4] == 'l') aixrtl_flag = 1;
aixrtl_flag = 1; else if (strcmp (argv[i], "-bnortl") == 0)
} aixrtl_flag = 0;
#endif #endif
} }
vflag = debug; vflag = debug;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment