Commit Graph

29900 Commits

Author SHA1 Message Date
Tom Tromey
6dd1b06886 Input_UTF8.java (read): Fixed handling of surrogate characters.
* gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
	surrogate characters.
	* gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
	true.
	(write): Correct handling of surrogate characters.

From-SVN: r35569
2000-08-08 17:35:32 +00:00
Richard Henderson
97e242b0a7 ia64-protos.h: Remove duplicates.
* config/ia64/ia64-protos.h: Remove duplicates.  Update
	for massive code rearrangements.
	* config/ia64/ia64.c (ia64_arpfs_regno): Remove.
	(ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
	(ia64_local_regs, ia64_need_regstk): Remove.
	(ar_ccv_reg_operand): New.
	(ia64_gp_save_reg): New.
	(struct ia64_frame_info): Combine most of the size elements;
	add new gr save elements.
	(find_gr_spill): New.
	(next_scratch_gr_reg): New.
	(mark_reg_gr_used_mask): New.
	(ia64_compute_frame_size): Rewrite.  Allocate special AR regs
	to GR backing store regs when possible.
	(ia64_initial_elimination_offset): New.
	(ia64_rap_fp_offset): Remove.
	(save_restore_insns): Remove.
	(setup_spill_pointers): New.
	(finish_spill_pointers): New.
	(spill_restore_mem): New.
	(do_spill, do_restore): New.
	(ia64_expand_prologue): Rewrite to use them.
	(ia64_expand_epilogue): Likewise.
	(ia64_direct_return): Update for current_frame_info changes.
	(ia64_function_prologue): Simplify .prologue emission.  Emit
	.spill when needed.
	(ia64_setup_incoming_varargs): Don't ever emit rtl.
	(ia64_dbx_register_number): New.
	(ia64_initialize_trampoline): New.
	(ia64_secondary_reload_class): Request GR_REGS for integer
	arithmetic destined for FR_REGS.
	(ia64_init_machine_status): Don't reset return_address_pointer_rtx.
	(ia64_mark_machine_status): Mark ia64_gp_save.
	(rws_access_regno): Rename from rws_access_reg; don't treat
	predicates specially.
	(rws_access_reg): New.  Update all callers.
	(rtx_needs_barrier): Remove dead unspecs.
	(ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
	(ia64_encode_section_info): Silence signed/unsigned warnings.
	(spill_offset, sp_offset, spill_offset_emitted): Remove.
	(tmp_reg, tmp_saved): Remove.
	(process_set): Rewrite to expect complicated bits via
	REG_FRAME_RELATED_EXPR.
	(ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
	in the use of ar.ccv; never set RTX_UNCHANGING_P.
	(ia64_expand_op_and_fetch): Likewise.
	(ia64_expand_compare_and_swap): Likewise.
	(ia64_expand_builtin): Likewise.
	* config/ia64/ia64.h (AR_UNAT_REGNUM): New.
	(FIRST_PSEUDO_REGISTER): Update.
	(AR_M_REGNO_P): Update.
	(FIXED_REGS): Don't mark three local registers as used.
	(EXTRA_CC_MODES): New.
	(SELECT_CC_MODE): New.
	(HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
	(HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
	(FRAME_GROWS_DOWNWARD): Unset.
	(STARTING_FRAME_OFFSET): Zero.
	(ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
	(INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
	(HARD_FRAME_POINTER_REGNUM): New.
	(CAN_DEBUG_WITHOUT_FP): Define.
	(TRAMPOLINE_TEMPLATE): Remove.
	(TRAMPOLINE_SIZE): Lower to 32.
	(TRAMPOLINE_ALIGNMENT): Lower to 64.
	(INITIALIZE_TRAMPOLINE): Defer to out of line function.
	(PREDICATE_CODES): Update.
	(struct machine_function): Add ia64_gp_save.
	* config/ia64/ia64.md: Purge unused unspecs.
	(movsi patterns): Allow moves to/from AR_M_REGS.
	(movdi patterns): Allow moves to/from p0.
	(call patterns): Move most setjmp hackery to ia64_gp_save_reg.
	(gr_spill, gr_restore): Indicate ar.unat read/written.
	(nonlocal_goto): Don't pass old frame_pointer.
	(nonlocal_goto_receiver): Remove.
	(exception_receiver): New.
	(builtin_setjmp_setup): New.
	(builtin_setjmp_receiver): New.
	* config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
	(__ia64_nonlocal_goto): Bundle.  Don't kill r7.
	(__ia64_restore_stack_nonlocal): Likewise.
	(__ia64_trampoline): New.
	* config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
	function.
	* config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.

From-SVN: r35568
2000-08-08 03:01:20 -07:00
Richard Henderson
ee7152458a * gcc.dg/noncompile/920923-1.c: Declare calloc.
From-SVN: r35567
2000-08-08 02:24:53 -07:00
Richard Henderson
0548a9df61 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
From-SVN: r35566
2000-08-08 02:18:47 -07:00
Richard Henderson
db2e2f480c frame.h (ia64_frame_state): Add my_psp.
* frame.h (ia64_frame_state): Add my_psp.
        * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
        (__throw): Pass it in.  Don't clobber r7.
        * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
        (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
        and nothing to do with sp.
        (normalize_reg_loc): Use frame->my_psp.
        (frame_translate): Handle frame-pointer-less functions.  Set
        spill_base correctly, in absence of being told.
        (__build_ia64_frame_state): New sp argument.  Fill in frame->my_sp.
        (__ia64_backtrace_helper): New sp argument.  Use
        builtin_return_address instead of label addresses.
        (print_record) [mem_stack_v]: No size member.

From-SVN: r35565
2000-08-08 02:08:55 -07:00
Richard Henderson
2a3e384f15 tm.texi (LOCAL_REGNO): Document.
* tm.texi (LOCAL_REGNO): Document.
        * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
        (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
        * reload1.c (reload): Likewise when considering nonlocal labels.

        * config/ia64/ia64.h (LOCAL_REGNO): New.
        * config/sparc/sparc.h (LOCAL_REGNO): New.

From-SVN: r35564
2000-08-08 01:28:00 -07:00
Joseph Myers
43d1e05928 c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
* c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.

testsuite:
	* gcc.dg/noncompile/const-ll-1.c: New test.

From-SVN: r35563
2000-08-08 09:23:31 +01:00
Jeff Law
2c58a14717 Daily bump.
From-SVN: r35562
2000-08-08 01:45:08 -06:00
Tom Tromey
d7ec12ae74 Method.java (hashCode): Use getName().
* java/lang/reflect/Method.java (hashCode): Use getName().
	(toString): Likewise.
	* java/lang/reflect/natMethod.cc (getType): Initialize
	exception_types.

From-SVN: r35561
2000-08-08 03:34:51 +00:00
Alexandre Petit-Bianco
f0f3a77740 2000-08-07 Alexandre Petit-Bianco <apbianco@cygnus.com
* parse.y (build_dot_class_method_invocation): Changed parameter
	name to `type.' Build signature from `type' and convert it to a
	STRING_CST if it's an array.
	(patch_incomplete_class_ref): `build_dot_class_method_invocation'
	to use `ref_type' directly.

2000-08-01  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (maybe_yank_clinit): When generating bytecode: non empty
	method bodies not to rule out discarding `<clinit>'; don't use
	<clinit> to initialize static fields with constant initializers.

2000-08-01  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* gjavah.c (print_method_info): Added `synth' parameter. Skip
	synthetic methods.
	(method_synthetic): New global.
	(HANDLE_METHOD): Recognize synthetic method and tell
	`print_method_info' about it.
	(HANDLE_END_METHOD): Do not issue an additional `;\n' if we're
	processing a synthetic method.
	* jcf-reader.c (skip_attribute): New function.
	( skip_attribute): Likewise.

2000-08-01  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (build_outer_field_access): Fixed comments.
	(fix_constructors): Emit the initialization of this$<n> before
	calling $finit$.
	(resolve_qualified_expression_name): Build an access to `decl' if
	necessary.

2000-07-31  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse-scan.y (curent_class): Non longer const.
	(inner_qualifier, inner_qualifier_length): Deleted.
	(current_class_length): New global.
	(bracket_count): Fixed typo in leading comment.
	(anonymous_count): New global.
	(class_instance_creation_expression:): Handle anonymous classes.
	(anonymous_class_creation:): New rule.
	(push_class_context): Rewritten.
	(pop_class_context): Likewise.
	(INNER_QUALIFIER): Macro deleted.
	(report_class_declaration): call `push_class_context' when
	entering the function. `fprintf' format modified not to use
	INNER_QUALIFIER.
	(report_class_declaration): Assign `package_name' and
	`current_class' to NULL separatly.

2000-07-31  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* expr.c (build_invokeinterface): Call layout_class_methods on
	target interface.

(http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00339.html)

From-SVN: r35560
2000-08-07 20:33:36 -07:00
Nick Clifton
0da9afa6d6 Fix most compile time warning messages
From-SVN: r35559
2000-08-08 01:17:06 +00:00
Toon Moene
94260abda4 g77spec.c (lang_specific_driver): Clearer g77 version message.
2000-08-07  Toon Moene  <toon@moene.indiv.nluug.nl>

	* g77spec.c (lang_specific_driver): Clearer g77 version message.

From-SVN: r35558
2000-08-07 21:19:48 +00:00
Tom Tromey
273cea54e0 Method.java (toString): Use Class.getName, not Class.toString.
* java/lang/reflect/Method.java (toString): Use Class.getName, not
	Class.toString.
	* java/lang/reflect/Field.java (toString): Correct formatting.
	From Corey Minyard.

From-SVN: r35557
2000-08-07 20:03:40 +00:00
Tom Tromey
8ac80386ca PipedInputStream.java (read(byte[],int,int)): Mostly rewrote.
* java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
	rewrote.
	(receive): Streamlined.

From-SVN: r35556
2000-08-07 19:59:48 +00:00
Felix Natter
320f95489d porting-howto.html: New version.
2000-08-07  Felix Natter  <fnatter@gmx.net>

	* docs/17_intro/porting-howto.html:  New version.

From-SVN: r35555
2000-08-07 19:29:19 +00:00
DJ Delorie
1012068710 * MAINTAINERS: Add self as a DJGPP maintainer
From-SVN: r35554
2000-08-07 11:04:48 -04:00
DJ Delorie
15c758e9e4 configure.in (FLAGS_FOR_TARGET): invert test for xgcc...
* configure.in (FLAGS_FOR_TARGET): invert test for xgcc, should mean
"if we're also building gcc, and it's a gcc that will run on the
build machine, we want to use its includes instead of the system's
default includes".

From-SVN: r35553
2000-08-07 11:00:46 -04:00
Nick Clifton
8e04dd30d1 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
From-SVN: r35552
2000-08-07 11:35:06 +00:00
Graham Stott
f3d6a3cb21 mn10300.md: Use nonimmediate_operand instead of general_operand on output operands.
* mn10300.md: Use nonimmediate_operand instead of general_operand
on output operands.

From-SVN: r35551
2000-08-07 11:28:02 +00:00
Graham Stott
a7fef47884 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
From-SVN: r35550
2000-08-07 11:26:59 +00:00
Alexandre Oliva
f8ac5288be Remove dangling whitespace
From-SVN: r35549
2000-08-07 11:20:25 +00:00
Alexandre Oliva
a6f463a028 sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
* sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
* sh.c (expand_block_move): Break long lines.
(expand_ashiftrt, fpscr_set_from_mem): Likewise.
* sh.md (mulsi3): Likewise.
(movdi): Adjust spacing.

From-SVN: r35548
2000-08-07 09:58:29 +00:00
Joseph Myers
1c5ecb11b7 * gcc.dg/c90-printf-2.c, gcc.dg/c99-printf-2.c: New tests.
From-SVN: r35547
2000-08-07 10:48:23 +01:00
Richard Henderson
ae5f017f14 expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
* expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
        * expr.c (emit_group_store): Don't set it.

From-SVN: r35546
2000-08-07 01:27:54 -07:00
Jeff Law
373c27489a Daily bump.
From-SVN: r35545
2000-08-07 01:45:08 -06:00
Kazu Hirata
0811ea8f20 cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
* cp-tree.h (CLASSTYPE_HAS_PRIMARY_BASE_P): Fix a comment typo.
        * decl.c (pop_labels): Likewise.

From-SVN: r35544
2000-08-07 01:13:13 -06:00
Kazu Hirata
d169e67cd7 invoke.texi (Options for Debugging Your Program or GCC): Remove duplicate entries for 'w' and 'z'.
* invoke.texi (Options for Debugging Your Program or GCC): Remove
	duplicate entries for 'w' and 'z'.

From-SVN: r35543
2000-08-07 01:11:38 -06:00
Kazu Hirata
f90bb3f146 * flow.c: Fix a comment typo.
From-SVN: r35542
2000-08-07 01:07:21 -06:00
Kazu Hirata
26f1aa5fd2 * decl.c: Fix a comment typo.
From-SVN: r35541
2000-08-07 01:05:52 -06:00
Ovidiu Predescu
720a9d43fd c-parse.in: Changed the language string for Objective-C to "GNU Objective-C".
Sun Aug  6 23:47:35 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* c-parse.in: Changed the language string for Objective-C to "GNU
	Objective-C".

From-SVN: r35540
2000-08-07 06:48:26 +00:00
Ovidiu Predescu
24feaa95a4 Changed the language string for Objective-C to "GNU Objective-C".
From-SVN: r35539
2000-08-07 06:47:34 +00:00
Ovidiu Predescu
b3dc253f84 objc-features.texi: Documented the new -fconstant-string-class option.
Sun Aug  6 23:27:49 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* objc-features.texi: Documented the new -fconstant-string-class
	option.

From-SVN: r35538
2000-08-07 06:28:07 +00:00
Ovidiu Predescu
9f942e8c17 Documented the new -fconstant-string-class option.
From-SVN: r35537
2000-08-07 06:27:47 +00:00
Ovidiu Predescu
9bc3876e69 thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to improve the Posix thread...
Sun Aug  6 22:51:16 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
	improve the Posix thread support for Objective-C.

From-SVN: r35536
2000-08-07 05:51:41 +00:00
Ovidiu Predescu
54359cf93b Integrated Chris Ball's <cball@fmco.com> changes to improve the Posix
thread support for Objective-C.

From-SVN: r35535
2000-08-07 05:51:14 +00:00
Ovidiu Predescu
5a4f31cf62 gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes to improve the Posix thread...
Sun Aug  6 11:54:03 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
	to improve the Posix thread support for Objective-C.

From-SVN: r35534
2000-08-06 18:54:49 +00:00
Ovidiu Predescu
447c11a54e Integrated Chris Ball's <cball@fmco.com> changes to improve the Posix
thread support for Objective-C.

From-SVN: r35533
2000-08-06 18:54:00 +00:00
Ovidiu Predescu
137fa4d0bd objc.exp (objc_target_compile): Set the ld_library_path so that running programs linked against the shared...
Sun Aug  6 11:41:51 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* lib/objc.exp (objc_target_compile): Set the ld_library_path so
	that running programs linked against the shared version of libobjc
	run correctly.

From-SVN: r35532
2000-08-06 18:43:22 +00:00
Ovidiu Predescu
822c7fe253 Set the ld_library_path so that running programs linked against the
shared version of libobjc run correctly.

From-SVN: r35531
2000-08-06 18:41:49 +00:00
Joseph Myers
cd7324181a c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and CTI_UNSIGNED_PTRDIFF_TYPE.
* c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
	CTI_UNSIGNED_PTRDIFF_TYPE.
	(signed_size_type_node): Define.
	(unsigned_ptrdiff_type_node): Define.
	* c-decl.c (init_decl_processing): Create the
	signed_size_type_node and unsigned_ptrdiff_type_node types.
	* c-common.c (T_SC): Define.
	(T_SST): Define.
	(T_UPD): Define.
	(print_char_table): Use T_SST for %zd, %zi, %zn.  Use T_UPD for
	%to, %tu, %tx, %tX.  Allow %hhn (T_SC).  Add "c" to the flags for
	%s and %p.
	(scan_char_table): Use T_SC for %hhd, %hhi, %hhn.  Use T_SST for
	%zd, %zi, %zn.  Use T_UPD for %to, %tu, %tx, %tX.  Add "c" to the
	flags for %c, %s and %[.
	(check_format_info): Only allow leniency for signedness of targets
	of character pointers (when pedantic) for formats flagged with
	"c", so for strings but not for %hh formats.  When pedantic, don't
	allow character pointers to substitute for void pointers if a
	second level of indirection is present.

testsuite:
	* gcc.dg/c99-printf-1.c: New test.

From-SVN: r35530
2000-08-06 19:12:49 +01:00
Kazu Hirata
470fc13d5b invoke.texi (Options for Debugging Your Program or GCC): Update the names of dump files.
* invoke.texi (Options for Debugging Your Program or GCC): Update
	the names of dump files.

From-SVN: r35529
2000-08-06 12:08:08 -06:00
Joseph Myers
a7086ea957 * gcc.c-torture/execute/20000801-4.x: Only xfail on x86.
From-SVN: r35528
2000-08-06 19:04:54 +01:00
Kazu Hirata
7b3d46133d h8300.c (dosize): Rearrange code for conciseness.
* h8300.c (dosize): Rearrange code for conciseness.
        (split_adds_subs): Likewise.

From-SVN: r35527
2000-08-06 12:03:58 -06:00
Kazu Hirata
e6fcb60dd9 * loop.c: Fix formatting.
From-SVN: r35526
2000-08-06 11:57:57 -06:00
Kazu Hirata
556273e010 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
From-SVN: r35525
2000-08-06 11:55:22 -06:00
Jeff Law
f899e26285 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
From-SVN: r35524
2000-08-06 11:50:06 -06:00
Kazu Hirata
3a94c98401 * expr.c: Fix formatting.
From-SVN: r35523
2000-08-06 11:48:30 -06:00
Kaveh R. Ghazi
e50f5f3d69 * rs6000.c (rs6000_maybe_dead): Prototype.
From-SVN: r35522
2000-08-06 16:39:20 +00:00
Richard Henderson
157229c314 stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for HAVE_nonlocal_goto as well.
* stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
        HAVE_nonlocal_goto as well.
        * config/i960/i960.md (nonlocal_goto): Don't do it here.
        * config/pj/pj.md (nonlocal_goto): Likewise.

From-SVN: r35521
2000-08-06 03:07:31 -07:00
Michael Hayes
d2335c2403 loop.c (try_swap_copy_prop): New function.
* loop.c (try_swap_copy_prop): New function.
	(load_mems): Rename copies to load_copies and add new regset
	store_copies.  Check for sets of shadow registers and mark
	in store_copies.   Call try_swap_copy_prop for registers
	marked in store_copies.

From-SVN: r35520
2000-08-06 08:15:28 +00:00