OSDN Git Service

gcc/fortran:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Apr 2010 11:37:34 +0000 (11:37 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 00:59:05 +0000 (09:59 +0900)
2010-04-13  Iain Sandoe  <iains@gcc.gnu.org>

PR bootstrap/31400
* gfortranspec.c (lookup_option): Check for -static and return
OPTION_static.
(lang_specific_driver): Break when OPTION_static is discovered.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158262 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/gfortranspec.c

index 4ef8eb9..e90da6f 100644 (file)
@@ -1,3 +1,10 @@
+2010-04-13  Iain Sandoe  <iains@gcc.gnu.org>
+
+       PR bootstrap/31400
+       * gfortranspec.c (lookup_option): Check for -static and return
+       OPTION_static.
+       (lang_specific_driver): Break when OPTION_static is discovered.
+
 2010-04-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        * array.c (extract_element): Restore function from trunk.
index b7eccc3..413da7b 100644 (file)
@@ -186,6 +186,8 @@ lookup_option (Option *xopt, int *xskip, const char **xarg, const char *text)
        opt = OPTION_syntax_only;
       else if (!strcmp (text, "-static-libgfortran"))
        opt = OPTION_static_libgfortran;
+      else if (!strcmp (text, "-static"))
+       opt = OPTION_static;
       else if (!strcmp (text, "-fversion"))    /* Really --version!! */
        opt = OPTION_version;
       else if (!strcmp (text, "-Xlinker") || !strcmp (text, "-specs"))
@@ -351,8 +353,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
 #ifdef HAVE_LD_STATIC_DYNAMIC
          static_linking = 1;
 #endif
-         /* Fall through, count OPTION_static as an item included in
-            the rewritten command line. */
+         break;
 
        case OPTION_l:
          ++n_infiles;