aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-09-17* cfg.c (dump_flow_info): Skip register dump if reg_n_info null.Richard Henderson2-41/+46
From-SVN: r71485
2003-09-17configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.Rainer Orth3-53/+54
* configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag. * configure: Regenerate. From-SVN: r71484
2003-09-17re PR c++/12266 (incorrect instantiation of unneeded template during ↵Mark Mitchell6-3/+37
overload resolution) PR c++/12266 * cp-tree.h (tsubst_flags_t): Add tf_conv. * class.c (standard_conversion): Pass tf_conv to instantiate_type. (resolve_address_of_overloaded_function): Do not call mark_used when just checking conversions. PR c++/12266 * g++.dg/overload/template1.C: New test. From-SVN: r71483
2003-09-17re PR debug/12066 (g++ generates stabs for "char *" that gdb cannot read)Mark Mitchell9-3/+60
PR debug/12066 * dbxout.c (dbxout_init): Use a langhook to find builtin types. * langhooks-def.h (lhd_return_null_tree_v): New function. (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro. (LANG_HOOKS_DECLS): Add it to the intializer. * langhooks.c (lhd_return_null_tree_v): New function. * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls. PR debug/12066 * cp-lang.c (LANG_HOOKS_BUILTIN_TYPE_DECLS): Define. * cp-tree.h (cxx_builtin_type_decls): Declare. * decl.c (builtin_type_decls): New variables. (cxx_builtin_type_decls): New function. (record_builtin_type): Add to builtin_type_decls. From-SVN: r71478
2003-09-17configure.in (TOPLEVEL_CONFIGURE_ARGUMENTS, baseargs): Fix quoting.Daniel Jacobowitz4-74/+102
./ * configure.in (TOPLEVEL_CONFIGURE_ARGUMENTS, baseargs): Fix quoting. * configure: Regenerated. gcc/ * configure.in: Quote gcc_config_arguments for configargs.h. * configure: Regenerated. * gccbug.in: Don't shell-expand gcc_config_arguments. From-SVN: r71474
2003-09-17* semantics.c (expand_or_defer_fn): Inc/dec function_depth.Richard Henderson2-0/+8
From-SVN: r71473
2003-09-17re PR c++/11357 ([DR 425] no conversion of build-in binary operator argument ↵Gabriel Dos Reis2-1/+12
attempted) PR c++/11357 * c-pretty-print.c (pp_c_floating_constant): Append type-annotation to floating constants. From-SVN: r71468
2003-09-17re PR target/10190 ([IRIX] building gcc 3.2.2 on irix 5.3 fails)Rainer Orth4-54/+33
* config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG. Define _ABIO32. Use it for _MIPS_SIM. * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed. * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Moved ... * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here, updating comment. Fixes PR target/10190. From-SVN: r71465
2003-09-17re PR java/9577 (Linker error for legal Java/CNI code if method parameters ↵Ranjit Mathew2-7/+21
are reversed) 2003-09-17 Ranjit Mathew <rmathew@hotmail.com> Fixes PR java/9577 * mangle.c (find_compression_record_match): Skip over a "6JArray" (the array template mangled string) IDENTIFIER_NODE. (mangle_array_type): Correct minor typo. (atms): Move definition to the beginning. From-SVN: r71461
2003-09-17sysv4.h (LIB_LINUX_SPEC): Make -pthread apply to shared libraries.Daniel Jacobowitz2-1/+6
* config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply to shared libraries. From-SVN: r71458
2003-09-17re PR rtl-optimization/11646 (ICE in commit_one_edge_insertion with ↵Eric Botcazou5-3/+81
-fnon-call-exceptions -fgcse -O) PR optimization/11646 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the EDGE_ABNORMAL flag for EH edges. * toplev.c (rest_of_handle_cse): Delete unreachable blocks if dead edges were purged. From-SVN: r71455
2003-09-17re PR java/12254 (Regression in java networking code)Bryce McKinlay2-4/+11
* class.c (add_miranda_methods): Ensure super-interfaces are laid out. Fix for PR java/12254. From-SVN: r71454
2003-09-17m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.Bernardo Innocenti3-63/+48
* config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines. * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions. * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove. * config/m68k/m68k-none.h (CPP_SPEC): Likewise. From-SVN: r71450
2003-09-17Daily bump.GCC Administrator1-1/+1
From-SVN: r71448
2003-09-16cfgcleanup.c (label_is_jump_target_p): Correct use of table returned by ↵Ian Lance Taylor2-1/+7
tablejump_p. * cfgcleanup.c (label_is_jump_target_p): Correct use of table returned by tablejump_p. From-SVN: r71443
2003-09-16* dwarf2asm.c (dw2_asm_output_nstring): Add comment.Joel Brobecker2-0/+11
From-SVN: r71442
2003-09-16re PR bootstrap/12269 (Mainline failed to bootstrap on Linux/ia64)Roger Sayle3-47/+76
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
2003-09-16fold-const.c (tree_swap_operands_p): New function to determine the prefered ↵Roger Sayle2-126/+85
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
2003-09-16re PR c++/7939 (ICE on function template specialization)Kriang Lerdsuwanakij4-5/+23
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
2003-09-16linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.Jakub Jelinek9-5/+41
* 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
2003-09-16c-common.c (handle_warn_unused_result_attribute): New function.Jason Merrill10-7/+316
* 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
2003-09-16Cleaned up Jan's ChangeLog entriesR. Kelley Cook6-48/+48
From-SVN: r71421
2003-09-16Daily bump.GCC Administrator1-1/+1
From-SVN: r71418
2003-09-16* cpplib.c (do_pragma): Remove unnecessary cb_line_change.Alexandre Oliva2-8/+4
From-SVN: r71416
2003-09-15xtensa.c (xtensa_multibss_section_type_flags): Add ATTRIBUTE_UNUSED.Bob Wilson2-3/+39
* 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
2003-09-15invoke.texi (Warning Options): Add missing hyphen before "Wimport".Volker Reichelt2-10/+16
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
2003-09-15gcse.c (remove_reachable_equiv_notes): New.Zdenek Dvorak2-9/+137
* 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
2003-09-15xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use SYMBOL_REF_LOCAL_P.Bob Wilson2-1/+6
* config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use SYMBOL_REF_LOCAL_P. From-SVN: r71411
2003-09-15expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.Kazu Hirata6-34/+24
* 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
2003-09-15haifa-sched.c (schedule_block): Use ready_remove_first instead of ↵Vladimir Makarov2-1/+6
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
2003-09-15re PR c++/12184 (ICE with trying to convert an incomplete type)Nathan Sidwell5-8/+39
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
2003-09-15invoke.texi (Warning Options): Describe -Wold-style-definition.Andreas Jaeger1-0/+10
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
2003-09-15invoke.texi (Warning Options): Describe -Wold-style-definition.Andreas Jaeger8-1/+57
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
2003-09-15altivec.h: Convert () prototypes to ISO C90.Andreas Jaeger3-35/+40
* config/rs6000/altivec.h: Convert () prototypes to ISO C90. * config/rs6000/rs6000.c: Likewise. From-SVN: r71399
2003-09-14re PR rtl-optimization/10914 (unswitch loops does not work on powerpc)Zdenek Dvorak8-23/+50
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
2003-09-15re PR c++/3907 (nested template parm collides with member name)Mark Mitchell13-205/+230
* 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
2003-09-15class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field ↵Mark Mitchell4-1/+33
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
2003-09-15Daily bump.GCC Administrator1-1/+1
From-SVN: r71390
2003-09-14class.c (layout_class_type): Make DECL_MODE match TYPE_MODE for an bit-field ↵Mark Mitchell2-0/+6
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
2003-09-14* rtti.c (get_tinfo_decl): Set TREE_PUBLIC for typeinfo decls.Geoffrey Keating2-1/+6
From-SVN: r71387
2003-09-14combine.c (simplify_comparison): Convert (ne (and (lshiftrt (xor X CST) Y) ↵Kazu Hirata2-11/+28
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
2003-09-14alias.c: Follow spelling conventions.Kazu Hirata6-5/+16
* alias.c: Follow spelling conventions. * cpphash.h: Likewise. * fold-const.c: Likewise. * cp/ChangeLog: Likewise. * cp/parser.c: Likewise. From-SVN: r71382
2003-09-14c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.Alexandre Oliva3-3/+12
* 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
2003-09-14separate-1.c: Adjust line of error.Alexandre Oliva3-17/+22
* 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
2003-09-14ra.c: Convert to ISO C90 prototypes.Steven Bosscher6-534/+335
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
2003-09-14* Makefile.in (%.dvi): Remove excess $(docdir).Richard Sandiford2-1/+5
From-SVN: r71373
2003-09-14function.c (STACK_BYTES): Move definition to head of file.Richard Sandiford5-21/+109
* 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
2003-09-14objc-act.c: Convert to ISO C90 prototypes.Andreas Jaeger3-714/+471
* objc/objc-act.c: Convert to ISO C90 prototypes. * objc/objc-act.h: Likewise. From-SVN: r71371
2003-09-14rs6000.c: Fix typo: Remove extra ')'.Olaf Hering1-1/+1
2003-09-14 Olaf Hering <olh@suse.de> * config/rs6000/rs6000.c: Fix typo: Remove extra ')'. From-SVN: r71370
2003-09-13re PR target/12021 (warning "cpu" and "machine" reasserted for every file)Andrew Pinski3-4/+5
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