From: Ralf Corsepius Date: Mon, 22 Mar 2004 14:26:02 +0000 (+0000) Subject: re PR c++/14260 (default arguments are only permitted for function parameters) X-Git-Tag: releases/gcc-3.3.4~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa4e65332e9d932c643063c1936d220375a81261;p=thirdparty%2Fgcc.git re PR c++/14260 (default arguments are only permitted for function parameters) 2004-03-17 Ralf Corsepius PR target/14260 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC. From-SVN: r79827 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ea6958ff147..d0781d106c04 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-03-17 Ralf Corsepius + + PR target/14260 + * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC. + 2004-03-21 Roger Sayle * fold-const.c (fold) : Rewrite optimization to transform diff --git a/gcc/config/rtems.h b/gcc/config/rtems.h index a3f9ba301b4d..a40e474ee8d1 100644 --- a/gcc/config/rtems.h +++ b/gcc/config/rtems.h @@ -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}}}" +