Jakub Jelinek
bc8229a050
string-opt-8.c (main): Remove i370 and s390, it does not have cmpstrsi patterns (just cmpmemsi).
...
* gcc.c-torture/execute/string-opt-8.c (main): Remove i370 and s390,
it does not have cmpstrsi patterns (just cmpmemsi).
From-SVN: r69422
2003-07-15 23:26:36 +02:00
Mark Mitchell
b0afa2fca4
re PR debug/11473 (ICE with -gstabs when empty struct inheits from an empty struct)
...
PR debug/11473
* dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
base classes.
PR debug/11473
* g++.dg/debug/debug8.C: New test.
From-SVN: r69414
2003-07-15 16:56:49 +00:00
Kazu Hirata
2a868facf5
Rotate ChangeLog.
...
From-SVN: r69411
2003-07-15 16:06:59 +00:00
Kriang Lerdsuwanakij
caec1dc059
re PR c++/10108 (tree checking ICE: expected var_decl, have error_mark in tsubst_decl)
...
PR c++/10108
* pt.c (tsubst_decl) <TEMPLATE_DECL>: Add a check for
error_mark_node.
* g++.dg/template/crash7.C: New test.
From-SVN: r69409
2003-07-15 15:28:38 +00:00
Kazu Hirata
aadf50ed06
re PR target/10795 (ICE in extract_insn, at recog.c:2188)
...
PR target/10795
* gcc.c-torture/compile/20030708-1.c: New.
From-SVN: r69408
2003-07-15 13:44:50 +00:00
Kazu Hirata
5df90541c7
re PR target/10795 (ICE in extract_insn, at recog.c:2188)
...
PR target/10795
* config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
swap comparison operands if doing so would generate an
unrecognizable insn.
From-SVN: r69407
2003-07-15 13:42:39 +00:00
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
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
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
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
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
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
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
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
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
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
Dan Nicolaescu
9a8c9b44cc
* lex.c (enum tree_node_kind): Delete.
...
From-SVN: r69327
2003-07-14 10:14:51 +00:00
Franz Sirl
bbd288a44d
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
* gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
SIGN_EXTRACT SETs.
From-SVN: r69325
2003-07-14 09:29:44 +00:00
Alan Modra
6e98504002
tm.texi (BLOCK_REG_PADDING): Describe.
...
* doc/tm.texi (BLOCK_REG_PADDING): Describe.
* expr.h (struct locate_and_pad_arg_data): Add where_pad.
(emit_group_load, emit_group_store): Adjust declarations.
Remove most occurrences of #ifdef TREE_CODE.
* expr.c (emit_group_load): Add "type" param, and use
BLOCK_REG_PADDING to determine need for a shift. Optimize non-
aligned accesses if !SLOW_UNALIGNED_ACCESS.
(emit_group_store): Likewise.
(emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
emit_group_load and emit_group_store calls.
* calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
BLOCK_REG_PADDING to determine whether we need endian_correction.
(load_register_parameters): Localize vars. Handle shifting of
small values to the correct end of regs. Adjust emit_group_load
call.
(expand_call, emit_library_call_value_1): Adjust emit_group_load
and emit_group_store calls.
* function.c (assign_parms): Set mem alignment for stack slots.
Adjust emit_group_store call. Store values at the "wrong" end
of regs to the stack. Use BLOCK_REG_PADDING.
(locate_and_pad_parm): Save where_pad.
(expand_function_end): Adjust emit_group_load call.
* stmt.c (expand_value_return): Adjust emit_group_load call.
* Makefile.in (calls.o): Depend on $(OPTABS_H).
* config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
(AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
(MUST_PASS_IN_STACK): Define.
(BLOCK_REG_PADDING): Define.
* config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
(PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
* config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
(function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
Act on AGGREGATES_PAD_UPWARD_ALWAYS.
From-SVN: r69318
2003-07-14 14:47:18 +09:30
Mark Mitchell
a3d8777127
re PR c++/11503 (segfault when instantiating template with ADDR_EXPR)
...
PR c++/11503
* g++.dg/template/anon1.C: New test.
PR c++/11503
* cp-tree.h (DECL_SELF_REFERENCE_P): New macro.
(SET_DECL_SELF_REFERENCE_P): Likewise.
* class.c (build_self_reference): Use SET_DECL_SELF_REFERENCE_P.
* pt.c (tsubst_decl): Copy it.
* search.c (lookup_base): Use DECL_SELF_REFERENCE_P.
From-SVN: r69317
2003-07-14 05:12:56 +00:00
Mark Mitchell
b34459943b
re PR c++/11493 (tree check ICE in error.c)
...
* cp-tree.h (cp_id_kind): New type.
(unqualified_name_lookup_error): Change prototype.
(unqualified_fn_lookup_error): New function.
(do_identifier): Remove.
(do_scoped_id): Likewise.
(tsubst_copy_and_build): Change prototype.
(reregister_specialization): New function.
(perform_koenig_lookup): Likewise.
(finish_id_expression): Likewise.
* call.c (build_method_call): Adjust call to
unqualified_name_lookup_error.
* decl.c (duplicate_decls): Use reregister_specialization.
* lex.c (is_global): Remove.
(unqualified_name_lookup_error): Return a value.
(do_identifier): Remove.
(do_scoped_id): Likewise.
(identifier_typedecl_value): Remove.
(unqualified_fn_lookup_error): New function.
* parser.c (cp_parser_id_kind): Remove.
(cp_parser_non_constant_id_expression): Remove.
(cp_parser_primary_expression): Use finish_id_expression.
(cp_parser_class_or_namespace_name): Use cp_id_kind, not
cp_parser_id_kind.
(cp_parser_postfix_expression): Use perform_koenig_lookup.
(cp_parser_template_argument): Use cp_id_kind.
(cp_parser_fold_non_dependent_expr): Adjust call to
tsubst_copy_and_build.
* pt.c (unregister_specialization): Rename to ...
(reregister_specialization): This.
(tsubst_friend_function): Use it.
(maybe_fold_nontype_arg): Adjust call to tsubst_copy_and_build.
(tsubst_qualified_id): Likewise.
(tsubst_expr): Likewise.
(tsubst_copy_and_build): Add function_p parameter. Use
finish_id_expression. Introduce RECUR macro.
(tsubst_non_call_postfix_expression): New function.
(regenerate_decl_from_template): Use reregister_specialization.
* semantics.c (perform_koenig_lookup): New function.
(finish_id_expression): Likewise.
PR c++/11493
PR c++/11495
* g++.dg/parse/template9.C: Likewise.
* g++.dg/template/crash4.C: New test.
* g++.dg/template/koenig1.C: Likewise.
* g++.old-deja/g++.benjamin/tem03.C: Adjust error markers.
* g++.old-deja/g++.benjamin/tem06.C: Declare "x".
* g++.old-deja/g++.jason/overload33.C: Use this-> when calling
functions.
* g++.old-deja/g++.jason/template36.C: Likewise.
* g++.old-deja/g++.mike/p1989.C: Likewise.
* g++.old-deja/g++.pt/lookup2.C: Use -fpermissive when compiling.
* g++.old-deja/g++.pt/ttp20.C: Use this->.
* g++.old-deja/g++.pt/ttp21.C: Use this->.
* g++.old-deja/g++.pt/typename13.C: Use -fpermissive when
compiling.
* g++.old-deja/g++.pt/union2.C: Use this->.
From-SVN: r69316
2003-07-14 03:04:29 +00:00
Aaron W. LaFramboise
4fab535ec6
gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
...
2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
* config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
(This was previously, erroneously listed as checked in on 2003-06-29)
From-SVN: r69313
2003-07-14 02:12:15 +00:00
GCC Administrator
dcad9c8559
Daily bump.
...
From-SVN: r69311
2003-07-14 00:16:09 +00:00
Richard Kenner
8d2e5f7279
expr.c (expand_expr, [...]): If reg...
...
* expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
From-SVN: r69308
2003-07-13 19:21:23 -04:00
Nathanael Nerode
7eaab492be
re PR other/11123 (Some option names are truncated in gcc --help -v)
...
PR other/11123
* toplev.c: Don't cut off option names.
From-SVN: r69303
2003-07-13 20:31:33 +00:00
Andreas Jaeger
9d4a30f2c1
c-decl.c (link_hash_hash): Avoid warning about casting pointer to integer of different size.
...
* c-decl.c (link_hash_hash): Avoid warning about casting pointer
to integer of different size.
From-SVN: r69302
2003-07-13 22:21:24 +02:00
Kazu Hirata
34ed3bb00e
combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0) to (eq (and X 1) 0).
...
* combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
to (eq (and X 1) 0).
From-SVN: r69300
2003-07-13 19:03:28 +00:00
Andreas Jaeger
1a7d084043
* config.gcc: Add pmmintrin.h for x86_64-*-*.
...
From-SVN: r69299
2003-07-13 20:22:54 +02:00
Zack Weinberg
438396422c
Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
...
* Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
(hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
list. Move these all together down by cpplib.
* cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
definition of CPPCHAR_SIGNED_T.
* cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
* cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
* line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
* cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
* cppinit.c (cpp_create_reader): Likewise.
* cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
* cpptrad.c: Likewise. All callers changed.
* cpplib.c: All callers changed.
* c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
* hashtable.h: Define GTY(x) to nothing here too.
From-SVN: r69298
2003-07-13 17:34:18 +00:00
Richard Kenner
0acf4f8857
stor-layout.c (compute_record_mode): Remove very obsolete test that forces BLKmode for records with fields crossing...
...
* stor-layout.c (compute_record_mode): Remove very obsolete test
that forces BLKmode for records with fields crossing word boundary.
From-SVN: r69297
2003-07-13 13:12:28 -04:00
Zack Weinberg
46db61e733
* Makefile.in: Remove orphan reference to acconfig.h.
...
From-SVN: r69295
2003-07-13 16:52:23 +00:00
Kriang Lerdsuwanakij
2b907f5c45
pt.c (push_access_scope_real): Remove.
...
* pt.c (push_access_scope_real): Remove.
(push_access_scope): Move code from push_access_scope_real.
(pop_access_scope): Don't check for TEMPLATE_DECL.
(instantiate_template): Defer access checking during template
substitution.
(regenerate_decl_from_template): Tidy.
From-SVN: r69291
2003-07-13 15:20:58 +00:00
Nathan Sidwell
75e74c7190
document covariants implemented
...
From-SVN: r69287
2003-07-13 14:30:02 +00:00
Andreas Jaeger
db0e878d33
* cgraphunit.c: Convert prototypes to ISO C90.
...
From-SVN: r69285
2003-07-13 10:40:07 +02:00
Nathanael Nerode
4146d8d0c4
inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass (for OpenBSD).
...
* fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
(for OpenBSD).
* fixinc/fixincl.x: Rebuild.
From-SVN: r69284
2003-07-13 06:52:25 +00:00
Zack Weinberg
6f3ca28152
configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for i?86-*-*.
...
* configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
i?86-*-*. Use correct name of cache variable.
* configure: Regenerate.
From-SVN: r69283
2003-07-13 02:53:00 +00:00
GCC Administrator
4284a08d87
Daily bump.
...
From-SVN: r69281
2003-07-13 00:16:06 +00:00
Kazu Hirata
9a9f7594fd
alpha.c: Fix comment typos.
...
* config/alpha/alpha.c: Fix comment typos.
* config/alpha/alpha.md: Likewise.
* config/arm/arm.c: Likewise.
* config/arm/arm.md: Likewise.
* config/arm/lib1funcs.asm: Likewise.
* config/avr/avr.md: Likewise.
* config/arm/README-interworking: Fix typos.
From-SVN: r69277
2003-07-12 23:02:23 +00:00
Kazu Hirata
4ed432168c
c-format.c: Fix comment formatting.
...
* c-format.c: Fix comment formatting.
* c-typeck.c: Likewise.
* coverage.c: Likewise.
* cppcharset.c: Likewise.
* cpplib.c: Likewise.
* dbxout.c: Likewise.
* gcov-io.h: Likewise.
* toplev.c: Likewise.
From-SVN: r69276
2003-07-12 22:49:48 +00:00
Nathanael Nerode
c3a5b1e9d4
inclhack.def (alpha_sbrk): Note that OpenBSD needs this fix.
...
* fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
fix.
From-SVN: r69274
2003-07-12 20:12:52 +00:00
Zack Weinberg
3d1ebd63de
Regenerate again, oops
...
From-SVN: r69273
2003-07-12 20:05:24 +00:00
Zack Weinberg
8ada417fa1
aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE...
...
* aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
uses three-argument AC_DEFINE so no acconfig.h entries are
needed.
(_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
which contains the GAS version number as a scaled integer.
(gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
ability to check for ELF assembler.
(gcc_GAS_CHECK_FEATURE): New macro.
* configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
assembler feature checks using gcc_GAS_CHECK_FEATURE.
Use three-argument AC_DEFINE everywhere.
* acconfig.h: Deleted.
* config.in, configure: Regenerate.
From-SVN: r69272
2003-07-12 20:03:14 +00:00
Nathanael Nerode
d33fb69b53
(fix dumb changelog omission)
...
(fix dumb changelog omission)
* fixinc/fixincl.x: Regenerate.
From-SVN: r69271
2003-07-12 19:55:44 +00:00
Nathanael Nerode
3b57c56391
inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in (on OpenBSD).
...
* fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
(on OpenBSD).
From-SVN: r69270
2003-07-12 19:39:44 +00:00
Nathanael Nerode
d5d16b5f41
* fixinc/inclhack.def (gnu_types): Improve comment.
...
From-SVN: r69269
2003-07-12 19:25:59 +00:00
Andreas Jaeger
cd01ef5bca
* Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
...
From-SVN: r69268
2003-07-12 20:54:06 +02:00
Andreas Jaeger
439f7bc3e8
fp-test.c (main): Use ISO C90 prototype.
...
* fp-test.c (main): Use ISO C90 prototype.
* version.c: Remove unneded include of ansidecl.h.
* cgraph.h: Convert prototypes to ISO C90.
* cgraph.c: Likewise.
* fix-header.c: Likewise.
* ra.h: Likewise.
* protoize.c: Likewise.
From-SVN: r69265
2003-07-12 13:29:18 +02:00
Jan Hubicka
1a5c570100
cgraphunit.c (cgraph_inlined_into, [...]): Fix warning.
...
* cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
warning.
From-SVN: r69264
2003-07-12 04:10:36 +00:00
Jan Hubicka
b58b11577a
cgraph.c (cgraph_max_uid): New global variable.
...
* cgraph.c (cgraph_max_uid): New global variable.
(cgraph_node): Set uid field.
(create_edge): Keep inline flags consistent.
(dump_cgraph): Dump more info.
* cgraph.h (struct cgraph_local_info): Remove inline_many and
can_inline_once; add inlinable, disgread_inline_limits, and self_insn
(struct cgraph_global_info): Add insns, calls, cloned_times,
will_be_output.
(struct cgraph_node): Add uid.
(struct cgraph_edge): Add inline_call.
(cgraph_max_uid, cgraph_inline_p): Declare.
* cgraph.c: Include params.h and fibheap.h
(cgraph_mark_functions_to_inline_once): Kill.
(INSNS_PER_CALL): New constant.
(ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
static variables.
(cgraph_finalize_function): Do not analyze inlining.
(cgraph_finalize_compilation_unit): Set inlining attributes.
(cgraph_mark_functions_to_output): More consistency checks.
(cgraph_optimize_function): Set current_function_decl to NULL.
(cgraph_expand_function): Use new inline flags.
(cgraph_postorder): Expand from cgraph_expand_functions.
(INLINED_TIMES, SET_INLINED_TIMES): New macros.
(cgraph_inlined_into, cgraph_inlined_callees,
cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
cgraph_mark_inline, cgraph_check_inline_limits,
cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
cgraph_decide_inlining, cgraph_inline_p): New functions.
* params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
PARAM_INLINE_UNIT_GROWTH): New parameters.
* tree-inline.c (struct inline_data): New field current_decl.
(expand_call_inline): Avoid forward declarations; use
inlinable_function_p.
(optimize_inline_calls): Set id.current_decl.
Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
From-SVN: r69262
2003-07-12 01:07:40 +00:00
Andrew Pinski
27b8e366f8
Patch from Andrew Pinksi.
...
* configure.in: Remove wrongly added definition of
local_prefix.
* configure: Regenerate.
From-SVN: r69261
2003-07-11 17:35:14 -07:00
GCC Administrator
76d558c0bd
Daily bump.
...
From-SVN: r69259
2003-07-12 00:16:07 +00:00
Dan Nicolaescu
80fa0b4c1b
* rtl.def (NOTE): Do not use padding.
...
From-SVN: r69257
2003-07-11 23:49:43 +00:00
Dara Hazeghi
1ea6f4c805
Patch from Dara Hazeghi.
...
* doc/install.tex: Update required binutils for i?86-*-linux*
From-SVN: r69255
2003-07-11 16:04:48 -07:00
Nathanael Nerode
e05f79742f
re PR c++/11437 (ICE in lookup_name_real)
...
PR c++/11437
* operators.def: Add definitions for __imag__, __real__.
From-SVN: r69254
2003-07-11 23:01:53 +00:00
Richard Henderson
ed2d8944ae
* Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
...
From-SVN: r69249
2003-07-11 15:00:09 -07:00
Mark Mitchell
a44cea75a7
varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of TRANSLATION_UNIT_DECL as top_level.
...
* varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
TRANSLATION_UNIT_DECL as top_level.
From-SVN: r69244
2003-07-11 21:20:18 +00:00
Jakub Jelinek
358b8f0114
optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists, then fall back to cmpstrM.
...
* optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
then fall back to cmpstrM.
* builtins.c (expand_builtin_memcmp): Likewise.
* config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
(s390_expand_cmpmem): ... this.
* config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
from cmpstr* patterns. Rename call to s390_expand_cmpstr
to s390_expand_cmpmem.
* config/s390/s390.c (s390_expand_cmpstr): Rename to...
(s390_expand_cmpstr): ... this. Rename cmpstr* instructions
to cmpmem*.
* config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
cmpstr* patterns.
* doc/md.texi (cmpstrM): Describe as String compare insn, not
Block compare insn.
(cmpmemM): Add.
* gcc.dg/20030711-1.c: New test.
From-SVN: r69243
2003-07-11 23:04:56 +02:00
Loren J. Rittle
8634e925a9
freebsd.h (SET_ASM_OP): Remove.
...
* config/i386/freebsd.h (SET_ASM_OP): Remove.
(SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
(ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
From-SVN: r69242
2003-07-11 20:22:34 +00:00
Richard Henderson
48144cd490
function.c (assign_parms): Don't recombine complex args if fnargs is unchanged from orig_fnargs.
...
* function.c (assign_parms): Don't recombine complex args if
fnargs is unchanged from orig_fnargs.
(split_complex_args): Return args without complex before copying.
Re-layout the modified parameters.
From-SVN: r69236
2003-07-11 09:28:22 -07:00
J"orn Rennecke
fee226d25f
regclass.c (choose_hard_reg_mode): Add third argument.
...
* regclass.c (choose_hard_reg_mode): Add third argument.
Changed all callers.
* rtl.h (choose_hard_reg_mode): Update declaration.
* dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
Take HARD_REGNO_CALL_PART_CLOBBERED into account.
From-SVN: r69234
2003-07-11 15:09:29 +01:00
Nathan Sidwell
7efa3e22e5
re PR c++/11050 ("some string" __FUNCTION__ is accepted)
...
cp:
PR c++/11050
* parser.c (cp_parser_expression_list): Rename to ...
(cp_parser_parenthesized_expression_list): ... here. Add attribute
parameter, parse the surounding parentheses.
(cp_parser_skip_to_closing_parenthesis): Add recover and or_comma
parameters. Return int.
(cp_parser_skip_to_closing_parenthesis or comma): Remove.
(cp_parser_postfix_expression): Adjust function call parsing.
(cp_parser_new_placement): Adjust.
(cp_parser_new_initializer): Likewise.
(cp_parser_cast_expression): Likewise.
(cp_parser_selection_statement): Likewise.
(cp_parser_mem_initializer): Likewise.
(cp_parser_asm_definition): Likewise.
(cp_parser_init_declarator): Likewise.
(cp_parser_declarator): Make
cdtor_or_conv_p an int ptr.
(cp_parser_direct_declarator): Likewise. Check for a parameter
list on cdtors & conv functions.
(cp_parser_initializer): Adjust.
(cp_parser_member_declaration): Adjust.
(cp_parser_attribute_list): Move code into
cp_parser_parens_expression_list.
(cp_parser_functional_cast): Adjust.
* pt.c (type_dependent_expression_p): Erroneous expressions are
non-dependent.
testsuite:
PR c++/11050
* g++.dg/parse/args1.C: New test.
* g++.pt/defarg8.C: Change expected errors.
From-SVN: r69230
2003-07-11 09:18:01 +00:00
Mark Mitchell
87ca53f644
re PR c++/8164 (ICE when using different const expressions as template parameter)
...
PR c++/8164
* decl.c (duplicate_decls): Avoid mangling names unnecessarily.
PR c++/8164
* g++.dg/template/nontype2.C: New test.
PR c++/10558
* g++.dg/parse/template8.C: New test.
From-SVN: r69229
2003-07-11 08:53:59 +00:00
Mark Mitchell
a6b602cafd
re PR c++/10558 (Segfault on illegal use of template without template args)
...
PR c++/10558
* g++.dg/parse/template8.C: New test.
From-SVN: r69226
2003-07-11 08:41:44 +00:00
Geoffrey Keating
d1bd0ded61
Index: ChangeLog
...
2003-07-10 Geoffrey Keating <geoffk@apple.com>
* c-decl.c (finish_decl): Handle 'used' here...
* cgraphunit.c (cgraph_finalize_function): ... and here ...
* c-common.c: (handle_used_attribute): ... not here.
* configure.in (onstep): Support --enable-intermodule.
* Makefile.in (OBJS-common): New.
(OBJS-md): New.
(OBJS-archive): New.
(OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
(OBJS-onestep): New.
(libbackend.a): Support @onestep@.
(libbackend.o): New.
* configure: Regenerate.
* c-common.h (c_reset_state): New prototype.
(c_parse_file): New prototype.
(finish_file): Move prototype from c-tree.h.
* c-decl.c: Include <hashtab.h>.
(builtin_decls): New.
(current_file_decl): New.
(duplicate_decls): Add extra parameter. Change all callers. Don't
output duplicate common symbols.
(link_hash_hash): New.
(link_hash_eq): New.
(poplevel): Handle popping of the top level.
(warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
(pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
(pushdecl_top_level): Likewise.
(redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
(c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
(finish_decl): Handle TRANSLATION_UNIT_DECL.
(merge_translation_unit_decls): New.
(c_write_global_declarations): New.
(c_reset_state): New.
(implicitly_declare): Handle TRANSLATION_UNIT_DECL.
* c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
* c-objc-common.c (c_cannot_inline_tree_fn): Handle
TRANSLATION_UNIT_DECL.
(c_objc_common_finish_file): Call merge_translation_unit_decls.
* c-opts.c (in_fnames): Rename from in_fname.
(c_common_decode_option): Handle multiple input filenames.
(c_common_post_options): Likewise.
(c_common_parse_file): Likewise; also, call c_parse_file rather than
yyparse.
* c-parse.in: Move cleanup code to c_parse_file.
(free_parser_stacks): Move contents to c_parse_file.
(c_parse_file): New.
* c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
for integer types.
(C_DECL_FILE_SCOPE): New.
(finish_file): Move prototype to c-common.h.
(merge_translation_unit_decls): New prototype.
(comptypes): Add extra parameter to prototype.
(c_write_global_declarations): New prototype.
* c-typeck.c (tagged_types_tu_compatible_p): New.
(function_types_compatible_p): Add extra parameter, change all callers.
(type_lists_compatible_p): Likewise.
(comptypes): Likewise.
(struct tagged_tu_seen): New.
(tagged_tu_seen_base): New.
(build_unary_op): Handle TRANSLATION_UNIT_DECL.
(c_mark_addressable): Remove #if 0 code.
* calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
comment explaining why it shouldn't have to.
* cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
options.
* cppinit.c (cpp_read_next_file): New.
(cpp_read_main_file): Use it.
* cpplib.c (undefine_macros): New.
(cpp_undef_all): New.
* cpplib.h (cpp_read_next_file): Prototype.
(cpp_undef_all): Prototype.
* langhooks-def.h (write_global_declarations): Remove prototype.
* toplev.h (write_global_declarations): Add prototype.
* tree.c (decl_type_context): Use switch statement, handle
TRANSLATION_UNIT_DECL.
* tree.def: Update documentation for TRANSLATION_UNIT_DECL.
(TRANSLATION_UNIT_DECL): New kind of tree.
* tree.h: Update documentation for TRANSLATION_UNIT_DECL.
* Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
* doc/invoke.texi: Make attempt to document new functionality.
2003-05-19 Per Bothner <bothner@apple.com>
* gcc.c (combine_inputs): New.
(process_command): Set combine_inputs.
(do_spec_1): Handle combine_inputs.
(main): Likewise.
Index: cp/ChangeLog
2003-07-10 Geoffrey Keating <geoffk@apple.com>
* decl.c (cp_finish_decl): Handle 'used' attribute.
* cp-lang.c (c_reset_state): New dummy routine.
* cp-tree.h (finish_file): Move prototype to c-common.h.
* parser.c (c_parse_file): Rename from yyparse; don't call finish_file.
From-SVN: r69224
2003-07-11 08:33:21 +00:00
Mark Mitchell
6eeba0cc43
re PR c++/8327 (In definition of template static member value of static const member isn't known)
...
PR c++/8327
* pt.c (tsubst_qualified_id): Implement suggested resolution for
Core Issue 2.
(type_dependent_expression_p): Likewise.
PR c++/8327
* g++.dg/template/scope1.C: New test.
From-SVN: r69223
2003-07-11 08:20:19 +00:00
Mark Mitchell
7d48af3049
typeck.c (build_binary_op): Do not warn about signed vs.
...
* typeck.c (build_binary_op): Do not warn about signed
vs. unsigned comparisons in the bodies of templates.
* g++.dg/warn/Wsign-compare-1.C: New test.
From-SVN: r69222
2003-07-11 08:13:58 +00:00
James E Wilson
ac8354b1da
re PR rtl-optimization/9745 ([powerpc] miscompiles libmcrypt (alias problem during loop))
...
PR optimization/9745
* loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
loop_insn_emit_before.
(loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
From-SVN: r69220
2003-07-10 23:44:40 -07:00
Zack Weinberg
dea55da563
cppcharset.c: Fix comment.
...
* cppcharset.c: Fix comment.
(iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
(EILSEQ): #define to EINVAL if not already defined.
(convert_using_iconv): #if out when !HAVE_ICONV.
(init_iconv_desc): Handle !HAVE_ICONV here...
(cpp_init_iconv): ...not here.
From-SVN: r69218
2003-07-11 05:49:47 +00:00
Neil Booth
f3fdaec48d
common.opt: More --help messages.
...
* common.opt: More --help messages.
* opts.c (print_help): Use puts().
* toplev.c (f_options): Remove help text.
(display_help): Don't dump f_options.
From-SVN: r69217
2003-07-11 05:35:06 +00:00
Nathanael Nerode
7ebbf1ea7d
mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
...
* fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
Move i?86-*-interix* to the don't-fix list.
* fixinc/fixinc.interix: Delete with extreme prejudice.
From-SVN: r69216
2003-07-11 05:24:48 +00:00
Dara Hazeghi
959a73a4fa
re PR bootstrap/10758 (bootstrap failure on HP-UX 11.22/IPF)
...
Patch from Dara Hazeghi.
PR bootstrap/10758
* doc/install.texi: Document requirements for ia64-*-hpux* target.
From-SVN: r69214
2003-07-10 21:59:35 -07:00
Kazu Hirata
1dc9efda91
* gcc.dg/20021018-1.c: Disable if the sizeof (int) < 4.
...
From-SVN: r69210
2003-07-11 03:28:56 +00:00
Roger Sayle
9959901c6b
* config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
...
From-SVN: r69209
2003-07-11 03:10:48 +00:00
GCC Administrator
bd7d241486
Daily bump.
...
From-SVN: r69207
2003-07-11 00:16:07 +00:00
Zack Weinberg
6b88314c65
cppcharset.c (one_utf8_to_cppchar, [...]): New functions.
...
* cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
convert_no_conversion, convert_using_iconv): New functions.
(APPLY_CONVERSION): New macro.
(struct conversion, conversion_tab): New data structure.
(init_iconv_desc): Check conversion_tab for a custom conversion
primitive before trying to use iconv.
(convert_cset): Deleted.
(cpp_init_iconv): Use UTF- terminology, not UCS-.
(_cpp_destroy_iconv): Update to match.
(_cpp_valid_ucn): We don't need iconv to implement UCNs.
(convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
(convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
(_cpp_interpret_string_notranslate): New function, moved here
from cpplib.c.
* cpphash.h (convert_f, struct cset_converter): New types.
(struct cpp_reader): narrow_cset_desc and wide_cset_desc
are now struct cset_converter, not bare iconv_t.
Update prototypes.
* cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
all callers changed.
From-SVN: r69204
2003-07-10 23:16:31 +00:00
Kelley Cook
38f4680f54
oops
...
From-SVN: r69203
2003-07-10 20:46:28 +00:00
Neil Booth
9cffadfb6a
Make-lang.in: Update.
...
* Make-lang.in: Update.
* tree1.c: Don't include c-common.h.
(c_language): Remove.
From-SVN: r69202
2003-07-10 20:43:48 +00:00
Toon Moene
dbf70135bd
ffe.texi: Correctly use @var{srcdir}.
...
2003-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
* ffe.texi: Correctly use @var{srcdir}.
From-SVN: r69201
2003-07-10 20:42:21 +00:00
Kelley Cook
4ade7b1af1
Makefile.in (options.h): Depend on Makefile.
...
* Makefile.in (options.h): Depend on Makefile. Add move-if-change
to opts.sh command line.
* opts.sh: Write to temporary files with a move-if-change at the end.
From-SVN: r69200
2003-07-10 20:42:05 +00:00
Denis Chertykov
9db367b45c
combine.c (gen_binary): Handle the CLOBBER rtx and don't build a binary operation with it.
...
* combine.c (gen_binary): Handle the CLOBBER rtx and
don't build a binary operation with it.
Co-Authored-By: Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
From-SVN: r69199
2003-07-11 00:28:09 +04:00
Zdenek Dvorak
3b14e3af06
gcse.c (load_kills_store, [...]): Keep track of the correct dependency function to use.
...
* gcse.c (load_kills_store, find_loads, store_killed_in_insn,
store_killed_after, store_killed_before): Keep track of the correct
dependency function to use.
From-SVN: r69198
2003-07-10 19:48:43 +00:00
Mark Mitchell
584672eef4
re PR c++/9411 ([New parser] Template function lookup problem)
...
PR c++/9411
* parser.c (cp_parser_postfix_expression): Check dependency of
functions.
PR c++/9411
* g++.dg/template/explicit2.C: New test.
From-SVN: r69196
2003-07-10 19:19:09 +00:00
Steven Bosscher
a9189cc05f
toplev.c (do_compile): Don't try to open dump files before lang_dependent_init initializes dump_base_name.
...
2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
* toplev.c (do_compile): Don't try to open dump files before
lang_dependent_init initializes dump_base_name.
From-SVN: r69195
2003-07-10 19:15:10 +00:00
Kaveh R. Ghazi
e97a46ce6c
arm.c (arm_init_iwmmxt_builtins, [...]): Use ARRAY_SIZE.
...
* config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
Use ARRAY_SIZE.
* config/frv/frv.c (frv_expand_builtin): Likewise.
* config/sh/sh.c (sh_media_init_builtins): Likewise.
From-SVN: r69194
2003-07-10 18:04:25 +00:00
Mark Mitchell
4a3864984c
re PR c++/10032 (-pedantic converts some errors to warnings)
...
PR c++/10032
* doc/invoke.texi (C++ Dialect Options): Change documentation of
-fpermissive.
PR c++/10032
* decl.c (cxx_init_decl_processing): With -pedantic, pedwarns are
still errors.
PR c++/10527
* error.c (decl_to_string): Do not print default argument
expressions.
* cp-tree.h (break_out_calls): Remove declaration.
* tree.c (break_out_calls): Remove.
* typeck.c (build_modify_expr): Avoid invalid sharing of trees.
PR c++/10032
* g++.dg/warn/pedantic1.C: New test.
From-SVN: r69191
2003-07-10 16:47:52 +00:00
J"orn Rennecke
1e60c0577d
* tm.texi (RETURN_ADDR_OFFSET): Document.
...
From-SVN: r69190
2003-07-10 15:56:33 +01:00
Nathan Sidwell
7c728fc634
PR c++ 9483
...
PR c++ 9483
* g++.dg/other/field1.C: New test.
From-SVN: r69189
2003-07-10 14:52:56 +00:00
Nathan Sidwell
330d2e2ade
gcov-io.h: Update documentation.
...
* gcov-io.h: Update documentation.
(GCOV_UNSIGNED2STRING): New.
(GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
GCOV_TAG_SUMMARY_LENGTH): Adjust.
(GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
GCOV_TAG_COUNTER_NUM): New.
(GCOV_BLOCK_SIZE): Number of words.
(gcov_var): Adjust buffer type.
* gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
(gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
count, not byte count.
(gcov_open): Adjust overread init.
(gcov_allocate, gcov_write_unsigned, gcov_write_counter,
gcov_write_string, gcov_write_tag, gcov_write_length,
gcov_write_tag_length): Adjust.
(gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
(gcov_sync, gcov_seek): Adjust.
* gcov-dump.c (print_usage): Show gcc version only.
(dump_file): Use GCOV_UNSIGNED2STRING.
(tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
* gcov.c (print_version): Show gcc version only.
(read_graph_file): Use GCOV_UNSIGNED2STRING. Use
GCOV_TAG_*_NUM macros.
(read_count_file): Use GCOV_UNSIGNED2STRING. Use
GCOV_TAG_COUNTER_LENGTH.
* coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
Use GCOV_TAG_COUNTER_NUM.
* libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
(__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
From-SVN: r69188
2003-07-10 14:13:01 +00:00
Kazu Hirata
11791dbccc
re PR c/11449 (ICE in invert_truthvalue called on AND operation)
...
PR c/11449
* fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
of HOST_WIDE_INT.
(fold_single_bit_test): If sign_bit_p() fails, assume that the
bit being tested is not a sign bit.
PR c/11449
* gcc.c-torture/compile/20030707-1.c: New.
* config/h8300/h8300.md (a peephole2): New.
From-SVN: r69187
2003-07-10 12:51:27 +00:00
Kriang Lerdsuwanakij
0c3b76ea50
re PR c++/10849 (Cannot define an out-of-class specialization of a private nested template class)
...
PR c++/10849
* g++.dg/template/access12.C: New test.
From-SVN: r69186
2003-07-10 12:48:17 +00:00
Kazu Hirata
c87d821bd4
re PR c/11449 (ICE in invert_truthvalue called on AND operation)
...
PR c/11449
* fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
of HOST_WIDE_INT.
(fold_single_bit_test): If sign_bit_p() fails, assume that the
bit being tested is not a sign bit.
PR c/11449
* gcc.c-torture/compile/20030707-1.c: New.
* config/h8300/h8300.md (a peephole2): New.
From-SVN: r69184
2003-07-10 12:40:10 +00:00
Steven Bosscher
bcda12f4f4
ggc.h, [...]: Use rtx' instead of
struct rtx_def *'...
...
2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
* ggc.h, integrate.h, langhooks.h, real.h, toplev.h:
Use `rtx' instead of `struct rtx_def *', `rtvec' instead of
`struct rtvec_dev *' and `tree' instead of `union tree_node *'
in function prototypes.
* varray.h (const_equiv_data): Likewise for fields.
(varray_data_tag): Likewise.
* output.h: Likewise, and don't forward declare union tree_node.
* emit_rtl.c (const_int_htab_hash): Cast to `rtx' instead of
`struct rtxvec *'.
* print-tree.c (print_node): Likewise.
* reload1.c: Don't redeclare current_function_decl, tree.h is
included in this file.
From-SVN: r69183
2003-07-10 11:38:18 +00:00
Andreas Schwab
3dbb446ebd
* gcov-dump.c (dump_file): Fix missing address operator.
...
From-SVN: r69182
2003-07-10 09:52:13 +00:00
Nathan Sidwell
633221dbab
PR c++ 9483
...
cp:
PR c++ 9483
* class.c (check_field_decls): Pass DECL_NAME to constructor_name_p.
* decl2.c (constructor_name_p): Avoid repeated constructor_name
calls.
* decl.c (grokdeclarator): Refactor ctor/dtor detection.
testsuite:
PR c++ 9483
* g++.dg/other/field1.C: New test.
From-SVN: r69180
2003-07-10 09:02:06 +00:00
Fergus Henderson
31c56a8ba7
Remove C language front end dependencies.
...
* tree-convert.c: New file.
* treetree.c: Don't include c-tree.h. Include target.h.
(struct lang_identifier, union lang_tree_node, struct lang_type,
struct lang_function): New, minimal language-specific datastructs.
(tree_lang_truthvalue_conversion, tree_mark_addressable,
tree_lang_type_for_size, tree_lang_type_for_mode,
tree_lang_unsigned_type, tree_lang_signed_type,
tree_lang_signed_or_unsigned): New functions.
(LANG_HOOKS_*): Don't use C front end langhooks. Use new functions.
(pushlevel, poplevel, global_bindings_p, insert_block, set_block,
pushdecl, getdecls, kept_level_p, tree_push_type_decl,
tree_push_atomic_type_decl): New functions.
(struct resword, struct reswords): Remove.
* Make-lang.in: Update. Don't depend on C front end objects.
* config-lang.in: Likewise.
Co-Authored-By: Steven Bosscher <steven@gcc.gnu.org>
From-SVN: r69178
2003-07-10 01:18:53 -07:00
Kazu Hirata
ae12c66624
* config/h8300/h8300.md (a peephole2): New.
...
From-SVN: r69176
2003-07-10 06:18:30 +00:00
Alexandre Oliva
2beef00e78
[multiple changes]
...
2001-12-13 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
from ld-linux.so.2 to ld.so.1.
2001-11-18 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
* config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
nor -Wl,-rpath-link.
(LIB_SPEC): Add -rpath-link if !static.
2001-08-22 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.c (mn10300_protect_label): New
variable.
* config/mn10300/linux.h (PRINT_OPERAND,
PRINT_OPERAND_ADDRESS): Set it during their execution.
(ASM_OUTPUT_LABELREF): Output `+' before symbol name if
mn10300_protect_label is set.
* config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
-Wl,-rpath-link.
(LIB_SPEC, STARTFILE_SPEC): Define.
2001-05-11 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
FLOAT_BIT_ORDER_MISMATCH.
2001-05-09 Alexandre Oliva <aoliva@redhat.com>
* config.gcc (am33_2.0-*-linux*): Added.
* config/mn10300/linux.h: New.
* config/mn10300/t-linux: New.
From-SVN: r69171
2003-07-10 04:50:15 +00:00
Andreas Jaeger
75040a044e
* fold-const.c: Properly wrap prototypes.
...
From-SVN: r69170
2003-07-10 06:44:05 +02:00
Alexandre Oliva
d177606965
[multiple changes]
...
2003-06-16 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
Moved from...
* config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
* config/mn10300/mn10300.h: GTY-declare it.
2003-06-11 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
prototype. Use incoming RTL argument.
2002-12-12 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.md (int_label): Move C statements...
(GOTaddr2picreg): ... here.
2002-08-15 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
* config/mn10300/mn10300.c (mn10300_encode_section_info):
... here. New function.(TARGET_ENCODE_SECTION_INFO): Define to it.
2001-11-04 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
pattern name.
(mn10300_loadPC): Define as insn splittable after reload.
2001-05-13 Alexandre Oliva <aoliva@redhat.com>
* config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
be defined in .rodata even in PIC, now that the assembler
supports that.
2001-05-09 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
symbol take an underscore prefix.
2001-04-14 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
legitimize_pic_address): Declare.
* config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
the PIC register as fixed.
(EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
(GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
PIC.
(LEGITIMATE_PIC_OPERAND_P): Define.
(PIC_OFFSET_TABLE_REGNUM): Define.
(GOT_SYMBOL_NAME): Define.
(SYMBOLIC_CONST_P): Define.
(ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
symbols.
(MN10300_GLOBAL_P): Test it.
(OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
(JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
* config/mn10300/mn10300.c (print_operand): Handle unspec.
(expand_prologue): Set PIC register.
(call_address_operand): Don't match SYMBOL_REFs in PIC.
(legitimize_address): Call legitimize_pic_address.
(legitimize_pic_address): New fn.
(legitimate_pic_operand_p): New fn.
* config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
(UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
UNSPEC_PLT): New constants.
(pop_pic_reg): New insn.
(movsi): Adjust non-PIC addresses.
(builtin_setjmp_receiver): Restore the PIC register.
(casesi): New insn.
(call): Adjust non-PIC addresses.
(int_label, GOTaddr2picreg): New expands.
(am33_loadPC): New insn.
(mn10300_loadPC): New expand.
(call_next_insn): New insn.
(add_GOT_to_pic_reg): New expand.
(symGOT2reg, symGOT2reg_i): New expands.
(symGOTOFF2reg, symGOTOFF2reg_i): New expands.
(sym2PIC, sym2PLT): New expands.
From-SVN: r69169
2003-07-10 03:25:32 +00:00
Alexandre Oliva
18e9d2f9e3
mn10300.h (PREDICATE_CODES): Define.
...
* config/mn10300/mn10300.h (PREDICATE_CODES): Define.
2001-05-01 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
to flag_unsafe_math_optimizations.
2001-04-14 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.c (expand_prologue): Mark
FP-register-saving insns as frame-related.
2001-02-13 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.c
(mn10300_get_live_callee_saved_regs): Don't search past
LAST_EXTENDED_REGNUM.
(mn10300_gen_multiple_store, store_multiple_operation): Likewise.
* config/mn10300/mn10300.md: Remove excessive line breaks from
`@' output patterns that were accounted as additional
alternatives.
* config/mn10300/mn10300.md, config/mn10300/mn10300.c:
Re-introduce changes accidentally removed in Richard Sandiford's
2000-12-05's patch.
* config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
Re-instate am33-2 lost in merge from net GCC.
2000-08-26 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
floating-point registers.
2000-08-07 Alexandre Oliva <aoliva@redhat.com>
* config/mn10300/mn10300.md (movdf): Revert some am33-specific
pessimizations that had gone in on 2000-05-08.
2000-06-28 Graham Stott <grahams@cygnus.co.uk>
* config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
2000-06-22 Graham Stott <grahams@cygnus.co.uk>
* config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
operand 0.
* (movhi): Likewise.
* (movsi): Likewise.
* (movsf): Likewise.
* (movdi): Likewise.
* (movdf): Likewise.
Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.c (fp_regs_to_save): New function.
(can_use_return_insn, initial_offset): Add fp_regs_to_save.
(expand_prologue, expand_epilogue): Save and restore FP regs.
2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
Do not clobber cc0.
2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
Discourage the two-argument, longer opcodes.
(addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
ones.
* config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
(CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
* config/mn10300/mn10300.md (cmpsf): New pattern.
(branch): Test mdep.fpCC and output fbCC.
* config/mn10300/mn10300.c (print_operand): Output conditions.
(notice_cc_update): Recognize fcmp and set mdep.fpCC.
2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
mulsf3, divsf3): Use the `F' constraint for FP values.
* config/mn10300/mn10300.c (const_1f_operand): New function.
* config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
* config/mn10300/mn10300.md (sqrtsf2): New expand.
(rsqrtsf2): New insn.
2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (movdf): Oops, I missed it in my
previous check-in.
2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.md (abssf2, negdf2): On
TARGET_AM33_2, expand to...
(abssf2_am33_2, negdf2_am33_2): New insns.
(addsf3, subsf3, mulsf3, divsf3): Likewise.
(fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
* config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
movdi, movdf): Added FP regs.
* invoke.texi (-mam33-2, -mno-am33-2): Document.
2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
New macros.
(REGNO_AM33_2_FP_P): Renamed to...
(REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
(CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
regs from GENERAL_REGS.
2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
* config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
* config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
as FP_REGS.
2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (OK_FOR_Q): New macro.
(EXTRA_CONSTRAINT): Added OK_FOR_Q.
* config/mn10300/mn10300.c (secondary_reload_class): Adjust.
* config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
* config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
(FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
AM33/2.0 floating-point registers.
(CONDITIONAL_REGISTER_USAGE): Adjust.
(enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
(REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
(REG_CLASS_FROM_LETTER): Added `f' and `A'.
(REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
* config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
(MULTILIB_DIRNAMES): Likewise.
* config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
`__AM33_2__' when `-mam33-2' is given.
(TARGET_AM33_2): Define.
(TARGET_SWITCHES): Adjust.
* config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
when appropriate.
From-SVN: r69167
2003-07-10 02:56:29 +00:00
Matt Kraai
2ff167186b
* doc/install.texi: Add missing @.
...
From-SVN: r69166
2003-07-10 01:41:38 +00:00
Bob Wilson
a7bda3d531
* config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
...
From-SVN: r69165
2003-07-10 00:22:51 +00:00
GCC Administrator
a1188b984f
Daily bump.
...
From-SVN: r69163
2003-07-10 00:16:06 +00:00
Mark Mitchell
6489f188ac
typeck.c (build_x_unary_op): Take note of the fact that PREINCREMENT_EXPR and POSTINCREMENT_EXPR are binary...
...
* typeck.c (build_x_unary_op): Take note of the fact that
PREINCREMENT_EXPR and POSTINCREMENT_EXPR are binary operations on
trees.
From-SVN: r69161
2003-07-09 23:39:14 +00:00
Mark Mitchell
279b84660b
parser.c (cp_parser_primary_expression): Preserve the form of qualified expressions in templates...
...
* parser.c (cp_parser_primary_expression): Preserve the form of
qualified expressions in templates, even if they are not
dependent.
* pt.c (convert_nontype_argument): Handle non-dependent SCOPE_REFs.
(tsubst_qualified_id): Likewise.
* search.c (accessible_p): Treat everything in the body of a
From-SVN: r69160
2003-07-09 23:06:39 +00:00
Aldy Hernandez
bb498ea3a5
i386.c (ix86_function_arg_boundary): Remove abort.
...
2003-07-09 Aldy Hernandez <aldyh@redhat.com>
PR/11144
* config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
From-SVN: r69159
2003-07-09 22:19:04 +00:00
Nathanael Nerode
21f3dbfc1c
re PR bootstrap/11043 ([arc-elf32] make fails due to missing rules)
...
PR bootstrap/11043
* config/arc/t-arc: Replace bogus references to "x-crtinit.o",
"x-crtfini.o" with "crtinit.o", "crtfini.o".
From-SVN: r69156
2003-07-09 21:25:40 +00:00
Toon Moene
64f970fe30
re PR fortran/11301 (ICE with -fno-globals)
...
2003-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
PR Fortran/11301
* com.c (ffecom_sym_transform_): finish_decl should have
the same last argument as start_decl.
From-SVN: r69155
2003-07-09 21:12:54 +00:00
Nathanael Nerode
15e4ea18d3
inclhack.def (limits_ifndefs): Add select test.
...
* fixinc/inclhack.def (limits_ifndefs): Add select test.
* fixinc/fixincl.x: Rebuild.
From-SVN: r69154
2003-07-09 21:08:20 +00:00
Nathanael Nerode
a401fd602d
inclhack.def (math_exception): Improve bypass and comment.
...
* fixinc/inclhack.def (math_exception): Improve bypass and comment.
* fixinc/fixincl.x: Rebuild.
From-SVN: r69151
2003-07-09 21:00:01 +00:00
Hans-Peter Nilsson
c2f82a8421
install.texi (Configuration): Document the valgrind option to --enable-checking.
...
* doc/install.texi (Configuration): Document the valgrind option
to --enable-checking.
From-SVN: r69146
2003-07-09 18:51:36 +00:00
Nathan Sidwell
bda8c1ca80
bprob.exp (prof_ext): Update.
...
* g++.dg/bprob/bprob.exp (prof_ext): Update.
* g77.dg/bprob/bprob.exp (prof_ext): Update.
* gcc.misc-tests/bprob.exp (prof_ext): Update.
* gcc.misc-tests/gcov.exp: Update
* g++.dg/gcov/gcov.exp: Update
* lib/gcov.exp: Update.
From-SVN: r69145
2003-07-09 14:57:21 +00:00
Jan Hubicka
1f66e2a059
* objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
...
From-SVN: r69144
2003-07-09 14:37:15 +00:00
Rainer Orth
d0974745a1
* c-lex.c (cb_ident): Cast cstr.text to const char *.
...
From-SVN: r69138
2003-07-09 12:21:12 +00:00
Nathan Sidwell
160e2e4f23
gcov-io.h: Update documentation.
...
* gcov-io.h: Update documentation.
(GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
GCOV_NOTE_MAGIC.
(GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
(GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
(struct gcov_var): Change buffer's type. Add endian flag.
(gcov_open): Remove mode in libgcov.
(gcov_magic): Prototype.
* gcov-io.c (from_file): New.
(gcov_open): Clear endian flag.
(gcov_magic): New.
(gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
pointers.
(gcov_write_unsigned, gcov_write_counter, gcov_write_string,
gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
(gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
* gcov-iov.c (main): Correct cast.
* coverage.c (read_counts_file): Use gcov_magic. Remove endianness
conversion.
(gcov_begin_output): Use GCOV_NOTE_MAGIC.
(coverage_init): Use GCOV_NOTE_SUFFIX.
* libgcov.c (gcov_version_mismatch): Remove endianness conversion.
Rename to gcov_version, and return flag.
(gcov_exit): Use gcov_version.
(__gcov_init): Use gcov_version.
* Makefile.in (coverageexts): Update.
* gcov.c (print_version): Remove endianness conversion.
(create_file_names): Use GCOV_NOTE_SUFFIX.
(read_graph_file): Use gcov_magic.
(read_count_file): Likewise.
* gcov-dump.c (dump_file): Remove endianness conversion, use
gcov_magic.
From-SVN: r69137
2003-07-09 12:12:29 +00:00
Nathan Sidwell
83599948cd
configure.in (BUILD_PREFIX, [...]): Set if enable coverage is on.
...
* configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
coverage is on.
* configure: Regenerated.
* Makefile.in (ALL_CFLAGS): Correct its comment.
From-SVN: r69136
2003-07-09 11:48:24 +00:00
Mark Mitchell
d17811fd1a
fold-const.c (make_range): Do not access operand 1 for a zero-operand operator.
...
* fold-const.c (make_range): Do not access operand 1 for a
zero-operand operator.
2003-07-08 Mark Mitchell <mark@codesourcery.com>
* cp-tree.def (NON_DEPENDENT_EXPR): New node.
* cp-tree.h (build_call_from_tree): Remove.
(build_member_call): Likewise.
(dependent_template_arg_p): Remove.
(any_dependent_template_arguments_p): New function.
(dependent_template_id_p): Likewise.
(any_type_dependent_arguments_p): Likewise.
(build_non_dependent_expr): Likewise.
(build_non_dependent_args): Likewise.
(build_x_compound_expr): Adjust prototype.
* call.c (build_new_method_call): Handle non-dependent expressions
correctly.
* decl2.c (grok_array_decl): Likewise.
(build_offset_ref_call_from_tree): Likewise.
(build_call_from_tree): Remove.
* error.c (dump_decl): Handle NON_DEPENDENT_EXPR.
(dump_expr): Likewise.
* init.c (build_member_call): Remove.
* mangle.c (write_expression): Update handling for template-ids.
* parser.c (cp_parser_primary_expression): Use
any_dependent_template_arguments_p. Update constant-expression
handling.
(cp_parser_postfix_expression): Use
any_type_dependent_arguments_p. Simplify call processing.
(cp_parser_unary_expression): Simplify.
(cp_parser_expression): Adjust for changes to
build_x_compound_expr.
(cp_parser_template_argument): Implement standard-conforming
parsing of non-type template arguments.
(cp_parser_direct_declarator): Use
cp_parser_fold_non_dependent_expr.
(cp_parser_fold_non_dependent_expr): New function.
(cp_parser_next_token_ends_template_argument_p): Likewise.
* pt.c (convert_template_argument): Do not call
maybe_fold_nontype_arg.
(tsubst_baselink): Likewise.
(tsubst_copy_and_build): Share common code. Make sizeof/alignof
processing work correctly for non-dependent expressions. Adjust
handling of COMPOUND_EXPR. Simplify call processing.
(value_dependent_expression_p): Deal with functional casts and
sizeof/alignof correctly.
(type_dependent_expression_p): Handle overloaded functions.
(any_type_dependent_arguments_p): New function.
(any_dependent_template_arguments_p): Likewise.
(dependent_template_p): Treat SCOPE_REFs as dependent.
(dependent_template_id_p): Simplify.
(build_non_dependent_expr): New function.
(build_non_dependent_args): Likewise.
* semantics.c (finish_stmt_expr): Don't make dependent
statement-expresions have void type.
(finish_call_expr): Handle non-dependent expressions
correctly.
* tree.c (lvalue_p_1): Treat NON_DEPENDENT_EXPRs as lvalues.
* typeck.c (cxx_sizeof_or_alignof_type): Give the expression
type size_t, even in templates.
(expr_sizeof): Likewise.
(finish_class_member_access_expr): Handle non-dependent expressions
correctly.
(build_x_indirect_ref): Likewise.
(build_x_binary_op): Likewise.
(build_x_unary_op): Likewise.
(build_x_conditional_expr): Likewise.
(build_x_compound_expr): Likewise.
* typeck2.c (build_x_arrow): Likewise.
2003-07-08 Mark Mitchell <mark@codesourcery.com>
* g++.dg/abi/mangle17.C: Make sure template expressions are
dependent.
* g++.dg/abi/mangle4.C: Mark erroneous casts.
* g++.dg/debug/debug7.C: Mark erronous new-declarator.
* g++.dg/opt/stack1.C: Remove erroneous code.
* g++.dg/parse/template7.C: New test.
* g++.dg/template/dependent-expr1.C: Mark erroneous code.
* g++.old-deja/g++.pt/crash4.C: Likewise.
2003-07-09 Mark Mitchell <mark@codesourcery.com>
* gcj/array.h (JvPrimClass): Don't parenthesize the output.
From-SVN: r69130
2003-07-09 08:48:08 +00:00
John David Anglin
76739f290a
const-elim-1.c (dg-final): Change regexp to match labels with zero or one occurence of `$' after the...
...
* gcc.dg/const-elim-1.c (dg-final): Change regexp to match labels
with zero or one occurence of `$' after the initial `L'.
From-SVN: r69127
2003-07-09 06:19:44 +00:00
Neil Booth
28786366d6
toplev.c (warn_dummy, W_options): Die.
...
* toplev.c (warn_dummy, W_options): Die.
(display_help): Don't print W_options.
* common.opt: Add W_options help from toplev.c.
From-SVN: r69125
2003-07-09 05:28:04 +00:00
Andreas Jaeger
fbdb0453f1
opts.c (wrap_help): Only pass int arguments as arguments to printf's '*' modifier.
...
* opts.c (wrap_help): Only pass int arguments as arguments to
printf's '*' modifier. Change argument of function.
From-SVN: r69124
2003-07-09 07:13:09 +02:00
Matt Kraai
c80e4c17fd
* doc/invoke.texi: Fix misspelling of "@item".
...
From-SVN: r69123
2003-07-09 04:07:44 +00:00
Kazu Hirata
55c9de2de6
* gcc.c-torture/compile/20030704-1.c: Add a comment.
...
From-SVN: r69122
2003-07-09 03:02:17 +00:00
Kazu Hirata
2c5a64c613
i386.md: Remove an old comment about NOTICE_UPDATE_CC.
...
* config/i386/i386.md: Remove an old comment about
NOTICE_UPDATE_CC.
From-SVN: r69121
2003-07-09 02:56:47 +00:00
Jan Hubicka
a194aa56e6
cgraph.c (cgraph_node_name): New function.
...
* cgraph.c (cgraph_node_name): New function.
(dump_cgraph): Use it.
* cgraph.h (cgraph_dump_file): Declare.
(cgraph_node_name): Declare.
* cgraphunit.c: Include timevar.h
(cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
(cgraph_optimize_function): Use TV_INTEGRATION.
(cgraph_mark_local_functions): reorganize dumps.
(cgraph_mark_functions_to_inline_once): Likewise.
(cgraph_optimize): Likewise; use timevar.
* timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
* toplev.c (dump_file_index): Add DFI_cgraph.
(dump_file_info): Likewise.
(cgraph_dump_file): New global variable.
(do_compile): Open and close cgraph dump.
* invoke.texi (-d): Document new flag; renumber.
From-SVN: r69120
2003-07-09 01:20:24 +00:00
Roger Sayle
8af61113c7
re PR other/11370 (-Wunreachable-code gives false complaints)
...
PR c/11370
* calls.c (emit_call_1): Don't bother popping the arguments off of
the stack after a noreturn function call; The adjustment is dead.
(expand_call): Likewise.
* gcc.dg/Wunreachable-6.c: New testcase.
* gcc.dg/Wunreachable-7.c: New testcase.
From-SVN: r69119
2003-07-09 01:17:28 +00:00
Geoffrey Keating
436bcda146
expr.c (MOVE_MAX_PIECES): Move from here...
...
* expr.c (MOVE_MAX_PIECES): Move from here...
* defaults.h (MOVE_MAX_PIECES): ... to here.
From-SVN: r69118
2003-07-09 00:58:58 +00:00
Matt Kraai
6f3fcc0b83
* Makefile.in (stage1-start): Handle an empty SUBDIRS.
...
From-SVN: r69117
2003-07-09 00:51:42 +00:00
Kaveh R. Ghazi
ec049fdb0f
genattr.c (internal_dfa_insn_code): Don't prototype.
...
* genattr.c (internal_dfa_insn_code): Don't prototype.
* genattrtab.c (attr_desc): Add `static_p' field.
(expand_units): Make blockage range and ready cost functions
static.
(write_attr_get): Don't add extern prototypes in C file. Mark
static functions as appropriate.
(find_attr, make_internal_attr): Initialize static_p.
* genattrtab.h (ATTR_STATIC): New macro.
* genautomata.c (output_internal_reset_func): Mark output function
as inline.
(make_internal_dfa_insn_code_attr): Mark output function as static.
From-SVN: r69116
2003-07-09 00:44:34 +00:00
Kaveh R. Ghazi
11597bc969
genattrtab.h: Add new macros for attr `special' flags.
...
* genattrtab.h: Add new macros for attr `special' flags.
* genattrtab.c (attr_desc): Reorder/resize fields better.
Use attr `special' macros in all calls to make_internal_attr.
* genautomata.c: Likewise.
From-SVN: r69114
2003-07-09 00:38:40 +00:00
Jan Hubicka
084c177908
java-tree.h (DECL_NUM_STMTS): Rename to...
...
* java-tree.h (DECL_NUM_STMTS): Rename to...
(DECL_ESTIMATED_INSNS): ... this.
* lang.c (java_estimate_num_insns, java_estimate_num_insns_1):
New static functions.
(LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Define.
* parser.y (add_stmt_to_compound): Do not account statements.
* cp-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
* decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
(start_function): Use DECL_ESTIMATED_INSNS.
* optimize.c (maybe_clone_body): Use DECL_ESTIMATED_INSNS.
* decl2.c (maybe_emit_vtables): Fix marking vtables as needed in
unit-at-a-time
* c-common.c (c_estimate_num_insns_1): New static function.
(c_estimate_num_insns): New global function.
* c-common.h (DECL_NUM_STMTS): Rename to...
(DECL_ESTIMATED_INSNS): ... this.
(c_estimate_num_insns): Declare.
* c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
* c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
* c-semantics.c (add_stmt): Do not account statements.
* langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
New.
* langhooks.h (lang_hooks_for_tree_inlining): Add
estimate_num_insns
* params.def (max-inline-insns-auto, max-inline-insns-auto): set
to 100.
(max-inline-insns): set to 300.
(min-inline-insns): set to 10.
* tree-inline.c (struct inline_data): Rename inlined_stmts to
inlined-insns.
(INSNS_PER_STMT): Kill.
(inlinable_function_p): Compute and store body size.
(expand_call_inline): Likewise.
(optimize_inline_calls): Likewise.
From-SVN: r69113
2003-07-09 00:31:20 +00:00
James E Wilson
1b1838b64c
partial fix for PR target/10021
...
partial fix for PR target/10021
* emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
loop over new variable t2 instead of t.
From-SVN: r69111
2003-07-08 17:18:19 -07:00
GCC Administrator
518ed319bd
Daily bump.
...
From-SVN: r69109
2003-07-09 00:16:05 +00:00
Danny Smith
81a6341d7e
re PR bootstrap/11455 (Bootstrap failure in Cygwin)
...
PR bootstrap/11455
* config/i386/winnt.c: Replace use of error(), warning() with
error_with_decl(), warning_with_decl(), throughout.
From-SVN: r69107
2003-07-08 23:40:36 +00:00
Neil Booth
2178981638
* opts.c (wrap_help): Use unsigned int, not size_t.
...
From-SVN: r69106
2003-07-08 21:36:34 +00:00
Mark Wielaard
671d6ee735
* gcj.texi: CNI now expands to Compiled Native Interface.
...
From-SVN: r69103
2003-07-08 21:25:54 +00:00
Stephane Carrez
f642330223
m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define as .file/.loc directives are incompatible with linker relaxation.
...
* config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
as .file/.loc directives are incompatible with linker relaxation.
From-SVN: r69101
2003-07-08 23:05:39 +02:00
Zack Weinberg
a27531fb3b
oops, left this bit out
...
From-SVN: r69100
2003-07-08 20:43:37 +00:00
Zack Weinberg
ab74740898
Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
...
* Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
* fixinc/Makefile.in: Remove all references to gnu-regex.[och].
* fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
* fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
* fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
* fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
Escape { and } characters which are not part of range expressions.
* fixinc/fixincl.x: Regenerate.
From-SVN: r69099
2003-07-08 20:42:19 +00:00
Steven Bosscher
516574425b
re PR c/1687 (Exponential time behavior with -O -finline-functions (compile time regression from 3.2, 3.3))
...
2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
PR c/1687
* tree-inline.c (find_alloca_call): Use
walk_tree_without_duplicates, instead of walk_tree.
(find_builtin_longjmp_call): Likewise.
* c-objc-common.c (c_cannot_inline_fn): Likewise.
* c-semantics.c (find_reachable_label): Likewise.
From-SVN: r69097
2003-07-08 19:44:17 +00:00
Jakub Jelinek
7e6dc3581c
re PR target/11420 ([x86_64] gcc generates invalid asm code when "-O -fPIC" is used (suffix or operands invalid for `movabs'))
...
PR c/11420
* config/i386/i386.c (ix86_check_movabs): New function.
* config/i386/i386-protos.h (ix86_check_movabs): New prototype.
* config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
(movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
* gcc.dg/20030708-1.c: New test.
From-SVN: r69092
2003-07-08 20:01:51 +02:00
Chris Demetriou
318b7749ad
Makefile.in (install-po): Cope with empty CATALOGS.
...
2003-07-08 Chris Demetriou <cgd@broadcom.com>
* Makefile.in (install-po): Cope with empty CATALOGS.
From-SVN: r69091
2003-07-08 10:47:16 -07:00
Richard Sandiford
b889879035
elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
...
* config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
(EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
(SECTION_FUNCTION_TEMPLATE): Delete.
* config/mips/elf.h: As for elf64.h.
(ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
* config/mips/linux.h: As for elf.h
* config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
* config/mips/iris6.h (EXTRA_SECTIONS): Delete.
(EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
of in_sdata from current_section_name and current_section_flags.
* config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
* config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
(MASK_GP_OPT, TARGET_GP_OPT): Delete.
(MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
(TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
(SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
* config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
(TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
(mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
(override_options): Remove setting of MASK_GPOPT.
(mips_output_external): Use mips_in_small_data_p to check whether a
symbol needs an .extern directive. Don't emit such directives for
TARGET_EXPLICIT_RELOCS.
(mips_declare_object): Update accordingly.
(mips_select_rtx_section): Call named_section rather than
SMALL_DATA_SECTION.
(mips_select_section): Use default_elf_section_section for everything
except .text string constants.
(mips_in_small_data_p): New function.
(mips_encode_section_info): Remove small data handling.
(mips_unique_section): Delete.
(iris6_section_type_flags): New function.
* doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
From-SVN: r69090
2003-07-08 17:36:01 +00:00
Rainer Orth
c5ffd36c48
Make-lang.in (f/g77.dvi): Use PWD_COMMAND.
...
f:
* Make-lang.in (f/g77.dvi): Use PWD_COMMAND.
java:
* Make-lang.in (java/gcj.dvi): Use PWD_COMMAND.
From-SVN: r69089
2003-07-08 16:00:54 +00:00
Kriang Lerdsuwanakij
c4d0910c84
re PR c++/11030 (Cannot befriend a template specialization)
...
PR c++/11030
* pt.c (instantiate_class_template): Don't call xref_tag to
inject name when the friend class is a specialization.
* g++.dg/template/friend19.C: New test.
From-SVN: r69088
2003-07-08 15:35:53 +00:00
John David Anglin
f5d1c3deef
re PR target/11453 (gcc > 3.3 ICE)
...
PR Target/11453
* pa.md: Disparage all mtsar constraints.
(extzv, extv, insv): Don't fail on length of {32|64}.
From-SVN: r69087
2003-07-08 15:26:04 +00:00
Zack Weinberg
ce1bb65b4d
system.h: Poison MAP_CHARACTER.
...
* system.h: Poison MAP_CHARACTER.
* config/i370/i370-protos.h (mvs_map_char): Delete.
* config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
* config/i370/i370.h (MAP_CHARACTER): Delete definition.
(ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
f:
* lex.c: Remove error block #ifdef MAP_CHARACTER.
From-SVN: r69086
2003-07-08 15:10:16 +00:00
Danny Smith
c163ddca92
* toplev.c (randomize): Correct call to time().
...
From-SVN: r69083
2003-07-08 10:40:33 +00:00
Jakub Jelinek
8df63efa77
unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and REG_EQUIV notes as well.
...
* unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
REG_EQUIV notes as well.
* g++.dg/opt/strength-reduce.C: New test.
From-SVN: r69076
2003-07-08 09:26:27 +02:00
Kazu Hirata
4b5cc2b304
* doc/md.texi: Fix the description of addmodecc.
...
From-SVN: r69073
2003-07-08 06:44:00 +00:00
Zack Weinberg
56694dd996
Makefile.tpl (configure-gcc): Depend on maybe-configure-intl.
...
top:
* Makefile.tpl (configure-gcc): Depend on maybe-configure-intl.
* Makefile.in: Regenerate.
config:
* gettext.m4: Delete all former contents.
(ZW_GNU_GETTEXT_SISTER_DIR): New macro.
* progtest.m4: New file.
gcc:
* Makefile.in (top_builddir): Set to "..", not ".".
(INTLLIBS, INTLDEPS): Delete.
(LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
(LIBDEPS): Add $(LIBICONV_DEP).
(LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
(INCLUDES): Replace -I../intl with @INCINTL@.
($(top_builddir)/intl/libintl.a): Delete rule.
(stage2-start, stage3-start, stage4-start, stageprofile-start,
stagefeedback-start): Use $$ for variable to be evaluated by
shell, not make.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
* aclocal.m4: sinclude ../config/progtest.m4. Add
contents of lcmessage.m4 from gettext distro.
* configure.in: Check for wchar.h and setlocale. Set
LIBICONV_DEP to the empty string and substitute it.
Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
in $LIBINTL, to avoid linking it twice.
* configure, config.in: Regenerate.
intl:
* README: Update.
* Makefile.in (INSTALL, INSTALL_DATA, MKINSTALLDIRS,
mkinstalldirs, gettextsrcdir, l): Delete.
(COMPILE): Add $(DEFS-$@), remove $(XCFLAGS).
(HEADERS): libgnuintl.h not libgnuintl.h.in. Remove os2compat.h.
(SOURCES): Remove os2compat.c.
(DEFS-dcigettext.o, DEFS-localealias.o, DEFS-localcharset.o,
DEFS-relocatable.o): New.
(all-yes): Add config.intl.
(libintl.h): Use cp, not cat.
(INCLUDES): Remove -I..
(TAGS, CTAGS, ID): Word wrap.
(mostlyclean, distclean): Remove junk.
(config.intl): New rule.
* aclocal.m4: sinclude ../config/progtest.m4 instead of
including it inline.
* config.intl.in: New file.
* configure.in: Take out unnecessary AC_CONFIG_AUX_DIR.
Take out AC_DEFINEs for LOCALEDIR, LOCALE_ALIAS_PATH,
LIBDIR, INSTALLDIR. Set LIBINTL_DEP and INCINTL and AC_SUBST
them. Add config.intl to AC_OUTPUT.
* os2compat.c, os2compat.h: Delete, unused.
From-SVN: r69071
2003-07-08 05:55:11 +00:00
Nathanael Nerode
a294c4cf91
mkfixinc.sh: Remove winnt support.
...
* fixinc/mkfixinc.sh: Remove winnt support.
* fixinc/fixinc.winnt: Delete with extreme prejudice.
From-SVN: r69070
2003-07-08 05:49:59 +00:00
Neil Booth
979312a4bc
Forgotten commit
...
From-SVN: r69069
2003-07-08 05:26:27 +00:00
Neil Booth
cf03fd63cd
Makefile.in: Update.
...
* Makefile.in: Update.
* c-opts.c (c_common_handle_option): opt_text now contains the '-'.
* c.opt: Update documentation.
* common.opt: Add some help text.
* opts.c: Include intl.h.
(wrap_help, print_help): New.
(find_opt, handle_option, common_handle_option): opt_text now
contains the '-'. Use print_help to output help.
* opts.h (struct cl_option): New member "help".
* opts.sh: Update to handle help text output and to prepend
options with '-'.
* toplev.c (display_help): Remove some help text.
From-SVN: r69068
2003-07-08 05:25:39 +00:00
David Edelsohn
2c4a9cffc1
configure.in: Test for PowerPC mfcr field support in assembler.
...
2003-07-07 David Edelsohn <edelsohn@gnu.org>
Fariborz Jahanian <fjahanian@apple.com>
* configure.in: Test for PowerPC mfcr field support in assembler.
* config.in, configure: Regenderated.
* config/rs6000/power4.md: Add mfcrf reservation.
* config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
* config/rs6000/rs6000.c (mfcr_operation): Define.
(print_operand): Add 'Q' case for mfcrf.
* config/rs6000/rs6000.h (TARGET_MFCRF): New.
* config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
(movcc_internal1): Emit optional field operand for mfcr and set
"type" attribute appropriately.
(mfcr SCC): Likewise.
(movesi_from_cr_one): New.
Co-Authored-By: Fariborz Jahanian <fjahanian@apple.com>
From-SVN: r69064
2003-07-07 21:45:30 -04:00
Mark Mitchell
ee76b9314b
cp-tree.h (build_scoped_method_call): Remove.
...
* cp-tree.h (build_scoped_method_call): Remove.
(lookup_qualified_name): Remove parameter.
(tsubst_copy_and_build): Declare.
(finish_qualified_object_call_expr): Remove.
(check_accessibility_of_qualified_id): New function.
(finish_qualified_id_expr): Likewise.
(non_reference): Likewise.
(build_expr_from-tree): Remove.
* call.c (non_reference): Remove.
(build_scoped_method_call): Likewise.
(build_method_call): Use error_operand_p. Assert that we are not
processing a template.
(standard_conversion): Use non_reference.
* class.c (build_vtbl_entry_ref): Likewise.
(build_vtbl_ref_1): Likewise.
* cvt.c (build_expr_type_conversion): Use non_reference.
* decl.c (lookup_qualified_name): Remove flags parameter.
(grok_op_properties): Use non_reference.
* decl2.c (grok_array_decl): Likewise.
(build_expr_from_tree): Remove.
(build_offset_ref_call_from_tree): Update comment.
* error.c (parm_to_string): Call reinit_global_formatting_buffer.
* except.c (prepare_eh_types): Use non_reference.
(can_convert_eh): Likewise.
* init.c (build_dtor_call): Avoid using build_method_call.
* mangle.c (write_template_param): Remove misleading comment.
* method.c (locate_copy): Use non_reference.
* parser.c (cp_parser_scope_through_which_access_occurs): Remove.
(cp_parser_primary_expression): Do not create SCOPE_REFs is
non-dependent contexts.
(cp_parser_postfix_expression): Use finish_qualified_id_expr.
(cp_parser_direct_declarator): Use tsubst_copy_and_build, not
build_expr_from_tree.
(cp_parser_lookup_name): Adjust call to lookup_qualified_name.
Use check_accessibility_of_qualified_id.
* pt.c (maybe_fold_nontype_arg): Use tsubst_copy_and_build, not
build_expr_from_tree.
(tsubst_baselink): New function.
(tsubst_qualified_id): Likewise.
(tsubst_copy): Use them. Remove support for METHOD_CALL_EXPR.
(tsubst_expr): Adjust call to lookup_qualified_name.
(tsubst_copy_and_build): Handle SCOPE_REFs specially. Adjust
handling of CALL_EXPRs.
(value_dependent_expression_p): Use INTEGRAL_OR_ENUMERATION_TYPE_P.
* rtti.c (get_tinfo_decl_dynamic): Use non_reference.
* search.c (check_final_overrider): Likewise.
* semantics.c (check_accessibility_of_qualified_id): New function.
(finish_qualified_object_call_expr): Remove.
* typeck.c (target_type): Use non_reference.
(cxx_sizeof_or_alignof_type): Likewise.
(dubious_conversion_warnings): Likewise.
(convert_for_initialization): Likewise.
(non_reference): New function.
From-SVN: r69063
2003-07-08 01:38:44 +00:00
Roger Sayle
923c4cf299
* config/i386/i386.md: Correct check-in of incorrect version.
...
From-SVN: r69062
2003-07-08 00:43:49 +00:00
Kaveh R. Ghazi
75b6f3fd3a
bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with adjacent stdio calls.
...
gcc:
* bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
adjacent stdio calls.
* c-decl.c (c_print_identifier): Likewise.
* mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
* print-rtl.c (print_rtx): Likewise.
* print-tree.c (print_node_brief, print_node): Likewise.
* system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
* configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
* config.in, configure: Regenerated.
cp:
* decl.c (print_binding_level, print_other_binding_stack,
print_binding_stack): Merge uses of HOST_PTR_PRINTF with adjacent
stdio calls.
* ptree.c (cxx_print_decl, cxx_print_binding): Likewise.
From-SVN: r69061
2003-07-08 00:35:52 +00:00
Roger Sayle
afeeac3f88
re PR target/10979 (ICE in subst_stack_regs_pat with -O -ffast-math and atan2)
...
PR target/10979
* config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
Changed to define_expand patterns that copy operand[1] to prevent
it from being clobbered before emitting an atan2?f3_1 insn.
(atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
patterns that actually specify the behaviour of x87's FPATAN.
* gcc.dg/20030707-1.c: New testcase.
From-SVN: r69060
2003-07-08 00:28:47 +00:00
GCC Administrator
37bf2a13c5
Daily bump.
...
From-SVN: r69058
2003-07-08 00:16:06 +00:00
Jakub Jelinek
eeff9307bc
rs6000.c (rs6000_output_mi_thunk): Remove bogus clearing of SYMBOL_FLAG_LOCAL bit.
...
* config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
clearing of SYMBOL_FLAG_LOCAL bit.
If vcall_offset fits into signed 16-bit immediate, use
one instruction for both addition and load.
From-SVN: r69055
2003-07-07 22:53:44 +02:00
Neil Booth
0fcd5ddaa8
opts.c (common_handle_option): Correct handling of the -falign- switches that do and don't take an argument.
...
* opts.c (common_handle_option): Correct handling of the
-falign- switches that do and don't take an argument.
From-SVN: r69053
2003-07-07 19:27:30 +00:00
Andreas Jaeger
52b7f433b0
* friend.c: Convert to ISO C90 prototypes.
...
From-SVN: r69052
2003-07-07 21:19:07 +02:00
Kazu Hirata
b275810aed
h8300.md (pushqi1_h8300hs): Revert my patch today.
...
* config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
today.
(pushhi1_h8300hs): Likewise.
From-SVN: r69051
2003-07-07 19:19:01 +00:00
Andreas Jaeger
5671bf2771
genextract.c: Convert remaining prototypes to ISO C90.
...
2003-07-07 Andreas Jaeger <aj@suse.de>
* genextract.c: Convert remaining prototypes to ISO C90.
* cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
* fold-const.c (fold_single_bit_test): Likewise.
* diagnostic.c (default_diagnostic_finalizer): Likewise.
* cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
* gengtype.c (write_array): Generate ISO C90 prototypes.
* genflags.c (gen_proto): Generate ISO C90 prototypes.
For cp:
2003-07-07 Andreas Jaeger <aj@suse.de>
* friend.c: Convert to ISO C90 prototypes.
* Make-lang.in ($(srcdir)/cp/cfns.h): Use ANSI-C as output
language.
* cfns.h: Regenerate.
* typeck.c: Convert remaining prototypes to ISO C90.
* search.c: Likewise.
* decl2.c (build_expr_from_tree): Convert prototype to ISO C90.
* semantics.c (expand_or_defer_fn): Likewise
* mangle.c (discriminator_for_string_literal): Likewise.
* g++spec.c (lang_specific_driver): Likewise.
* search.c (lookup_base_r): Remove unused variable.
From-SVN: r69050
2003-07-07 21:11:59 +02:00
Roger Sayle
2c430630da
re PR rtl-optimization/11059 (empty union optimization ice)
...
PR optimization/11059
* expr.c (can_store_by_pieces): Return true if length is zero.
(store_by_pieces): If length is zero and endp is two, abort,
othwerise, if length is zero and endp is not two, return "to".
(clear_by_pieces): Do nothing if length is zero.
(clear_storage): Do nothing if length is zero.
(store_constructor): Simplify code when size is zero, or the
target has already been cleared. This avoids emitting a
blockage instruction when initializing empty structures.
* g++.dg/opt/emptyunion.C: New testcase.
From-SVN: r69049
2003-07-07 18:54:28 +00:00
Andreas Jaeger
cf633f5be8
mips-tfile.c: Convert prototypes to ISO C90.
...
* mips-tfile.c: Convert prototypes to ISO C90.
* mips-tdump.c: Convert prototypes to ISO C90.
From-SVN: r69048
2003-07-07 20:05:22 +02:00
Nathan Sidwell
0cea056ba1
rtl.h (emit_line_note): Take a location_t.
...
* rtl.h (emit_line_note): Take a location_t.
(emit_line_note_force): Remove.
(set_file_and_line_for_statement): Take a location_t.
* tree.g (emit_line_note): Take a location_t.
* emit-rtl.c (emit_line_note): Take a location_t.
(emit_line_note_force): Remove.
* function.c (init_function_start): Adjust emit_line_note call.
(expand_function_end): Use force_next_line_note, not
emit_line_note_force.
* c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
* c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
genrtl_continue_stmt, genrtl_switch_stmt,
genrtl_asm_stmt): Likewise.
* expr.c (expand_expr): Likewise.
* integrate.c (expand_inline_function): Likewise.
* stmt.c (set_file_and_line_for_stmt): Take a location_t.
(expand_decl_init): Adjust emit_line_note call.
* ada/trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
calls.
* cp/semantics.c: (genrtl_try_block) Adjust emit_line_note
calls.
* f/com.c (bison_rule_pushlevel_, bison_rule_compstmt_): Adjust
emit_line_note calls.
* f/ste.c (ffeste_emit_line_note_): Likewise.
* java/expr.c (expand_byte_code):
* treelang/treetree.c (tree_code_if_start, tree_code_if_else,
tree_code_if_end, tree_code_create_function_initial,
tree_code_create_function_wrapup, tree_code_generate_return,
tree_code_output_expression_statement): Adjust emit_line_note
calls.
From-SVN: r69047
2003-07-07 17:57:30 +00:00
Dale Johannesen
8eb910fc13
Fix PR 10900.
...
From-SVN: r69045
2003-07-07 17:27:53 +00:00
Andreas Jaeger
b96a374d4e
i386-protos.h: Convert prototypes to ISO C90.
...
* config/i386/i386-protos.h: Convert prototypes to ISO C90.
* config/i386/i386.c: Likewise.
From-SVN: r69044
2003-07-07 17:56:23 +02:00
Kazu Hirata
273fc01eaf
h8300.md: Use gen_int_mode instead of GEN_INT (trunc_int_for_mode (...)).
...
* config/h8300/h8300.md: Use gen_int_mode instead of
GEN_INT (trunc_int_for_mode (...)).
From-SVN: r69043
2003-07-07 15:51:27 +00:00
Kazu Hirata
fb7d7712f6
h8300.md (pushqi1_h8300hs): Optimize by pushing 2 bytes and then subtract 2 from the stack pointer.
...
* config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2 bytes and then subtract 2 from the stack pointer.
(pushhi1_h8300hs): Likewise.
From-SVN: r69042
2003-07-07 15:46:02 +00:00
Nathan Sidwell
e61a2eb776
configure.in (enable_coverage): Remove -DSELF_COVERAGE, add -frandom-seed.
...
* configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
-frandom-seed.
* configure: Regenerated.
* Makefile.in: Remove extraneous comment.
* toplev.c (randomize): Protect against potential multiple calls.
* doc/invoke.texi (-frandom-seed): Document use for in coverage
files.
From-SVN: r69039
2003-07-07 11:12:31 +00:00
Richard Kenner
82d610ec12
re PR rtl-optimization/11198 (-O2 -frename-registers generates wrong code)
...
PR optimization/11198
* alias.c (objects_must_conflict_p): Return 1 if the types have
the same alias set, not if the alias sets only conflict.
Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
From-SVN: r69034
2003-07-07 07:25:36 +00:00
Andreas Jaeger
5fc521ac46
* search.c (lookup_base_r): Remove unused variable.
...
From-SVN: r69033
2003-07-07 07:39:28 +02:00
Michael Chastain
267a075234
re PR debug/10055 (g++ emits "<internal>" as source filename with -gstabs+)
...
PR debug/10055
* lex.c (cxx_init): Call push_srcloc and pop_srcloc rather than
assigning to input_filename directly.
From-SVN: r69032
2003-07-07 05:02:22 +00:00
Andreas Jaeger
9bb34f3c3e
invoke.texi (-falign-functions): Document that when n is zero then a machine-dependent default is used.
...
* doc/invoke.texi (-falign-functions): Document that
when n is zero then a machine-dependent default is used.
(-falign-labels): Document that when n is zero then a
machine-dependent default is used and that -falign-labels =1
is equivalent to -fno-align-labels.
(-falign-loops): Likewise.
(-falign-jumps): Likewise.
From-SVN: r69031
2003-07-07 06:49:24 +02:00
Andrew Pinski
561913cb13
invoke.texi (-falign-functions): Document that when n is zero then a machine-dependent default is used.
...
2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
* doc/invoke.texi (-falign-functions): Document that
when n is zero then a machine-dependent default is used.
(-falign-labels): Document that when n is zero then a
machine-dependent default is used and that -falign-labels =1
is equivalent to -fno-align-labels.
(-falign-loops): Likewise.
(-falign-jumps): Likewise.
From-SVN: r69030
2003-07-07 06:49:00 +02:00
Andrew Pinski
5beadb33d9
cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
...
2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
* cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
(convert_cset): Change inbuf to type ICONV_CONST char.
* Makefile.in (LIBS): Add LIBICONV.
From-SVN: r69029
2003-07-07 06:46:29 +02:00
Art Haas
1dbb6ce879
Patch from Art Haas
...
* f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
initializer syntax.
From-SVN: r69028
2003-07-06 21:06:29 -07:00
James E Wilson
8338d44d83
re PR rtl-optimization/9812 ([m68k] ICE in extract_insn, at recog.c:2148)
...
PR optimization/9812
* rtl.h (mem_for_const_double): Delete prototype.
* varasm.c (mem_for_const_double): Delete function.
* config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
(LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
* config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
(LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
* config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
comment about confused support for XFmode constants.
From-SVN: r69027
2003-07-06 20:42:23 -07:00
GCC Administrator
9ca9944176
Daily bump.
...
From-SVN: r69025
2003-07-07 00:16:06 +00:00
Jan Hubicka
9efd34a5eb
* cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
...
From-SVN: r69023
2003-07-07 00:05:11 +00:00
Kazu Hirata
9bcb9aae27
call.c: Fix comment formatting.
...
* call.c: Fix comment formatting.
* class.c: Likewise.
* cp-tree.h: Likewise.
* decl.c: Likewise.
* decl2.c: Likewise.
* error.c: Likewise.
* method.c: Likewise.
* name-lookup.c: Likewise.
* parser.c: Likewise.
* pt.c: Likewise.
* rtti.c: Likewise.
* search.c: Likewise.
* typeck.c: Likewise.
From-SVN: r69022
2003-07-06 23:23:46 +00:00
Kazu Hirata
2a43945fa5
h8300.c: Fix comment typos.
...
* config/h8300/h8300.c: Fix comment typos.
* config/h8300/h8300.md: Likewise.
* config/i386/athlon.md: Likewise.
* config/i386/i386.c: Likewise.
* config/i386/pentium.md: Likewise.
* config/ia64/ia64.c: Likewise.
* config/ia64/itanium1.md: Likewise.
* config/ia64/itanium2.md: Likewise.
* config/m32r/m32r.md: Likewise.
* config/m68hc11/m68hc11.c: Likewise.
* config/mcore/mcore.c: Likewise.
* config/mips/sr71k.md: Likewise.
* config/mips/t-iris5-as: Likewise.
* config/mmix/mmix.h: Likewise.
* config/ns32k/ns32k.h: Likewise.
* config/ns32k/NOTES: Fix a typo.
From-SVN: r69021
2003-07-06 23:05:13 +00:00
Mark Mitchell
127b81366e
re PR c++/11345 (ICE in build_base_path)
...
PR c++/11345
* search.c (lookup_base_r): Remove is_non_public and
within_current_scope parameters. Remove other dead code.
(lookup_base): Adjust call to lookup_base_r.
(adjust_result_of_qualified_name_lookup): Improve comment.
* semantics.c (finish_call_expr): Use maybe_dummy_object.
From-SVN: r69020
2003-07-06 22:21:35 +00:00
Andreas Jaeger
7e51717cfb
stmt.c: Convert remaining prototypes to ISO C90.
...
* stmt.c: Convert remaining prototypes to ISO C90.
* cfglayout.c: Likewise.
* dbxout.c: Likewise.
* gcc.c: Likewise.
* genemit.c: Likewise.
From-SVN: r69015
2003-07-06 22:42:56 +02:00
Andreas Jaeger
77f9b92ca4
bad.c: Convert () to (void) in function definitions.
...
* bad.c: Convert () to (void) in function definitions.
* bld.c: Likewise.
* data.c: Likewise.
* equiv.c: Likewise.
* expr.c: Likewise.
* global.c: Likewise.
* implic.c: Likewise.
* info.c: Likewise.
* intdoc.c: Likewise.
* intrin.c: Likewise.
* lab.c: Likewise.
* lex.c: Likewise.
* malloc.c: Likewise.
* src.c: Likewise.
* st.c: Likewise.
* sta.c: Likewise.
* stb.c: Likewise.
* stc.c: Likewise.
* std.c: Likewise.
* ste.c: Likewise.
* storag.c: Likewise.
* stt.c: Likewise.
* stw.c: Likewise.
* symbol.c: Likewise.
* top.c: Likewise.
* where.c: Likewise.
* com.c: Convert prototypes to ISO C90.
* com.h: Likewise.
* g77spec.c: Likewise.
From-SVN: r69014
2003-07-06 22:32:17 +02:00
Andreas Jaeger
ceee09f7b6
Add entries for last round of ISO C90 conversions.
...
From-SVN: r69012
2003-07-06 21:05:17 +02:00
Neil Booth
cb66e38590
c-common.h (c_comon_handle_filename, [...]): New.
...
* c-common.h (c_comon_handle_filename,
c_common_missing_arguement): New.
* c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
LANG_HOOKS_MISSING_ARGUMENT): New.
* c-opts.c (missing_arg): Rename c_common_missing_argument,
update to be an appropriate langhook.
(c_common_handle_option): Don't handle filenames.
(c_common_handle_filename): New.
* hooks.c (hook_void_constcharptr,
hook_bool_constcharptr_size_t_false): New.
* hooks.h (hook_void_constcharptr,
hook_bool_constcharptr_size_t_false): New.
* langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
LANG_HOOKS_MISSING_ARGUMENT): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct lang_hooks): Add handle_filename and
missing_argument.
* opts.c (handle_option): Don't handle filenames here, but ...
(handle_options): ... here.
(common_handle_option): Don't handle missing arguments here.
* objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
LANG_HOOKS_MISSING_ARGUMENT): New.
ada:
* misc.c (gnat_handle_option): Don't handle filenames.
cp:
* cp-lang.c (LANG_HOOKS_HANDLE_FILENAME,
LANG_HOOKS_MISSING_ARGUMENT): Override.
f:
* top.c (ffe_handle_option): Don't handle filenames.
java:
* lang.c (java_handle_option): Don't handle filenames.
From-SVN: r69011
2003-07-06 19:01:21 +00:00
Andreas Jaeger
f55ade6e34
basic-block.h: Convert prototypes to ISO C90.
...
* basic-block.h: Convert prototypes to ISO C90.
* c-parse.in: Likewise.
* c-pragma.h: Likewise.
* c-typeck.c: Likewise.
* cfghooks.h: Likewise.
* cfgloopanal.c: Likewise.
* dbxout.h: Likewise.
* debug.h: Likewise.
* dwarf2asm.h: Likewise.
* gcov.c: Likewise.
* gengtype-lex.l: Likewise.
* sched-int.h: Likewise.
* timevar.c: Likewise.
From-SVN: r69010
2003-07-06 20:59:38 +02:00
Neil Booth
ade4289c2d
Makfile.in: Remove traces of mbchar.
...
* Makfile.in: Remove traces of mbchar.
* c-parse.in (MULTIBYTE_CHARS): Remove.
* config.in (MULTIBYTE_CHARS): Remove.
* configure: Remove --enable-mbchar.
* configure.in: Remove --enable-mbchar.
* mbchar.c, mbchar.h: Remove.
* system.h: Poison MULTIBYTE_CHARS.
* config/linux-aout.h (MULTIBYTE_CHARS): Remove.
* config/linux.h (MULTIBYTE_CHARS): Remove.
* config/svr4.h (MULTIBYTE_CHARS): Remove.
* config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
From-SVN: r69009
2003-07-06 18:50:45 +00:00
Andreas Jaeger
11dc5cc6cf
* varray.c (varray_check_failed): Fix typo.
...
From-SVN: r69008
2003-07-06 19:01:47 +02:00
Andreas Jaeger
2e1eedd6bb
unroll.c: Convert prototypes to ISO C90.
...
* unroll.c: Convert prototypes to ISO C90.
* varasm.c: Likewise.
* varray.c: Likewise.
* varray.h: Likewise.
* vmsdbgout.c: Likewise.
* xcoffout.c: Likewise.
* xcoffout.h: Likewise.
From-SVN: r69007
2003-07-06 18:53:24 +02:00
Nathan Sidwell
dd486eb27c
gcov-io.h: Add a local time stamp.
...
* gcov-io.h: Add a local time stamp.
(struct gcov_info): Add stamp field.
(gcov_truncate): New.
* coverage.c (read_counts_file): Skip the stamp.
(coverage_begin_output): Write the stamp.
(build_gcov_info): Declare and init the stamp.
(coverage_finish): Only unlink data file, if stamp is zero.
* gcov-dump.c (dump_file): Dump the stamp.
* gcov.c (bbg_stamp): New.
(release_structures): Clear bbg_stamp.
(read_graph_file): Read stamp.
(read_count_file): Check stamp.
* libgcov.c (gcov_exit): Check stamp and truncate if needed.
From-SVN: r69006
2003-07-06 14:51:48 +00:00
Nathan Sidwell
c07e547752
tree.h (default_flag_random_seed): Remove.
...
* tree.h (default_flag_random_seed): Remove.
* toplev.h (local_tick): Declare.
* tree.c (flag_random_seed, default_flag_random_seed): Move to
toplev.c.
(append_random_chars): Don't call default_flag_random_seed.
* toplev.c (flag_random_seed): Define here. Set local_tick.
(local_tick): Define.
(randomize): New, moved from tree.c.
(print_switch_values): Adjust.
(toplev_main): Call randomize.
From-SVN: r69005
2003-07-06 14:48:56 +00:00
Nathan Sidwell
2aab7ceb8b
tree.h (crc32_string): Declare.
...
* tree.h (crc32_string): Declare.
* tree.c (append_random_chars): Remove.
(crc32_string): New.
(get_file_function_name_long): Use crc32_string here.
From-SVN: r69004
2003-07-06 14:40:49 +00:00
Andreas Jaeger
46c5ad278b
sbitmap.c: Convert prototypes to ISO C90.
...
* sbitmap.c: Convert prototypes to ISO C90.
* sbitmap.h: Likewise.
* scan-decls.c: Likewise.
* scan.c: Likewise.
* sched-deps.c: Likewise.
* sched-ebb.c: Likewise.
* sched-int.h: Likewise.
* sched-rgn.c: Likewise.
* sched-vis.c: Likewise.
* sibcall.c: Likewise.
* simplify-rtx.c: Likewise.
* sreal.c: Likewise.
* sreal.h: Likewise.
* ssa-ccp.c: Likewise.
* ssa-dce.c: Likewise.
* ssa.c: Likewise.
* ssa.h: Likewise.
* stack.h: Likewise.
* stmt.c: Likewise.
* stor-layout.c: Likewise.
* stringpool.c: Likewise.
* target.h: Likewise.
* timevar.c: Likewise.
* timevar.h: Likewise.
* tlink.c: Likewise.
* tracer.c: Likewise.
* tree-inline.c: Likewise.
* tree-inline.h: Likewise.
* tree.c: Likewise.
* tree.h: Likewise.
From-SVN: r69002
2003-07-06 14:35:56 +02:00
Andreas Jaeger
fdd9b6ba91
* genattrtab.h: Convert prototypes to ISO C90.
...
From-SVN: r69000
2003-07-06 12:00:00 +02:00
Andreas Jaeger
f8ec47c713
Adjust last entry.
...
From-SVN: r68999
2003-07-06 11:59:25 +02:00
Andreas Jaeger
0c20a65f04
jump.c: Convert prototypes to ISO C90.
...
* jump.c: Convert prototypes to ISO C90.
* langhooks-def.h: Likewise. Add extern to prototypes.
* langhooks.c: Likewise.
* langhooks.h: Likewise.
* lcm.c: Likewise.
* local-alloc.c: Likewise.
* loop-init.c: Likewise.
* loop-unroll.c: Likewise.
* loop-unswitch.c: Likewise.
* loop.c: Likewise.
* loop.h: Likewise. Add extern to prototypes.
* machmode.h: Likewise.
* main.c: Likewise.
* mbchar.c: Likewise.
* mbchar.h: Likewise.
* mkdeps.c: Likewise.
* mkdeps.h: Likewise.
* optabs.c: Likewise.
* optabs.h: Likewise.
* output.h: Likewise.
* gccspec.c: Likwise.
* postreload.c: Likewise.
* prefix.c: Likewise.
* prefix.h: Likewise.
* print-rtl.c: Likewise.
* print-tree.c: Likewise.
* profile.c: Likewise.
* read-rtl.c: Likewise.
* real.c: Likewise.
* real.h: Likewise.
* recog.c: Likewise.
* recog.h: Likewise.
* reg-stack.c: Likewise.
* regclass.c: Likewise.
* regmove.c: Likewise.
* regrename.c: Likewise.
* regs.h: Likewise.
* reload.c: Likewise.
* reload.h: Likewise.
* reload1.c: Likewise.
* reorg.c: Likewise.
* resource.c: Likewise.
* resource.h: Likewise.
* rtl-error.c: Likewise.
* rtl.c: Likewise.
* rtl.h: Likewise.
* rtlanal.c: Likewise.
From-SVN: r68998
2003-07-06 11:56:09 +02:00
Andreas Jaeger
1d088deebe
gcc.c: Convert prototypes to ISO C90.
...
* gcc.c: Convert prototypes to ISO C90.
* gcc.h: Likewise.
* gcov-dump.c: Likewise.
* gcov-iov.c: Likewise.
* gcse.c: Likewise.
* genattrtab.h: Likewise.
* ggc.h: Likewise.
* global.c: Likewise.
* graph.c: Likewise.
* graph.h: Likewise.
* hosthooks.h: Likewise.
* hooks.h: Likewise.
* hooks.c: Likewise.
* hashtable.h: Likewise.
* hashtable.c: Likewise.
* haifa-sched.c: Likewise.
* integrate.h: Likewise.
* integrate.c: Likewise.
* input.h: Likewise.
* ifcvt.c: Likewise.
From-SVN: r68995
2003-07-06 08:15:36 +02:00
Mark Mitchell
0a72704b04
re PR c++/11431 (static_cast behavior with subclasses when default constructor available)
...
PR c++/11431
* typeck.c (build_static_cast): Check for reference conversions
earlier.
* cp-tree.h (perform_integral_promotions): Declare.
* call.c (build_addr_func): Use decay_conversion.
(convert_arg_to_ellipsis): Likewise. Remove misleading comment.
(convert_for_arg_passing): Use perform_integral_promotions.
* cvt.c (build_expr_type_conversion): Use decay_conversion.
(type_promotes_to): Do not return a cv-qualified type.
* decl.c (grok_reference_init): Fix formatting.
(get_atexit_node): Use decay_conversion.
(build_enumerator): Use perform_integral_promotions.
* init.c (build_vec_init): Use decay_conversion.
* semantics.c (finish_expr_stmt): Likewise.
(finish_switch_cond): Use perform_integral_promotions.
* typeck.c (default_conversion): Likewise.
(perform_integral_promotions): New function.
(build_indirect_ref): Use decay_conversion.
(build_array_ref): Use perform_integral_promotions.
(convert_arguments): Use decay_conversion.
(build_unary_op): Use perform_integral_promotions.
(build_c_cast): Use decay_conversion.
(build_modify_expr): Likewise.
(convert_for_initialization): Likewise.
* typeck2.c (build_x_arrow): Likewise.
* g++.old-deja/g++.jason/typeid1.C: Make it a compile test, not a
run test.
PR c++/11431
* g++.dg/expr/static_cast3.C: New test.
From-SVN: r68989
2003-07-06 03:30:57 +00:00
GCC Administrator
a045c79405
Daily bump.
...
From-SVN: r68985
2003-07-06 00:16:06 +00:00
Kazu Hirata
4f649bc1c5
* combine.c (nonzero_bits1): Fix a warning.
...
From-SVN: r68983
2003-07-05 21:10:08 +00:00
Kazu Hirata
2c4a71b302
h8300.c (compute_mov_length): Correct the length of loading CONST0_RTX (SFmode).
...
* config/h8300/h8300.c (compute_mov_length): Correct the
length of loading CONST0_RTX (SFmode).
From-SVN: r68981
2003-07-05 18:58:40 +00:00
Nathan Sidwell
f5924ac1ec
toplev.c (output_clean_symbol_name): Remove.
...
* toplev.c (output_clean_symbol_name): Remove.
* toplev.h (output_clean_symbol_name): Remove.
* config/alpha/alpha.c (unicosmk_output_module_name): Use
lbasename & clean_symbol_name.
From-SVN: r68978
2003-07-05 16:11:53 +00:00
Kazu Hirata
39e3f58cbc
ggc.h: Follow spelling conventions.
...
* ggc.h: Follow spelling conventions.
* config/i386/i386.c: Likewise.
* config/i386/winnt.c: Likewise.
* config/rs6000/rs6000.c: Likewise.
From-SVN: r68976
2003-07-05 15:39:59 +00:00
Kazu Hirata
4d6922ee32
bt-load.c: Fix comment typos.
...
* bt-load.c: Fix comment typos.
* c-incpath.c: Likewise.
* cfg.c: Likewise.
* cfgcleanup.c: Likewise.
* cfgloop.h: Likewise.
* cfgloopmanip.c: Likewise.
* cfgrtl.c: Likewise.
* diagnostic.h: Likewise.
* dwarfout.c: Likewise.
* emit-rtl.c: Likewise.
* et-forest.c: Likewise.
* et-forest.h: Likewise.
* expr.c: Likewise.
* gcse.c: Likewise.
* genattr.c: Likewise.
* jump.c: Likewise.
* langhooks.h: Likewise.
* local-alloc.c: Likewise.
* loop-unroll.c: Likewise.
* loop-unswitch.c: Likewise.
* ra-build.c: Likewise.
* regclass.c: Likewise.
* regmove.c: Likewise.
* rtl.def: Likewise.
* rtlanal.c: Likewise.
* sched-ebb.c: Likewise.
* sched-rgn.c: Likewise.
* simplify-rtx.c: Likewise.
* ssa.c: Likewise.
* tracer.c: Likewise.
* tree.c: Likewise.
From-SVN: r68975
2003-07-05 15:17:36 +00:00
Zack Weinberg
f1c4bc4fcc
cppcharset.c: Use the correct return type for the fallback iconv macro.
...
2003-07-05 Zack Weinberg <zack@codesourcery.com>
* cppcharset.c: Use the correct return type for the fallback iconv
macro.
From-SVN: r68974
2003-07-05 16:44:29 +02:00
Zdenek Dvorak
65c6f1b45f
Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
...
Blame to Jan Hubicka <jh@suse.cz>
* cfglayout.c (record_effective_endpoints): Split insns before
first basic block correctly.
From-SVN: r68973
2003-07-05 14:40:59 +00:00
Toon Moene
e865267810
re PR fortran/11301 (ICE with -fno-globals)
...
2003-07-05 Toon Moene <toon@moene.indiv.nluug.nl>
PR Fortran/11301
* com.c (ffecom_sym_transform_): Only install
FFEINFO_whereGLOBAL symbols in the global binding
level if not -fno-globals.
From-SVN: r68972
2003-07-05 13:37:39 +00:00
Richard Kenner
679035f3f6
tree.h (contains_placeholder_p): Now returns bool.
...
* tree.h (contains_placeholder_p): Now returns bool.
(CONTAINS_PLACEHOLDER_P): New macro.
(type_contains_placeholder_p): New function.
* tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
(contains_placeholder_p): Now returns bool.
Rework to use CONTAINS_PLACEHOLDER_P macro.
(type_contains_placeholder_p): New function.
* fold-const.c (fold, case COMPONENT_REF): Don't fold if
type_contains_placeholder_p.
(fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
Use CONTAINS_PLACEHOLDER_P macro.
* builtins.c (fold_builtin): Likewise.
* calls.c (initialize_argument_information): Likewise.
* emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
* explow.c (expr_size): Likewise.
* expr.c (store_constructor, get_inner_reference): Likewise.
* function.c (assign_parms): Likewise.
* stor-layout.c (variable_size): Likewise.
From-SVN: r68969
2003-07-05 07:54:57 -04:00
Richard Kenner
a8f3bf5271
expr.c (expand_expr, [...]): When seeing if should use bitfield operations...
...
* expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
From-SVN: r68968
2003-07-05 07:51:54 -04:00
Andreas Jaeger
0641776cef
genattrtab.c (write_attr_get): Revert part of last patch to always write out a prototype.
...
* genattrtab.c (write_attr_get): Revert part of last patch to
always write out a prototype.
* genemit.c (gen_split): Readd lost unused attributes in last
patch.
From-SVN: r68967
2003-07-05 13:23:01 +02:00
Zdenek Dvorak
977129f68d
cfgloopmanip.c (force_single_succ_latches): Force latch to be different from header.
...
* cfgloopmanip.c (force_single_succ_latches): Force latch to be
different from header.
From-SVN: r68965
2003-07-05 10:23:33 +00:00
Andreas Schwab
8bb038d4f0
Missed one in last change.
...
From-SVN: r68963
2003-07-05 07:38:12 +00:00
Andreas Schwab
5ee084dfa0
m68k.c: Remove code protected by CRDS.
...
* config/m68k/m68k.c: Remove code protected by CRDS.
* config/m68k/m68k.md: Likewise.
From-SVN: r68962
2003-07-05 07:33:06 +00:00
Neil Booth
33de95735b
re PR driver/11417 (fortran options warned about in cc1 when *.F or -x f77-cpp-input)
...
PR driver/11417
* c-opts.c (permit_fortran_options): New.
(c_common_init_options): Accept fortran front end options if
it looks like we might be preprocessing Fortran.
(c_common_handle_option): Don't reject switch if permit_fotran_options.
From-SVN: r68961
2003-07-05 07:20:32 +00:00
Kaveh R. Ghazi
6906ba4054
genattr.c (internal_dfa_insn_code): Output prototype.
...
* genattr.c (internal_dfa_insn_code): Output prototype.
* genattrtab.c: Don't output unnecessary decls, output in ISO C.
* genautomata.c: Likewise.
* genconditions.c: Likewise.
* genemit.c: Likewise.
* genextract.c: Likewise.
* gengenrtl.c: Likewise.
* gengtype.c: Likewise.
* genopinit.c: Likewise.
* genoutput.c: Likewise.
* genpeep.c: Likewise.
* genrecog.c: Likewise.
From-SVN: r68959
2003-07-05 05:27:22 +00:00
Kazu Hirata
34cd5ae762
call.c: Fix comment typos.
...
* call.c: Fix comment typos.
* class.c: Likewise.
* cp-tree.h: Likewise.
* cvt.c: Likewise.
* decl2.c: Likewise.
* decl.c: Likewise.
* init.c: Likewise.
* mangle.c: Likewise.
* parser.c: Likewise.
* pt.c: Likewise.
* search.c: Likewise.
* semantics.c: Likewise.
* tree.c: Likewise.
* typeck.c: Likewise
From-SVN: r68956
2003-07-05 03:02:05 +00:00
Kazu Hirata
a38825d2c8
re PR c/11428 (gcc aborts in compiling Linux 2.5.74 reiserfs driver)
...
PR c/11428
* expr.c (do_store_flag): Pass in the correct result type
when calling fold_single_bit_test.
* fold-const.c (fold_single_bit_test): Use result_type for the
result when folding a sign bit test.
From-SVN: r68954
2003-07-05 02:32:53 +00:00