aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-03-20cgraph.h (cgraph_node): Add prev_clone pointer.Jan Hubicka3-5/+16
* cgraph.h (cgraph_node): Add prev_clone pointer. * cgraph.c (cgraph_remove_node): Remove from doubly linked chain. (cgraph_clone_node): Produce doubly linked chain. From-SVN: r96761
2005-03-20c-common.c (handle_aligned_attribute, [...]): Do not strip NOPS from ↵Joseph Myers6-54/+17
INTEGER_CSTs. * c-common.c (handle_aligned_attribute, check_function_sentinel, get_nonnull_operand, handle_sentinel_attribute, check_function_arguments_recurse): Do not strip NOPS from INTEGER_CSTs. * c-decl.c (check_bitfield_type_and_width, build_enumerator): Likewise. * c-format.c (get_constant): Likewise. * c-parser.c (c_parser_postfix_expression): Likewise. * c-typeck.c (set_init_index): Likewise. (convert_arguments): Don't check for NOP_EXPR containing integer constant. From-SVN: r96760
2005-03-20builtins.c (fold_fixed_mathfn, [...]): Take decomposed arguments of CALL_EXPR.Kazu Hirata2-29/+25
* builtins.c (fold_fixed_mathfn, fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround): Take decomposed arguments of CALL_EXPR. (fold_builtin_1): Update calls to the functions mentioned above. From-SVN: r96759
2005-03-20c-decl.c (check_bitfield_type_and_width): Require bit-field width to have ↵Joseph Myers5-2/+36
integer type. * c-decl.c (check_bitfield_type_and_width): Require bit-field width to have integer type. (build_enumerator): Require enumerator value to have integer type. testsuite: * gcc.dg/bitfld-14.c, gcc.dg/enum3.c: New tests. From-SVN: r96755
2005-03-20Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r96753.2
2005-03-19extend.texi (__builtin_inf): Move statement about INFINITY to __builtin_inff.Joseph Myers2-1/+6
* doc/extend.texi (__builtin_inf): Move statement about INFINITY to __builtin_inff. From-SVN: r96748
2005-03-19c.opt (ansi, [...]): Correct descriptions.Joseph Myers2-4/+9
* c.opt (ansi, std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Correct descriptions. From-SVN: r96745
2005-03-19config.gcc: Consistently use solaris2.1[0-9]* instead of solaris2.1[0-9].Joseph Myers2-3/+8
gcc: * config.gcc: Consistently use solaris2.1[0-9]* instead of solaris2.1[0-9]. libcpp: * configure.ac: Consistently use solaris2.1[0-9]* instead of solaris2.1[0-9]. * configure: Regenerate. From-SVN: r96743
2005-03-19Fix dates on ChangeLogTobias Schlüter1-2/+2
From-SVN: r96740
2005-03-19re PR fortran/18525 (ICE on valid code in gfc_get_symbol_decl())Tobias Schlüter5-1/+34
fortran/ * dump-parse-tree.c (gfc_show_expr): Dump name of namespace in which the variable is declared. PR fortran/18525 * resolve.c (was_declared): Also check for dummy attribute. testsuite/ PR fortran/18525 * gfortran.dg/nesting_1.f90: New test. From-SVN: r96739
2005-03-19gfortran.h (arith): Remove ARITH_0TO0.Tobias Schlüter3-22/+16
* gfortran.h (arith): Remove ARITH_0TO0. * arith.c (gfc_arith_error): Remove handling of ARITH_0TO0. (gfc_arith_power): Remove special casing of zero to integral power zero. From-SVN: r96737
2005-03-19builtins.c (fold_trunc_transparent_mathfn): Take decomposed arguments of ↵Kazu Hirata2-9/+13
CALL_EXPR. * builtins.c (fold_trunc_transparent_mathfn): Take decomposed arguments of CALL_EXPR. (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil, fold_builtin_found, fold_builtin_1): Update calls to fold_trunc_transparent_mathfn. From-SVN: r96736
2005-03-19builtins.c (fold_builtin_memcpy): Take decomposed arguments of CALL_EXPR.Kazu Hirata2-6/+12
* builtins.c (fold_builtin_memcpy): Take decomposed arguments of CALL_EXPR. (expand_builtin_memcpy, fold_builtin_1): Update calls to fold_builtin_memcpy. From-SVN: r96735
2005-03-19re PR middle-end/20493 (Bootstrap failure because of aliased symbols)John David Anglin2-0/+26
PR middle-end/20493 * fold-const.c (fold_widened_comparison): Don't optimize casts of function pointers on targets that require function pointer canonicalization. (fold_sign_changed_comparison): Likewise. From-SVN: r96733
2005-03-19combine.c (try_combine): When changing the mode of a hard reg, make sure ↵Bernd Schmidt2-3/+14
that doing so is valid. * combine.c (try_combine): When changing the mode of a hard reg, make sure that doing so is valid. From-SVN: r96730
2005-03-19re PR c++/20240 (invalid using-redeclaration accepted)Kriang Lerdsuwanakij4-0/+28
PR c++/20240 * decl.c (decls_match): Compare context of VAR_DECL. * g++.dg/lookup/using13.C: New test. From-SVN: r96725
2005-03-19re PR c++/20333 (ICE on invalid code, typename outside of a template)Kriang Lerdsuwanakij4-7/+35
PR c++/20333 * parser.c (cp_parser_postfix_expression) <case RID_TYPENAME>: Check the return value of cp_parser_nested_name_specifier. * g++.dg/template/crash36.C: New test. From-SVN: r96720
2005-03-19avr.c (avr_init_stack, [...]): Make static.Richard Sandiford4-53/+105
* config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static. (TARGET_HANDLE_OPTION): Override default. (avr_handle_option): New function. * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP) (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS) (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS) (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS) (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK) (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG) (TARGET_SWITCHES, avr_init_stack, avr_mcu_name) (TARGET_OPTIONS): Delete. * config/avr/avr.opt: New file. From-SVN: r96719
2005-03-18Fix problem that caused compiled java code to trigger an internal gdb error.James E Wilson2-0/+12
PR c++/19769 * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract origin. From-SVN: r96715
2005-03-19Make-lang.in (fortran-warn): Remove -Wno-error.Kaveh R. Ghazi2-1/+14
* Make-lang.in (fortran-warn): Remove -Wno-error. (expr.o-warn, resolve.o-warn, simplify.o-warn, trans-common.o-warn): Specify -Wno-error. From-SVN: r96714
2005-03-19mn10300-protos.h: Remove the prototypes for call_address_operand, ↵Kazu Hirata6-37/+63
const_8bit_operand. * config/mn10300/mn10300-protos.h: Remove the prototypes for call_address_operand, const_8bit_operand. * config/mn10300/mn10300.c (call_address_operand, const_8bit_operand, const_1f_operand): Move to predicates.md. * config/mn10300/mn10300.h (PREDICATE_CODES): Remove. * config/mn10300/mn10300.md: Include predicates.md. * config/mn10300/predicates.md: New. From-SVN: r96712
2005-03-19Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r96710.2
2005-03-18c-common.c, [...]: Use %D for declarations in diagnostics and %E for ↵Joseph Myers5-89/+76
identifiers, not %s. * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for declarations in diagnostics and %E for identifiers, not %s. From-SVN: r96701
2005-03-18basic-block.h (scale_bbs_frequencies_int, [...]): Declare.Jan Hubicka5-28/+91
* basic-block.h (scale_bbs_frequencies_int, scale_bbs_frequencies_gcov_type): Declare. * cfg.c (RDIV): New macro. (update_bb_frequency_for_threading): Fix. * basic-block.h (scale_bbs_frequencies_int, scale_bbs_frequencies_gcov_type): New. * cfgloopmanip.c (scale_bbs_frequencies): Kill. (scale_loop_frequencies, duplicate_loop_to_header_edge): Use scale_bbs_frequencies_int. * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info. Co-Authored-By: Dale Johannesen <dalej@apple.com> From-SVN: r96700
2005-03-18v850.h (PREDICATE_CODES): Remove a nonexistent predicate.Kazu Hirata1-1/+1
* config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent predicate. From-SVN: r96699
2005-03-18v850.h (PREDICATE_CODES): Remove a nonexistent predicate in PREDICATE_CODES.Kazu Hirata2-1/+3
* config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent predicate in PREDICATE_CODES. From-SVN: r96698
2005-03-18pa-protos.h: Add prototypes for magic_milli and shadd_constant_p.Kazu Hirata6-532/+578
* config/pa/pa-protos.h: Add prototypes for magic_milli and shadd_constant_p. * config/pa/pa.c (reg_or_0_operand, call_operand_address, symbolic_operand, symbolic_memory_operand, reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand, indexed_memory_operand, move_dest_operand, move_src_operand, prefetch_cc_operand, prefetch_nocc_operand, reg_or_cint_move_operand, pic_label_operand, fp_reg_operand, arith_operand, arith11_operand, pre_cint_operand, post_cint_operan, arith_double_operand, ireg_or_int5_operand, ireg_operand, int5_operand, uint5_operand, int11_operand, uint32_operand, arith5_operand, and_operand, ior_operand, lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand, pc_or_label_operand, div_operand, plus_xor_ior_operator, shadd_operand, movb_comparison_operator, cmpib_comparison_operator): Move to predicates.md. (magic_milli, shadd_constant_p): Make it extern. * config/pa/pa.h (PREDICATE_CODES): Remove. * config/pa/pa.md: Include predicates.md. * config/pa/predicates.md: New. From-SVN: r96692
2005-03-18config/m32r/m32r-protos.h...Kazu Hirata6-488/+483
config/m32r/m32r-protos.h: Remove the prototypes for call_address_operand, symbolic_operand, seth_add3_operand, cmp_int16_operand, uint16_operand, reg_or_int16_operand, reg_or_uint16_operand, reg_or_cmp_int16_operand, two_insn_const_operand, move_src_operand, move_double_src_operand, move_dest_operand, eqne_comparison_operator, signed_comparison_operator, large_insn_p, conditional_move_operand, carry_compare_operand, m32r_block_immediate_operand, extend_operand, reg_or_eq_int16_operand, int8_operand, and reg_or_zero_operand. * config/m32r/m32r.c (call_address_operand, symbolic_operand, seth_add3_operand, int8_operand, cmp_int16_operand, uint16_operand, reg_or_int16_operand, reg_or_uint16_operand, reg_or_eq_int16_operand, reg_or_cmp_int16_operand, reg_or_zero_operand, two_insn_const_operand, move_src_operand, move_double_src_operand, move_dest_operand, eqne_comparison_operator, signed_comparison_operator, extend_operand, small_insn_p, large_insn_p, conditional_move_operand, carry_compare_operand, m32r_block_immediate_operand): Move to predicates.md. (MAX_MOVE_BYTES): Move to m32r.h. * config/m32r/m32r.h (PREDICATE_CODES): Remove. * config/m32r/m32r.md: Include predicates.md. * config/m32r/predicates.md: New. From-SVN: r96691
2005-03-18re PR c++/20463 (ICE on using undefined type)Paolo Carlini2-0/+14
2005-03-18 Paolo Carlini <pcarlini@suse.de> PR c++/20463 * g++.dg/template/crash35.C: New test. From-SVN: r96690
2005-03-18re PR c++/20463 (ICE on using undefined type)Paolo Carlini2-1/+9
2005-03-18 Paolo Carlini <pcarlini@suse.de> PR c++/20463 * parser.c (cp_parser_diagnose_invalid_type_name): Check TYPE_BINFO (current_class_type) before attempting to emit inform messages. From-SVN: r96689
2005-03-18hooks.c, [...]: Update copyright.Kazu Hirata22-21/+33
* hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c, config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/osf5.h, config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h, config/h8300/h8300-protos.h, config/h8300/h8300.c, config/h8300/h8300.h, config/ia64/unwind-ia64.c, doc/cppopts.texi: Update copyright. From-SVN: r96686
2005-03-18re PR middle-end/20225 (ICE during GC)Jan Hubicka3-10/+24
PR middle-end/20225 * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called too late. * varasm.c (find_decl_and_mark_needed): Mark needed only when not called too late. From-SVN: r96685
2005-03-18tree-into-ssa.c (find_idf): Use VEC_quick_push instead of VEC_safe_push.Kazu Hirata2-2/+11
* tree-into-ssa.c (find_idf): Use VEC_quick_push instead of VEC_safe_push. From-SVN: r96684
2005-03-18re PR java/20522 (ICE in update_aliases, at java/decl.c:163)Andrew Haley2-1/+17
2005-03-18 Andrew Haley <aph@redhat.com> PR java/20522 * decl.c (update_aliases): Don't update variables that are about to die. (maybe_poplevels): Add comment. From-SVN: r96683
2005-03-18combine.c (gen_binary): Remove.Paolo Bonzini2-289/+317
2005-03-01 Paolo Bonzini <bonzini@gnu.org> * combine.c (gen_binary): Remove. (known_cond, simplify_shift_const, find_split_point, combine_simplify_rtx, simplify_if_then_else, simplify_set, simplify_logical, expand_field_assignment, extract_left_shift, force_to_mode, if_then_else_cond, apply_distributive_law, simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine, simplify_comparison, reversed_comparison): Replace with simplify_gen_binary, simplify_gen_relational or distribute_and_simplify_rtx. (distribute_and_simplify_rtx): New function. From-SVN: r96681
2005-03-18ResyncArnaud Charlet1-0/+248
From-SVN: r96679
2005-03-18[multiple changes]Arnaud Charlet15-219/+224
2005-03-17 Vasiliy Fofanov <fofanov@adacore.com> * gnat_ugn.texi: Document gnatmem restriction 2005-03-17 Thomas Quinot <quinot@adacore.com> * snames.adb: Document new TSS names introduced by exp_dist/exp_tss cleanup 2005-03-17 Robert Dewar <dewar@adacore.com> * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb, a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb, s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting * casing.adb: Comment improvements 2005-03-17 Pascal Obry <obry@adacore.com> * g-expect.adb: Minor reformatting. From-SVN: r96678
2005-03-18switch-m.adb (Normalize_Compiler_Switches): Recognize switches -gnat83, ↵Vincent Celier1-1/+45
-gnat95 and -gnat05. 2005-03-17 Vincent Celier <celier@adacore.com> * switch-m.adb (Normalize_Compiler_Switches): Recognize switches -gnat83, -gnat95 and -gnat05. From-SVN: r96677
2005-03-18mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini" switch, not ↵Vincent Celier1-11/+12
supported by the linker on Darwin. 2005-03-17 Vincent Celier <celier@adacore.com> Nicolas Setton <setton@adacore.com> * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini" switch, not supported by the linker on Darwin. Add '_' before <library>init, as this character is added unconditionally by the compiler. (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the correct one ".dylib". This fixes detection of the archive files when building library projects. From-SVN: r96676
2005-03-18s-taprob.adb (Initialize_Protection): Initialize the protected object's ↵Jose Ruiz7-133/+345
owner to Null_Task. 2005-03-17 Jose Ruiz <ruiz@adacore.com> * s-taprob.adb (Initialize_Protection): Initialize the protected object's owner to Null_Task. (Lock): If pragma Detect_Blocking is in effect and the caller of this procedure is already the protected object's owner then Program_Error is raised. In addition the protected object's owner is updated. (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller of this procedure is already the protected object's owner then Program_Error is raised. In addition the protected object's owner is updated. (Unlock): Remove the ownership of the protected object. * s-taprob.ads (Protection): Add the field Owner, used to store the protected object's owner. This component is needed for detecting one type of potentially blocking operations (external calls on a protected subprogram with the same target object as that of the protected action). Document the rest of the components. * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries): Initialize the protected object's owner to Null_Task. (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the caller of this procedure is already the protected object's owner then Program_Error is raised. Do not raise Program_Error when this procedure is called from a protected action. (Unlock_Entries): Remove the ownership of the protected object. (Lock_Entries): If pragma Detect_Blocking is in effect and the caller of this procedure is already the protected object's owner then Program_Error is raised. Do not raise Program_Error when this procedure is called from a protected action. * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner, used to store the protected object's owner. * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in effect and this procedure (a potentially blocking operation) is called from whithin a protected action, Program_Error is raised. (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect and this procedure (a potentially blocking operation) is called from whithin a protected action, Program_Error is raised. From-SVN: r96675
2005-03-18sem_ch4.adb (Try_Primitive_Operation, [...]): Analyze the object that is ↵Javier Miranda1-3/+10
accessible through the prefix of the subprogram call... 2005-03-17 Javier Miranda <miranda@adacore.com> * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and Try_Object_Operation): Analyze the object that is accessible through the prefix of the subprogram call before we apply the transformation of the object-operation notation. From-SVN: r96674
2005-03-18sem_ch13.adb (New_Stream_Function, [...]): For a tagged limited type, the ↵Thomas Quinot1-2/+2
TSS is a newly built renaming declaration... 2005-03-17 Thomas Quinot <quinot@adacore.com> * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a tagged limited type, the TSS is a newly built renaming declaration: insert it using Set_TSS, not Copy_TSS. From-SVN: r96673
2005-03-18par.adb (Par): Improved msg for attempt to recompile predefined unitRobert Dewar1-23/+37
2005-03-17 Robert Dewar <dewar@adacore.com> * par.adb (Par): Improved msg for attempt to recompile predefined unit From-SVN: r96672
2005-03-18re PR ada/19519 (GNAT Bug Box when reading a program with UTF-8 encoded ↵Robert Dewar1-1/+15
enumeration literals) 2005-03-17 Robert Dewar <dewar@adacore.com> PR ada/19519 * namet.adb (Copy_One_Character): Set proper wide character encoding for upper half character if we have upper half encoding. From-SVN: r96671
2005-03-18Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.Doug Rupp2-6/+30
2005-03-17 Doug Rupp <rupp@adacore.com> * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads. * 5xcrtl.ads: Renamed to... * s-crtl-vms64.ads: ...this new file From-SVN: r96670
2005-03-18make.adb (Insert_Project_Sources): Make sure the Q is always initialized.Vincent Celier3-3/+9
2005-03-17 Vincent Celier <celier@adacore.com> * make.adb (Insert_Project_Sources): Make sure the Q is always initialized. * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against the default for the tree, not the global default naming. * prj-proc.adb (Recursive_Process): No need to put the default naming in the project data, it's already there. From-SVN: r96669
2005-03-18exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec...Thomas Quinot6-116/+122
2005-03-17 Thomas Quinot <quinot@adacore.com> * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this predicate available to other units. * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of reimplementing it. * sem_ch8.adb: Disable expansion of remote access-to-subprogram types when no distribution runtime library is available. * sem_res.adb, sem_dist.adb: Disable expansion of remote access-to-subprogram types when no distribution runtime library is available. (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this predicate available to other units. * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this predicate available to other units. From-SVN: r96668
2005-03-18exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed entity ↵Ed Schonberg1-3/+3
is an operator. 2005-03-17 Ed Schonberg <schonberg@adacore.com> * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed entity is an operator. From-SVN: r96667
2005-03-18exp_ch3.adb (Check_Attr): New subprogram.Thomas Quinot3-62/+134
2005-03-17 Thomas Quinot <quinot@adacore.com> * exp_ch3.adb (Check_Attr): New subprogram. (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement into a new Check_Attr subprogram, in order to provide a more explanatory error message (including the name of the missing attribute). (Stream_Operation_OK): Renamed from Stream_Operations_OK. This subprogram determines whether a default implementation exists for a given stream attribute. (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Determine whether to generate a default implementation for each stream attribute separately, as this depends on the specific attribute. * exp_strm.adb (Make_Field_Attribute): For the case of an illegal limited extension where a stream attribute is missing for a limited component (which will have been flagged in Exp_Ch3.Sem_Attr), do not generate a bogus reference to the missing attribute to prevent cascaded errors. Instead, generate a null statement. * sem_attr.adb (Check_Stream_Attribute): A stream attribute is available for a limited type if it has been specified for an ancestor of the type. From-SVN: r96666
2005-03-18exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to entry ↵Ed Schonberg1-2/+3
formals. 2005-03-17 Ed Schonberg <schonberg@adacore.com> * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to entry formals. From-SVN: r96665