]> gcc.gnu.org Git - gcc.git/log
gcc.git
21 years agoc-decl.c (c_init_decl_processing): Use a location_t.
Nathan Sidwell [Sun, 29 Jun 2003 11:28:00 +0000 (11:28 +0000)]
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

21 years ago11305-1.cc: Improve type correctness-wise.
Paolo Carlini [Sun, 29 Jun 2003 11:12:35 +0000 (13:12 +0200)]
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

21 years agoerror.c (print_integer): Remove.
Gabriel Dos Reis [Sun, 29 Jun 2003 10:55:33 +0000 (10:55 +0000)]
error.c (print_integer): Remove.

* error.c (print_integer): Remove.
(dump_type_suffix): Adjust.
(dump_expr): Likewise.

From-SVN: r68665

21 years agostd_streambuf.h (uflow): According to 27.5.2.4.3,p16, don't check gptr() < egptr().
Paolo Carlini [Sun, 29 Jun 2003 10:31:06 +0000 (12:31 +0200)]
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

21 years agore PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed...
Eric Botcazou [Sun, 29 Jun 2003 08:31:52 +0000 (10:31 +0200)]
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

21 years agotoplev.c (flag_dummy): Remove.
Neil Booth [Sun, 29 Jun 2003 08:18:17 +0000 (08:18 +0000)]
toplev.c (flag_dummy): Remove.

* toplev.c (flag_dummy): Remove.
(f_options): Restore flag pointers.

From-SVN: r68661

21 years ago* config/rs6000/rs6000.c (processor_target_table): Add 970.
David Edelsohn [Sun, 29 Jun 2003 04:42:20 +0000 (04:42 +0000)]
* config/rs6000/rs6000.c (processor_target_table): Add 970.

From-SVN: r68660

21 years agodwarf2out.c (add_AT_string): Replace ggc_alloc_string (X, -1) with ggc_strdup.
Kazu Hirata [Sun, 29 Jun 2003 04:24:55 +0000 (04:24 +0000)]
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

21 years agoip2k.c (ip2k_reorg): Use INSN_P instead of its definition.
Kazu Hirata [Sun, 29 Jun 2003 02:15:51 +0000 (02:15 +0000)]
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

21 years agoopts.c: Include insn-attr.h.
Franz Sirl [Sun, 29 Jun 2003 01:17:54 +0000 (01:17 +0000)]
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

