diff options
author | daney <daney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-05 17:09:02 +0000 |
---|---|---|
committer | daney <daney@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-05 17:09:02 +0000 |
commit | d279db8d38c6150ebc07368d1588c032b6a696a7 (patch) | |
tree | 5d217d4a6170f98ed2c4e56aa9f9040d46d5fdeb /libjava/Makefile.am | |
parent | cdc6ffd9cee23cf7bbb0f495e1135d31cf055c0f (diff) | |
download | gcc-d279db8d38c6150ebc07368d1588c032b6a696a7.tar.gz |
2008-09-05 David Daney <ddaney@avtrex.com>
* doc/install.texi (--enable-reduced-reflection): Document new option.
2008-09-05 David Daney <ddaney@avtrex.com>
* configure.ac (reduced-reflection): New AC_ARG_ENABLE.
(build_libgcj_reduced_reflection): New variable.
(BUILD_LIBGCJ_REDUCED_REFLECTION): New AM_CONDITIONAL.
* Makefile.am (LIBGCJ_REDUCED_REFLECTION_FLAGS): New variable.
(%.lo: %.list): Add LIBGCJ_REDUCED_REFLECTION_FLAGS to compile
command.
(java/util/concurrent.lo, java/util/concurrent/atomic.lo,
java/util/concurrent/locks.lo): Override
LIBGCJ_REDUCED_REFLECTION_FLAGS.
* Makefile.in, include/Makefile.in, testsuite/Makefile.in,
gcj/Makefile.in, configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140038 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/Makefile.am')
-rw-r--r-- | libjava/Makefile.am | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am index ce6dbd201f7..9b778f543b2 100644 --- a/libjava/Makefile.am +++ b/libjava/Makefile.am @@ -173,6 +173,12 @@ else LIBGCJ_BC_FLAGS = -findirect-dispatch -fno-indirect-classes endif +if BUILD_LIBGCJ_REDUCED_REFLECTION +LIBGCJ_REDUCED_REFLECTION_FLAGS = -freduced-reflection +else +LIBGCJ_REDUCED_REFLECTION_FLAGS = +endif + ## Extra CFLAGS used for JNI C sources shared with GNU Classpath. PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long @@ -401,8 +407,13 @@ lib-gnu-awt-xlib.la: $(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_DEPEND ## Compiling a list of java sources to a single .o. +# Concurrent things use reflection internally. +java/util/concurrent.lo \ +java/util/concurrent/atomic.lo \ +java/util/concurrent/locks.lo: LIBGCJ_REDUCED_REFLECTION_FLAGS = + %.lo: %.list - $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$< + $(LTGCJCOMPILE) $(LIBGCJ_REDUCED_REFLECTION_FLAGS) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$< java/lang/Object.lo: classpath/lib/java/lang/Object.class $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(srcdir)/$(basename $@).java $< |