Commit Graph

51261 Commits

Author SHA1 Message Date
Jan Hubicka
64e9744358 builtins.c (expand_builtin_mathfn, [...]): Avoid busy work when builtin is not supported by the backend.
* builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
	busy work when builtin is not supported by the backend.

From-SVN: r68681
2003-06-29 21:16:13 +00:00
Zdenek Dvorak
51a7f2053a loop.c (count_one_set): Fix detection of registers set in more than one basic block.
* loop.c (count_one_set): Fix detection of registers set in more
	than one basic block.

From-SVN: r68680
2003-06-29 20:42:42 +00:00
Andreas Jaeger
4a023207ac target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
* target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
	* system.h: Poison OBJ_FORMAT_ROSE.
	* doc/tm.texi (Macros for Initialization): Remove documentatin of
	OBJECT_FORMAT_ROSE.
	* config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
	* collect2.c: Remove usage of OBJECT_FORMAT_ROSE.

From-SVN: r68678
2003-06-29 20:34:38 +02:00
John David Anglin
5fad1c24db pa.c (update_total_code_bytes): New function.
* pa.c (update_total_code_bytes): New function.
	(last_address): Number of bytes output for a function and its
	associated thunks.
	(compute_frame_size): Use BITS_PER_UNIT.
	(pa_output_function_epilogue): Compute last_address.  Use
	update_total_code_bytes.
	(output_lbranch): Handle long branch on portable runtime.
	(attr_length_millicode_call, attr_length_call,
	attr_length_indirect_call): Only use total_code_bytes for calls in
	the text section.
	(output_call): Only use an indirect call sequence when the target is
	not local.
	(pa_asm_output_mi_thunk): Handle updating of total_code_bytes.  Improve
	test to determine when an IA-relative branch can be used.  Add various
	long branch sequences.  Avoid using an indirect branch on all ports
	except SOM.

From-SVN: r68677
2003-06-29 18:21:57 +00:00
Ulrich Weigand
342e2b749d * expr.c (clear_by_pieces): Fix prototype.
From-SVN: r68676
2003-06-29 17:47:37 +00:00
David Edelsohn
e601f149a9 * config.gcc: Add 970.
From-SVN: r68675
2003-06-29 13:36:44 -04:00
Andreas Jaeger
502b832280 except.c: Convert prototypes to ISO C90.
* except.c: Convert prototypes to ISO C90.
	* except.h: Likewise.
	* emit-rtl.c: Likewise.
	* et-forest.c: Likewise.
	* et-forest.h: Likewise.
	* except.c: Likewise.
	* explow.c: Likewise.
	* expmed.c: Likewise.
	* expr.c: Likewise.
	* expr.h: Likewise.

From-SVN: r68674
2003-06-29 18:21:58 +02:00
Andreas Jaeger
7080f73594 cse.c: Convert prototypes to ISO C90.
* cse.c: Convert prototypes to ISO C90.
	* cselib.c: Likewise.
	* cselib.h: Likewise.
	* dbxout.c: Likewise.
	* debug.c: Likewise.
	* df.c: Likewise.
	* df.h: Likewise.
	* dojump.c: Likewise.
	* doloop.c: Likewise.
	* dominance.c: Likewise.
	* dwarf2asm.c: Likewise.
	* dwarf2out.c: Likewise.
	* dwarf2out.h: Likewise.
	* dwarfout.c: Likewise.