21 years agoDaily bump.
GCC Administrator [Sun, 29 Jun 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r68655

21 years agoflow.c (propagate_one_insn): Use proper test for a register being part of the return...
J"orn Rennecke [Sat, 28 Jun 2003 22:57:58 +0000 (22:57 +0000)]
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

21 years ago* gcc.c-torture/execute/multi-ix.c: Fix off-by-one bugs.
Ulrich Weigand [Sat, 28 Jun 2003 21:30:30 +0000 (21:30 +0000)]
* gcc.c-torture/execute/multi-ix.c: Fix off-by-one bugs.

From-SVN: r68652

21 years ago* config/avr/avr.c: Fix a comment typo.
Kazu Hirata [Sat, 28 Jun 2003 20:00:06 +0000 (20:00 +0000)]
* config/avr/avr.c: Fix a comment typo.

From-SVN: r68651

21 years agoavr-protos.h: Replace avr_simplify_comparision_p with avr_simplify_comparison_p.
Kazu Hirata [Sat, 28 Jun 2003 19:55:01 +0000 (19:55 +0000)]
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

21 years agobuiltins.c: Follow spelling conventions.
Kazu Hirata [Sat, 28 Jun 2003 19:53:17 +0000 (19:53 +0000)]
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

21 years agobuiltins.c: Follow spelling conventions.
Kazu Hirata [Sat, 28 Jun 2003 19:43:01 +0000 (19:43 +0000)]
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

21 years agom68k.h (TARGET_CPU_CPP_BUILTINS): Predicate __mc68020__ on TARGET_68020.
Neil Booth [Sat, 28 Jun 2003 19:35:37 +0000 (19:35 +0000)]
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

21 years ago* config/h8300/h8300.c: Fix a comment typo.
Kazu Hirata [Sat, 28 Jun 2003 19:15:57 +0000 (19:15 +0000)]
* config/h8300/h8300.c: Fix a comment typo.

From-SVN: r68646

21 years ago* c-parse.in (yylexstring): Use a location_t.
Nathan Sidwell [Sat, 28 Jun 2003 19:05:32 +0000 (19:05 +0000)]
* c-parse.in (yylexstring): Use a location_t.

From-SVN: r68645

21 years agoerror.c (print_instantiation_partial_context): Take a location_t.
Nathan Sidwell [Sat, 28 Jun 2003 19:02:32 +0000 (19:02 +0000)]
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

21 years agodiagnostic.h (diagnostic_set_info): Replace file and lineno parameters with a location_t.
Nathan Sidwell [Sat, 28 Jun 2003 16:23:29 +0000 (16:23 +0000)]
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

21 years agocpptrad.c (skip_macro_block_comment): New.
Neil Booth [Sat, 28 Jun 2003 15:16:10 +0000 (15:16 +0000)]
cpptrad.c (skip_macro_block_comment): New.

* cpptrad.c (skip_macro_block_comment): New.
(copy_comment): Use it if appropriate.

From-SVN: r68641

21 years agogcse.c (compute_ld_motion_mems): Use INSN_P instead of its definition.
Kazu Hirata [Sat, 28 Jun 2003 14:56:24 +0000 (14:56 +0000)]
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

21 years agore PR c++/10784 (Warning about choosing custom operator over copy constructor cannot...
Nathan Sidwell [Sat, 28 Jun 2003 13:48:53 +0000 (13:48 +0000)]
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

21 years agodiagnostic.c (output_integer_with_precision): New macro.
Gabriel Dos Reis [Sat, 28 Jun 2003 13:40:31 +0000 (13:40 +0000)]
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

21 years ago* config/ia64/ia64.md: Follow recent emit_note API change.
Andreas Schwab [Sat, 28 Jun 2003 12:45:37 +0000 (12:45 +0000)]
* config/ia64/ia64.md: Follow recent emit_note API change.

From-SVN: r68637

21 years agoc-parse.in (%union): Replace filename & lineno with location.
Nathan Sidwell [Sat, 28 Jun 2003 12:30:05 +0000 (12:30 +0000)]
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

21 years agoTypo fix.
Jakub Jelinek [Sat, 28 Jun 2003 12:21:13 +0000 (14:21 +0200)]
Typo fix.

From-SVN: r68635

21 years agobuiltins.c (c_strlen): Add only_value argument.
Jakub Jelinek [Sat, 28 Jun 2003 12:19:27 +0000 (14:19 +0200)]
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

21 years agobb-reorder.c (find_traces_1_round): Do not send basic block to next round when we...
Josef Zlomek [Sat, 28 Jun 2003 12:07:04 +0000 (14:07 +0200)]
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

21 years ago2003-06-28 Michael Koch <konqueror@gmx.de>
Michael Koch [Sat, 28 Jun 2003 08:27:29 +0000 (08:27 +0000)]
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

21 years ago2003-06-28 Michael Koch <konqueror@gmx.de>
Michael Koch [Sat, 28 Jun 2003 08:13:24 +0000 (08:13 +0000)]
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

21 years agore PR libstdc++/9875 (filebuf doesn't handle codecvt::encoding() > 1)
Paolo Carlini [Sat, 28 Jun 2003 07:50:29 +0000 (09:50 +0200)]
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

21 years agoMakefile.in: Update.
Neil Booth [Sat, 28 Jun 2003 06:18:10 +0000 (06:18 +0000)]
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

21 years agoexplow.c (find_next_ref): Remove.
Kazu Hirata [Sat, 28 Jun 2003 05:39:40 +0000 (05:39 +0000)]
explow.c (find_next_ref): Remove.

* explow.c (find_next_ref): Remove.
* rtl.h: Remove the prototype for find_next_ref.

From-SVN: r68628

21 years ago* Make-lang.in: Add missing space to comment.
Matt Kraai [Sat, 28 Jun 2003 05:24:12 +0000 (05:24 +0000)]
* Make-lang.in: Add missing space to comment.

From-SVN: r68627

21 years agoalpha.md (anonymous define_split): Adjust emit_note call to match recent API change.
Roger Sayle [Sat, 28 Jun 2003 02:21:49 +0000 (02:21 +0000)]
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

21 years agore PR other/10240 (HOST_CFLAGS in gcc/Makefile.in shouldn't include XCFLAGS)
Gunther Nikl [Sat, 28 Jun 2003 01:27:46 +0000 (01:27 +0000)]
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

21 years agodbxout.c (flag_debug_only_used_symbols): Delete redundant declaration.
Zack Weinberg [Sat, 28 Jun 2003 00:42:31 +0000 (00:42 +0000)]
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

21 years agore PR target/11014 ([m68k] MIT / MOTOROLA assembly conflict)
Gunther Nikl [Sat, 28 Jun 2003 00:36:23 +0000 (00:36 +0000)]
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

21 years ago* c-format.c (check_format_string, get_constant)
Zack Weinberg [Sat, 28 Jun 2003 00:30:31 +0000 (00:30 +0000)]
* 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

21 years agogcc_release: Command "all" now creates .gz files only for releases and pre-releases.
Gerald Pfeifer [Sat, 28 Jun 2003 00:18:50 +0000 (02:18 +0200)]
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

21 years agoDaily bump.
GCC Administrator [Sat, 28 Jun 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r68618

21 years agoPatch from Gunther Nikl.
Gunther Nikl [Sat, 28 Jun 2003 00:02:30 +0000 (00:02 +0000)]
Patch from Gunther Nikl.

* unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.

From-SVN: r68616

21 years agore PR c++/10468 (const typeof(x) is non-const, but only in templates)
Mark Mitchell [Fri, 27 Jun 2003 22:46:47 +0000 (22:46 +0000)]
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

21 years agomips.c (mips_build_va_list): Make padding in va_list structure explicit to avoid...
Chris Demetriou [Fri, 27 Jun 2003 22:43:38 +0000 (22:43 +0000)]
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

21 years agore PR c++/10796 (ICE (segfault) when defining an enum with two values: -1 and MAX_INT...
Mark Mitchell [Fri, 27 Jun 2003 21:21:08 +0000 (21:21 +0000)]
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

21 years agos390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
Ulrich Weigand [Fri, 27 Jun 2003 21:10:17 +0000 (21:10 +0000)]
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

21 years agoBeanContextSupport.java: New version from classpath.
Michael Koch [Fri, 27 Jun 2003 21:00:16 +0000 (21:00 +0000)]
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

21 years agoWindow.java, [...]: New versions from classpath.
Michael Koch [Fri, 27 Jun 2003 20:53:01 +0000 (20:53 +0000)]
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

21 years agocombine.c (force_to_mode): Replace the equality comparison of INTVALs with a pointer...
Kazu Hirata [Fri, 27 Jun 2003 19:42:24 +0000 (19:42 +0000)]
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

21 years agojump.c (rtx_renumbered_equal_p): Replace an expression that is known to be 0 with 0.
Kazu Hirata [Fri, 27 Jun 2003 19:40:09 +0000 (19:40 +0000)]
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

21 years agogcse.c (expr_equiv_p): Replace expressions that are known to be 0 with 0.
Kazu Hirata [Fri, 27 Jun 2003 19:38:27 +0000 (19:38 +0000)]
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

21 years agocse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer equality...
Kazu Hirata [Fri, 27 Jun 2003 19:36:38 +0000 (19:36 +0000)]
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

21 years agortlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN are known to be not equiv...
Kazu Hirata [Fri, 27 Jun 2003 19:35:41 +0000 (19:35 +0000)]
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

21 years agogcc_release (build_sources): Do not include gnats.html any longer.
Gerald Pfeifer [Fri, 27 Jun 2003 19:29:01 +0000 (21:29 +0200)]
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

21 years ago[multiple changes]
Benjamin Kosnik [Fri, 27 Jun 2003 18:13:12 +0000 (18:13 +0000)]
[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

21 years agoalpha.c (function_arg): Don't pass small aggregates in floating point registers.
Richard Henderson [Fri, 27 Jun 2003 17:52:03 +0000 (10:52 -0700)]
alpha.c (function_arg): Don't pass small aggregates in floating point registers.

        * config/alpha/alpha.c (function_arg): Don't pass small aggregates
        in floating point registers.  Validate that we don't receive complex
        values here.  Use #elif.
        (return_in_memory, function_value): New.
        (alpha_va_arg): Handle complex values as two arguments.
        * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
        (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
        (SPLIT_COMPLEX_ARGS): New.
        * config/alpha/alpha-protos.h: Update.

From-SVN: r68591

21 years agoggc-page.c (inverse_table): Change type of mult to size_t.
Ulrich Weigand [Fri, 27 Jun 2003 17:36:21 +0000 (17:36 +0000)]
ggc-page.c (inverse_table): Change type of mult to size_t.

        * ggc-page.c (inverse_table): Change type of mult to size_t.
        (compute_inverse): Compute inverse using size_t, not unsigned int.
        Compute inverse also for sizes larger than half a machine page.

From-SVN: r68589

21 years agoconfigure.in: Clean up config-lang.in handling.
Nathanael Nerode [Fri, 27 Jun 2003 17:33:51 +0000 (17:33 +0000)]
configure.in: Clean up config-lang.in handling.

* configure.in: Clean up config-lang.in handling.  Delete
useless assignment to "subdirs".
* configure: Regenerate.

From-SVN: r68588

21 years agoRemove extra bits from my previous commit.
Devang Patel [Fri, 27 Jun 2003 17:26:25 +0000 (10:26 -0700)]
Remove extra bits from my previous commit.

I am sorry for the way I handled this -gused commit.

From-SVN: r68587

21 years ago2003-06-27 Krister Walfridsson <cato@df.lth.se>
Krister Walfridsson [Fri, 27 Jun 2003 16:59:04 +0000 (18:59 +0200)]
2003-06-27  Krister Walfridsson  <cato@df.lth.se>

* config/os/bsd/netbsd/ctype_noninline.h
(_C_ctype_): Declare.
(ctype<char>::classic_table): Return _C_ctype_ + 1.
(ctype<char>::ctype): Use classic_table.

From-SVN: r68584

21 years agotoplev.c (rest_of_decl_compilation): Only varpoolize argument when called before...
Jan Hubicka [Fri, 27 Jun 2003 16:37:41 +0000 (18:37 +0200)]
toplev.c (rest_of_decl_compilation): Only varpoolize argument when called before cgraph_optimize.

* toplev.c (rest_of_decl_compilation):  Only varpoolize argument
when called before cgraph_optimize.

From-SVN: r68583

21 years agore PR c++/11332 (Spurious error with casts in ?: expression)
Mark Mitchell [Fri, 27 Jun 2003 16:24:49 +0000 (16:24 +0000)]
re PR c++/11332 (Spurious error with casts in ?: expression)

PR c++/11332
* typeck.c (build_static_cast): Avoid returning expressions with
reference type.

PR c++/11332
* g++.dg/expr/static_cast2.C: New test.

From-SVN: r68580

21 years ago2003-06-27 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 27 Jun 2003 16:11:27 +0000 (16:11 +0000)]
2003-06-27  Michael Koch  <konqueror@gmx.de>

* java/security/Certificate.java
(getGuarantor): Removed wrong @deprecated tag.
(getPrincipal): Likewise.
(getPublicKey): Likewise.
(encode): Likewise.
(decode): Likewise.
(getFormat): Likewise.
(toString): Likewise.
* java/security/cert/PolicyQualifierInfo.java
(PolicyQualifierInfo): Made final.
* javax/security/auth/x500/X500Principal.java
(serialVersionUID): New member variable.

From-SVN: r68579

21 years ago* config/darwin.h, config/elfos.h, config/i960/i960-coff.h
Zack Weinberg [Fri, 27 Jun 2003 16:08:43 +0000 (16:08 +0000)]
* config/darwin.h, config/elfos.h, config/i960/i960-coff.h
* config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
be TARGET_ASM_FILE_START_FILE_DIRECTIVE.

From-SVN: r68578

21 years ago2003-06-27 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 27 Jun 2003 15:58:42 +0000 (15:58 +0000)]
2003-06-27  Michael Koch  <konqueror@gmx.de>

* java/rmi/server/SkeletonNotFoundException.java
(SkeletonNotFoundException): Removed wrong @deprecated tag.
* java/rmi/server/UnicastRemoteObject.java
(exportObject): Made package-private.

From-SVN: r68577

21 years ago2003-06-27 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 27 Jun 2003 15:49:36 +0000 (15:49 +0000)]
2003-06-27  Michael Koch  <konqueror@gmx.de>

* java/text/Format.java
(serialVersionUID): Fixed value.

From-SVN: r68576

21 years ago2003-06-27 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 27 Jun 2003 15:48:15 +0000 (15:48 +0000)]
2003-06-27  Michael Koch  <konqueror@gmx.de>

* java/net/Inet4Address.java
(Inet4Address): Made package-private.
* java/net/Inet6Address.java
(Inet4Address): Made package-private.

From-SVN: r68575

21 years ago2003-06-27 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 27 Jun 2003 15:46:59 +0000 (15:46 +0000)]
2003-06-27  Michael Koch  <konqueror@gmx.de>

* java/io/RandomAccessFile.java
(readLine): Removed wrong @deprecated tag.
(getChannel): Made final.

From-SVN: r68574

21 years agocgraph.c (cgraph_node, [...]): Avoid re-initializing of known_decls.
Jan Hubicka [Fri, 27 Jun 2003 15:42:48 +0000 (17:42 +0200)]
cgraph.c (cgraph_node, [...]): Avoid re-initializing of known_decls.

* cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
of known_decls.

From-SVN: r68573

21 years ago2003-06-27 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 27 Jun 2003 13:41:25 +0000 (13:41 +0000)]
2003-06-27  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/FileChannelImpl.java
(write): Removed.

From-SVN: r68572

21 years ago2003-06-27 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 27 Jun 2003 13:34:12 +0000 (13:34 +0000)]
2003-06-27  Michael Koch  <konqueror@gmx.de>

* java/nio/ByteBufferImpl.java
(ByteBufferImpl): Made it a package-private class
* java/nio/CharBufferImpl.java
(CharBufferImpl): Made it a package-private class
* java/nio/DirectByteBufferImpl.java
(DirectByteBufferImpl): Made it a package-private class
* java/nio/DoubleBufferImpl.java
(DoubleBufferImpl): Made it a package-private class
* java/nio/FloatBufferImpl.java
(FloatBufferImpl): Made it a package-private class
* java/nio/IntBufferImpl.java
(IntBufferImpl): Made it a package-private class
* java/nio/LongBufferImpl.java
(LongBufferImpl): Made it a package-private class
* java/nio/ShortBufferImpl.java
(ShortBufferImpl): Made it a package-private class
* java/nio/channels/FileChannel.java
(write): Made final.
* java/nio/channels/ServerSocketChannel.java
(ServerSocketChanne): Made protected.

From-SVN: r68571

21 years ago2003-06-27 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 27 Jun 2003 13:06:50 +0000 (13:06 +0000)]
2003-06-27  Michael Koch  <konqueror@gmx.de>

