From c8de0f3babc7a07b8a867d23d8e6d42cef0a1e80 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Wed, 13 Apr 2005 08:29:46 +0000 Subject: bfin.c (bfin_lib_id_given): New static variable. * 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 | 7 +++++++ gcc/config/bfin/bfin.c | 3 +++ gcc/config/bfin/bfin.opt | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0be039b..c989b95 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2005-04-13 Bernd Schmidt + + * 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 * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index c4287a1..559ebb7 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -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: diff --git a/gcc/config/bfin/bfin.opt b/gcc/config/bfin/bfin.opt index 8a07bc3..827947d 100644 --- a/gcc/config/bfin/bfin.opt +++ b/gcc/config/bfin/bfin.opt @@ -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 -- cgit v1.1