Ian Lance Taylor [Tue, 16 Sep 2003 21:14:41 +0000 (21:14 +0000)]
cfgcleanup.c (label_is_jump_target_p): Correct use of table returned by tablejump_p.
* cfgcleanup.c (label_is_jump_target_p): Correct use of table
returned by tablejump_p.
From-SVN: r71443
Joel Brobecker [Tue, 16 Sep 2003 18:32:36 +0000 (18:32 +0000)]
* dwarf2asm.c (dw2_asm_output_nstring): Add comment.
From-SVN: r71442
Joel Brobecker [Tue, 16 Sep 2003 18:22:42 +0000 (18:22 +0000)]
MAINTAINERS (Write After Approval): Add myself to write after approval list.
* MAINTAINERS (Write After Approval): Add myself to write after
approval list.
From-SVN: r71441
Roger Sayle [Tue, 16 Sep 2003 17:16:25 +0000 (17:16 +0000)]
re PR bootstrap/12269 (Mainline failed to bootstrap on Linux/ia64)
PR bootstrap/12269
* simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
argument to be VOIDmode, taking the mode of the comparison from
the operands. Only call simplify_relational_operation if we
know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
if comparison has a floating point result. Ensure that the
result is always of the specified mode.
(simplify_replace_rtx): Simplify call to simplify_gen_relational.
(simplify_unary_operation): Ensure the correct mode and cmp_mode
are always passed to simplify_gen_relational. Simplify NOT of
comparison operator in any mode, not just BImode.
(simplify_ternary_operation): Correct tests on the return value
of simplify_relational_operation to use const_true_rtx, not
const1_rtx. Abort if it ever returns a non-constant result.
* cfgloopanal.c (count_strange_loop_iterations): Use the function
simplify_relational_operation, not simplify_gen_relational, if
we're only interested in constant comparisons and will ignore
non-constant results.
From-SVN: r71439
Roger Sayle [Tue, 16 Sep 2003 17:08:50 +0000 (17:08 +0000)]
fold-const.c (tree_swap_operands_p): New function to determine the prefered ordering of operands.
* fold-const.c (tree_swap_operands_p): New function to determine
the prefered ordering of operands.
(fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
operands to commutative, comparison or ternary operators. Replace
uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
transformation of A ? B : C into !A ? C : B.
From-SVN: r71438
Kriang Lerdsuwanakij [Tue, 16 Sep 2003 15:27:51 +0000 (15:27 +0000)]
re PR c++/7939 (ICE on function template specialization)
PR c++/7939
* typeck.c (comptypes): Don't ICE when its first argument is
error_mark_node.
(compparms): Reverse the arguments of same_type_p.
* g++.dg/template/crash11.C: New test.
From-SVN: r71432
Dorit Naishlos [Tue, 16 Sep 2003 14:17:13 +0000 (14:17 +0000)]
MAINTAINERS (Write After Approval): Add myself
From-SVN: r71427
Dorit Naishlos [Tue, 16 Sep 2003 14:14:21 +0000 (14:14 +0000)]
MAINTAINERS (Write After Approval): Add myself.
From-SVN: r71426
Jakub Jelinek [Tue, 16 Sep 2003 08:04:34 +0000 (10:04 +0200)]
linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
* config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
* config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
* config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
* config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
* config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
* config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
* config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
* config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
From-SVN: r71425
Jason Merrill [Tue, 16 Sep 2003 07:58:27 +0000 (03:58 -0400)]
c-common.c (handle_warn_unused_result_attribute): New function.
* c-common.c (handle_warn_unused_result_attribute): New function.
(c_common_attribute_table): Add warn_unused_result.
(c_expand_expr): Issue warning when result of inlined function
with warn_unused_result attribute is ignored.
* calls.c (expand_call): Issue warning when result of function
with warn_unused_result attribute is ignored.
* c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
* expr.c (expr_wfl_stack): Define.
(expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
pass const0_rtx as target. Chain locations into expr_wfl_stack.
* tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
bit if inlined function has warn_unused_result attribute.
* input.h (expr_wfl_stack): Declare.
* doc/extend.texi: Document warn_unused_result attribute.
* gcc.dg/attr-warn-unused-result.c: New test.
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r71424
Andrew Cagney [Tue, 16 Sep 2003 01:51:07 +0000 (01:51 +0000)]
Index: include/ChangeLog
2003-09-15 Andrew Cagney <cagney@redhat.com>
* floatformat.h (floatformat_to_double): Make input buffer constant.
(floatformat_from_double, floatformat_is_valid): Ditto.
Index: libiberty/ChangeLog
2003-09-15 Andrew Cagney <cagney@redhat.com>
* floatformat.c (get_field): Make "data" constant.
(floatformat_is_valid, floatformat_to_double): Make "from"
constant, fix casts.
(floatformat_from_double): Make "from" constant.
From-SVN: r71422
R. Kelley Cook [Tue, 16 Sep 2003 01:06:47 +0000 (01:06 +0000)]
Cleaned up Jan's ChangeLog entries
From-SVN: r71421
GCC Administrator [Tue, 16 Sep 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r71418
Alexandre Oliva [Tue, 16 Sep 2003 00:13:28 +0000 (00:13 +0000)]
* cpplib.c (do_pragma): Remove unnecessary cb_line_change.
From-SVN: r71416
Bob Wilson [Mon, 15 Sep 2003 23:19:21 +0000 (23:19 +0000)]
xtensa.c (xtensa_multibss_section_type_flags): Add ATTRIBUTE_UNUSED.
* config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
ATTRIBUTE_UNUSED.
(call_insn_operand): For PIC, don't allow a direct call to a
function in a different section than the current one.
From-SVN: r71415
Volker Reichelt [Mon, 15 Sep 2003 23:17:13 +0000 (23:17 +0000)]
invoke.texi (Warning Options): Add missing hyphen before "Wimport".
2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* doc/invoke.texi (Warning Options): Add missing hyphen before
"Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
Move "-Wold-style-definition" to the C-only section.
Fix the ordering of the warning options.
From-SVN: r71414
Zdenek Dvorak [Mon, 15 Sep 2003 23:07:29 +0000 (01:07 +0200)]
gcse.c (remove_reachable_equiv_notes): New.
* gcse.c (remove_reachable_equiv_notes): New.
(replace_store_insn): Call it. Update antic list.
(store_killed_in_insn): Take REG_EQUAL notes into account.
(build_store_vectors, delete_store): Add parameter to
replace_store_insn call.
Co-Authored-By: Jeff Law <law@redhat.com>
From-SVN: r71412
Bob Wilson [Mon, 15 Sep 2003 23:02:31 +0000 (23:02 +0000)]
xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use SYMBOL_REF_LOCAL_P.
* config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
SYMBOL_REF_LOCAL_P.
From-SVN: r71411
Andrew Cagney [Mon, 15 Sep 2003 21:28:49 +0000 (21:28 +0000)]
floatformat.h (struct floatformat): Make "exp_bias" signed.
2003-09-15 Andrew Cagney <cagney@redhat.com>
* floatformat.h (struct floatformat): Make "exp_bias" signed.
From-SVN: r71407
Kazu Hirata [Mon, 15 Sep 2003 20:23:43 +0000 (20:23 +0000)]
expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
* expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
(FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
* config/ia64/ia64.c (ia64_hpux_function_arg_padding):
Likewise.
* config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
Likewise.
* config/rs6000/rs6000.c (function_arg_padding): Likewise.
* config/sparc/sparc.c (function_arg_padding): Likewise.
From-SVN: r71406
Daniel Jacobowitz [Mon, 15 Sep 2003 20:16:32 +0000 (20:16 +0000)]
floatformat.c (floatformat_is_valid): New function.
* floatformat.c (floatformat_is_valid): New function.
(get_field, put_field): Correct comments.
From-SVN: r71405
Daniel Jacobowitz [Mon, 15 Sep 2003 20:16:22 +0000 (20:16 +0000)]
* floatformat.h (floatformat_is_valid): Add prototype.
From-SVN: r71404
Vladimir Makarov [Mon, 15 Sep 2003 18:52:33 +0000 (18:52 +0000)]
haifa-sched.c (schedule_block): Use ready_remove_first instead of choose_ready for non-dfa insn scheduling.
2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
* haifa-sched.c (schedule_block): Use ready_remove_first instead
of choose_ready for non-dfa insn scheduling.
From-SVN: r71403
Nathan Sidwell [Mon, 15 Sep 2003 14:48:29 +0000 (14:48 +0000)]
re PR c++/12184 (ICE with trying to convert an incomplete type)
cp:
PR c++/12184
* typeck.c (convert_arguments): Return error_mark_node for an
incomplete parameter. Make error message more informative.
testsuite:
PR c++/12184
* g++.dg/expr/call2.C: New test.
From-SVN: r71402
Andreas Jaeger [Mon, 15 Sep 2003 09:32:36 +0000 (11:32 +0200)]
invoke.texi (Warning Options): Describe -Wold-style-definition.
2003-09-15 Andreas Jaeger <aj@suse.de>
Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
* c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
* c-parse.in: Warn about old-style parameter definition.
* c-common.c: Define warn_old_style_defintion.
* c-common.h: Declare it.
* c.opt: Add Wold-style-defintion.
From-SVN: r71401
Andreas Jaeger [Mon, 15 Sep 2003 09:31:17 +0000 (11:31 +0200)]
invoke.texi (Warning Options): Describe -Wold-style-definition.
2003-09-15 Andreas Jaeger <aj@suse.de>
Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
* c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
* c-parse.in: Warn about old-style parameter definition.
* c-common.c: Define warn_old_style_defintion.
* c-common.h: Declare it.
* c.opt: Add Wold-style-defintion.
testsuite:
2003-09-15 Andreas Jaeger <aj@suse.de>
* gcc.dg/Wold-style-definition-1.c: New test.
From-SVN: r71400
Andreas Jaeger [Mon, 15 Sep 2003 04:53:00 +0000 (06:53 +0200)]
altivec.h: Convert () prototypes to ISO C90.
* config/rs6000/altivec.h: Convert () prototypes to ISO C90.
* config/rs6000/rs6000.c: Likewise.
From-SVN: r71399
Zdenek Dvorak [Mon, 15 Sep 2003 01:55:53 +0000 (03:55 +0200)]
re PR rtl-optimization/10914 (unswitch loops does not work on powerpc)
2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
PR optimization/10914
* expr.h (get_condition, canonicalize_condition): Declaration changed.
* cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
and canonicalize_condition calls.
* gcse.c (fis_get_condition, delete_null_pointer_checks_1,
delete_null_pointer_checks): Ditto.
* ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
* predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
* loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
(canonicalize_condition, get_condition): Allow to return comparisons
of cc mode registers.
* loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
cc mode registers comparison in condition.
From-SVN: r71398
Mark Mitchell [Mon, 15 Sep 2003 00:59:28 +0000 (00:59 +0000)]
re PR c++/3907 (nested template parm collides with member name)
* coverage.c (create_coverage): Do not call pushlevel/poplevel.
* langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
function.
* langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
PR c++/3907
* class.c (maybe_note_name_used_in_class): Refine test for whether
or not we are in a class scope.
* cp-tree.h (language_function): Remove x_expanding_p.
(expanding_p): Remove.
(doing_semantic_analysis_p): Remove.
(scope_kind): Add sk_function_parms, sk_class,
sk_namespace.
(innermost_scope_kind): New method.
* call.c (cxx_type_promotes_to): Use type_decays_to.
* cp-lang.c (LANG_HOOKS_PUSHLEVEL): Redefine.
(LANG_HOOKS_POPLEVEL): Likewise.
* decl.c (cp_binding_level): Remove parm_flag, template_parms_p,
template_spec_p, namespace_p, is_for_scope, is_try_scope, and
is_catch_scope. Add kind and explicit_spec_p.
(cxx_scope_descriptor): Use a lookup table.
(find_class_binding_level): Use "kind" field in binding_level, not
the various flags.
(pop_binding_level): Likewise.
(innermost_nonclass_level): Likewise.
(toplevel_bindings_p): Likewise.
(namespace_bindings_p): Likewise.
(template_parm_scope_p): Likewise.
(innermost_scope_kind): New method.
(current_tmpl_spec_kind): Use "kind" field in binding_level, not
the various flags.
(pushlevel): Remove check for doing_semantic_analysis_p.
(begin_scope): Simplify.
(add_decl_to_level): Use "kind" field in binding_level, not
the various flags.
(push_local_binding): Likewise.
(pop_label): Remove check for doing_semantic_analysis_p.
(poplevel): Use "kind" field in binding_level, not
the various flags.
(set_block): Remove check for doing_semantic_analysis_p.
(pushlevel_class): Use "kind" field in binding_level, not
the various flags.
(poplevel_class): Likewise.
(initial_push_namespace_scope): Likewise.
(maybe_push_to_top_level): Likewise.
(set_identifier_type_value_with_scope): Likewise.
(pop_everything): Likewise.
(maybe_process_template_type_declaration): Likewise.
(pushtag): Likewise.
(pushdecl): Likewise.
(pushdecl_with_scope): Likewise.
(check_previous_goto_1): Likewise.
(define_label): Likewise.
(finish_case_label): Likewise.
(lookup_tag): Likewise.
(unqualified_namespace_lookup): Likewise.
(lookup_name_real): Likewise.
(lookup_name_current_level): Likewise.
(lookup_type_current_level): Likewise.
(record_builtin_type): Likewise.
(cp_make_fname_decl): Likewise.
(maybe_inject_for_scope_var): Likewise.
(cp_finish_decl): Remove check for doing_semantic_analysis_p.
(start_function): Use begin_scope, not pushlevel.
(finish_function): Use "kind" field in binding_level, not
the various flags.
(start_method): Use begin_scope, not pushlevel.
(make_label_decl): Do not check expanding_p.
(save_function-data): Do not set expanding_p.
(cxx_push_function_context): Do not clear expanding_p.
* semantics.c (cxx_expand_function_start): Do not set expanding_p.
PR c++/3907
* g++.dg/parse/template12.C: New test.
* g++.dg/abi/bitfield11.C: New test.
* g++.dg/abi/bitfield12.C: Likewise.
From-SVN: r71393
Mark Mitchell [Mon, 15 Sep 2003 00:27:16 +0000 (00:27 +0000)]
class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field whose width exceeds that of its...
* class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for
an bit-field whose width exceeds that of its type.
* g++.dg/abi/bitfield11.C: New test.
* g++.dg/abi/bitfield12.C: Likewise.
From-SVN: r71392
GCC Administrator [Mon, 15 Sep 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r71390
Mark Mitchell [Sun, 14 Sep 2003 23:50:49 +0000 (23:50 +0000)]
class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field whose width exceeds that of its...
* class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for
an bit-field whose width exceeds that of its type.
From-SVN: r71388
Geoffrey Keating [Sun, 14 Sep 2003 20:24:00 +0000 (20:24 +0000)]
* rtti.c (get_tinfo_decl): Set TREE_PUBLIC for typeinfo decls.
From-SVN: r71387
Kazu Hirata [Sun, 14 Sep 2003 18:31:13 +0000 (18:31 +0000)]
combine.c (simplify_comparison): Convert (ne (and (lshiftrt (xor X CST) Y) 1) 0) into (eq (and (lshiftrt X Y) 1) 0).
* combine.c (simplify_comparison): Convert
(ne (and (lshiftrt (xor X CST) Y) 1) 0) into
(eq (and (lshiftrt X Y) 1) 0).
From-SVN: r71385
Kazu Hirata [Sun, 14 Sep 2003 14:49:08 +0000 (14:49 +0000)]
alias.c: Follow spelling conventions.
* alias.c: Follow spelling conventions.
* cpphash.h: Likewise.
* fold-const.c: Likewise.
* cp/ChangeLog: Likewise.
* cp/parser.c: Likewise.
From-SVN: r71382
Alexandre Oliva [Sun, 14 Sep 2003 13:56:18 +0000 (13:56 +0000)]
c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
* c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
* c-lex.c (cb_line_change): Skip line changing whenever
c-ppoutput.c would.
From-SVN: r71381
Alexandre Oliva [Sun, 14 Sep 2003 13:52:56 +0000 (13:52 +0000)]
separate-1.c: Adjust line of error.
* gcc.dg/cpp/separate-1.c: Adjust line of error. Test for correct
non-expansion of functional macro name without arguments at EOL.
* gcc.dg/cpp/spacing1.c: Revert 2003-08-04's change. Likewise.
From-SVN: r71380
Steven Bosscher [Sun, 14 Sep 2003 13:42:33 +0000 (13:42 +0000)]
ra.c: Convert to ISO C90 prototypes.
2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
* ra.c: Convert to ISO C90 prototypes.
* ra-build.c: Likewise.
* ra-colorize.c: Likewise.
* ra-debug.c: Likewise.
* ra-rewrite.c: Likewise.
From-SVN: r71379
Richard Sandiford [Sun, 14 Sep 2003 10:28:21 +0000 (10:28 +0000)]
* Makefile.in (%.dvi): Remove excess $(docdir).
From-SVN: r71373
Richard Sandiford [Sun, 14 Sep 2003 10:07:51 +0000 (10:07 +0000)]
function.c (STACK_BYTES): Move definition to head of file.
* function.c (STACK_BYTES): Move definition to head of file.
(assign_parms): Don't pass current_function_pretend_args_size
directly to SETUP_INCOMING_VARARGS. For partial register arguments,
round current_function_pretend_args_size up to STACK_BYTES. Skip any
excess before laying out the argument.
From-SVN: r71372
Andreas Jaeger [Sun, 14 Sep 2003 09:42:57 +0000 (11:42 +0200)]
objc-act.c: Convert to ISO C90 prototypes.
* objc/objc-act.c: Convert to ISO C90 prototypes.
* objc/objc-act.h: Likewise.
From-SVN: r71371
Olaf Hering [Sun, 14 Sep 2003 06:23:15 +0000 (08:23 +0200)]
rs6000.c: Fix typo: Remove extra ')'.
2003-09-14 Olaf Hering <olh@suse.de>
* config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
From-SVN: r71370
Andrew Pinski [Sun, 14 Sep 2003 04:43:10 +0000 (04:43 +0000)]
re PR target/12021 (warning "cpu" and "machine" reasserted for every file)
2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
PR target/12021
* config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
as they already are done in config/m68k/m68k.h.
* config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
From-SVN: r71369
Andrew Pinski [Sun, 14 Sep 2003 01:14:18 +0000 (01:14 +0000)]
rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
* config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
(machopic_output_stub): Only generate pic base symbols when using pic
and generate them in the form L00000000$spb.
From-SVN: r71368
GCC Administrator [Sun, 14 Sep 2003 00:16:09 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r71366
David Edelsohn [Sat, 13 Sep 2003 23:18:35 +0000 (19:18 -0400)]
Correct Dale's email address in ChangeLog entry.
From-SVN: r71364
Phil Edwards [Sat, 13 Sep 2003 20:58:27 +0000 (20:58 +0000)]
run_doxygen: Clear GENERATE_TAGFILE entirely if man pages are on.
2003-09-13 Phil Edwards <phil@codesourcery.com>
* docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
if man pages are on.
* docs/doxygen/user.cfg.in: And here.
From-SVN: r71363
Richard Henderson [Sat, 13 Sep 2003 14:18:47 +0000 (07:18 -0700)]
cgraphunit.c (cgraph_assemble_pending_functions): Export.
* cgraphunit.c (cgraph_assemble_pending_functions): Export.
(cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
* cgraph.h: Update.
* decl2.c (finish_file): Check cgraph_assemble_pending_functions
during relaxation loop.
From-SVN: r71360
Dale Johannesen [Sat, 13 Sep 2003 00:24:01 +0000 (00:24 +0000)]
Fix still another typo.
From-SVN: r71352
Dale Johannesen [Sat, 13 Sep 2003 00:21:32 +0000 (00:21 +0000)]
Fix typos in previous.
From-SVN: r71351
GCC Administrator [Sat, 13 Sep 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r71349
Ziemowit Laski [Fri, 12 Sep 2003 23:47:01 +0000 (23:47 +0000)]
pretty-print.c (pp_construct): Use xcalloc instead of xmalloc when allocating pp->buffer.
2003-09-12 Ziemowit Laski <zlaski@apple.com>
* pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
when allocating pp->buffer.
From-SVN: r71346
Geoffrey Keating [Fri, 12 Sep 2003 23:45:03 +0000 (23:45 +0000)]
darwin.c (machopic_select_rtx_section): Use const_data_section for things that might require relocation.
* config/darwin.c (machopic_select_rtx_section): Use
const_data_section for things that might require relocation.
From-SVN: r71345
H.J. Lu [Fri, 12 Sep 2003 22:26:54 +0000 (22:26 +0000)]
re PR bootstrap/12264 (Mainline faield to bootstrap)
PR bootstrap/12264
* tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
From-SVN: r71343
Bob Wilson [Fri, 12 Sep 2003 21:52:01 +0000 (21:52 +0000)]
elf.h (ASM_SPEC): Remove no-density option.
* config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
* config/xtensa/linux.h (ASM_SPEC): Likewise.
* config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
-mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
-m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
-m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
-m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
-m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
and redefine corresponding TARGET_* macros with constants from the
xtensa-config.h header.
* doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
for the options listed above.
From-SVN: r71339
Dale Johannesen [Fri, 12 Sep 2003 19:00:45 +0000 (19:00 +0000)]
Use ISO C90 prototypes.
From-SVN: r71336
Chris Lattner [Fri, 12 Sep 2003 15:52:24 +0000 (15:52 +0000)]
* loop.c: Move comments describing BIV's and GIV's to top of file
From-SVN: r71333
Roger Sayle [Fri, 12 Sep 2003 15:07:50 +0000 (15:07 +0000)]
re PR rtl-optimization/8967 (Making class data members `const' pessimizes code)
PR optimization/8967
* alias.c (write_dependence_p): Modify to take an additional constp
argument that controls whether the UNCHANGING_RTX_P flags are used.
(anti_dependence, output_dependence): Adjust write_dependence_p
callers to pass this additional argument, to return the same result.
(unchanging_anti_dependence): New variant of anti_dependence that
ignores the UNCHANGING_RTX_P property on memory references.
* rtl.h (unchaning_anti_dependence): Prototype here.
* flow.c (init_propagate_block): Place fake constant mem writes on
the mem_set_list so that dead writes to const variables are deleted.
(insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
(mark_used_regs): Likewise.
From-SVN: r71332
Richard Sandiford [Fri, 12 Sep 2003 09:57:11 +0000 (09:57 +0000)]
mcore-protos.h (mcore_r15_operand_p): Declare.
* config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
(mcore_secondary_reload_class): Declare.
(mcore_output_inline_const_forced): Remove.
* config/mcore/mcore.md (movsi): Remove the code that forced
non-inlineable constants into a register if the target was r15
or the stack pointer. Remove constant restrictions from the main
define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
of an r <- P alternative. Remove fallback define_insn for reload.
(movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
define_insn. Use mcore_output_move in the remaining define_insn.
Adjust condition and constraints in the way as for movsi.
(movdi): Always split unacceptable constants into two. Use
simplify_gen_subreg instead of operand_subword{,_force}.
* config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
(mcore_output_move): Support HImode and QImode moves as well.
(mcore_m15_operand_p): New function.
(mcore_reload_class): Use it to detect cases where LRW_REGS are better.
(mcore_secondary_reload_class): New function.
* config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
terms of mcore_secondary_reload_class.
From-SVN: r71330
Mike Stump [Fri, 12 Sep 2003 05:03:22 +0000 (05:03 +0000)]
* c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
From-SVN: r71328
Tom Tromey [Fri, 12 Sep 2003 01:08:18 +0000 (01:08 +0000)]
URLStreamHandler.java (parseURL): If original file ends with "/", so must canonical result.
* java/net/URLStreamHandler.java (parseURL): If original file
ends with "/", so must canonical result.
* java/io/natFilePosix.cc (getCanonicalPath): Clean up snafus
with nul-termination and finding previous "/".
From-SVN: r71327
GCC Administrator [Fri, 12 Sep 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r71325
Alan Modra [Thu, 11 Sep 2003 23:54:40 +0000 (23:54 +0000)]
prep_cif.c (initialize_aggregate): Include tail padding in structure size.
* src/prep_cif.c (initialize_aggregate): Include tail padding in
structure size.
* src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Correct
placement of float result.
* testsuite/libffi.special/unwindtest.cc (closure_test_fn1): Correct
cast of "resp" for big-endian 64 bit machines.
From-SVN: r71323
Kaveh R. Ghazi [Thu, 11 Sep 2003 22:51:20 +0000 (22:51 +0000)]
builtins.c (fold_builtin_logarithm): if N can't be truncated to MODE exactly...
* builtins.c (fold_builtin_logarithm): if N can't be truncated to
MODE exactly, then only convert logN(N) -> 1.0 if
flag_unsafe_math_optimizations is set.
From-SVN: r71322
Kaveh R. Ghazi [Thu, 11 Sep 2003 21:40:41 +0000 (21:40 +0000)]
builtins.c (builtin_dconsts_init, [...]): Delete.
* builtins.c (builtin_dconsts_init, dconstpi, dconste,
init_builtin_dconsts): Delete.
* emit-rtl.c (dconstpi, dconste): Define.
(init_emit_once): Initialize dconstpi & dconste.
* real.h (dconstpi, dconste): Declare.
From-SVN: r71320
David Edelsohn [Thu, 11 Sep 2003 20:47:13 +0000 (20:47 +0000)]
* decl2.c (var_finalized_p): Swap arms of conditional.
From-SVN: r71319
Bernardo Innocenti [Thu, 11 Sep 2003 19:49:02 +0000 (21:49 +0200)]
Capitalize my name in an old ChangeLog entry.
From-SVN: r71310
Michael Koch [Thu, 11 Sep 2003 17:25:47 +0000 (17:25 +0000)]
acconfig.h: Removed most items.
2003-09-11 Michael Koch <konqueror@gmx.de>
* acconfig.h: Removed most items.
* configure.in: Added descriptions to AC_DEFINE macros that where in
acconfig.h before.
* include/config.h.in: Regenerated.
From-SVN: r71309
Sascha Brawer [Thu, 11 Sep 2003 16:45:10 +0000 (18:45 +0200)]
Toolkit.java (getSystemEventQueue): Call SecurityManager if one is installed.
2003-09-11 Sascha Brawer <brawer@dandelis.ch>
* java/awt/Toolkit.java (getSystemEventQueue): Call SecurityManager
if one is installed. Improve Javadoc.
(getSystemEventQueueImpl): Improve Javadoc.
From-SVN: r71308
Tom Tromey [Thu, 11 Sep 2003 16:44:39 +0000 (16:44 +0000)]
natFilePosix.cc (getCanonicalPath): Handle case where file does not exist.
* java/io/natFilePosix.cc (getCanonicalPath): Handle case where
file does not exist.
From-SVN: r71307
Nathan Sidwell [Thu, 11 Sep 2003 15:18:52 +0000 (15:18 +0000)]
re PR c++/11788 (missing implicit instantiation of static member function)
cp:
PR c++/11788
* typeck.c (build_address): If it is a function, mark it used.
(build_unary_op): Do not lose object's side-effects when taking
address of static member function.
* class.c (resolve_address_of_overloaded_function): Use
tsubst_flags_t parameter. Only expect overload sets. Adjust.
(instantiate_type): Adjust flags passing. Do not lose object's
side-effects when taking address of static member function.
testsuite:
PR c++/11788
* g++.dg/overload/addr1.C: New test.
From-SVN: r71304
Alexandre Oliva [Thu, 11 Sep 2003 13:41:56 +0000 (13:41 +0000)]
re PR fortran/11522 (g77 dwarf-2 ICE in add_abstract_origin_attribute)
PR fortran/11522
* dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
for ultimate origin even if block is abstract.
From-SVN: r71301
Roger Sayle [Thu, 11 Sep 2003 13:01:32 +0000 (13:01 +0000)]
combine.c (combine_simplify_rtx): Move several NOT and NEG optimizations from here...
* combine.c (combine_simplify_rtx): Move several NOT and NEG
optimizations from here...
* simplify-rtx.c (simplify_unary_operation): to here. Recursively
simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
From-SVN: r71300
Anthony Green [Thu, 11 Sep 2003 12:30:05 +0000 (12:30 +0000)]
Fix mingw32 builds.
From-SVN: r71299
Richard Henderson [Thu, 11 Sep 2003 07:14:12 +0000 (00:14 -0700)]
cgraphunit.c (cgraph_finalize_function): Add nested arg.
* cgraphunit.c (cgraph_finalize_function): Add nested arg.
Tweek tests for function already generated.
(cgraph_expand_function): Don't double announce in !unit-at-a-time.
* cgraph.h (cgraph_finalize_function): Update for extra arg.
* c-decl.c (finish_function): Likewise.
* semantics.c (expand_or_defer_fn): Update for new
cgraph_finalize_function argument.
* parse.y (source_end_java_method): Update for new
cgraph_finalize_function argument.
From-SVN: r71298
Joe Buck [Thu, 11 Sep 2003 06:45:20 +0000 (06:45 +0000)]
* c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
From-SVN: r71297
Richard Henderson [Thu, 11 Sep 2003 05:55:16 +0000 (22:55 -0700)]
* decl2.c (cxx_callgraph_analyze_expr): Mark argument unused.
From-SVN: r71296
Alan Modra [Thu, 11 Sep 2003 05:17:57 +0000 (05:17 +0000)]
types.c (double, longdouble): Merge identical SH and ARM typedefs, and add POWERPC64.
* src/types.c (double, longdouble): Merge identical SH and ARM
typedefs, and add POWERPC64.
* src/powerpc/ffi.c (ffi_prep_args64): Correct next_arg calc for
struct split over gpr and rest.
(ffi_prep_cif_machdep): Correct intarg_count for structures.
* src/powerpc/linux64.S (ffi_call_LINUX64): Fix gpr offsets.
From-SVN: r71295
Jerry Quinn [Thu, 11 Sep 2003 05:08:22 +0000 (05:08 +0000)]
real.c: Update URL to VAX floating point docs.
* real.c: Update URL to VAX floating point docs.
(decode_vax_d): Extract 8 exponent bits instead of 7.
From-SVN: r71294
Ian Lance Taylor [Thu, 11 Sep 2003 04:45:11 +0000 (04:45 +0000)]
* gcc.dg/
20030909-1.c: New test.
From-SVN: r71293
Ian Lance Taylor [Thu, 11 Sep 2003 04:44:23 +0000 (04:44 +0000)]
combine.c (force_to_mode): Set fuller_mask based only on mask, not op_mode.
* combine.c (force_to_mode): Set fuller_mask based only on mask,
not op_mode.
From-SVN: r71292
Daniel Jacobowitz [Thu, 11 Sep 2003 03:11:31 +0000 (03:11 +0000)]
re PR libstdc++/12189 (abi_check fails to build)
PR libstdc++/12189
* acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
abi_check if cross compiling.
* aclocal.m4: Regenerated.
* configure: Regenerated.
Co-Authored-By: Andreas Jaeger <aj@suse.de>
From-SVN: r71291
GCC Administrator [Thu, 11 Sep 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r71287
Jan Hubicka [Wed, 10 Sep 2003 23:46:26 +0000 (01:46 +0200)]
decl2.c (var_finalized_p): New.
* decl2.c (var_finalized_p): New.
(maybe_emit_vtables, write_out_vars, finish_file): Use it.
From-SVN: r71284
Jan Hubicka [Wed, 10 Sep 2003 23:45:05 +0000 (01:45 +0200)]
c-objc-common.c (c_cannot_inline_tree_fn): Warn on why function is not inlinable; do not check the body.
* c-objc-common.c (c_cannot_inline_tree_fn): Warn
on why function is not inlinable; do not check
the body.
(inline_forbidden_p): Move to...
* tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
deal with alloca, longjmp.
(inline_forbidden_p): New static function.
(find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
find_builtin_longjmp_call): Kill.
From-SVN: r71283
Richard Henderson [Wed, 10 Sep 2003 19:16:20 +0000 (12:16 -0700)]
cgraph.h (struct cgraph_node): Rename lowered to analyzed.
* cgraph.h (struct cgraph_node): Rename lowered to analyzed.
* cgraphunit.c: Update to match.
(record_call_1): Rearrange. Call lang hook for language nodes.
(cgraph_analyze_function): Don't call lower_function.
* langhooks.h (struct lang_hooks_for_callgraph): Replace
lower_function with analyze_expr.
* langhooks-def.h: Update to match.
* langhooks.c (lhd_callgraph_analyze_expr): New.
* decl2.c (cxx_callgraph_analyze_expr): New, from corpse of
mark_member_pointers.
(lower_function): Remove.
* cp-tree.h: Update to match.
* cp-lang.c (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): New.
(LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION): Remove.
From-SVN: r71277
Michael Koch [Wed, 10 Sep 2003 18:50:47 +0000 (18:50 +0000)]
acconfig.h (__NO_MATH_INLINES): Removed.
2003-09-10 Michael Koch <konqueror@gmx.de>
* acconfig.h (__NO_MATH_INLINES): Removed.
* configure.in: Removed check for g++ math inlining bug from 2000.
* configure.host: Removed -D__NO_MATH_INLINES in libgcj_cflags and
libgcj_cxxflags.
* configure: Regenerated.
From-SVN: r71276
David Daney [Wed, 10 Sep 2003 18:11:05 +0000 (18:11 +0000)]
Arrays.java (equals(all variants)): Quit using NullPointerException catching to detect null valued parameters.
2003-09-10 David Daney <ddaney@avtrex.com>
* java/util/Arrays.java (equals(all variants)): Quit using
NullPointerException catching to detect null valued parameters.
From-SVN: r71275
Michael Koch [Wed, 10 Sep 2003 17:39:20 +0000 (17:39 +0000)]
DatagramSocket.java, [...]: Use gnu.java.net.Plain*SocketImpl instead of java.net.PlainSocketImpl.
2003-09-10 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java,
java/net/MulticastSocket.java,
java/net/ServerSocket.java,
java/net/Socket.java:
Use gnu.java.net.Plain*SocketImpl instead of
java.net.PlainSocketImpl.
* java/net/PlainDatagramSocketImpl.java,
java/net/PlainSocketImpl.java,
java/net/SocketInputStream.java,
java/net/SocketOutputStream.java,
java/net/natPlainDatagramSocketImplNoNet.cc,
java/net/natPlainDatagramSocketImplPosix.cc,
java/net/natPlainDatagramSocketImplWin32.cc,
java/net/natPlainSocketImplNoNet.cc,
java/net/natPlainSocketImplPosix.cc,
java/net/natPlainSocketImplWin32.cc:
Removed.
* gnu/java/net/PlainDatagramSocketImpl.java,
gnu/java/net/PlainSocketImpl.java,
gnu/java/net/SocketInputStream.java,
gnu/java/net/SocketOutputStream.java,
gnu/java/net/natPlainDatagramSocketImplNoNet.cc,
gnu/java/net/natPlainDatagramSocketImplPosix.cc,
gnu/java/net/natPlainDatagramSocketImplWin32.cc,
gnu/java/net/natPlainSocketImplNoNet.cc,
gnu/java/net/natPlainSocketImplPosix.cc,
gnu/java/net/natPlainSocketImplWin32.cc:
New files (moved from java/net).
* configure.in: Create links for gnu/java/net/natPlain*SocketImpl.cc
instead of java/net/natPlain*SocketImpl.cc.
* configure: Regenerated.
* Makefile.am: Moved files from java/net to gnu/java/net.
* Makefile.in: Regenerated.
From-SVN: r71274
Jeffrey D. Oldham [Wed, 10 Sep 2003 15:41:48 +0000 (15:41 +0000)]
vec.cc (__cxa_vec_new2): If the allocator returns NULL, return NULL.
2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
* libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
(__cxa_vec_new3): Likewise.
From-SVN: r71273
Petur Runolfsson [Wed, 10 Sep 2003 13:43:15 +0000 (13:43 +0000)]
fstream.tcc (basic_filebuf::seekoff): Use codecvt::length to handle variable-width stateless encodings correctly.
2003-09-10 Petur Runolfsson <peturr02@ru.is>
* include/bits/fstream.tcc (basic_filebuf::seekoff):
Use codecvt::length to handle variable-width stateless encodings
correctly.
* testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
* testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
From-SVN: r71271
Eric Botcazou [Wed, 10 Sep 2003 12:59:36 +0000 (12:59 +0000)]
re PR target/11965 (invalid assembler code for a shift << 32 operation)
PR target/11965
* config/sparc/sparc.c (sparc_v8plus_shift): Protect against
constants greater than 63.
* config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
against constants greater than 31.
(*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
constants greater than 63.
From-SVN: r71266
Alan Modra [Wed, 10 Sep 2003 12:02:51 +0000 (12:02 +0000)]
basic_file_stdio.cc (_M_open_mode): Assign __p_mode rather than or'ing.
* config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
rather than or'ing.
From-SVN: r71265
Richard Henderson [Wed, 10 Sep 2003 03:06:32 +0000 (20:06 -0700)]
cgraphunit.c (cgraph_finalize_function): Remove unused argument.
* cgraphunit.c (cgraph_finalize_function): Remove unused argument.
* cgraph.h (cgraph_finalize_function): Update.
* c-decl.c (finish_function): Update.
cp/
* semantics.c (expand_or_defer_fn): Update call to
cgraph_finalize_function.
java/
* parse.y (source_end_java_method): Update call to
cgraph_finalize_function.
From-SVN: r71263
Richard Henderson [Wed, 10 Sep 2003 02:46:35 +0000 (19:46 -0700)]
semantics.c (expand_or_defer_fn): Use cgraph_finalize_function always.
* semantics.c (expand_or_defer_fn): Use cgraph_finalize_function
always.
From-SVN: r71262
Richard Henderson [Wed, 10 Sep 2003 02:41:43 +0000 (19:41 -0700)]
decl2.c (finish_file): Avoid out-of-bounds array reference during memmove.
* decl2.c (finish_file): Avoid out-of-bounds array reference
during memmove.
From-SVN: r71261
Devang Patel [Wed, 10 Sep 2003 00:43:38 +0000 (17:43 -0700)]
darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
gcc
* config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
* doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
testsuite
* gcc.dg/darwin-ld-6.c: New test.
From-SVN: r71259
GCC Administrator [Wed, 10 Sep 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r71257
Eric Christopher [Wed, 10 Sep 2003 00:13:11 +0000 (00:13 +0000)]
configure.in: Change usage of 'head' to 'sed 1q'.
2003-09-09 Eric Christopher <echristo@redhat.com>
* configure.in: Change usage of 'head' to 'sed 1q'.
* configure: Regenerate.
From-SVN: r71255
Richard Henderson [Wed, 10 Sep 2003 00:09:09 +0000 (17:09 -0700)]
except.c: Include cgraph.h.
* except.c: Include cgraph.h.
(output_function_exception_table): Invoke
cgraph_varpool_mark_needed_node.
* Makefile.in (except.o): Update.
* decl2.c (mark_member_pointers): Rename from
mark_member_pointers_and_eh_handlers and don't check eh handlers.
From-SVN: r71254