J"orn Rennecke
35d6034bcb
reload.c (can_reload_into): New function.
...
* reload.c (can_reload_into): New function.
(push_reload): Use it.
From-SVN: r68542
2003-06-26 21:07:23 +01:00
H.J. Lu
6f8507b13f
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
2003-06-26 12:09:56 -07:00
Kazu Hirata
343fd2c726
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
2003-06-26 17:50:01 +00:00
Nathan C. Myers
8370378a24
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
2003-06-26 16:38:40 +00:00
Nathanael Nerode
10d6ea27dc
coff.h: Don't include dbxcoff.h.
...
* config/sh/coff.h: Don't include dbxcoff.h.
* config.gcc: List it here.
From-SVN: r68537
2003-06-26 16:34:32 +00:00
Nathan Sidwell
8d4ce38922
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
2003-06-26 15:23:54 +00:00
Kazu Hirata
d9e674f7f0
postreload.c (reload_cse_simplify_set): Call cselib_lookup earlier.
...
* postreload.c (reload_cse_simplify_set): Call cselib_lookup
earlier. Don't check if SRC is a constant.
From-SVN: r68534
2003-06-26 14:08:15 +00:00
Kazu Hirata
b2948a2caa
postreload.c (reload_cse_simplify_set): Call cselib_lookup earlier.
...
* postreload.c (reload_cse_simplify_set): Call cselib_lookup
earlier. Don't check if SRC is a constant.
From-SVN: r68533
2003-06-26 13:42:33 +00:00
Kazu Hirata
15e35479eb
Makefile.in (OBJS): Add postreload.o.
...
* Makefile.in (OBJS): Add postreload.o.
Remove cselib.h from the dependency list for reload1.o.
Add a dependency list for postreload.o.
* reload.h: Change the comment for the prototype of
reload_cse_regs.
* reload1.c: Don't include cselib.h.
(reload_cse_regs): Move to postreload.c
(reload_cse_regs_1): Likewise.
(reload_cse_noop_set_p): Likewise.
(reload_cse_simplify_set): Likewise.
(reload_cse_simplify_operands): Likewise.
(RELOAD_COMBINE_MAX_USES): Likewise.
(reload_combine_ruid): Likewise.
(LABEL_LIVE): Likewise.
(reload_combine): Likewise.
(reload_combine_note_use): Likewise.
(reload_combine_note_store): Likewise.
(reg_set_luid): Likewise.
(reg_offset): Likewise.
(reg_base_reg): Likewise.
(reg_mode): Likewise.
(move2add_luid): Likewise.
(move2add_last_label_luid): Likewise.
(MODES_OK_FOR_MOVE2ADD): Likewise.
(reload_cse_move2add): Likewise.
(move2add_note_store): Likewise.
(reload_cse_simplify): Likewise.
* postreload.c: New.
From-SVN: r68532
2003-06-26 13:37:16 +00:00
Joern Rennecke
555c346adb
simd-4.c (main): Added missing semicolon at end of union.
...
* gcc.c-torture/execute/simd-4.c (main):
Added missing semicolon at end of union.
From-SVN: r68531
2003-06-26 14:15:38 +01:00
Kazu Hirata
0e8a9ede78
avr.c (final_prescan_insn): Remove support for -mrtl.
...
* config/avr/avr.c (final_prescan_insn): Remove support for
-mrtl.
* config/avr/avr.h (MASK_RTL_DUMP): Remove.
(TARGET_RTL_DUMP): Likewise.
(TARGET_SWITCHES): Remove -mrtl.
From-SVN: r68530
2003-06-26 13:11:09 +00:00
Joern Rennecke
4c43bcb0e1
Added missing semicolon at end of union.
...
From-SVN: r68529
2003-06-26 14:10:55 +01:00
Kazu Hirata
caf7f21af6
h8300-protos.h: Change emit_a_rotate to output_a_rotate.
...
* config/h8300/h8300-protos.h: Change emit_a_rotate to
output_a_rotate. Add a prototype for compute_a_rotate_length.
* config/h8300/h8300.c (emit_a_rotate): Change to
output_a_rotate.
(compute_a_rotate_length): New.
(h8300_adjust_insn_length): Remove.
* config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
* config/h8300/h8300.md (adjust_length): Remove.
(*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
(*rotlhi3_1): Likewise.
(*rotlsi3_1): Likewise.
From-SVN: r68528
2003-06-26 13:04:09 +00:00
Giovanni Bajo
2f54a1db5e
re PR c++/8266 (Explicit instantiation of a template outside its namespace is broken)
...
From Giovanni Bajo <giovannibajo@libero.it>
cp:
PR c++/8266
* pt.c (check_explicit_specialization): When looking up a
template function from an identifier outside class-scope, bind
it to CP_DECL_CONTEXT.
testsuite:
PR c++/8266
* g++.dg/template/explicit-instantiation3.C: New test.
From-SVN: r68527
2003-06-26 12:59:46 +00:00
Roger Sayle
f541609868
builtins.c (expand_builtin_mathfn): Always stabilize the argument list against re-evaluation.
...
* builtins.c (expand_builtin_mathfn): Always stabilize the argument
list against re-evaluation. If expand_unop fails, call expand_call
with the stabilized argument list rather than return NULL_RTX.
(expand_builtin_mathfn2): Likewise, always stabilize the argument
list, and call expand_call ourselves if expand_binop fails.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r68526
2003-06-26 11:53:00 +00:00
Eric Botcazou
998c7773b5
* gcc.dg/20030626-1.c: Use signed char.
...
From-SVN: r68525
2003-06-26 11:40:58 +00:00
Eric Botcazou
6dc208a1ed
re PR rtl-optimization/11210 (optimizer drops conditional with typecast from signed to unsigned char)
...
PR optimization/11210
* fold-const (decode_field_reference): Strip only NOPs that
don't affect the sign.
From-SVN: r68524
2003-06-26 10:37:35 +00:00
Zdenek Dvorak
fc5eb4a111
* doc/invoke.texi (-fprofile-values): Document.
...
From-SVN: r68523
2003-06-26 10:16:31 +00:00
Paolo Carlini
2cfe4e6898
Nathan C.
...
2003-06-26 Paolo Carlini <pcarlini@unitus.it>
Nathan C. Myers <ncm-nospam@cantrip.org>
* include/bits/fstream.tcc (_M_underflow): When the actual
end of file is reached, set 'uncommitted' mode to allow a
next write without an intervening seek (see C++98 27.8.1.1,2
and C89 7.9.5.3).
* testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
Co-Authored-By: Nathan C. Myers <ncm-nospam@cantrip.org>
From-SVN: r68522
2003-06-26 09:55:24 +00:00
Zdenek Dvorak
1c72f4ef67
value-prof.c: New.
...
* value-prof.c: New.
* value-prof.h: New.
From-SVN: r68521
2003-06-26 09:38:34 +00:00
Dhananjay Deshpande
603ff6b50a
sh.md (push_fpscr): Enable for TARGET_SH2E.
...
* gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
(pop_fpscr, fpu_switch): Likewise.
From-SVN: r68520
2003-06-26 09:35:07 +00:00
Zdenek Dvorak
af166e5d27
value-prof.c: New.
...
* value-prof.c: New.
* value-prof.h: New.
* Makefile.in (value-prof.o): New.
(LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
(profile.o): Add value-prof.h and tree.h dependency.
* flags.h (flag_profile_values): Declare.
* gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
Add new counters.
(GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
GCOV_COUNTER_V_DELTA): New counter sections.
(__gcov_merge_single, __gcov_merge_delta): Declare.
* flow.c (mark_used_regs): Set subregs_of_mode only when the
structure is initialized.
* libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
* profile.c: Include value-prof.h and tree.h.
(gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
gen_const_delta_profiler, instrument_values): New static functions.
(get_exec_counts): Fix comment.
(branch_prob): Invoke instrument_values.
* toplev.c (flag_profile_values): New flag.
* doc/invoke.texi (-fprofile-values): Document.
From-SVN: r68519
2003-06-26 07:52:10 +00:00
Zdenek Dvorak
ff25ef9976
Makefile.in (cfgrtl.o): Add expr.h dependency.
...
* Makefile.in (cfgrtl.o): Add expr.h dependency.
* cfgrtl.c: Include expr.h.
(mark_killed_regs, safe_insert_insn_on_edge): New
functions.
* config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
* basic-block.h (safe_insert_insn_on_edge): Declare.
From-SVN: r68518
2003-06-26 06:13:27 +00:00
Neil Booth
9eee5e726d
c-opts.c (missing_arg): Make non-static.
...
* c-opts.c (missing_arg): Make non-static.
(c_common_handle_option): Don't check for missing arguments.
* opts.c (handle_option): Check for missing arguments.
ada:
* misc.c (gnat_handle_option): Don't check for missing arguments.
f:
* top.c (ffe_handle_option): Don't check for missing arguments.
java:
* lang.c (java_handle_option): Don't check for missing arguments.
testsuite:
* const-str-2.m: Update.
From-SVN: r68517
2003-06-26 06:05:36 +00:00
David Edelsohn
09ec461d3b
* config/rs6000/power4.md (power4-veccomplex): Correct latency.
...
From-SVN: r68516
2003-06-26 01:22:32 -04:00
Loren J. Rittle
beda34712f
configure.in (ld_vers): Portability [sed].
...
* configure.in (ld_vers): Portability [sed].
* configure: Regenerate with autoconf213.
From-SVN: r68515
2003-06-26 04:57:15 +00:00
GCC Administrator
28ba16e320
Daily bump.
...
From-SVN: r68510
2003-06-26 00:16:07 +00:00
Mark Mitchell
e80706c4a4
re PR c++/10990 (Cannot convert with dynamic_cast<> to a private base class from within a member function)
...
PR c++/10990
* search.c (lookup_base_r): Rely on accessible_p, rather than
trying to emulate that logic here.
PR c++/10990
* g++.dg/rtti/dyncast1.C: New test.
* g++.dg/abi/mangle4.C: Correct base-specifier access.
* g++.dg/lookup/scoped1.C: Remove XFAIL.
* g++.old-deja/g++.martin/pmf1.C: Correct base-specifier access.
From-SVN: r68507
2003-06-26 00:07:52 +00:00
Mark Mitchell
3fe18f1d47
re PR c++/10931 (valid conversion static_cast<const unsigned int&>(lvalue-of-type-int) is rejected)
...
PR c++/10931
* g++.dg/expr/static_cast1.C: New test.
PR c++/10931
* call.c (convert_like): Pass issue_conversion_warnings.
(convert_like_with_context): Likewise.
(convert_like_real): Add issue_conversion_warnings parameter.
(perform_direct_initialization_if_possible): New function.
* cp-tree.h (perform_direct_initialization_if_possible): Declare it.
* typeck.c (check_for_casting_away_constness): New function.
(build_static_cast): Rewrite.
From-SVN: r68506
2003-06-26 00:07:09 +00:00
H.J. Lu
22c7c85ebc
extend.texi: Document new builtin functions for Intel Prescott New Intrunctions.
...
2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
* doc/extend.texi: Document new builtin functions for Intel
Prescott New Intrunctions.
* doc/invoke.texi: Document new command-line options, -mpni and
-mno-pni, for Intel Prescott New Intrunctions.
* config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
* config/i386/i386.c (override_options): Turn on MASK_SSE2
for -mpni. Turn on MASK_SSE for -msse2.
(bdesc_2arg): Add PNI builtins with 2 args.
(bdesc_1arg): Add PNI builtins with 1 arg.
(ix86_init_mmx_sse_builtins): Handle PNI builtins.
(ix86_expand_builtin): Likewise.
* config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
MASK_TLS_DIRECT_SEG_REFS): Renumbered.
(TARGET_PNI): New.
(TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
-mpni and -mno-pni.
(TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
(ix86_builtins): Add PNI builtins.
(config/i386/i386.md): Add PNI patterns.
* config/i386/pmmintrin.h: New file.
From-SVN: r68502
2003-06-25 15:28:27 -07:00
Kazu Hirata
7f8b3eb0cc
h8300.md (call): Fix the insn lengths.
...
* config/h8300/h8300.md (call): Fix the insn lengths.
(call_value): Likewise.
From-SVN: r68501
2003-06-25 22:16:31 +00:00
Jan Hubicka
4d7d0451bc
c-common.c (handle_used_attribute): Use mark_referenced.
...
* c-common.c (handle_used_attribute): Use mark_referenced.
* varasm.c (mark_referenced): Break out from ...
(assemble_name): ... here.
* tree.h (mark_referenced): Declare.
From-SVN: r68500
2003-06-25 22:14:26 +00:00
Wolfgang Bangerth
6322fdd83b
gccbug.in: Add PCH to list of categories.
...
2003-06-25 Wolfgang Bangerth <bangerth@dealii.org>
* gccbug.in: Add PCH to list of categories.
From-SVN: r68497
2003-06-25 15:08:26 -06:00
Martin Schaffner
48c4721eac
cppfiles.c: Clarify comments.
...
* cppfiles.c: Clarify comments.
* cpphash.h: Likewise.
* cpplib.h: Likewise.
* cppmacro.c: Likewise.
* mkdeps.h: Likewise.
From-SVN: r68496
2003-06-25 21:01:10 +00:00
Neil Booth
f18754d640
c-opts.c (complain_wrong_lang, [...]): Remove.
...
* c-opts.c (complain_wrong_lang, write_langs): Remove.
(c_common_handle_option): Complaints about wrong language are
handled in opts.c now.
* opts.c (complain_wrong_lang, write_langs, handle_options): New.
(find_opt): Fix thinko.
(handle_option): Update prototype. Complain about switches for
a different front end.
* opts.h (lang_names, handle_options): New.
(handle_option): Remove.
* opts.sh: Write out language names array.
* toplev.c (parse_options_and_default_flags): Use handle_options.
From-SVN: r68495
2003-06-25 20:43:11 +00:00
H.J. Lu
37f2200463
i386.c (MASK_SSE1): Removed.
...
2003-06-25 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (MASK_SSE1): Removed.
(MASK_SSE164): Removed.
(MASK_SSE264): Removed.
(bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
with MASK_SSE2 | MASK_64BIT.
(bdesc_1arg): Likewise.
(ix86_init_mmx_sse_builtins): Likewise.
* config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
(TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
-msse2.
From-SVN: r68492
2003-06-25 13:23:14 -07:00
Kaveh R. Ghazi
85f015e120
hwint.h (HOST_WIDE_INT_PRINT, [...]): New macros.
...
* hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
(HOST_WIDE_INT_PRINT_DEC_SPACE,
HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
HOST_WIDEST_INT_PRINT_DEC_SPACE,
HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
(HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
* final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
* ra-debug.c (dump_static_insn_cost): Likewise.
From-SVN: r68489
2003-06-25 19:33:08 +00:00
Nick Clifton
2784775405
arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
...
* config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead of
ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
Replace occurances of '???' with 'XXX' incase they are mistaken for trigraphs.
(THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address does not have a
register for the first operand.
From-SVN: r68487
2003-06-25 18:49:51 +00:00
Nathan C. Myers
29d9ed9799
streambuf.tcc (sbumpc, [...]): Move inline, from here...
...
2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
* include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
sputc): Move inline, from here...
* include/std/std_streambuf.h: ... to here.
* include/std/std_streambuf.h (snextc, sbumpc, sgetc,
sputbackc, sungetc, sputc): Use __builtin_expect.
From-SVN: r68486
2003-06-25 18:27:53 +00:00
Dhananjay Deshpande
b1dcf523e9
sh.c (sh_register_move_cost): Add case for moving between MAC_REGS.
...
2003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
* config/sh/sh.c (sh_register_move_cost):
Add case for moving between MAC_REGS.
From-SVN: r68484
2003-06-25 18:33:35 +01:00
Zack Weinberg
2896d05649
re PR c/10178 (ICE in tree_low_cst)
...
PR 10178
* langhooks.h (struct lang_hooks): Add no_body_blocks bool.
* langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
* c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
to true.
* stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
return 0.
From-SVN: r68483
2003-06-25 17:29:14 +00:00
Kaveh R. Ghazi
8f7193b854
Makefile.in (bt-load.o): Depend on $(TM_P_H).
...
* Makefile.in (bt-load.o): Depend on $(TM_P_H).
* bt-load.c: Include "tm_p.h".
From-SVN: r68482
2003-06-25 15:53:07 +00:00
Michael Koch
534e254b61
2003-06-25 Michael Koch <konqueror@gmx.de>
...
* Makefile.am
(awt_java_source_files): Added javax/swing/plaf/SpinnerUI.java.
* Makefile.in: Regenerated.
From-SVN: r68477
2003-06-25 12:41:56 +00:00
Michael Koch
55060f0e77
ActionMapUIResource.java, [...]: New versions from classpath.
...
2003-06-25 Michael Koch <konqueror@gmx.de>
* javax/swing/plaf/ActionMapUIResource.java,
javax/swing/plaf/BorderUIResource.java,
javax/swing/plaf/ButtonUI.java,
javax/swing/plaf/ColorChooserUI.java,
javax/swing/plaf/ColorUIResource.java,
javax/swing/plaf/ComboBoxUI.java,
javax/swing/plaf/ComponentInputMapUIResource.java,
javax/swing/plaf/ComponentUI.java,
javax/swing/plaf/DesktopIconUI.java,
javax/swing/plaf/DesktopPaneUI.java,
javax/swing/plaf/DimensionUIResource.java,
javax/swing/plaf/FileChooserUI.java,
javax/swing/plaf/FontUIResource.java,
javax/swing/plaf/IconUIResource.java,
javax/swing/plaf/InputMapUIResource.java,
javax/swing/plaf/InsetsUIResource.java,
javax/swing/plaf/InternalFrameUI.java,
javax/swing/plaf/LabelUI.java,
javax/swing/plaf/ListUI.java,
javax/swing/plaf/MenuBarUI.java,
javax/swing/plaf/MenuItemUI.java,
javax/swing/plaf/OptionPaneUI.java,
javax/swing/plaf/PanelUI.java,
javax/swing/plaf/ProgressBarUI.java,
javax/swing/plaf/RootPaneUI.java,
javax/swing/plaf/ScrollBarUI.java,
javax/swing/plaf/ScrollPaneUI.java,
javax/swing/plaf/SeparatorUI.java,
javax/swing/plaf/SliderUI.java,
javax/swing/plaf/TableHeaderUI.java,
javax/swing/plaf/TableUI.java,
javax/swing/plaf/ToolBarUI.java,
javax/swing/plaf/ToolTipUI.java,
javax/swing/plaf/ViewportUI.java:
New versions from classpath.
* javax/swing/plaf/SpinnerUI.java:
New file from classpath
From-SVN: r68476
2003-06-25 12:39:15 +00:00
Kazu Hirata
f5139cc523
h8300.c (compute_mov_length): Adjust for the new optimization.
...
* config/h8300/h8300.c (compute_mov_length): Adjust for the
new optimization.
* config/h8300/h8300.md (*movsi_h8300): Optimize the load of
an SImode constant whose upper and lower are the same.
From-SVN: r68475
2003-06-25 11:54:44 +00:00
Michael Koch
7099616c53
ColorModel.java: New version from classpath.
...
2003-06-25 Michael Koch <konqueror@gmx.de>
* java/awt/image/ColorModel.java:
New version from classpath.
From-SVN: r68474
2003-06-25 11:23:33 +00:00
Gerald Pfeifer
b348a598a8
gcc_release: Factor the updating of links and READMEs on the FTP server and sending mail for...
...
* gcc_release: Factor the updating of links and READMEs on the
FTP server and sending mail for snapshots into a...
(announce_snapshot): ...new function.
Add informative output for both.
From-SVN: r68473
2003-06-25 09:36:19 +00:00
Jan Hubicka
380e198464
varasm.c (assemble_name): Mark needed variables even when global info is ready.
...
* varasm.c (assemble_name): Mark needed variables even when
global info is ready.
From-SVN: r68472
2003-06-25 09:32:44 +00:00
Jerry Quinn
3f8b659dbd
re PR other/11280 (Manual incorrect WRT -freorder-blocks)
...
PR other/11280
* gcc/doc/invoke.texi (Optimization Options): Remove -Os from
-freorder-functions description.
From-SVN: r68470
2003-06-25 08:24:52 +00:00
Michael Koch
d0e029d8ae
PlainDatagramSocketImpl.java: Partly merged with classpath, this mainly adds documentation.
...
2003-06-25 Michael Koch <konqueror@gmx.de>
* java/net/PlainDatagramSocketImpl.java:
Partly merged with classpath, this mainly adds documentation.
From-SVN: r68468
2003-06-25 07:00:34 +00:00