Commit Graph

51201 Commits

Author SHA1 Message Date
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
Gunther Nikl
b11e4747fe re PR other/10240 (HOST_CFLAGS in gcc/Makefile.in shouldn't include XCFLAGS)
PR other/10240
* configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
* configure: Rebuilt.

From-SVN: r68625
2003-06-27 18:27:46 -07:00
Zack Weinberg
a6d682a05f dbxout.c (flag_debug_only_used_symbols): Delete redundant declaration.
* dbxout.c (flag_debug_only_used_symbols): Delete redundant
	declaration.
f:
	* com.c (input_file_stack_tick): Delete redundant declaration.
java:
	* gjavah.c (flag_jni): Make non-static.
	* parse-scan.y (ctxp): Make non-static.

From-SVN: r68624
2003-06-28 00:42:31 +00:00
Gunther Nikl
1d6302b177 re PR target/11014 ([m68k] MIT / MOTOROLA assembly conflict)
PR target/11014
* config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
syntax for MIT / MOTOROLA.

From-SVN: r68623
2003-06-27 17:36:23 -07:00
Zack Weinberg
8ce332308c * c-format.c (check_format_string, get_constant)
* cfgrtl.c (rtl_split_edge):
	Mark the definition static, matching the forward declaration.
cp:
	* decl.c (build_typename_type)
	* mangle.c (write_template_template_arg)
	* parser.c (cp_parser_scope_through_which_access_occurs)
	* pt.c (push_access_scope_real, push_access_scope, pop_access_scope)
	* repo.c (get_base_filename)
	* semantics.c (maybe_convert_cond):
	Mark the definition static, matching the forward declaration.
java:
	* class.c (build_method_symbols_entry)
	* expr.c (get_offset_table_index)
	* jcf-parse.c (jcf_parse):
	Mark the definition static, matching the forward declaration.

From-SVN: r68622
2003-06-28 00:30:31 +00:00
Gerald Pfeifer
711f0333a2 gcc_release: Command "all" now creates .gz files only for releases and pre-releases.
* gcc_release: Command "all" now creates .gz files only for
	releases and pre-releases.

From-SVN: r68620
2003-06-28 00:18:50 +00:00
GCC Administrator
1c49935743 Daily bump.
From-SVN: r68618
2003-06-28 00:16:06 +00:00
Gunther Nikl
396235c866 Patch from Gunther Nikl.
* unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.

From-SVN: r68616
2003-06-27 17:02:30 -07:00
Mark Mitchell
dce50630a3 re PR c++/10468 (const typeof(x) is non-const, but only in templates)
PR c++/10468
	* pt.c (tsubst): Handle qualified TYPEOF_TYPEs correctly.

	PR c++/10468
	* g++.dg/ext/typeof5.C: New test.

From-SVN: r68615
2003-06-27 22:46:47 +00:00
Chris Demetriou
7a0ec6071b mips.c (mips_build_va_list): Make padding in va_list structure explicit to avoid -Wpadded warnings.
2003-06-27  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.c (mips_build_va_list): Make padding in
        va_list structure explicit to avoid -Wpadded warnings.

From-SVN: r68613
2003-06-27 15:43:38 -07:00
Mark Mitchell
e455bc273e re PR c++/10796 (ICE (segfault) when defining an enum with two values: -1 and MAX_INT_64BIT)
PR c++/10796
	* decl.c (finish_enum): Implement DR377.

	* decl.c (cp_finish_decl): Don't make variables with reference
	type readonly while they are being initialized.

	PR c++/10796
	* g++.dg/init/enum1.C: New test.

From-SVN: r68610
2003-06-27 21:21:08 +00:00