* javax/naming/CompositeName.java
(serialVersionUID): New member variable.
* javax/naming/CompoundName.java
(serialVersionUID): New member variable.
* javax/naming/InitialContext.java
(InitialContext): Throws NamingException.
(init): Likewise.
* javax/naming/LinkRef.java
(serialVersionUID): New member variable.
(gteLinkName): Throws NamingException.
* javax/naming/NamingException.java
(serialVersionUID): New member variable.
* javax/naming/NamingSecurityException.java
(NamingSecurityException): Made abstract.
(serialVersionUID): New member variable.
* javax/naming/ReferralException.java
(serialVersionUID): New member variable.
* javax/naming/StringRefAddr.java
(serialVersionUID): New member variable.
* javax/naming/directory/BasicAttribute.java:
Reworked imports.
(serialVersionUID): New member variable.
(get): Throws NamingException.
(getAll): Throws NamingException.
* javax/naming/directory/BasicAttributes.java:
Reworked imports.
(serialVersionUID): New member variable.
* javax/naming/ldap/UnsolicitedNotificationEvent.java
(serialVersionUID): New member variable.

From-SVN: r68570

21 years ago2003-06-27 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 27 Jun 2003 12:48:39 +0000 (12:48 +0000)]
2003-06-27  Michael Koch  <konqueror@gmx.de>