From-SVN: r68673
2003-06-29 17:19:13 +02:00
Kazu Hirata
f9da506452 alloc-pool.c: Fix comment formatting.
* alloc-pool.c: Fix comment formatting.
	* bitmap.c: Likewise.
	* bitmap.h: Likewise.
	* bt-load.c: Likewise.
	* builtins.c: Likewise.
	* caller-save.c: Likewise.
	* cfganal.c: Likewise.
	* cfgrtl.c: Likewise.
	* collect2.c: Likewise.
	* cse.c: Likewise.
	* df.c: Likewise.
	* diagnostic.c: Likewise.
	* dwarf2out.c: Likewise.
	* dwarfout.c: Likewise.
	* expmed.c: Likewise.
	* final.c: Likewise.
	* flags.h: Likewise.
	* fold-const.c: Likewise.
	* gcc.c: Likewise.
	* gcov-io.h: Likewise.
	* gcov.c: Likewise.
	* genattrtab.c: Likewise.
	* genautomata.c: Likewise.
	* libgcov.c: Likewise.
	* mips-tfile.c: Likewise.
	* optabs.c: Likewise.
	* prefix.c: Likewise.
	* rtlanal.c: Likewise.
	* stmt.c: Likewise.
	* stor-layout.c: Likewise.
	* toplev.c: Likewise.
	* varasm.c: Likewise.
	* vmsdbgout.c: Likewise.

From-SVN: r68672
2003-06-29 13:53:12 +00:00
Kazu Hirata
329d586fe5 expr.c (emit_single_push_insn): If padding is needed downward...
* expr.c (emit_single_push_insn): If padding is needed
	downward, adjust the stack pointer first, and then store the
	data into the stack location using an offset.

From-SVN: r68670
2003-06-29 13:40:24 +00:00
Andreas Jaeger
159b3be1f3 collect2.h: Convert prototypes to ISO C90.
* collect2.h: Convert prototypes to ISO C90.
	* collect2.c: Likewise.
	* conflict.c: Likewise.
	* coverage.c: Likewise.
	* convert.h: Likewise.
	* convert.c: Likewise.

From-SVN: r68669
2003-06-29 14:07:06 +02:00
Gabriel Dos Reis
4e3f84b7ca cp-tree.h (language_to_string): Adjust declaration.
* cp-tree.h (language_to_string): Adjust declaration.
	* dump.c (cp_dump_tree): Adjust usage.
	* error.c (dump_char): Use output_formatted_scalar. Tidy.
	(parm_to_string): Lose unused parameter.  Tidy.
	(expr_to_string): Likewise.
	(code_to_string): Likewise.
	(language_to_string): Likewise.
	(op_to_string): Likewise.
	(assop_to_string): Likewise.
	(digit_buffer): Remove.
	(dump_type): Format builtin vector type as __vector__.

From-SVN: r68668
2003-06-29 12:02:58 +00:00
Nathan Sidwell
4714db5aef c-decl.c (c_init_decl_processing): Use a location_t.
* c-decl.c (c_init_decl_processing): Use a location_t. Set input
	filename to <internal>.
	* tree.c (make_node): Just copy the current location.

From-SVN: r68667
2003-06-29 11:28:00 +00:00
Paolo Carlini
165f54e074 11305-1.cc: Improve type correctness-wise.
2003-06-29  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
	Improve type correctness-wise.
	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
	Likewise.
	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
	Likewise.
	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
	Likewise.

From-SVN: r68666
2003-06-29 11:12:35 +00:00
Gabriel Dos Reis
748f6cb5d4 error.c (print_integer): Remove.
* error.c (print_integer): Remove.
	(dump_type_suffix): Adjust.
	(dump_expr): Likewise.

From-SVN: r68665
2003-06-29 10:55:33 +00:00
Paolo Carlini
90319d1698 std_streambuf.h (uflow): According to 27.5.2.4.3,p16, don't check gptr() < egptr().
2003-06-29  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_streambuf.h (uflow): According to
	27.5.2.4.3,p16, don't check gptr() < egptr().

From-SVN: r68664
2003-06-29 10:31:06 +00:00
Eric Botcazou
df7fb8f968 re PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed to unsigned char)
PR optimization/11210
	* fold-const (decode_field_reference): Revert 2003-06-26 patch.

From-SVN: r68662
2003-06-29 08:31:52 +00:00
Neil Booth
dfb827711d toplev.c (flag_dummy): Remove.
* toplev.c (flag_dummy): Remove.
	(f_options): Restore flag pointers.

