]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/14260 (default arguments are only permitted for function parameters)
authorRalf Corsepius <corsepiu@faw.uni-ulm.de>
Mon, 22 Mar 2004 14:26:02 +0000 (14:26 +0000)
committerJoel Sherrill <joel@gcc.gnu.org>
Mon, 22 Mar 2004 14:26:02 +0000 (14:26 +0000)
2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>

PR target/14260
* config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.

From-SVN: r79827

gcc/ChangeLog
gcc/config/rtems.h

index 1ea6958ff14705e6e683430f9a9619acd84ccf83..d0781d106c04e2eef13426e7e919ab3f08c7a112 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+       PR target/14260
+       * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
+
 2004-03-21  Roger Sayle  <roger@eyesopen.com>
 
        * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
index a3f9ba301b4da47367ea9e3f2b6c1cb269d267a8..a40e474ee8d1a4e98a308c7c46dea97932943036 100644 (file)
@@ -1,7 +1,7 @@
 /* Configuration common to all targets running RTEMS. 
-   Copyright (C) 2000, 2002 Free Software Foundation, Inc. 
+   Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc. 
 
-This file is part of GNU CC.
+This file is part of GCC.
 
 GNU CC is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -35,3 +35,17 @@ Boston, MA 02111-1307, USA.  */
 
 #undef ENDFILE_SPEC
 #define ENDFILE_SPEC   ""
+
+/*
+ * Some targets do not set up LIB_SPECS, override it, here.
+ */
+#define STD_LIB_SPEC \
+  "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
+
+#undef LIB_SPEC
+#define LIB_SPEC "%{!qrtems: " STD_LIB_SPEC "} " \
+"%{!nostdlib: %{qrtems: --start-group \
+ %{!qrtems_debug: -lrtemsbsp -lrtemscpu} \
+ %{qrtems_debug: -lrtemsbsp_g -lrtemscpu_g} \
+ -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"
+