* Makefile.am
(awt_java_source_files): Added new files:
javax/swing/Popup.java,
javax/swing/PopupFactory.java
* Makefile.in: Regenerated.

From-SVN: r68569

21 years agoJWindow.java, [...]: New versions from classpath.
Michael Koch [Fri, 27 Jun 2003 12:41:52 +0000 (12:41 +0000)]
JWindow.java, [...]: New versions from classpath.

2003-06-27  Michael Koch  <konqueror@gmx.de>

* javax/swing/JWindow.java,
javax/swing/event/AncestorEvent.java,
javax/swing/event/HyperlinkEvent.java,
javax/swing/event/InternalFrameEvent.java,
javax/swing/event/ListDataEvent.java,
javax/swing/event/TableModelEvent.java,
javax/swing/plaf/PopupMenuUI.java,
javax/swing/plaf/SplitPaneUI.java,
javax/swing/plaf/TabbedPaneUI.java,
javax/swing/plaf/TextUI.java,
javax/swing/plaf/TreeUI.java,
javax/swing/plaf/basic/BasicTextUI.java,
javax/swing/plaf/basic/BasicTreeUI.java:
New versions from classpath.
* javax/swing/Popup.java,
javax/swing/PopupFactory.jav:
New source files from classpath.
* javax/swing/plaf/doc-files/TreeUI-1.png:
New binary files from classpath.