From-SVN: r68661
2003-06-29 08:18:17 +00:00
David Edelsohn
7177e7205a * config/rs6000/rs6000.c (processor_target_table): Add 970.
From-SVN: r68660
2003-06-29 00:42:20 -04:00
Kazu Hirata
485bad26ce dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X, -1) with ggc_strdup.
* dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
	-1) with ggc_strdup.
	* stmt.c (expand_asm_operands): Likewise.
	* config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.

From-SVN: r68659
2003-06-29 04:24:55 +00:00
Kazu Hirata
b01258dd12 ip2k.c (ip2k_reorg): Use INSN_P instead of its definition.
* config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
	definition.

From-SVN: r68658
2003-06-29 02:15:51 +00:00
Franz Sirl
d6553b54e8 opts.c: Include insn-attr.h.
2003-06-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* opts.c: Include insn-attr.h.
	* Makefile.in (opts.o): Depend on INSN_ATTR_H.

From-SVN: r68657
2003-06-29 01:17:54 +00:00
GCC Administrator
bdb656db6c Daily bump.
From-SVN: r68655
2003-06-29 00:16:06 +00:00
J"orn Rennecke
57856e4d3a flow.c (propagate_one_insn): Use proper test for a register being part of the return value.
* flow.c (propagate_one_insn): Use proper test for a register
	being part of the return value.

From-SVN: r68653
2003-06-28 23:57:58 +01:00
Ulrich Weigand
81a6489eb6 * gcc.c-torture/execute/multi-ix.c: Fix off-by-one bugs.
From-SVN: r68652
2003-06-28 21:30:30 +00:00
Kazu Hirata
cef1ccd6ff * config/avr/avr.c: Fix a comment typo.
From-SVN: r68651
2003-06-28 20:00:06 +00:00
Kazu Hirata
62e4d78054 avr-protos.h: Replace avr_simplify_comparision_p with avr_simplify_comparison_p.
* config/avr/avr-protos.h: Replace avr_simplify_comparision_p
	with avr_simplify_comparison_p.
	* config/avr/avr.c: Likewise.

From-SVN: r68650
2003-06-28 19:55:01 +00:00
Kazu Hirata
1e417e6a65 builtins.c: Follow spelling conventions.
* builtins.c: Follow spelling conventions.
	* cgraph.c: Likewise.
	* cpplex.c: Likewise.
	* config/arm/arm.c: Likewise.
	* config/arm/iwmmxt.md: Likewise.
	* config/c4x/c4x-modes.def: Likewise.
	* config/c4x/c4x.c: Likewise.
	* config/c4x/c4x.h: Likewise.
	* config/c4x/c4x.md: Likewise.
	* config/i386/i386-interix.h: Likewise.
	* config/mips/mips.h: Likewise.

From-SVN: r68649
2003-06-28 19:53:17 +00:00
Kazu Hirata
f1ba665bc7 builtins.c: Follow spelling conventions.
* builtins.c: Follow spelling conventions.
	* cgraph.c: Likewise.
	* cpplex.c: Likewise.
	* config/arm/arm.c: Likewise.
	* config/arm/iwmmxt.md: Likewise.
	* config/c4x/c4x-modes.def: Likewise.
	* config/c4x/c4x.c: Likewise.
	* config/c4x/c4x.h: Likewise.
	* config/c4x/c4x.md: Likewise.
	* config/i386/i386-interix.h: Likewise.
	* config/mips/mips.h: Likewise.

From-SVN: r68648
2003-06-28 19:43:01 +00:00
Neil Booth
d551297825 m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate __mc68020__ on TARGET_68020.
* config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
	__mc68020__ on TARGET_68020.

