aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-09-25c-typeck.c, [...]: Fix comment formatting.Kazu Hirata17-29/+36
* c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c, gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h, lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c, tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting. From-SVN: r88102
2004-09-25* tree-ssa-loop-unswitch.c: Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r88101
2004-09-25* doc/passes.texi: Fix a typo.Kazu Hirata2-1/+5
From-SVN: r88100
2004-09-25expr.c, [...]: Fix comment typos.Kazu Hirata6-8/+14
* expr.c, jcf-dump.c, parse-scan.y, parse.y: Fix comment typos. * gcj.texi: Fix typos. From-SVN: r88099
2004-09-25tree-optimize.c (init_tree_optimization_passes): Add pass_record_bounds.Zdenek Dvorak4-0/+39
* tree-optimize.c (init_tree_optimization_passes): Add pass_record_bounds. * tree-pass.h (pass_record_bounds): Declare. * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds): New pass. From-SVN: r88097
2004-09-25* gfortran.dg/pr15324.f90: Make array bounds consistent.Tobias Schlüter2-1/+5
From-SVN: r88096
2004-09-25re PR tree-optimization/17474 (Compiling at -01 yields different results)Zdenek Dvorak2-4/+12
PR tree-optimization/17474 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0. From-SVN: r88095
2004-09-2530040909-1.c: New test.Jan Hubicka3-0/+31
* compile/30040909-1.c: New test. * compile/30040907-1.c: New test. From-SVN: r88094
2004-09-25predict.c (counts_to_freqs): Make glolbal.Jan Hubicka5-4/+13
* predict.c (counts_to_freqs): Make glolbal. * predict.h (counts_to_freqa): Declare. * profile.c (compute_branch_probabilities): Compute frequencies * tree-profile.c (do_tree_profiling): Refine conditional on when tree profiling pass is needed. From-SVN: r88093
2004-09-25passes.c (rest_of_handle_cfg): Disable const/pure function detection when ↵Jan Hubicka3-3/+18
doing tree based profiling. * passes.c (rest_of_handle_cfg): Disable const/pure function detection when doing tree based profiling. * tree-inline.c (expand_call_inline): Fix incorrectly reversed conditional. From-SVN: r88092
2004-09-25mips.h (struct mips_args): Clarify comments.Richard Sandiford5-38/+62
* config/mips/mips.h (struct mips_args): Clarify comments. * config/mips/mips.c (struct mips_arg_info): Likewise. (mips_arg_info): Don't allow fpr_p to affect the register or stack alignment. Remove o64 silliness. (function_arg): Deal with the o32 float,float case specially. From-SVN: r88090
2004-09-25* config/mips/mips.md (loadx, storex): Define for V2SF.Richard Sandiford2-2/+6
From-SVN: r88089
2004-09-25s390-protos.h (s390_back_chain_rtx): Add prototype.Ulrich Weigand4-57/+76
* config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype. * config/s390/s390.c (s390_back_chain_rtx): New function. * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx. Call anti_adjust_stack. ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern only if compiling with back chain. ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore back chain only if back chain enabled. Use s390_back_chain_rtx. From-SVN: r88087
2004-09-25Daily bump.GCC Administrator1-1/+1
From-SVN: r88085
2004-09-25trouble.texi: Remove obsolete information.Joseph Myers2-180/+14
* doc/trouble.texi: Remove obsolete information. Update information on how to regenerate fixincluded headers. From-SVN: r88082
2004-09-25re PR c/12951 (-Wno-error-implicit-function-declaration not recognized)Joseph Myers2-1/+8
PR c/12951 * doc/invoke.texi: Document that -Wno-error-implicit-function-declaration is not accepted. From-SVN: r88080
2004-09-24objc-act.c (init_objc_symtab, [...]): When initializing 'long' fields, ↵Ziemowit Laski2-6/+18
ensure that the initializer value is also 'long'. [gcc/objc/ChangeLog] 2004-09-24 Ziemowit Laski <zlaski@apple.com> * objc-act.c (init_objc_symtab, init_module_descriptor, build_shared_structure_initializer): When initializing 'long' fields, ensure that the initializer value is also 'long'. From-SVN: r88079
2004-09-24alpha.h (UNITS_PER_SIMD_WORD): New.Richard Henderson3-10/+46
* config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New. * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend on TARGET_MAX. (alpha_expand_mov): Allow unaligned vectors. (alpha_expand_unaligned_store): Use CONST0_RTX. (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New. From-SVN: r88078
2004-09-24tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict aliasing rules.Jeff Law2-4/+13
* tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict aliasing rules. (simplify_cond_and_lookup_avail_expr): Likewise. From-SVN: r88077
2004-09-24objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION throughout.Zack Weinberg5-36/+45
objc: * objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION throughout. (objc_init): Only set input_line to 0 #ifndef USE_MAPPED_LOCATION. (build_selector_translation_table): Use %J in diagnostic instead of diddling input_line. Fix spelling. testsuite: * objc.dg/proto-lossage-4.m: Use long instead of int to avoid extra diagnostics on targets with 64-bit pointers. * objc.dg/selector-1.m: Adjust dg-warning regexp. From-SVN: r88072
2004-09-24re PR c/12802 (-fms-extensions documentation problem)Joseph Myers3-1/+22
PR c/12802 * doc/extend.texi (Unnamed Fields): Remove "." from end of long title. Document interaction with -fms-extensions. * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields section. From-SVN: r88071
2004-09-24re PR c/12713 (Document interaction of attribute noreturn and longjmp)Joseph Myers2-1/+7
PR c/12713 * doc/extend.texi: Document interaction of attribute noreturn and longjmp. From-SVN: r88070
2004-09-24re PR middle-end/17503 (quadratic behaviour in invalid_mode_change_p)Richard Henderson6-53/+120
PR rtl-opt/17503 * regclass.c (subregs_of_mode): Turn into an htab. Make static. (som_hash, som_eq): New. (init_subregs_of_mode, record_subregs_of_mode): New. (cannot_change_mode_set_regs): Rewrite for htab implementation. (invalid_mode_change_p): Likewise. * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode. * flow.c (mark_used_regs): Likewise. (life_analysis): Use init_subregs_of_mode. * regs.h (subregs_of_mode): Remove. * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare. From-SVN: r88067
2004-09-24tree-ssa-phiopt.c (conditional_replacement): Use the correct type with the ↵Andrew Pinski2-2/+7
copy of the conditional. 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu> * tree-ssa-phiopt.c (conditional_replacement): Use the correct type with the copy of the conditional. From-SVN: r88065
2004-09-24re PR tree-optimization/16954 (ICE in get_tmt_for with IMA and incomplete ↵Andrew Pinski2-0/+19
structs) 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/16954 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Prevent renaming if the aliasing sets of the type which the pointer points to are different. From-SVN: r88064
2004-09-24re PR c/17188 (struct Foo { } redefinition)Joseph Myers6-7/+114
PR c/17188 * c-decl.c (diagnose_mismatched_decls): Check for duplicate declarations of enumerators. (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check for redefinition. Check for nested redefinition. (finish_struct): Don't check for nested redefinition. (start_enum): Check for nested redefinition. testsuite: * gcc.dg/nested-redef-1.c, gcc.dg/pr17188-1.c: New tests. * gcc.dg/decl-3.c: Adjust expected message. From-SVN: r88063
2004-09-24tree-if-conv.c (tree_if_convert_cond_expr0): Create temp.Devang Patel2-10/+31
* tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable only when necesssary. (combine_blocks): Combine loop header and exit block. From-SVN: r88062
2004-09-24re PR fortran/17615 (Internal compiler error using interface procedures)Tobias Schlüter4-2/+33
fortran/ PR fortran/17615 * trans-expr.c (gfc_trans_arrayfunc_assign): Look at resolved function to determine return type. testsuite/ PR fortran/17615 * gfortran.dg/pr17615.f90: New test. From-SVN: r88061
2004-09-24* es.po: Update.Joseph Myers2-16/+14
From-SVN: r88057
2004-09-24intrinsic.h (gfc_resolve_getcwd): Update prototype.Tobias Schlüter2-2/+2
* intrinsic.h (gfc_resolve_getcwd): Update prototype. * iresolve.c (gfc_resolve_getcwd): Add second argument to function. From-SVN: r88055
2004-09-24trans-types.c (gfc_return_by_reference): Remove superfluous assertion.Tobias Schlüter2-2/+5
* trans-types.c (gfc_return_by_reference): Remove superfluous assertion. From-SVN: r88051
2004-09-24Test case for PR 17517Andrew MacLeod2-0/+37
From-SVN: r88050
2004-09-24re PR java/15656 (ICE segfault in lex.c)Tom Tromey2-7/+21
PR java/15656: * parse.y (class_instance_creation_expression): Set `$$' to NULL in error parts of rule. (unary_expression): Don't call error_if_numeric_overflow when $1 is NULL. From-SVN: r88048
2004-09-24re PR java/16789 (ICE in force_evaluation_order() on valid code)Tom Tromey3-4/+16
PR java/16789: * parse.y (resolve_qualified_expression_name): Set CAN_COMPLETE_NORMALLY on first call when chaining static calls. * expr.c (force_evaluation_order): Check for empty argument list after stripping COMPOUND_EXPR. From-SVN: r88045
2004-09-24parser.c (cp_parser_expression_stack): Clarify why it is an array of ↵Paolo Bonzini2-1/+13
NUM_PREC_VALUES elements. 2004-09-24 Paolo Bonzini <bonzini@gnu.org> * parser.c (cp_parser_expression_stack): Clarify why it is an array of NUM_PREC_VALUES elements. (cp_parser_binary_expression): Clarify why we do not need to handle stack overflow. From-SVN: r88042
2004-09-24hooks.c (hook_tree_tree_bool_null): New.Paolo Bonzini6-8/+17
2004-09-24 Paolo Bonzini <bonzini@gnu.org> * hooks.c (hook_tree_tree_bool_null): New. * hooks.h (hook_tree_tree_bool_null): Declare it. * target-def.c (TARGET_FOLD_BUILTIN): Point to it. * targhooks.c (default_fold_builtin): Remove. * targhooks.h (default_fold_builtin): Remove. From-SVN: r88040
2004-09-24re PR rtl-optimization/17625 (ICE on legal (doloop creates shared RTL))Zdenek Dvorak2-2/+7
PR rtl-optimization/17625 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it. From-SVN: r88038
2004-09-24re PR c++/16889 (ambiguity is not detected)Nathan Sidwell4-101/+47
cp: PR c++/16889 * search.c (lookup_field_queue_p): Correct check for hidden base. * search.c (bfs_walk): Remove. (lookup_member): Use dfs_walk_real. (dfs_walk_real): Move and adjust documentation from bfs_walk. testsuite: PR c++/16889 * g++.dg/lookup/ambig3.C: New. From-SVN: r88037
2004-09-24re PR java/16927 (assert statement fails at -O1 and above)Andrew Haley2-1/+16
2004-09-23 Andrew Haley <aph@redhat.com> PR java/16927: * parse.y (java_complete_lhs): Call patch_string() on Operand 1 of COND_EXPRs. From-SVN: r88036
2004-09-24re PR tree-optimization/17624 (ICE: SSA corruption (another one))Andrew Pinski2-0/+28
2004-09-24 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/17624 * g++.dg/opt/pr17624.C: New test. From-SVN: r88034
2004-09-24re PR tree-optimization/17624 (ICE: SSA corruption (another one))Andrew Pinski2-0/+36
2004-09-24 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/17624 * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Reject if any of the operands occur in an abnormal PHI. From-SVN: r88032
2004-09-24tree-ssa-dom.c (record_range): Fix violation of strict aliasing rules.Andreas Schwab2-2/+7
* tree-ssa-dom.c (record_range): Fix violation of strict aliasing rules. From-SVN: r88029
2004-09-24fix spaces/tabs againSteven Bosscher1-91/+91
From-SVN: r88017
2004-09-24config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h if the GNU ↵Eric Botcazou6-2/+36
assembler is used. * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h if the GNU assembler is used. (sparc-*-solaris2*): Likewise. * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero. (dbxout_function_end): Protect N_ENSYM with it. (dbxout_begin_prologue): Protect N_BNSYM with it. * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it. * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1. * config/sparc/sol2-gas.h: New file. From-SVN: r88013
2004-09-23re PR bootstrap/17369 ([ia64] Bootstrap failure with binutils-2.15.90.0.1.1)H.J. Lu4-1/+33
2004-09-23 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/17369 * Makefile.tpl (REALLY_SET_LIB_PATH): Add @SET_GCC_LIB_PATH@. (HOST_EXPORTS]): Add @SET_GCC_LIB_PATH@. Set and export SET_GCC_LIB_PATH_CMD. (BASE_TARGET_EXPORTS): Likewise. * Makefile.in: Regenerated. * configure.in (SET_GCC_LIB_PATH): Set and substitute. * configure: Regenerated. config/ 2004-09-23 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/17369 * gcc-lib-path.m4: New file. gcc/ 2004-09-23 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/17369 * Makefile.in (@set_gcc_lib_path@): Added. * configure.ac: Include ../config/gcc-lib-path.m4. Use TL_AC_GNU_MAKE_GCC_LIB_PATH. * configure: Regenerated. From-SVN: r87999
2004-09-24Daily bump.GCC Administrator1-1/+1
From-SVN: r87994
2004-09-24re PR c/6980 (-Wbad-function-cast gives bogus warning for (double) rand())Joseph Myers4-1/+64
PR c/6980 * c-typeck.c (build_c_cast): Improve wording of -Wbad-function-cast diagnostic. testsuite: * gcc.dg/Wbad-function-cast-1.c: New test. From-SVN: r87991
2004-09-23re PR target/17626 (Recent peephole2:s may cause internal compiler errors)Hans-Peter Nilsson2-8/+19
PR target/17626 * config/cris/cris.md (moverside, movemside): Rename variable "reg" to "otherop". To generate canonical RTX, check that otherop isn't constant instead of checking that operand 1 is a register. From-SVN: r87988
2004-09-23Ignore -ansi -pedantic-errors option coming from dejagnu.Fariborz Jahanian2-0/+2
From-SVN: r87987
2004-09-23decl.c (grokfndecl): If ::main is found not to return int, correct it after ↵Zack Weinberg70-451/+593
issuing a diagnostic. gcc/cp: * decl.c (grokfndecl): If ::main is found not to return int, correct it after issuing a diagnostic. (grokdeclarator): If the incoming type was error_mark_node, do not complain about declaring something with no type. (start_function): Change check for ::main not returning int to an assertion, as grokfndecl now catches this when the user did it. * init.c (perform_member_init, sort_mem_initializers) (emit_mem_initializers): Make most diagnostics be issued on the line of current_function_decl, not whatever the current input line is. * parser.c (cp_lexer_peek_token_emit_debug_info): Surround definition and declaration with #ifdef ENABLE_CHECKING. Avoid unnecessary use of fprintf. (cp_lexer_print_token, cp_lexer_debug_stream): Adjust stub definitions to avoid warnings. (cp_lexer_new_main): Add assertion that first token is not a padding token. (cp_lexer_new_from_token_array): Fold into ... (cp_lexer_new_from_tokens): ... here. Add assertion that first token is not a padding token. (cp_lexer_set_source_position_from_token): Move nearer to callers. Remove unused lexer argument. (cp_lexer_peek_token): Just print debugging report (if enabled) and return lexer->next_token. (cp_lexer_skip_purged_tokens): Delete. (cp_lexer_next_token_is, cp_lexer_next_token_is_not): Make inline, simplify bodies. (cp_lexer_peek_nth_token): Add debugging report a la cp_lexer_peek_token. (cp_lexer_consume_token): Correct commentary. Advance over purged tokens here. Set current source position here, from token to be returned. Avoid unnecessary use of fprintf. (cp_lexer_purge_token): Advance next_token pointer over this and subsequent purged tokens. (cp_parser_error): Adjust source position to that of the peeked token. (cp_parser_push_lexer_for_tokens, cp_parser_pop_lexer): New functions. (cp_parser_string_literal): Remove some excessive cleverness. (cp_parser_enum_specifier): Call start_enum before consuming the opening brace. (cp_parser_member_declaration): Make the "extra semicolon" diagnostic consistently-worded with the other place this is diagnosed. Explicitly set the diagnostic location to the location of the offending semicolon. (cp_parser_enclosed_template_argument_list): Use %</%> quoting in diagnostics. Do not use cp_parser_require. Set location of diagnostics about improper use of '>>' to location of offending token. (cp_parser_late_parsing_for_member): Use cp_parser_push_lexer_for_tokens and cp_parser_pop_lexer. (cp_parser_late_parsing_default_args): Likewise. Manually move some logic outside the loop. gcc/testsuite: * g++.dg/ext/complit1.C * g++.dg/other/error2.C * g++.dg/other/nontype-1.C * g++.dg/parse/crash11.C * g++.dg/parse/crash12.C * g++.dg/parse/error15.C * g++.dg/parse/error4.C * g++.dg/parse/tmpl-outside1.C * g++.dg/parse/too-many-tmpl-args1.C * g++.dg/template/dependent-expr3.C * g++.dg/template/error10.C * g++.dg/template/instantiate1.C * g++.dg/template/vtable2.C * g++.dg/warn/Wshadow-1.C * g++.dg/warn/weak1.C * g++.old-deja/g++.brendan/crash16.C * g++.old-deja/g++.brendan/crash18.C * g++.old-deja/g++.brendan/crash48.C * g++.old-deja/g++.brendan/crash49.C * g++.old-deja/g++.brendan/crash55.C * g++.old-deja/g++.brendan/crash56.C * g++.old-deja/g++.brendan/crash8.C * g++.old-deja/g++.brendan/enum11.C * g++.old-deja/g++.brendan/enum8.C * g++.old-deja/g++.brendan/enum9.C * g++.old-deja/g++.brendan/friend3.C * g++.old-deja/g++.brendan/misc14.C * g++.old-deja/g++.bugs/900402_02.C * g++.old-deja/g++.bugs/900404_03.C * g++.old-deja/g++.bugs/900404_04.C * g++.old-deja/g++.bugs/900428_03.C * g++.old-deja/g++.jason/crash4.C * g++.old-deja/g++.jason/overload21.C * g++.old-deja/g++.jason/redecl1.C * g++.old-deja/g++.jason/report.C * g++.old-deja/g++.jason/rfg10.C * g++.old-deja/g++.jason/template30.C * g++.old-deja/g++.law/arm12.C * g++.old-deja/g++.law/ctors5.C * g++.old-deja/g++.law/cvt20.C * g++.old-deja/g++.law/init10.C * g++.old-deja/g++.law/init8.C * g++.old-deja/g++.law/visibility17.C * g++.old-deja/g++.law/visibility7.C * g++.old-deja/g++.mike/net8.C * g++.old-deja/g++.mike/p646.C * g++.old-deja/g++.mike/p700.C * g++.old-deja/g++.mike/p701.C * g++.old-deja/g++.mike/p811.C * g++.old-deja/g++.ns/template13.C * g++.old-deja/g++.other/array3.C * g++.old-deja/g++.other/crash25.C * g++.old-deja/g++.other/dtor3.C * g++.old-deja/g++.other/dtor4.C * g++.old-deja/g++.other/main1.C * g++.old-deja/g++.other/warn7.C * g++.old-deja/g++.pt/crash11.C * g++.old-deja/g++.pt/crash36.C * g++.old-deja/g++.pt/spec22.C * g++.old-deja/g++.pt/spec9.C * g++.old-deja/g++.pt/ttp52.C * g++.old-deja/g++.robertl/eb103.C * g++.old-deja/g++.robertl/eb121.C * g++.old-deja/g++.robertl/eb22.C * g++.old-deja/g++.robertl/eb8.C: Update locations and/or regexps of dg-error markers. Remove markers for some bogus messages that are no longer issued. libstdc++-v3: * testsuite/20_util/memory/auto_ptr/assign_neg.cc * testsuite/23_containers/map/operators/1_neg.cc * testsuite/23_containers/set/operators/1_neg.cc: Update locations and/or regexps of dg-error markers. From-SVN: r87985