From-SVN: r68568

21 years agodefaults.h (REGISTER_MOVE_COST): Define default here.
Hans-Peter Nilsson [Fri, 27 Jun 2003 12:40:13 +0000 (12:40 +0000)]
defaults.h (REGISTER_MOVE_COST): Define default here.

* defaults.h (REGISTER_MOVE_COST): Define default here.
* regclass.c: Don't define default REGISTER_MOVE_COST here.
* reload.c, reload1.c: Ditto.

From-SVN: r68567

21 years agoNathan C.
Paolo Carlini [Fri, 27 Jun 2003 12:33:49 +0000 (14:33 +0200)]
Nathan C.

2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
    Nathan C. Myers  <ncm-nospam@cantrip.org>

PR libstdc++/9178
* include/bits/fstream.tcc (_M_underflow): Properly estimate
the worst-case number of external bytes for a given get area.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.

2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
    Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/11305
* include/bits/fstream.tcc (overflow): Properly estimate the
worst-case number of external bytes for a given put area
(by using codecvt::max_length()).
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.

Co-Authored-By: Nathan C. Myers <ncm-nospam@cantrip.org>
Co-Authored-By: Petur Runolfsson <peturr02@ru.is>
From-SVN: r68566

21 years ago* config/linker-map.gnu: Remove ; after __numpunct_cache.
Nathan Sidwell [Fri, 27 Jun 2003 11:01:27 +0000 (11:01 +0000)]
* config/linker-map.gnu: Remove ; after __numpunct_cache.

