Patchwork [gccgo] Don't use #ifndef for library names in gospec.c

login
register
mail settings
Submitter Ian Taylor
Date Nov. 16, 2010, 11:14 p.m.
Message ID <mcr1v6k6ev8.fsf@google.com>
Download mbox | patch
Permalink /patch/71472/
State New
Headers show

Comments

Ian Taylor - Nov. 16, 2010, 11:14 p.m.
Following a suggestion by Joseph Myers, this patch removes the #ifndef
around the library names in gospec.c.  If and when we find cases where
targets need to define these libraries, they can be added and documented
as target macros.  Committed to gccgo branch.

Ian

Patch

Index: gospec.c
===================================================================
--- gospec.c	(revision 166832)
+++ gospec.c	(working copy)
@@ -42,22 +42,12 @@  along with GCC; see the file COPYING3.  
 #define MATH_LIBRARY_PROFILE MATH_LIBRARY
 #endif
 
-#ifndef THREAD_LIBRARY
 #define THREAD_LIBRARY "pthread"
-#endif
-#ifndef THREAD_LIBRARY_PROFILE
 #define THREAD_LIBRARY_PROFILE THREAD_LIBRARY
-#endif
 
-#ifndef LIBGO
 #define LIBGO "go"
-#endif
-#ifndef LIBGOBEGIN
-#define LIBGOBEGIN "gobegin"
-#endif
-#ifndef LIBGO_PROFILE
 #define LIBGO_PROFILE LIBGO
-#endif
+#define LIBGOBEGIN "gobegin"
 
 void
 lang_specific_driver (struct cl_decoded_option **in_decoded_options,