Commit Graph

51141 Commits

Author SHA1 Message Date
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
Ulrich Weigand
dc65c307c8 s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
gcc/ChangeLog:

	* config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
	* config/s390/s390.c (s390_secondary_output_reload_class): New function.
	* config/s390/s390-protos.h (s390_secondary_output_reload_class):
	Declare it.
	* config/s390/s390.md ("reload_outti", "reload_outdi",
	"reload_outdf"): New expanders.

	* config/s390/s390.md ("movti" + splitters): Handle non-offsettable
	memory operands as source.
	("movdi" + splitters): Likewise.
	("movdf" + splitters): Likewise.
	* config/s390/s390.c (s390_split_ok_p): New function.
	* config/s390/s390-protos.h (s390_split_ok_p): Declare it.

gcc/testsuite/ChangeLog:

	* gcc.dg/20030627-1.c: New test.

From-SVN: r68607
2003-06-27 21:10:17 +00:00
Michael Koch
5bbd6c3ee0 BeanContextSupport.java: New version from classpath.
2003-06-27  Michael Koch  <konqueror@gmx.de>

	* java/beans/beancontext/BeanContextSupport.java:
	New version from classpath.

From-SVN: r68606
2003-06-27 21:00:16 +00:00
Michael Koch
2f161fa8c1 Window.java, [...]: New versions from classpath.
2003-06-27  Michael Koch  <konqueror@gmx.de>

	* java/awt/Window.java,
	java/awt/font/GraphicAttribute.java,
	java/awt/font/ImageGraphicAttribute.java,
	java/awt/image/DataBufferByte.java,
	java/awt/image/DataBufferInt.java,
	java/awt/image/DataBufferUShort.java,
	java/awt/image/DirectColorModel.java,
	java/awt/image/PixelGrabber.java:
	New versions from classpath.

From-SVN: r68605
2003-06-27 20:53:01 +00:00
Kazu Hirata
fa9ea25574 combine.c (force_to_mode): Replace the equality comparison of INTVALs with a pointer equality comparison.
* combine.c (force_to_mode): Replace the equality comparison
	of INTVALs with a pointer equality comparison.
	(simplify_comparison): Likewise.

From-SVN: r68603
2003-06-27 19:42:24 +00:00
Kazu Hirata
47c7b4d250 jump.c (rtx_renumbered_equal_p): Replace an expression that is known to be 0 with 0.
* jump.c (rtx_renumbered_equal_p): Replace an expression that
	is known to be 0 with 0.

From-SVN: r68602
2003-06-27 19:40:09 +00:00
Kazu Hirata
ebd7a7af83 gcse.c (expr_equiv_p): Replace expressions that are known to be 0 with 0.
* gcse.c (expr_equiv_p): Replace expressions that are known to
	be 0 with 0.

From-SVN: r68601
2003-06-27 19:38:27 +00:00
Kazu Hirata
213d5fbccb cse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer equality comparison.
* cse.c (fold_rtx): Replace the equality comparison of INTVALs
	with a pointer equality comparison.

From-SVN: r68600
2003-06-27 19:36:38 +00:00
Kazu Hirata
9df4f93999 rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN are known to be not equivalent.
* rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
	are known to be not equivalent.

From-SVN: r68599
2003-06-27 19:35:41 +00:00
Gerald Pfeifer
36067e59cd gcc_release (build_sources): Do not include gnats.html any longer.
* gcc_release (build_sources): Do not include gnats.html any longer.
	Make an error message more descriptive.

From-SVN: r68597
2003-06-27 19:29:01 +00:00
Benjamin Kosnik
f1a22109ec [multiple changes]
2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/testsuite_performance.h (__gnu_cxx_test): Change
	output name to libstdc++-v3-performance.sum.
	* testsuite/Makefile.am (CLEANFILES): Remove .performance.
	* testsuite/Makefile.in: Regenerate.

2003-06-27  Matthias Klose  <doko@debian.org>

	* testsuite/Makefile.am (check-abi, check-abi-verbose): Save
	output of abi-check in libstdc++-v3-abi.sum.
	* testsuite/Makefile.in: Regenerate.

From-SVN: r68593
2003-06-27 18:13:12 +00:00