From-SVN: r68563

21 years ago* flags.h: Really install previous change.
Richard Earnshaw [Fri, 27 Jun 2003 09:51:22 +0000 (09:51 +0000)]
* flags.h: Really install previous change.

From-SVN: r68562

21 years agortl.h (emit_note): Remove FILE parameter.
Nathan Sidwell [Fri, 27 Jun 2003 09:49:44 +0000 (09:49 +0000)]
rtl.h (emit_note): Remove FILE parameter.

* rtl.h (emit_note): Remove FILE parameter.
* emit-rtl.c (emit_line_note): Adjust emit_note call.
(emit_note): Remove FILE parameter. Adjust.
* builtins.c (expand_builtin_expect): Adjust emit_note call.
* c-semantics.c (genrtl_scope_stmt): Likewise.
(expand_stmt): Likewise.
* cfglayout.c (reemit_insn_block_notes): Likewise.
(duplicate_insn_chain): Likewise.
* except.c (expand_eh_region_start, expand_eh_region_end,
sjlj_emit_function_enter): Likewise.
* explow.c (probe_stack_range): Likewise.
* expr.c (emit_block_move_via_loop): Likewise.
* function.c (init_function_start, expand_function_start,
expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
* integrate.c (expand_inline_function, copy_insn_list): Likewise.
* reg-stack.c (compensate_edge): Likewise.
* reload1.c (reload): Likewise.
* rtlanal.c (hoist_insn_to_edge): Likewise.
* stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
expand_loop_continue_here, expand_end_loop, expand_continue_loop,
expand_exit_loop_top_cond, expand_value_return,
expand_start_bindings_and_block, expand_end_bindings,
expand_decl_cleanup, expand_start_case): Likewise.
* unroll.c (copy_loop_body
* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
* config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
* config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
rs6000_emit_allocate_stack, rs6000_output_function_prologue,
rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
* config/sh/sh.c (sh_output_mi_thunk): Likewise.
* config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.

* ada/misc.c (record_code_position): Likewise.

From-SVN: r68561

21 years agoc-tree.h (grokfield): Remove unused filename and line parameters.
Nathan Sidwell [Fri, 27 Jun 2003 09:05:45 +0000 (09:05 +0000)]
c-tree.h (grokfield): Remove unused filename and line parameters.

* c-tree.h (grokfield): Remove unused filename and line parameters.
* c-decl.c (grokfield): Remove unused filename and line parameters.
* c-parse.in (component_decl): Adjust field grokking rules, adjust
grokfield calls.
(component_declarator): Likewise.
(component_notype_declarator): Likewise.
* objc/objc-act.c (build_module_descriptor): Adjust grokfield
calls.
(build_protocol_template, build_method_prototype_list_template,
build_method_prototype_template, build_category_template,
build_selector_template, build_class_template,
build_super_template, build_ivar_template,
build_ivar_list_template, build_method_list_template,
build_method_template, add_instance_variable): Likewise.

From-SVN: r68560

21 years agoios_base.h (ios_base::_M_getloc): Return reference to the imbued locale.
Benjamin Kosnik [Fri, 27 Jun 2003 07:25:38 +0000 (07:25 +0000)]
ios_base.h (ios_base::_M_getloc): Return reference to the imbued locale.

2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/ios_base.h (ios_base::_M_getloc): Return reference
to the imbued locale.
* include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
_M_getloc.
(num_put::_M_convert_float): Use.

2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
    Jerry Quinn  <jlquinn@optonline.net>

* config/linker-map.gnu: Add __numpunct_cache.
* config/locale/gnu/numeric_members.cc
(numpunct::_M_initialize_numpunct): Account for _M_data, fill in
all elements for "C" locale.
(numpunct::~numpunct): Delete _M_data.
* config/locale/generic/numeric_members.cc: Same.
* include/bits/basic_ios.tcc
(basic_ios::init): Remove __locale_cache bits.
(basic_ios::_M_cache_locale): Same.
* include/bits/ios_base.h: Same. Tweaks.
* include/bits/locale_classes.h: Tweaks. Reorder classes.
(__use_cache): Make friends with _Impl, locale.
(_Impl::_M_caches): Add.
(_Impl::_M_install_cache): Add.
* include/bits/locale_facets.h (__numpunct_cache): New.
(numpunct): Encapsulate data members in __numpunct_cache member,
_M_data. Adjust virtuals.
(numpunct::numpunct): New ctor for the same.
(__locale_cache_base): Remove.
(__locale_cache): Remove.
* include/bits/locale_facets.tcc (__use_cache): New function,
specializations.
(num_put::_M_convert_int, _M_convert_float, do_put): Use it.
* src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
* src/ios.cc (ios_base::ios_base): Remove __locale_cache.
* src/locale-inst.cc: Same. Add __numpunct_cache.
* src/locale.cc: Tweak inlines.
(__use_cache): Define specializations.
* src/localename.cc: Use global bits.
(_Impl::~Impl): Deal with __numpunct_cache destruction.
(_Impl::_Impl): Same. Pre-cache standard numpunct facets.
(_Impl::_M_init_facet): Take into account __numpunct_cache.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.

Co-Authored-By: Jerry Quinn <jlquinn@optonline.net>
From-SVN: r68558

21 years agostmt.c (do_jump_if_equal): Return 0 earlier if OP1 and OP2 are known to be not equiva...
Kazu Hirata [Fri, 27 Jun 2003 06:02:49 +0000 (06:02 +0000)]
stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and OP2 are known to be not equivalent.

* stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
OP2 are known to be not equivalent.

From-SVN: r68557

21 years agofinal.c (debug_flush_symbol_queue): New function.
Devang Patel [Fri, 27 Jun 2003 03:04:40 +0000 (20:04 -0700)]
final.c (debug_flush_symbol_queue): New function.

        * final.c (debug_flush_symbol_queue): New function.
        (debug_queue_symbol): New function.
        (debug_free_queue): New function.
        (debug_nesting): New variable.
        (symbol_queue): New variable.
        (symbol_queue_index): Same.
        (symbol_queue_size): Same.
        * debug.h (debug_flush_symbol_queue): New.
        (debug_queue_symbol): New.
        (debug_free_queue): New.
        (debug_nesting): New.
        (symbol_queue_index): New.
        * dbxout.c (DBXOUT_DECR_NESTING): New macro.
        (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
        (dbxout_init): Delay symbol output.
        (dbxout_global_decl): Save, set and reset TREE_USED bit around dbxout_symbol()
        call.
        (dbxout_begin_function): Same.
        (dbxout_finish): Free symbol queue.
        (dbxout_type): Put appropriate symbols in queue.
        (dbxout_symbol): Put info for symbol's type in queue. Decrement/Increment
        nesting counts flush symbol queue appropriately.
        (dbxout_parms): Increment dbxout nesting.
        (dbxout_reg_parms): Same.
        * flags.h (flag_debug_only_used_symbols): New.
        * toplev.c (flag_debug_only_used_symbols): New variable.
        (lang_independent_options): Add entries for new option -feliminate-unused-debug-symbols.
        * common.opt: Add entry for -feliminate-unused-debug-symbols.
        * opts.c (common_handle_options): Same.
        * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as -feliminate-unused-debug-symbols.
        * doc/invoke.texi (Debugging Options): Document -feliminate-unused-debug-symbols.

From-SVN: r68556

21 years agobuiltins.c (expand_builtin_sprintf): Use c_getstr and strlen to obtain the format...
Roger Sayle [Fri, 27 Jun 2003 02:50:19 +0000 (02:50 +0000)]
builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to obtain the format string instead of using...

* builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
obtain the format string instead of using TREE_STRING_POINTER and
TREE_STRING_LENGTH.  Only optimize sprintf(dst,"%s",src) when the
return value is unused or the length of src is a known constant.

* gcc.c-torture/execute/string-opt-16.c: Remove test for disabled
sprintf(dst,"%s",src) optimization.
* gcc.c-torture/execute/20030626-1.c: New test case.
* gcc.c-torture/execute/20030626-2.c: New test case.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r68555

21 years agoDaily bump.
GCC Administrator [Fri, 27 Jun 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r68552

21 years agoia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
Richard Henderson [Thu, 26 Jun 2003 20:51:54 +0000 (13:51 -0700)]
ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.

        * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
        (ia64_split_call): Only load descriptor for GP register inputs.
        (ia64_expand_epilogue): Check current_frame_info.mask not
        current_function_is_leaf to restore ar.pfs.

From-SVN: r68549

21 years ago* config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
Richard Henderson [Thu, 26 Jun 2003 20:50:04 +0000 (13:50 -0700)]
* config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.

From-SVN: r68548

21 years agoemit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE instead of replacing it.
Richard Henderson [Thu, 26 Jun 2003 20:46:47 +0000 (13:46 -0700)]
emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE instead of replacing it.

        * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
        instead of replacing it.

From-SVN: r68547

21 years agoflow.c (propagate_one_insn): Kill function return value registers across tail calls.
Richard Henderson [Thu, 26 Jun 2003 20:45:18 +0000 (13:45 -0700)]
flow.c (propagate_one_insn): Kill function return value registers across tail calls.

        * flow.c (propagate_one_insn): Kill function return value
        registers across tail calls.

From-SVN: r68546

21 years agoflow.c (propagate_one_insn): Preserve live-at-end registers across tail calls.
Richard Henderson [Thu, 26 Jun 2003 20:29:55 +0000 (13:29 -0700)]
flow.c (propagate_one_insn): Preserve live-at-end registers across tail calls.

        * flow.c (propagate_one_insn): Preserve live-at-end registers
        across tail calls.

From-SVN: r68544

21 years agoconfigure.in: Rename 'target_libs' to 'target_libraries'.
Nathanael Nerode [Thu, 26 Jun 2003 20:18:34 +0000 (20:18 +0000)]
configure.in: Rename 'target_libs' to 'target_libraries'.

* configure.in: Rename 'target_libs' to 'target_libraries'.
Remove useless reference to 'target_libs'.
* configure: Regenerate.

From-SVN: r68543

21 years agoreload.c (can_reload_into): New function.
J"orn Rennecke [Thu, 26 Jun 2003 20:07:23 +0000 (20:07 +0000)]
reload.c (can_reload_into): New function.

* reload.c (can_reload_into): New function.
(push_reload): Use it.

From-SVN: r68542

21 years agodemangle-expected: Add more GNU V3 testcases.
H.J. Lu [Thu, 26 Jun 2003 19:09:56 +0000 (19:09 +0000)]
demangle-expected: Add more GNU V3 testcases.

2003-06-26  H.J. Lu <hongjiu.lu@intel.com>

* testsuite/demangle-expected: Add more GNU V3 testcases.

From-SVN: r68540

21 years agoh8300.c (compute_a_rotate_length): Fix the references to the amount of a rotation.
Kazu Hirata [Thu, 26 Jun 2003 17:50:01 +0000 (17:50 +0000)]
h8300.c (compute_a_rotate_length): Fix the references to the amount of a rotation.

* config/h8300/h8300.c (compute_a_rotate_length): Fix the
references to the amount of a rotation.

From-SVN: r68539

21 years agofilebuf_copy.cc: New, testing char by char file copy.
Nathan C. Myers [Thu, 26 Jun 2003 16:38:40 +0000 (16:38 +0000)]
filebuf_copy.cc: New, testing char by char file copy.

2003-06-26  Nathan C. Myers  <ncm-nospam@cantrip.org>
    Paolo Carlini  <pcarlini@unitus.it>

* testsuite/performance/filebuf_copy.cc: New, testing char
by char file copy.

Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r68538

21 years agocoff.h: Don't include dbxcoff.h.
Nathanael Nerode [Thu, 26 Jun 2003 16:34:32 +0000 (16:34 +0000)]
coff.h: Don't include dbxcoff.h.

* config/sh/coff.h: Don't include dbxcoff.h.
* config.gcc: List it here.

From-SVN: r68537

21 years agocall.c (build_op_delete_call): Use strip_array_call.
Nathan Sidwell [Thu, 26 Jun 2003 15:23:54 +0000 (15:23 +0000)]
call.c (build_op_delete_call): Use strip_array_call.

* call.c (build_op_delete_call): Use strip_array_call. Correct
error message to say 'delete' or 'delete[]'.

From-SVN: r68536

This page took 0.099472 seconds and 5 git commands to generate.