patch to allow custom libgcj.spec flags at configure-time

Adam Megacz patches@lists.megacz.com
Wed Feb 6 09:48:00 GMT 2002


OK to commit?

Adam Megacz <patches@lists.megacz.com> writes:
> This should help people who want to experiment with
> performance-enhancing flags.
> 
> For discussion, see:
> 
>   http://gcc.gnu.org/ml/java/2002-01/msg00304.html
> 
> Ok to commit?
> 
>   - a
> 
> 2002-02-04  Adam Megacz <adam@xwt.org>
> 
>         * configure.in: added --with-jc1-spec and --with-lib-spec
>           libgcj.spec.in: added @JC1EXTRASPEC@ and @LIBEXTRASPEC@
> 
> 
> Index: configure.in
> ===================================================================
> RCS file: /cvs/gcc/gcc/libjava/configure.in,v
> retrieving revision 1.106
> diff -u -r1.106 configure.in
> --- configure.in        2002/02/02 04:19:19     1.106
> +++ configure.in        2002/02/04 23:48:36
> @@ -183,6 +183,20 @@
>      AC_DEFINE(ENABLE_JVMPI)
>  fi
>  
> +LIBEXTRASPEC=
> +AC_ARG_WITH(lib_spec,
> +[  --with-lib-spec         add flags to libgcj.spec lib section],
> +LIBEXTRASPEC="$with_lib_spec"
> +)
> +AC_SUBST(LIBEXTRASPEC)
> +
> +JC1EXTRASPEC=
> +AC_ARG_WITH(jc1_spec,
> +[  --with-jc1-spec         add flags to libgcj.spec jc1 section],
> +JC1EXTRASPEC="$with_jc1_spec"
> +)
> +AC_SUBST(JC1EXTRASPEC)
> +
>  dnl If the target is an eCos system, use the appropriate eCos
>  dnl I/O routines.
>  dnl FIXME: this should not be a local option but a global target
> Index: libgcj.spec.in
> ===================================================================
> RCS file: /cvs/gcc/gcc/libjava/libgcj.spec.in,v
> retrieving revision 1.20
> diff -u -r1.20 libgcj.spec.in
> --- libgcj.spec.in      2001/08/01 12:33:38     1.20
> +++ libgcj.spec.in      2002/02/04 23:48:36
> @@ -4,6 +4,6 @@
>  # to link with libgcj.
>  #
>  %rename lib liborig
> -*lib: -lgcj -lm @LIBICONV@ @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) %(liborig)
> +*lib: -lgcj -lm @LIBICONV@ @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ @LIBEXTRASPEC@ %(libgcc) %(liborig)
>  
> -*jc1: @HASH_SYNC_SPEC@ @DIVIDESPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@ -fkeep-inline-functions
> +*jc1: @HASH_SYNC_SPEC@ @DIVIDESPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@ @JC1EXTRASPEC@ -fkeep-inline-functions
> 
> 
> 
> 

-- 



More information about the Java-patches mailing list