From-SVN: r68647
2003-06-28 19:35:37 +00:00
Kazu Hirata
19cff4db3f * config/h8300/h8300.c: Fix a comment typo.
From-SVN: r68646
2003-06-28 19:15:57 +00:00
Nathan Sidwell
cead95c241 * c-parse.in (yylexstring): Use a location_t.
From-SVN: r68645
2003-06-28 19:05:32 +00:00
Nathan Sidwell
357734719b error.c (print_instantiation_partial_context): Take a location_t.
* error.c (print_instantiation_partial_context): Take a
	location_t.
	(print_instantiation_full_context): Adjust.
	(print_instantiation_context): Adjust.

From-SVN: r68644
2003-06-28 19:02:32 +00:00
Nathan Sidwell
9a472a4224 diagnostic.h (diagnostic_set_info): Replace file and lineno parameters with a location_t.
* diagnostic.h (diagnostic_set_info): Replace file and lineno
	parameters with a location_t.
	* diagnostic.c (diagnostic_set_info): Replace file and lineno
	parameters with a location_t.
	(inform, warning, pedwarn, error, sorry, fatal_error,
	internal_error, warning_with_decl, pedwarn_with_decl,
	error_with_decl): Adjust.
	* c-error.c (pedwarn_c99): Adjust.
	* c-format.c (status_warning): Adjust.
	* rtl-error.c (file_and_line_for_asm): Rename to ...
	(location_for_asm): Return a location_t.
	(diagnostic_for_asm): Adjust.

	* cp/cp-tree.h (cp_line_of, cp_file_of): Remove.
	* cp/error.c (cp_line_of, cp_file_of): Merge into ...
	(location_of): ... here. Make static, return a location_t.
	(cp_error_at, cp_warning_at, cp_pedwarn_at): Adjust.

	* testsuite/g++.old-deja/g++.robertl/eb133.C: Set expected line
	number.
	* testsuite/g++.old-deja/g++.robertl/eb133a.C: Likewise.
	* testsuite/g++.old-deja/g++.robertl/eb133b.C: Likewise.

From-SVN: r68643
2003-06-28 16:23:29 +00:00
Neil Booth
debdeb5d70 cpptrad.c (skip_macro_block_comment): New.
* cpptrad.c (skip_macro_block_comment): New.
	(copy_comment): Use it if appropriate.

From-SVN: r68641
2003-06-28 15:16:10 +00:00
Kazu Hirata
735e8085f7 gcse.c (compute_ld_motion_mems): Use INSN_P instead of its definition.
* gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
	definition.
	(store_killed_in_insn): Likewise.
	* print-rtl.c (print_rtx): Likewise.
	* config/frv/frv.c (frv_final_prescan_insn): Likewise.
	* config/m68hc11/m68hc11.c (dead_register_here): Likewise.
	(m68hc11_reassign_regs): Likewise.
	(m68hc11_reorg): Likewise.

