aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-05-11Fix expected error message.Kriang Lerdsuwanakij1-1/+1
From-SVN: r66687
2003-05-11int8421.f: New test.Toon Moene2-0/+24
2003-05-11 Toon Moene <toon@moene.indiv.nluug.nl> * g77.f-torture/execute/int8421.f: New test. From-SVN: r66686
2003-05-11re PR fortran/10726 (Documentation for function "IDate Intrinsic (Unix)" is ↵Toon Moene5-10/+30
wrong) 2003-05-11 Toon Moene <toon@moene.indiv.nluug.nl> PR fortran/10726 * intdoc.in: Fix documentation of IDATE. * intdoc.texi: Regenerate. * g77.texi: Document completion of INTEGER*n support. * news.texi: Update due to the above. From-SVN: r66685
2003-05-11re PR c++/689 ([diagnostic] this warning is not helpful: `class xxxx' only ↵Gabriel Dos Reis5-2/+25
defines a private destructor and has no friend) PR C++/689 PR C++/9257 * c-opts.c (c_common_decode_option): Don't set warn_ctor_dtor_privacy wen -Wall. * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default. From-SVN: r66684
2003-05-11PR c++/10230, c++/10481Kriang Lerdsuwanakij4-2/+41
PR c++/10230, c++/10481 * semantics.c (finish_non_static_data_member): Handle when the non-static member is not from a base of the current class type. * g++.dg/lookup/scoped5.C: New test. From-SVN: r66683
2003-05-11re PR c++/10552 (Small sample using nested templates causes internal ↵Kriang Lerdsuwanakij4-0/+54
compiler error.) PR c++/10552 * pt.c (tsubst_copy): Handle TEMPLATE_DECL that is a member class template and has dependent context. * g++.dg/template/ttp6.C: New test. From-SVN: r66682
2003-05-11builtins: New directory.Richard Sandiford33-237/+505
* gcc.c-torture/execute/builtins: New directory. * gcc.c-torture/execute/string-opt-{3,4,16,17,18,19}.c: Move into gcc.c-torture/execute/builtins. * gcc.c-torture/execute/string-opt-asm-{1,2}.c: Likewise. * gcc.c-torture/execute/builtin-noret-{1,2}.c: Move to... * gcc.dg/torture: ...this new directory. Turn into link-only tests. * gcc.dg/no-builtin-1.c: Move into gcc.c-torture/execute/builtins. From-SVN: r66680
2003-05-11reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's patch.Alexandre Oliva2-9/+8
* reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's patch. From-SVN: r66677
2003-05-11diagnostic.c: Reorder functions for clarity...Zack Weinberg2-340/+364
* diagnostic.c: Reorder functions for clarity, putting all the functions in the "error" family next to each other, and likewise all the functions in the "error_with_decl" family. Some other routines were moved too. Add comments. (vbuild_message_string): Fold into sole caller. From-SVN: r66676
2003-05-11Daily bump.GCC Administrator1-1/+1
From-SVN: r66674
2003-05-10except.c (EH_RETURN_STACKADJ_RTX): Do not define.Ulrich Weigand11-103/+120
* except.c (EH_RETURN_STACKADJ_RTX): Do not define. (EH_RETURN_HANDLER_RTX): Likewise. (expand_builtin_eh_return): Do not copy stack adjustment if EH_RETURN_STACKADJ_RTX is not defined. (expand_eh_return): Likewise. Also, do not pass stack adjustment as argument to the eh_return pattern. * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just because EH_RETURN_STACKADJ_RTX is not defined. * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX is not defined, treat stack pointer like a regular register. (uw_init_context_1): Set up fake initial stack pointer register. (uw_install_context_1): Do not compute stack adjustment if EH_RETURN_STACKADJ_RTX is not defined. * config/i386/i386.md ("eh_return"): Remove first argument. * config/mips/mips.md ("eh_return"): Likewise. * config/rs6000/rs6000.md ("eh_return"): Likewise. * config/sh/sh.md ("eh_return"): Likewise. * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove. From-SVN: r66672
2003-05-10* config/i386/i386.h (MODES_TIEABLE_P): Fix typo.Alexander Aganichev2-1/+5
From-SVN: r66670
2003-05-10defaults.h (GCOV_TYPE_SIZE): Remove.Nathan Sidwell8-129/+177
* defaults.h (GCOV_TYPE_SIZE): Remove. * gcov-io.h (gcov_type): Set to specific mode int on target. (gcov_unsigned_t, gcov_position_t): New. (GCOV_TYPE_NODE): New. (GCOV_TAG_SUMMARY_LENGTH): Adjust. (GCOV_COUNTERS_SUMMABLE): New. (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn, gcov_ctr_info, gcov_info): Adjust types. (gcov_var): Adjust types. (gcov_write_unsigned, gcov_write_tag, gcov_write_length, gcov_write_tag_length, gcov_write_summary, gcov_read_unsigned, gcov_read_summary): Adjust gcov types. (gcov_position, gcov_sync, gcov_seek): Adjust gcov types. * gcov-io.c (gcov_write_unsigned, gcov_write_tag, gcov_write_length, gcov_write_tag_length, gcov_write_summary, gcov_read_unsigned, gcov_read_summary): Adjust gcov types. * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit, __gcov_init, __gcov_merge_add): Adjust gcov types. * coverage.c (ctr_merge_functions): Constify. (ctr_names): New. (read_counts_file): Adjust gcov types. Only summarize & merge summable counters. (coverage_counter_ref): Use GCOV_TYPE_NODE. (build_fn_info_type, build_fn_info_value, build_ctr_info_type, build_ctr_info_value, build_gcov_info): Adjust types. * profile.c (branch_prob): Adjust gcov types. * gcov_dump (dump_file): Adjust gcov types. From-SVN: r66668
2003-05-10Properly remove previous patch.Richard Kenner1-8/+0
From-SVN: r66667
2003-05-10defer a mistake until laterBruce Korb1-7/+7
From-SVN: r66666
2003-05-10* pt.c (instantiate_decl): Call push/pop_deferring_access_checks.Kriang Lerdsuwanakij2-0/+9
From-SVN: r66665
2003-05-10arm.md (DOM_CC_X_AND_Y, [...]): New constants.Richard Earnshaw4-20/+94
* arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New constants. (ior_scc_scc, and_scc_scc): New insn_and_split patterns. * arm.c (arm_select_dominance_cc_mode): Renamed from select_dominance_cc_mode, no-longer static. Use DOM_CC... constants. Callers updated. * arm-protos.h (arm_select_dominance_cc_mode): Add prototype. From-SVN: r66662
2003-05-10revert: vxxscale.h, [...]: New files.Richard Kenner8-219/+4
Revert: 2003-05-09 Olivier Hainque <hainque@act-europe.fr> * config/arm/vxxscale.h, config/arm/vxxscale-coff.h: New files. * config/arm/vxxscale-elf.h, config/arm/t-vxxscale-elf: Likewise. * config.gcc (xscale-coff-vxworks, xscale-wrs-vxworks): New new cases. * fixinc/fixinc.copy: New file. * fixinc/mkfixinc.sh (*-vxworks*): New case, using above. From-SVN: r66661
2003-05-10re PR c++/9252 ([New parser] Errors due to legally used "typename")Kriang Lerdsuwanakij15-60/+115
PR c++/9252 * cp-tree.h (saved_scope): Remove check_access field. (tsubst_flags_t): Remove tf_parsing. * decl.c (maybe_push_to_top_level): Don't initialize scope_chain->check_access. (make_typename_type, make_unbound_class_template): Don't use tf_parsing. (register_dtor_fn): Use push/pop_deferring_access_checks instead of scope_chain->check_access. * method.c (use_thunk): Likewise. * parser.c (cp_parser_explicit_instantiation (cp_parser_constructor_declarator_p): Don't call push/pop_deferring_access_checks here. (cp_parser_template_argument, cp_parser_class_name): Don't use tf_parsing. (yyparse): Check flag_access_control. * pt.c (instantiate_class_template): Call push/pop_deferring_access_checks. * semantics.c (push_deferring_access_checks): Propagate dk_no_check. (perform_or_defer_access_check): Make sure basetype_path is a type before comparison. * call.c (build_op_delete_call, build_over_call): Use perform_or_defer_access_check. * class.c (alter_access): Likewise. * init.c (build_offset_ref): Likewise. * lex.c (do_identifier): Likewise. * method.c (hack_identifier): Likewise. * search.c (lookup_member): Likewise. * semantics.c (finish_non_static_data_member): Likewise. (simplify_aggr_init_exprs_r): Use push/pop_deferring_access_checks instead of flag_access_control. * g++.dg/parse/access8.C: New test. * g++.dg/parse/access9.C: New test. From-SVN: r66660
2003-05-10re PR c++/9554 (Out of class declaration of member class template ↵Kriang Lerdsuwanakij6-50/+132
specialisation rejected) PR c++/9554 * parser.c (cp_parser_class_name): Remove check_access parameter. All caller adjusted. Update declaration. (cp_parser_lookup_name): Likewise. * semantics.c (push_deferring_access_checks): Change parameter type to enum deferring_kind. All caller adjusted. (resume_deferring_access_checks): Adjust to use new enum. (stop_deferring_access_checks): Likewise. (perform_or_defer_access_check): Likewise. * cp-tree.h (deferring_kind): New enum. (deferred_access): Adjust field type. (push_deferring_access_checks): Update declaration. * g++.dg/parse/access1.C: New test. From-SVN: r66659
2003-05-10alpha.c (alpha_start_function): Declare frame_size as unsigned to avoid ↵Roger Sayle2-1/+6
signed/unsigned comparison warnings. * config/alpha/alpha.c (alpha_start_function): Declare frame_size as unsigned to avoid signed/unsigned comparison warnings. From-SVN: r66654
2003-05-09stdarg1.C: Make sure arg "3" is passed as a long, and not an int.DJ Delorie2-1/+6
* g++.dg/other/stdarg1.C: Make sure arg "3" is passed as a long, and not an int. From-SVN: r66653
2003-05-10Daily bump.GCC Administrator1-1/+1
From-SVN: r66651
2003-05-09xtensa.c (xtensa_emit_loop_end): Only use "nop.n" instruction if the Xtensa ↵Bob Wilson2-2/+7
density option is enabled. * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n" instruction if the Xtensa density option is enabled. From-SVN: r66649
2003-05-09Treelang fixes including built failures on PPC and others.Tim Josling5-8/+31
From-SVN: r66647
2003-05-09mklibgcc.in: Remove extra quotes.Matt Kraai2-1/+5
2003-05-09 Matt Kraai <kraai@alumni.cmu.edu> * mklibgcc.in: Remove extra quotes. From-SVN: r66644
2003-05-09rs6000.c (spe_init_builtins): Fix typo in creation of int_ftype_void.Mark Mitchell2-2/+6
* config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation of int_ftype_void. From-SVN: r66642
2003-05-09vxxscale.h, [...]: New files.Olivier Hainque8-0/+223
* config/arm/vxxscale.h, config/arm/vxxscale-coff.h: New files. * config/arm/vxxscale-elf.h, config/arm/t-vxxscale-elf: Likewise. * config.gcc (xscale-coff-vxworks, xscale-wrs-vxworks): New new cases. * fixinc/fixinc.copy: New file. * fixinc/mkfixinc.sh (*-vxworks*): New case, using above. From-SVN: r66639
2003-05-09reload1.c (reload_cse_move2add): Don't turn an implicit truncation into a ↵Alexandre Oliva2-4/+22
self-set in the narrow mode. * reload1.c (reload_cse_move2add): Don't turn an implicit truncation into a self-set in the narrow mode. From-SVN: r66638
2003-05-09* arm.md (clzsi2): The CLZ instruction is predicable.Richard Earnshaw2-1/+6
From-SVN: r66637
2003-05-09* config/xtensa/xtensa.c: Formatting.Bob Wilson2-60/+64
From-SVN: r66636
2003-05-09tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS...Diego Novillo2-1/+7
* tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS, instead of TREE_OPERAND to access the operand of a CONSTRUCTOR node. From-SVN: r66635
2003-05-09PR c++/10555, c++/10576Kriang Lerdsuwanakij4-0/+39
PR c++/10555, c++/10576 * pt.c (lookup_template_class): Handle class template with multiple levels of parameters when one of the levels contain errors. * g++.dg/template/memclass1.C: New test. From-SVN: r66634
2003-05-09tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only one operand.Diego Novillo2-1/+6
* tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only one operand. From-SVN: r66630
2003-05-09toplev.h (warning_with_file_and_line): Don't declare.Gabriel Dos Reis3-36/+7
* toplev.h (warning_with_file_and_line): Don't declare. (error_with_file_and_line): Likewise. * diagnostic.c (error_with_file_and_line): Remove. (warning_with_file_and_line): Likewise. From-SVN: r66628
2003-05-09c-parse.in (if_stmt_locus): New object.Gabriel Dos Reis4-11/+27
* c-parse.in (if_stmt_locus): New object. (if_prefix rule): Use it. Don't use warning_with_file_and_line. (select_or_iter_stmt rule): Likewise. (if_stmt_file): Remove. (if_stmt_line): Likewise. * jump.c: include "diagnostic.h" (never_reached_warning): Don't use warning_with_file_and_line. * Makefile.in (jump.o): Add dependce on diagnostic.h From-SVN: r66627
2003-05-09expr.c (move_block_from_reg): Remove "size" parm.Alan Modra15-80/+94
* expr.c (move_block_from_reg): Remove "size" parm. Localize vars. Move code handling pieces not larger than a word to.. * function.c (assign_parms): ..here, but use change_address instead of adjust_address and operand_subword, and expand_binop instead of expand_shift. Adjust calls to move_block_from_reg. * expr.h (move_block_from_reg): Update declaration. (copy_blkmode_from_reg): Formatting. * Makefile.in (function.o): Add $(OPTABS_H) to deps. * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust move_block_from_reg calls. * config/arc/arc.c (arc_setup_incoming_varargs): Likewise. * config/i960/i960.c (i960_setup_incoming_varargs): Likewise. * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise. * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise. * config/mips/mips.c (mips_setup_incoming_varargs): Likewise. * config/pa/pa.c (hppa_builtin_saveregs): Likewise. * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise. * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise. * config/sh/sh.c (sh_builtin_saveregs): Likewise. From-SVN: r66623
2003-05-09Daily bump.GCC Administrator1-1/+1
From-SVN: r66621
2003-05-08stormy16.c (xstormy16_expand_builtin_va_arg): Fix to handle arguments for ↵DJ Delorie4-19/+47
which MUST_PASS_IN_STACK is true (e.g.... * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix to handle arguments for which MUST_PASS_IN_STACK is true (e.g., variable-sized types). (xstormy16_function_arg): New. Pass them that way too. * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New. * config/stormy16/stormy16.h (FUNCTION_ARG): Call it. From-SVN: r66619
2003-05-0820020404-1.x: New, skip for 16-bit targets.DJ Delorie7-0/+35
* gcc.c-torture/execute/20020404-1.x: New, skip for 16-bit targets. * gcc.c-torture/execute/20021024-1.x: Likewise. * gcc.c-torture/execute/shiftdi.x: Likewise. * g++.old-deja/g++.mike/p700.C: Handle 16-bit targets. * g++.old-deja/g++.other/exprstmt1.C: Likewise. * gcc.dg/20021018-1.c: Likewise. From-SVN: r66618
2003-05-08mklibgcc.in: Use mkinstalldirs when installing multilib directories.Aldy Hernandez2-2/+7
2003-05-07 Aldy Hernandez <aldyh@redhat.com> * mklibgcc.in: Use mkinstalldirs when installing multilib directories. From-SVN: r66613
2003-05-08sh.c (gen_block_redirect, [...]): Use CODE_FOR_jump_compact instead of ↵J"orn Rennecke2-3/+8
CODE_FOR_jump * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact instead of CODE_FOR_jump From-SVN: r66611
2003-05-08objc-act.c (error_with_ivar): Don't use error_with_file_and_line.Gabriel Dos Reis2-10/+11
* objc/objc-act.c (error_with_ivar): Don't use error_with_file_and_line. (warn_with_method): Don't use warning_with_file_and_line. From-SVN: r66607
2003-05-08stmt.c (emit_locus): New macro.Gabriel Dos Reis2-16/+27
* stmt.c (emit_locus): New macro. (emit_filename): Remove. (emit_lineno): Likewise. (struct stmt_status): Replace members x_emit_filename and x_emit_lineno with x_emit_locus. (set_file_and_line_for_stmt): Adjust. (expand_expr_stmt_value): Don't use warning_with_file_and_file. (warn_if_unused_value): Likewise. (check_seenlabel): Likewise. From-SVN: r66603
2003-05-08Fix an entry.David O'Brien1-0/+1
From-SVN: r66602
2003-05-08* g++.dg/other/packed1.C: Mark xfail for sparc*- not sparc-.Kaveh R. Ghazi2-1/+3
From-SVN: r66601
2003-05-08c-decl.c (define_label): Tidy.Gabriel Dos Reis2-29/+31
* c-decl.c (define_label): Tidy. Don't use any of error_with_file_and_line or warning_with_file_and_file. (pending_xref_error): Likewise. (store_parm_decls): Likewise. (current_function_prototype_locus): New object. Package from current_function_prototype_file and current_function_prototype_line. (start_function): Use it. (current_function_prototype_file): Remove. (current_function_prototype_line): Remove; From-SVN: r66599
2003-05-08builtins.c (readonly_data_expr): New function.Kaveh R. Ghazi4-21/+88
gcc: * builtins.c (readonly_data_expr): New function. (expand_builtin_memmove): Optimize any rodata source, not just strings. testsuite gcc.c-torture/execute/string-opt-19.c: Add general rodata tests. (bcopy): Call memmove. From-SVN: r66597
2003-05-08re PR fortran/8485 (g77 doesn't accept INTEGER*8 constant in PARAMETER ↵Roger Sayle5-16/+130
multiplication) PR fortran/8485 * target.h (FFETARGET_REAL_VALUE_FROM_INT_): Cast to HOST_WIDE_INT instead of long. (FFETARGET_REAL_VALUE_FROM_LONGLONG_): New macro. (FFETARGET_LONGLONG_FROM_INTS_): New macro. (ffetarget_convert_complex1_integer4): Implement. (ffetarget_convert_complex2_integer4): Implement. (ffetarget_convert_integer4_complex1): Implement. (ffetarget_convert_integer4_complex2): Implement. (ffetarget_convert_integer4_real1): Implement. (ffetarget_convert_integer4_real2): Implement. (ffetarget_convert_real1_integer4): Implement. (ffetarget_convert_real2_integer4): Implement. * com.c (ffecom_constantunion): Handle INTEGER*8. (ffecom_constantunion_with_type): Likewise. * g77.f-torture/compile/8485.f: New test case. From-SVN: r66596
2003-05-08init.c (build_new_1): Don't reuse a TARGET_EXPR in an expression.Jason Merrill2-22/+37
* init.c (build_new_1): Don't reuse a TARGET_EXPR in an expression. Undo some of the recent reorg. From-SVN: r66594