bfin.c (bfin_lib_id_given): New static variable.
authorBernd Schmidt <bernd.schmidt@analog.com>
Wed, 13 Apr 2005 08:29:46 +0000 (08:29 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Wed, 13 Apr 2005 08:29:46 +0000 (08:29 +0000)
* config/bfin/bfin.c (bfin_lib_id_given): New static variable.
(bfin_handle_options): Set it if -mshared-library-id= is seen.
* config/bfin/bfin.opt (mshared-library-id=): Lose
Var(bfin_lib_id_given).

From-SVN: r98077

gcc/ChangeLog
gcc/config/bfin/bfin.c
gcc/config/bfin/bfin.opt

index 0be039b..c989b95 100644 (file)
@@ -1,3 +1,10 @@
+2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
+       (bfin_handle_options): Set it if -mshared-library-id= is seen.
+       * config/bfin/bfin.opt (mshared-library-id=): Lose
+       Var(bfin_lib_id_given).
+
 2005-04-13  Matt Thomas  <matt@3am-software.com>
  
        * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
index c4287a1..559ebb7 100644 (file)
@@ -69,6 +69,8 @@ static int arg_regs[] = FUNCTION_ARG_REGISTERS;
 
 /* The value passed to -mshared-library-id=.  */
 static int bfin_library_id;
+/* Nonzero if -mshared-library-id was given.  */
+static int bfin_lib_id_given;
 
 static void
 bfin_globalize_label (FILE *stream, const char *name)
@@ -1725,6 +1727,7 @@ bfin_handle_option (size_t code, const char *arg, int value)
               arg, MAX_LIBRARY_ID);
       else
        bfin_library_id = value;
+      bfin_lib_id_given = 1;
       return true;
 
     default:
index 8a07bc3..827947d 100644 (file)
@@ -36,5 +36,5 @@ Target Report Mask(ID_SHARED_LIBRARY)
 Enabled ID based shared library
 
 mshared-library-id=
-Target RejectNegative Joined UInteger Var(bfin_lib_id_given)
+Target RejectNegative Joined UInteger
 ID of shared library to build