From-SVN: r68640
2003-06-28 14:56:24 +00:00
Nathan Sidwell
2e2d40751c re PR c++/10784 (Warning about choosing custom operator over copy constructor cannot be turned off (and it's useless in the first place))
PR c++/10784
	* call.c (joust): Move warn_conversion check outwards.

From-SVN: r68639
2003-06-28 13:48:53 +00:00
Gabriel Dos Reis
c707a408ca diagnostic.c (output_integer_with_precision): New macro.
* diagnostic.c (output_integer_with_precision): New macro.
	(output_format): Use it.  Handle more format specifiers.
	(output_long_decimal): Remove.
	(output_unsigned_decimal): Likewise.
	(output_long_unsigned_decimal): Likewise.
	(output_octal): Likewise.
	(output_long_octal): Likewise.
	(output_hexadecimal): Likewise.
	(output_long_hexadecimal): Likewise.
	(output_long_long_decimal): Likewise.

From-SVN: r68638
2003-06-28 13:40:31 +00:00
Andreas Schwab
f997402686 * config/ia64/ia64.md: Follow recent emit_note API change.
From-SVN: r68637
2003-06-28 12:45:37 +00:00
Nathan Sidwell
374a4e6cc7 c-parse.in (%union): Replace filename & lineno with location.
* c-parse.in (%union): Replace filename & lineno with location.
	(save_filename, save_lineno): Remove.
	(save_location): New.
	(fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
	nested_function, notype_nested_function, if_prefix, lineno_stmt,
	lineno_label, label): Adjust.

From-SVN: r68636
2003-06-28 12:30:05 +00:00
Jakub Jelinek
88373ed0fb Typo fix.
From-SVN: r68635
2003-06-28 14:21:13 +02:00
Jakub Jelinek
ae808627c3 builtins.c (c_strlen): Add only_value argument.
* builtins.c (c_strlen): Add only_value argument.
	Handle COND_EXPR and COMPOUND_EXPR.
	(expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
	Adjust c_strlen callers.
	(expand_builtin_strcpy, expand_builtin_strncpy,
	expand_builtin_strcmp, expand_builtin_strncmp,
	expand_builtin_fputs, expand_builtin_sprintf,
	fold_builtin): Adjust c_strlen callers.

	* gcc.c-torture/execute/builtins/string-8.c: New test.
	* gcc.c-torture/execute/builtins/string-8-lib.c: New.
	* gcc.c-torture/execute/stdio-opt-1.c (main): Add new tests.
	* gcc.c-torture/execute/string-opt-7.c (main): Add new test.

From-SVN: r68634
2003-06-28 14:19:27 +02:00
Josef Zlomek
a487649ce8 bb-reorder.c (find_traces_1_round): Do not send basic block to next round when we are in the last round.
* bb-reorder.c (find_traces_1_round): Do not send basic block
	to next round when we are in the last round.

From-SVN: r68633
2003-06-28 12:07:04 +00:00
Michael Koch
1af3e06bee 2003-06-28 Michael Koch <konqueror@gmx.de>
* java/io/PrintStream.java
	(checkError): Call flush() instead of direct flushing of the Writer
	object.
	(print): Call print(String) instead of direct print method of the
	Writer Object.
	(println): Call println(String) instead of direct println method of the
	Writer Object.
	(write): Simplified.

From-SVN: r68632
2003-06-28 08:27:29 +00:00
Michael Koch
c5b49e898e 2003-06-28 Michael Koch <konqueror@gmx.de>
* java/net/ServerSocket.java
	(setChannel): New method.
	* java/net/Socket.java
	(setChannel): New method.

From-SVN: r68631
2003-06-28 08:13:24 +00:00
Paolo Carlini
b417ae14c8 re PR libstdc++/9875 (filebuf doesn't handle codecvt::encoding() > 1)
2003-06-28  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/9875
	* include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
	(seekpos): Likewise.
	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
	New test.
	* testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
	New test.

From-SVN: r68630
2003-06-28 07:50:29 +00:00
Neil Booth
9756310a6e Makefile.in: Update.
* Makefile.in: Update.
	* opts.c: Include tm_p.h.
	(handle_options): Make static.
	(decode_options): Copied from toplev.c.
	* opts.h (decode_options): New.
	* toplev.c (parse_options_and_default_flags): Move most to opts.c,
	some to...
	(general_init): ...here.
	(toplev_main): Use decode_options instead.
	* toplev.h (save_argc, save_argv): New.

From-SVN: r68629
2003-06-28 06:18:10 +00:00
Kazu Hirata
f7400894d9 explow.c (find_next_ref): Remove.
* explow.c (find_next_ref): Remove.
	* rtl.h: Remove the prototype for find_next_ref.

From-SVN: r68628
2003-06-28 05:39:40 +00:00
Matt Kraai
92fee0d0c1 * Make-lang.in: Add missing space to comment.
From-SVN: r68627
2003-06-28 05:24:12 +00:00
Roger Sayle
5591ef05e6 alpha.md (anonymous define_split): Adjust emit_note call to match recent API change.
* config/alpha/alpha.md (anonymous define_split): Adjust emit_note
	call to match recent API change.

From-SVN: r68626
2003-06-28 02:21:49 +00:00