Eric Botcazou
b5524f9497
Fix formatting.
...
From-SVN: r69404
2003-07-15 13:12:18 +00:00
Eric Botcazou
5a257872da
re PR rtl-optimization/11320 (Scheduler bug)
...
PR optimization/11320
* sched-int.h (struct deps) [reg_conditional_sets]: New field.
(struct sched_info) [compute_jump_reg_dependencies]: New prototype.
* sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
current_sched_info->compute_jump_reg_dependencies. Record which
registers are used and which registers are set by the jump.
Clear deps->reg_conditional_sets after a barrier.
Set deps->reg_conditional_sets if the insn is a COND_EXEC.
Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
(init_deps): Initialize reg_conditional_sets.
(free_deps): Clear reg_conditional_sets.
* sched-ebb.c (compute_jump_reg_dependencies): New prototype.
Mark registers live on entry of the fallthrough block and conditionally
set as set by the jump. Mark registers live on entry of non-fallthrough
blocks as used by the jump.
* sched-rgn.c (compute_jump_reg_dependencies): New prototype.
Mark new parameters as unused.
From-SVN: r69401
2003-07-15 13:02:21 +00:00
Matt Kraai
9fa0903819
* texi2pod.pl: Default @itemize's parameter to @bullet.
...
From-SVN: r69399
2003-07-15 09:24:07 +00:00
Richard Sandiford
3cec3f8307
* doc/invoke.texi: Resync MIPS -march documentation.
...
From-SVN: r69398
2003-07-15 08:58:33 +00:00
Richard Sandiford
98450f0d22
mips.h (PROCESSOR_R9000): New processor_type.
...
* config/mips/mips.h (PROCESSOR_R9000): New processor_type.
(TARGET_MIPS9000, TUNE_MIPS9000): New macros.
(GENERATE_MULT3_SI): True for TARGET_MIPS9000.
* config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
(mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
(mips_issue_rate): Handle PROCESSOR_R9000.
(mips_use_dfa_pipeline_interface): Likewise.
* config/mips/9000.md: New file.
* config/mips/mips.md: Include it.
(define_attr cpu): Add r9000.
(mulsi3_mult3): Use "mul" for rm9000 code.
From-SVN: r69397
2003-07-15 08:44:26 +00:00
Stan Cox
5fe25f470b
mips.h (PROCESSOR_R7000): New processor_type.
...
* config/mips/mips.h (PROCESSOR_R7000): New processor_type.
(TARGET_MIPS7000, TUNE_MIPS7000): New macros.
(GENERATE_MULT3_SI): True for TARGET_MIPS7000.
* config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
(mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
(mips_issue_rate): Handle PROCESSOR_R7000.
(mips_use_dfa_pipeline_interface): Likewise.
* config/mips/7000.md: New file.
* config/mips/mips.md: Include it.
(define_attr cpu): Add r7000.
(mulsi3_mult3): Use "mul" for rm7000 code.
From-SVN: r69394
2003-07-15 08:34:54 +00:00
Richard Sandiford
5a2515e667
mips.md (define_attr type): Add condmove.
...
* config/mips/mips.md (define_attr type): Add condmove. Use it for
the conditional move patterns.
* config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
Check for condmove type.
(ir_vr54_arith): Add move type.
* config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
* config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
From-SVN: r69389
2003-07-15 08:16:44 +00:00
Jerry Quinn
119dbb1fce
stl_algo.h (includes, [...]): Document.
...
2003-07-15 Jerry Quinn <jlquinn@optonline.net>
* include/bits/stl_algo.h (includes, set_union, set_intersection,
set_difference, set_symmetric_difference, max_element, min_element,
next_permutation, prev_permutation, find_first_of, find_end):
Document.
* include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
restrictions in docs.
* include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
Document.
* docs/doxygen/doxygroups.cc (setoperations): New group.
From-SVN: r69387
2003-07-15 07:30:29 +00:00
Jerry Quinn
284f19bf17
basic_string.h: Document public functions.
...
2003-07-15 Jerry Quinn <jlquinn@optonline.net>
* include/bits/basic_string.h: Document public functions.
* docs/doxygen/TODO: Update c21 todo.
From-SVN: r69386
2003-07-15 07:02:40 +00:00
Jerry Quinn
709e7c9f87
stl_list.h: Document more functions.
...
2003-07-15 Jerry Quinn <jlquinn@optonline.net>
* include/bits/stl_list.h: Document more functions.
* docs/doxygen/TODO: Update c23 todo.
From-SVN: r69385
2003-07-15 06:15:57 +00:00
Neil Booth
72de27eaff
c-opts.c (print_help): Remove.
...
* c-opts.c (print_help): Remove.
(c_common_handle_option): Don't handle --help.
* c.opt: Document some options.
(--help): Remove.
* opts.c (print_filtered_help): New.
(print_help): Use it.
From-SVN: r69383
2003-07-15 05:48:16 +00:00
Geoffrey Keating
2d799c0954
c-common.c (c_common_type_for_mode): Handle V4DFmode.
...
* c-common.c (c_common_type_for_mode): Handle V4DFmode.
* tree.c: (build_common_tree_nodes_2): Likewise.
* tree.h (enum tree_index): Add TI_V4DF_TYPE.
(V4DF_type_node): New.
From-SVN: r69382
2003-07-15 05:44:30 +00:00
Geoffrey Keating
e6ebd07b9d
c-opts.c (push_command_line_include): Don't free deferred_opts, we'll need it.
...
* c-opts.c (push_command_line_include): Don't free deferred_opts,
we'll need it.
(finish_options): Reset init_cursor.
From-SVN: r69381
2003-07-15 05:36:25 +00:00
Kazu Hirata
683b1112af
* expr.c: Remove the last argument to expand_assignment().
...
From-SVN: r69380
2003-07-15 05:32:21 +00:00
Kazu Hirata
b90f141a9d
expr.c (expand_assignment): Remove an unused argument SUGGEST_REG.
...
* expr.c (expand_assignment): Remove an unused argument
SUGGEST_REG.
* expr.h: Update the prototype.
* function.c: Update the callers.
* stmt.c: Likewise.
From-SVN: r69379
2003-07-15 05:31:44 +00:00
Geoffrey Keating
89a68bb98d
inline-3.c: New file.
...
* gcc.dg/pch/inline-3.c: New file.
* gcc.dg/pch/inline-3.hs: New file.
* gcc.dg/pch/inline-4.c: New file.
* gcc.dg/pch/inline-4.hs: New file.
From-SVN: r69378
2003-07-15 05:21:37 +00:00
Mark Mitchell
1e7ee6ad1f
re PR debug/11098 ([dwarf2] g++ doesn't emit complete debugging information for local variables in destructors)
...
PR debug/11098
* integrate.c (copy_decl_for_inlining): Do not mark copied decls
as DECL_ABSTRACT.
From-SVN: r69374
2003-07-15 01:04:21 +00:00
Nathanael Nerode
bf66f7b007
inclhack.def (avoid_bool_define, [...]): Bypass with __cplusplus, not "we must use the C++ compiler's type"
...
* fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
with __cplusplus, not "we must use the C++ compiler's type"
* fixinc/inclhack.def (void_null): Note that Interix needs this.
* fixinc/fixincl.x: Regenerate.
From-SVN: r69373
2003-07-15 00:43:24 +00:00
GCC Administrator
b9ce931dbe
Daily bump.
...
From-SVN: r69368
2003-07-15 00:16:07 +00:00
Geoffrey Keating
ea00486e43
unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects and unseen_objects from the global data before calling...
...
* unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
and unseen_objects from the global data before calling
__deregister_frame_info_bases.
(examine_objects): Insert objects into the seen_objects list,
not unseen_objects.
(_Unwind_Find_FDE): Always unlock the global object lists, even if
we couldn't allocate a data structure to put in it.
From-SVN: r69366
2003-07-14 23:04:30 +00:00
Geoffrey Keating
18009d039e
objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
...
* objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
(TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
(SET_TYPE_PROTOCOL_LIST): New.
* objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
(get_object_reference): Likewise.
From-SVN: r69364
2003-07-14 21:35:37 +00:00
Mark Mitchell
8d83f79225
re PR c++/11509 (ICE with expression with static member in template arg)
...
PR c++/11509
* pt.c (dependent_scope_ref_p): New function.
(value_dependent_expression_p): Use it.
(type_dependent_expression_p): Likewise.
* pt.c (tsubst_friend_function): Use reregister_specialization.
PR c++/11509
* g++.dg/template/crash6.C: New test.
From-SVN: r69363
2003-07-14 21:32:26 +00:00
Jan Hubicka
9ae130f857
cfglayout.c (locator_file): Break out from ....
...
* cfglayout.c (locator_file): Break out from ....
(insn_file): ... here.
(locator_line): Break out from ....
(insn_line): ... here.
* rtl.h (locator_file, locator_line): Declare.
(final_start_function): Set proper line/file info.
From-SVN: r69359
2003-07-14 21:18:15 +00:00
Gabriel Dos Reis
e07d4821a6
*** empty log message ***
...
From-SVN: r69358
2003-07-14 20:52:04 +00:00
Richard Sandiford
121d69e69a
mips.c (mips_expand_prologue): Use a single insn to allocate 32768 bytes of stack.
...
* config/mips/mips.c (mips_expand_prologue): Use a single insn to
allocate 32768 bytes of stack. Use addition rather than subtraction
when a single insn is enough.
* config/mips/mips.md: Remove insns and splitters for subtracting
constants.
(subsi3): Only accept register operands.
(subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
(subdi3_internal_3, subsi3_internal_2): Likewise.
(casesi): Use expand_binop to subtract the lower bound.
From-SVN: r69357
2003-07-14 20:41:27 +00:00
Richard Sandiford
3485245e16
mips.c (mips_in_small_data_p): Don't handle TARGET_MIPS16 specially.
...
* config/mips/mips.c (mips_in_small_data_p): Don't handle
TARGET_MIPS16 specially.
From-SVN: r69356
2003-07-14 20:36:28 +00:00
Richard Sandiford
6d0b50a4c8
elf.h (ASM_OUTPUT_ALIGNED_BSS): Use mips_output_aligned_bss.
...
* config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
mips_output_aligned_bss.
* config/mips/linux.h: Likewise.
* config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
* config/mips/mips.c (mips_output_aligned_bss): New function.
From-SVN: r69355
2003-07-14 20:29:34 +00:00
Richard Sandiford
8d50bd1960
elf.h (DBX_DEBUGGING_INFO): Delete.
...
* config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
* config/mips/elf64.h: Likewise.
From-SVN: r69354
2003-07-14 20:25:55 +00:00
Paolo Carlini
f45e487d76
c_locale.h (__convert_from_v): One more qualification.
...
2003-07-14 Paolo Carlini <pcarlini@unitus.it>
* config/locale/gnu/c_locale.h (__convert_from_v): One more
qualification.
From-SVN: r69353
2003-07-14 20:24:18 +00:00
Richard Sandiford
c1115ccd68
elf.h (ASM_DECLARE_OBJECT_NAME): Use mips_declare_object_name.
...
* config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
mips_declare_object_name.
(ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
* config/mips/elf64.h: As for elf.h.
* config/mips/iris6.h: Likewise.
* config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
* config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
do...while (0) block.
* config/mips/mips-protos.h (mips_declare_object_name): Declare.
(mips_finish_declare_object): Declare.
* config/mips/mips.c (mips_declare_object_name): New function.
(mips_finish_declare_object): New function.
From-SVN: r69352
2003-07-14 20:23:38 +00:00
Mark Mitchell
748d4c7e65
re PR c++/7053 (ICE when declaring a function already defined as a friend method of a template class)
...
PR c++/7053
* g++.dg/template/friend20.C: New test.
From-SVN: r69351
2003-07-14 20:20:27 +00:00
Richard Sandiford
060ff934f6
elf.h (SBSS_SECTION_ASM_OP): Delete.
...
* config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
* config/mips/linux.h: Likewise.
From-SVN: r69350
2003-07-14 20:19:26 +00:00
Richard Sandiford
d82783b609
mips.c (inside_function): Delete.
...
* config/mips/mips.c (inside_function): Delete.
(file_in_function_warning, ignore_line_number): Delete.
(mips_output_filename): Don't warn about changing filenames within
a function.
(mips_output_lineno): Update accordingly.
(mips_output_function_prologue): Don't reset the deleted variables.
* config/mips/mips.h (inside_function): Delete.
(file_in_function_warning, ignore_line_number): Delete.
From-SVN: r69348
2003-07-14 20:15:47 +00:00
Paolo Carlini
f088510d96
stl_tempbuf.h: Qualify free with std::.
...
2003-07-14 Paolo Carlini <pcarlini@unitus.it>
* include/bits/stl_tempbuf.h: Qualify free with std::.
* src/locale.cc: Include <cstdlib>, qualify getenv.
From-SVN: r69347
2003-07-14 20:14:49 +00:00
Richard Sandiford
373f8df79e
elf.h (OBJECT_FORMAT_COFF, [...]): Remove undefs.
...
* config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
* config/mips/elf64.h: Likewise.
* config/mips/openbsd.h: Likewise.
* config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
* config/mips/linux.h: Likewise.
* config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
(CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
From-SVN: r69346
2003-07-14 20:12:07 +00:00
Richard Sandiford
6627b7f96a
config.gcc (mips-sgi-irix6*o32, [...]): Add mips/sdb.h to the list of include files when using gas.
...
* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
to the list of include files when using gas.
(mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
* config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
* config/mips/elf64.h: Likewise.
* config/mips/iris5.h: Likewise.
* config/mips/linux.h: Likewise.
* config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
* config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
(SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
* config/mips/sdb.h: ...this new file.
From-SVN: r69345
2003-07-14 20:09:20 +00:00
Geoffrey Keating
33971b58c3
* lang-specs.h (f77-cpp-input): Use -o to specify the CPP output file.
...
From-SVN: r69344
2003-07-14 20:03:44 +00:00
Paolo Carlini
2def5b76e3
c_locale.h (__convert_from_v): Include <cstdio>.
...
2003-07-14 Paolo Carlini <pcarlini@unitus.it>
* config/locale/gnu/c_locale.h (__convert_from_v): Include
<cstdio>. Qualify names.
* config/locale/generic/c_locale.h (__convert_from_v): Ditto.
From-SVN: r69343
2003-07-14 19:46:29 +00:00
Mark Mitchell
5e08432ed0
re PR c++/7019 ([3.3 only] SFINAE does not work with explicitally specified template arguments)
...
PR c++/7019
* cp-tree.h (lookup_qualified_name): Adjust prototype.
* decl.c (lookup_qualified_name): Add complain parameter. Adjust
call to is_aggr_type.
* parser.c (cp_parser_lookup_name): Adjust call to
lookup_qualified_name.
* pt.c (tsubst_qualified_id): Likewise.
(tsubst_copy_and_build): Likewise.
* semantics.c (finish_qualified_id_expr): Deal with erroneous
expressions.
PR c++/7019
* g++.dg/template/overload2.C: New test.
From-SVN: r69342
2003-07-14 19:05:05 +00:00
Paolo Carlini
bda243ec50
Nathan C.
...
2003-07-14 Paolo Carlini <pcarlini@unitus.it>
Nathan C. Myers <ncm-nospam@cantrip.org>
PR libstdc++/11378
* include/std/std_fstream.h (xsputn): Declare only.
* include/bits/fstream.tcc (xsputn): Define, optimize for the
always_noconv() case: when __n is sufficiently large flush
the buffer and issue a direct write, if possible combining the
two with writev in __basic_file<>::xsputn_2.
* config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
New, declare.
* config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
Define.
* acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
the availability of writev in <sys/uio.h>.
* configure.in: Call here.
* acconfig.h: Add undef for the corresponding symbol.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config.h.in: Regenerate.
* testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
* include/std/std_fstream.h (sync): Constify a variable.
Co-Authored-By: Nathan C. Myers <ncm-nospam@cantrip.org>
From-SVN: r69341
2003-07-14 18:23:12 +00:00
Gabriel Dos Reis
19948e32a8
re PR c++/11510 (Error message with operator __imag__ is missing spaces)
...
PR c++/11510
* call.c (op_error): Properly handle REALPART_EXPR
and IMAGPART_EXPR.
* error.c (dump_expr): Likewise.
From-SVN: r69340
2003-07-14 17:45:08 +00:00
Nathanael Nerode
c18b00c0d3
[multiple changes]
...
2003-07-14 Douglas Rupp <rupp@gnat.com>
* fixinc/server.c (server_setup): Don't use non-POSIX NULL first
argument to getcwd; use fixed buffer instead.
2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
* fixinc/mkfixinc.sh: Treat OpenBSD normally.
* fixinc/fixinc.wrap: Delete.
From-SVN: r69339
2003-07-14 16:56:03 +00:00
Gabriel Dos Reis
98ed39062b
* error.c (dump_expr): Handle EMPTY_CLASS_EXPR.
...
From-SVN: r69338
2003-07-14 16:09:58 +00:00
Franz Sirl
1b78cca94b
re PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it)
...
2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
PR optimization/11440
* gcc.c-torture/execute/20030714-1.c: New test.
From-SVN: r69334
2003-07-14 16:03:29 +00:00
Nathanael Nerode
c786471404
MAINTAINERS: Move self from write-after-approval to build machinery (*.in).
...
* MAINTAINERS: Move self from write-after-approval to
build machinery (*.in).
From-SVN: r69333
2003-07-14 15:42:43 +00:00
Gabriel Dos Reis
f19319dbdf
re PR c++/5293 (confusing message when binding a temporary to a reference)
...
PR c++/5293
* call.c (initialize_reference): Improve diagnostic.
From-SVN: r69332
2003-07-14 15:04:32 +00:00
Benjamin Kosnik
c573d965f9
assign_neg.cc: Fix line numbers.
...
2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
From-SVN: r69331
2003-07-14 14:47:03 +00:00
Gerald Pfeifer
adc4adcdaf
ggc-page.c (extra_order_size_table): Insns have 9 slots.
...
* ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
don't have 2.
* ggc-page.c (struct globals): Add new fields to keep track of the
total allocated memory and overhead.
(ggc_print_statistics): Print them.
(ggc_alloc): Keep track of the total allocated memory and the
overhead.
* tree.c (dump_tree_statistics): Increase spacing.
(enum tree_node_kind): Move to ...
* tree.h (enum tree_node_kind): ... here.
(tree_node_counts, tree_node_sizes): Declare.
* doc/include/texinfo.tex: Upgrade to texinfo 4.6.
From-SVN: r69330
2003-07-14 13:36:56 +00:00
Gabriel Dos Reis
3ad249b9c7
Include <cstring> and <cstdlib>.
...
From-SVN: r69329
2003-07-14 13:32:26 +00:00
Kriang Lerdsuwanakij
55ece1b348
re PR c++/11154 (spurious ambiguity report for template class specialization)
...
PR c++/11154
* pt.c (more_specialized_class): Add full_args parameter.
(most_specialized_class): Adjust calls to more_specialized_class.
* cp-tree.h (more_specialized_class): Adjust declaration.
* g++.dg/template/partial2.C: New test.
From-SVN: r69328
2003-07-14 10:48:59 +00:00