Commit Graph

44753 Commits

Author SHA1 Message Date
Jan Hubicka
7acc97e02e * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
From-SVN: r56603
2002-08-27 16:02:29 +00:00
Jan Hubicka
23327dae1f * i386.c (classify_argument): Properly compute word size of the analyzed object.
From-SVN: r56602
2002-08-27 16:01:34 +00:00
J"orn Rennecke
c49439f112 Scheduling revamp:
* sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
	mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
	accordingly.
	(attribute insn_class): Provide default definitions based on type.
	Remove all insn-specific settings.
	(various function units): Remove old SH4 scheduling.
	(branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
	New attributes.  Set them where appropriate.
	(cpu unit FS): Don't define / use.
	(F3, load_store): New cpu units.
	(F01): New reservation.
	(all insn_reservations): Make dependent on sh4 pipeline model.
	Fix latencies.
	(nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
	(sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
	(mt insn_reservation): Use type mt_group.
	(insn_reservation load_store): Split into sh4_load, sh4_load_si,
	sh4_fload and sh4_store.
	(insn_reservation branch_zero and branch): Replace with sh4_branch.
	(insn_reservation branch_far): Replace with sh4_return.
	(insn_reservation return_from_exp): Rename to:
	(sh4_return_from_exp).  Change to be just d_lock*5.
	(insn_reservation lds_to_pr): Rename to:
	(sh4_lds_to_pr).  Change to be just d_lock*2.
	(insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
	d_lock*2.
	(insn_reservation prload_mem): Rename to:
	(sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
	(insn_reservation fpscr_store): Rename to:
	(fpscr_load).  Change to d_lock,nothing,F1*3.
	(insn_reservation fpscr_store_mem): Rename to:
	(fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
	(insn_reservation multi): Change to
	d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
	(insn_reservation fp_arith): Change to issue,F01,F2.
	(insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
	(insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
	(insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
	(insn_reservation fp_double_cmp): Change to
	d_lock,(d_lock+F01),F1+F2,F2.
	(insn_reservation dp_div): Change to
	issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
	* sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
	(sh_adjust_cost, SHcompact): Differentiate between different
	kinds of dependencies.  Drop factor of ten for superscalar.
	Use new instruction types.  Add new exception rules.

Two small bug fixes:
	* sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.

	* sh.md (mperm_w): Add DONE.

From-SVN: r56601
2002-08-27 16:31:02 +01:00
David Edelsohn
f34fc46e79 longlong.h: Import current PowerPC defintion from GMP-4.1.
* longlong.h: Import current PowerPC defintion from GMP-4.1.

        * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.

        * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.

From-SVN: r56600
2002-08-27 10:55:42 -04:00
J"orn Rennecke
dcb44500e4 * sh.h (MAX_FIXED_MODE_SIZE): Define.
From-SVN: r56599
2002-08-27 14:05:08 +01:00
Gabriel Dos Reis
3ec07554ce cpp.texi (Common Predefined Macros): Don't mess with table delimiter.
* doc/cpp.texi (Common Predefined Macros): Don't mess with
          table
	  delimiter.

From-SVN: r56598
2002-08-27 10:53:06 +00:00
Gabriel Dos Reis
35885eab33 c-common.c (cpp_define_data_format): New function.
* c-common.c (cpp_define_data_format): New function.
	(cb_register_builtins): Call it.

	* doc/cpp.texi (Common Predefined Macros): Document
	__TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
	__TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
	__TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
	__TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
	__TARGET_USES_VAX_H_FLOAT__.

From-SVN: r56597
2002-08-27 09:38:05 +00:00
GCC Administrator
b0c6c224e2 Daily bump.
From-SVN: r56596
2002-08-27 07:17:16 +00:00
Tom Tromey
83dd5faeab parse.y (try_builtin_assignconv): Allow narrowing primitive conversion if RHS_TYPE is byte, short, or char.
* parse.y (try_builtin_assignconv): Allow narrowing primitive
	conversion if RHS_TYPE is byte, short, or char.

From-SVN: r56589
2002-08-26 23:30:02 +00:00
Ziemowit Laski
d632dee9cb objc-act.c (get_super_receiver): If inside a class method of a category...
[gcc]
2002-08-26  Ziemowit Laski <zlaski@apple.com>

        * objc/objc-act.c (get_super_receiver): If inside a class method
        of a category, cast the receiver to 'id' before accessing the 'isa'
        field so that <objc/objc-class.h> is not needed.  For NeXT runtime.

[gcc/testsuite]
2002-08-26  Ziemowit Laski  <zlaski@apple.com>

        * objc.dg/super-class-2.m: New test.

From-SVN: r56587
2002-08-26 21:17:20 +00:00
Ulrich Weigand
c3cc6b78a1 s390-protos.h (s390_function_prologue, [...]): Remove.
* config/s390/s390-protos.h (s390_function_prologue,
	s390_function_epilogue): Remove.
	config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
	TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.

	config/s390/s390.c (s390_machine_dependent_recorg): New function.
	config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
	config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
	config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
	to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.

	config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
	assume BASE_REGISTER and RETURN_REGNUM need to be saved.
	(s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
	function is not a leaf function.  Use save_gprs and restore_gprs.
	(s390_emit_epilogue): Likewise.
	(save_gprs, restore_gprs): New functions.
	(struct s390_frame): Remove return_reg_saved_p member.
	(save_fprs_p): Remove.
	(s390_optimize_prolog): New function.
	(s390_legitimate_reload_constant): Remove now unnecessary check.

	(s390_function_count): Remove.
	(s390_output_symbolic_const): Replace s390_function_count by
	current_function_funcdef_no.
	(s390_output_constant_pool): Likewise.

	(legitimize_pic_address): Use regs_ever_live to track PIC register
	instead of current_function_uses_pic_offset_table.
	(s390_emit_prologue): Likewise.
	config/s390/s390.md ("call", "call_value"): Likewise.

From-SVN: r56584
2002-08-26 18:18:19 +00:00
Neil Booth
3f66218653 c-opts.c (find_opt): Don't complain about wrong languages here.
* c-opts.c (find_opt): Don't complain about wrong languages
	here.  Return exact matches even for wrong language.
	(c_common_decode_option): Complain about wrong languages
	here.

From-SVN: r56583
2002-08-26 17:44:08 +00:00
GCC Administrator
00e3dddac0 Daily bump.
From-SVN: r56581
2002-08-26 07:17:18 +00:00
Adam Megacz
6005baa707 win32.h (getcwd): copied function declaration as temporary fix for header confusion.
2002-08-25  Adam Megacz <adam@xwt.org>

        * include/win32.h (getcwd): copied function declaration as
        temporary fix for header confusion.

From-SVN: r56574
2002-08-26 05:29:59 +00:00
Adam Megacz
e006911274 libjava.exp: don't apply -no-install when platform is mingw.
2002-08-25  Adam Megacz <adam@xwt.org>

    * lib/libjava.exp: don't apply -no-install when platform is mingw.

From-SVN: r56573
2002-08-26 05:26:32 +00:00
Gabriel Dos Reis
f3cd98c4d6 std_limits.h: Indent conditional macro definitions.
* include/std/std_limits.h: Indent conditional macro
          definitions.

From-SVN: r56570
2002-08-25 20:17:01 +00:00
GCC Administrator
1e798cdea9 Daily bump.
From-SVN: r56568
2002-08-25 07:17:11 +00:00
Stuart Hastings
b6128b8c31 function.h (struct function): Add flag all_throwers_are_sibcalls.
2002-08-24  Stuart Hastings  <stuart@apple.com>

        * function.h (struct function): Add flag
        all_throwers_are_sibcalls.
        * except.c (set_nothrow_function_flags): Replaces
        nothrow_function_p. Set new flag.
        * except.h (set_nothrow_function_flags): Replaces
        nothrow_function_p.
        * dwarf2out.c (struct dw_fde_struct): Add flag
        all_throwers_are_sibcalls.
        (output_call_frame_info): Test it.
        (dwarf2out_begin_prologue) Propagate it from cfun to
        dw_fde_struct.
        * toplev.c (rest_of_compilation): Update calls to
        nothrow_function_p.

From-SVN: r56561
2002-08-25 05:21:11 +00:00
Matt Austern
13d3f0b659 tree.c (lvalue_p_1): Add argument for whether casts of lvalues are allowable.
2002-08-24  Matt Austern  <austern@apple.com>

        * tree.c (lvalue_p_1): Add argument for whether casts of lvalues
        are allowable.
        (real_lvalue_p): Update caller.
        (lvalue_p): Ditto.
        (non_cast_lvalue_or_else): New.
        * tree.h: Declare it.
        * typeck.c (build_unary_op): Use non_cast_lvalue_or_else.

2002-08-24  Matt Austern  <austern@apple.com>

        * g++.dg/ext/lvaddr.C: New test.
        * g++.dg/ext/lvcast.C: New test.

From-SVN: r56560
2002-08-25 04:57:16 +00:00
Andre Leis
d241f75b96 David Billinghurst (David.Billinghurst@riotinto.com>
2002-08-25  Andre Leis <a.leis@gmx.net>
            David Billinghurst (David.Billinghurst@riotinto.com>

        * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin

Co-Authored-By: David Billinghurst <David.Billinghurst@riotinto.com>

From-SVN: r56558
2002-08-25 00:59:31 +00:00
Mark Wielaard
6e0532cdf6 Makefile.am (libgcj_la_SOURCES): Remove name-finder.cc.
* Makefile.am (libgcj_la_SOURCES): Remove name-finder.cc.
        (core_java_source_files): Add VMThrowable.java and NameFinder.java
        (nat_source_files): Remove natThrowable.cc, add natVMThrowable.cc
        and natNameFinder.cc.
        * Makefile.in: Regenerate.
        * prims.cc: Use trace_enabled from VMThrowable.
        * name-finder.cc: Removed.
        * gcj/javaprims.h: Add class VMThrowable.
        * gnu/gcj/runtime/NameFinder.java: New file.
        * gnu/gcj/runtime/natNameFinder.cc: Likewise.
        * include/name-finder.h: Removed.
        * java/lang/Throwable.java (printStackTrace (PrintStream)): Use new
        method stackTraceString().
        (printStackTrace (PrintWriter)): Likewise.
        (stackTraceString): Complete rewrite of old printStackTrace using
        StringBuffer.
        (stackTraceStringBuffer): New helper method for stackTraceString().
        (fillInStackTrace): Delegate to VMTrowable.
        (getStackTrace): Likewise.
        (getStackTrace0): Removed.
        (trace_enabled, stackTraceBytes): Moved to new VMThrowable.java.
        (setStackTrace): Copy given array.
        * java/lang/natThrowable.cc: Removed (replaced by natVMThrowable).
        * java/lang/VMThrowable.java: New class.
        * java/lang/natVMThrowable.cc: New file.

From-SVN: r56556
2002-08-24 22:46:19 +00:00
Geoffrey Keating
4906d5d83e * MAINTAINERS: Change my mailing address.
From-SVN: r56555
2002-08-24 22:30:51 +00:00
GCC Administrator
3f1a8d76d2 Daily bump.
From-SVN: r56554
2002-08-24 07:17:09 +00:00
Zack Weinberg
280cf02aff ggc-page.c (compute_inverse): Short circuit calculation for object sizes larger than half a page.
* ggc-page.c (compute_inverse): Short circuit calculation for
	object sizes larger than half a page.

From-SVN: r56548
2002-08-24 03:20:33 +00:00
Phil Edwards
314b5a68e3 Makefile.am (check-abi): Specify current directory.
2002-08-23  Phil Edwards  <pme@gcc.gnu.org>

	* Makefile.am (check-abi):  Specify current directory.
	* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE):  Fix shell syntax, use
	abi_baseline_triplet in baseline_file.
	* Makefile.in, aclocal.m4, configure:  Regenerate.
	* configure.target:  Add abi_baseline_triplet with default.
	* testsuite/abi_check.cc:  More error checking.

From-SVN: r56545
2002-08-23 19:33:41 +00:00
David Edelsohn
c6664446f6 rs6000.c (rs6000_elf_select_section): Treat DEFAULT_ABI == ABI_AIX like PIC.
* config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
        DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
        default.
        (rs6000_elf_unique_section): Likewise.

From-SVN: r56544
2002-08-23 14:02:22 -04:00
Kaveh R. Ghazi
da57d233f9 ns32k.c (ns32k_globalize_label): Delete.
* ns32k.c (ns32k_globalize_label): Delete.
	* ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.

From-SVN: r56543
2002-08-23 17:35:23 +00:00
Phil Edwards
6dc5fdfd5f linker-map.gnu: Verbose comments, clean up spacing.
2002-08-23  Phil Edwards  <pme@gcc.gnu.org>

	* config/linker-map.gnu:  Verbose comments, clean up spacing.
	* include/bits/stl_alloc.h:  Fix indentation of 'if' bodies, return
	statements.
	__allocator:  Change class declaration to struct.
	* docs/html/17_intro/C++STYLE:  Fix typo.
	* include/bits/stl_deque.h, include/bits/stl_list.h,
	include/bits/stl_map.h, include/bits/stl_multimap.h,
	include/bits/stl_vector.h:  Fix fallout from typo.

From-SVN: r56540
2002-08-23 16:52:29 +00:00
GCC Administrator
939e32f060 Daily bump.
From-SVN: r56538
2002-08-23 07:17:10 +00:00
Michael Koch
6347f94ca8 URLConnection.java, [...]: Added implementation of getHeaderFields().
2003-08-23  Michael Koch  <konqueror@gmx.de>

       * java/net/URLConnection.java,
       java/netJarURLConnection.java,
       gnu/gcj/protocol/core/Connection.java,
       gnu/gcj/protocol/file/Connection.java,
       gnu/gcj/protocol/http/Connection.java: Added implementation of
       getHeaderFields().

From-SVN: r56532
2002-08-23 04:54:03 +00:00
Benjamin Kosnik
e21c2e1c38 acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Set GLIBCPP_BUILD_ABI_CHECK based on cross compiling, build, host variables.
2002-08-22  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Set
	GLIBCPP_BUILD_ABI_CHECK based on cross compiling, build, host
	variables.
	* aclocal.m4: Regenerate.
	* testsuite/Makefile.am (noinst_PROGRAMS): Make conditional on
	native compiling.
	* testsuite/Makefile.in: Regenerate.

From-SVN: r56531
2002-08-23 03:39:51 +00:00
Loren J. Rittle
809abaff7e * testsuite/abi_check.cc: Support older binutils/readelf.
From-SVN: r56530
2002-08-23 02:57:11 +00:00
Loren J. Rittle
1f8151cf73 abi_check.cc: Enhance shell portability.
* testsuite/abi_check.cc: Enhance shell portability.
	* config/abi/i386-unknown-freebsd4.6: Add.
	* config/abi/i386-unknown-freebsd4.6/baseline_symbols.txt: New file.

From-SVN: r56527
2002-08-23 01:50:15 +00:00
Alan Modra
56a7189af0 rs6000.c (output_mi_thunk): Don't determine insns for loading delta with num_insns_constant_wide.
* config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
	for loading delta with num_insns_constant_wide.  Calculate
	delta_low, delta_high without using a conditional.

From-SVN: r56525
2002-08-23 10:48:06 +09:30
Mark Mitchell
5b770a964a typeck.c (build_class_member_access_expr): Handle COMPOUND_EXPR and COND_EXPR specially; fix error message output.
* typeck.c (build_class_member_access_expr): Handle COMPOUND_EXPR
	and COND_EXPR specially; fix error message output.

	* testsuite/g++.dg/inherit/cond1.C: New test.

From-SVN: r56524
2002-08-23 00:28:29 +00:00
Jason Merrill
d65b1d77fd c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
* c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
        * c-common.def: Adjust.
        * c-dump.c (c_dump_tree): Adjust.
        * c-semantics.c (genrtl_return_stmt): Adjust.
        * c-pretty-print.c (pp_c_statement): Adjust.
        * tree-inline.c (copy_body_r): Adjust.

2002-08-22  Jason Merrill  <jason@redhat.com>

        * pt.c (tsubst_expr): RETURN_EXPR is now RETURN_STMT_EXPR.
        * semantics.c (nullify_returns_r): Likewise.

From-SVN: r56523
2002-08-22 19:22:53 -04:00
Tom Tromey
2263ca09cb gij.cc (help): Document -cp and -classpath.
* gij.cc (help): Document -cp and -classpath.
	(main): Handle -classpath.

From-SVN: r56522
2002-08-22 22:44:26 +00:00
Tom Tromey
00a8b314c4 * gcj.texi (Invoking gij): Document -cp and -classpath.
From-SVN: r56521
2002-08-22 22:44:20 +00:00
Paolo Carlini
9acd8e650b index.html: Add Loren James Rittle and Paolo Carlini to the list of v3 maintainers.
2002-08-22  Paolo Carlini  <pcarlini@unitus.it>

	* docs/html/faq/index.html: Add Loren James Rittle and
	Paolo Carlini to the list of v3 maintainers.
	* docs/html/faq/index.txt: Ditto.
	* docs/html/17_intro/RELEASE-NOTES: Ditto.

From-SVN: r56516
2002-08-22 20:30:13 +00:00
Benjamin Kosnik
747d096709 Makefile.am (check-abi): New rule.
2002-08-22  Benjamin Kosnik  <bkoz@redhat.com>
	    Phil Edwards  <pme@gcc.gnu.org>
	    Ulrich Drepper  <drepper@redhat.com>

	* Makefile.am (check-abi): New rule.
	* Makefile.in: Regenerate.
	* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Export baseline_file.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* testsuite/Makefile.am (noinst_PROGRAMS): Add abi_check.
	(abi_check_SOURCES): Add.
	* testsuite/Makefile.in: Regenerate.
	* testsuite/abi_check.cc: New file.
	* config/abi: Add.
	* config/abi/i686-pc-linux-gnu: Add.
	* config/abi/i686-pc-linux-gnu/baseline_symbols.txt: New file.

Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
Co-Authored-By: Ulrich Drepper <drepper@redhat.com>

From-SVN: r56515
2002-08-22 20:06:01 +00:00
Geoffrey Keating
a976230b42 * gcc.dg/noncompile/incomplete-1.c: New test.
From-SVN: r56514
2002-08-22 20:05:52 +00:00
Zack Weinberg
8537ed688c ggc-page.c: Avoid division in ggc_set_mark.
* ggc-page.c: Avoid division in ggc_set_mark.
	(DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
	compute_inverse): New.
	(ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
	(init_ggc): Initialize inverse_table.

From-SVN: r56512
2002-08-22 19:17:04 +00:00
Tom Tromey
8567c70f72 * doc/install.texi (Configuration): Document --datadir.
From-SVN: r56511
2002-08-22 17:46:35 +00:00
GCC Administrator
27a7fc5da6 Daily bump.
From-SVN: r56509
2002-08-22 07:17:37 +00:00
Alexandre Oliva
fde59d4bf4 * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
From-SVN: r56503
2002-08-22 04:29:34 +00:00
Hans-Peter Nilsson
d7704f76d2 where.h (struct _ffewhere_file_): Mark GTY.
* where.h (struct _ffewhere_file_): Mark GTY.
	(ffewhere_file_kill): Remove prototype.
	* where.c: Include ggc.h.
	(struct _ffewhere_ll_, struct _ffewhere_root_ll_): Mark GTY.
	(ffewhere_root_ll_): Ditto.  Change type from struct
	_ffewhere_root_ll_ to struct _ffewhere_root_ll_*.  All uses
	changed.
	(ffewhere_file_kill): Remove.
	(ffewhere_file_new): Use GC to allocate ffewhereFile objects.
	(ffewhere_file_set): Use GC to allocate ffewhereLL_ objects.
	(ffewhere_init_1): Use GC to allocate ffewhere_root_ll_ sentinel.
	Include gt-f-where.h.
	* lex.c (ffelex_current_wf_, ffelex_include_wherefile_): Mark GTY.
	Include gt-f-lex.h.
	* std.c (ffestd_S3P4): Don't call ffewhere_file_kill.
	* config-lang.in (gtfiles): Add f/where.h f/where.c and f/lex.c.
	* Make-lang.in (gt-f-lex.h gt-f-where.h): Add to dependents of
	s-gtype.
	(f/lex.o): Depend on gt-f-lex.h.
	(f/where.o): Depend on gt-f-where.h.

From-SVN: r56502
2002-08-22 02:20:43 +00:00
Hans-Peter Nilsson
44ddc79ad2 * gengtype-lex.l (ID): Allow underscore as first character.
From-SVN: r56501
2002-08-22 02:17:08 +00:00
David Edelsohn
b275d0886c rs6000.c (rs6000_xcoff_asm_globalize_label): New function.
* config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
        function.
        (rs6000_xcoff_asm_named_section): Rename.
        * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.

From-SVN: r56500
2002-08-21 21:53:30 -04:00
Tom Tromey
79a3cb1885 re PR libgcj/7633 ($(prefix)/share used rather than $(datadir))
* Make-lang.in (java/jcf-path.o): Use $(datadir), not
	$(prefix)/share.  For PR libgcj/7633.

From-SVN: r56499
2002-08-22 00:52:20 +00:00
Tom Tromey
57ce46bb22 For PR java/6005 and PR java/7611:
* fold-const.c (fold_truthop): Use can_use_bit_fields_p.
	(fold): Likewise.
	* langhooks.c (lhd_can_use_bit_fields_p): New function.
	* langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
	(LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
	(LANG_HOOKS_INITIALIZER): Use it.
	* langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
	field.

From-SVN: r56498
2002-08-22 00:42:40 +00:00