aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-03-19* tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.Richard Kenner2-1/+5
From-SVN: r79700
2004-03-19avr.md ("call_insn"): Handle explicit integer specially.Denis Chertykov2-13/+28
* config/avr/avr.md ("call_insn"): Handle explicit integer specially. (call_value_insn): Likewise. From-SVN: r79697
2004-03-19* tree.c (substitute_in_expr): Rewrite to simplify and be more generic.Richard Kenner2-143/+78
From-SVN: r79696
2004-03-19fold-const.c (negate_expr): Move the handling of constants ...Kazu Hirata2-15/+45
* fold-const.c (negate_expr): Move the handling of constants ... (fold_negate_const): ... here. From-SVN: r79693
2004-03-19[multiple changes]Arnaud Charlet4-65/+57
2004-03-19 Arnaud Charlet <charlet@act-europe.fr> * ada-tree.h: Update copyright notice. Minor reformatting. 2004-03-19 Olivier Hainque <hainque@act-europe.fr> * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions as regular exception objects and not as mere integers representing the condition code. The latter approach required some dynamics to mask off severity bits, which did not fit well into the GCC table based model. (gnat_to_gnu_entity, objects): Don't supply an external name for VMS exception data objects. We don't it and it would conflict with the other external symbol we have to generate for such exceptions. * trans.c (tree_transform, case N_Exception_Handler): Remove part of the special code for VMS exceptions, since these are now represented as regular exceptions objects. From-SVN: r79686
2004-03-19langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.Richard Kenner7-38/+48
* langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook. * langhooks.h (struct lang_hooks_for_types): New field hash_types. * tree.c (debug_no_type_hash): Deleted. (type_hash_canon): Abort if passed a variant. Check lang_hooks.types.hash_types. (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE. (build_array_type): Remove unnecessary allocation of pointer type. (build_complex_type): Properly qualify resulting type. * ada/decl.c (debug_no_type_hash): Remove. (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it. * ada/misc.c (LANG_HOOK_HASH_TYPE): Redefine. From-SVN: r79684
2004-03-19cxx-pretty-print.c (pp_cxx_unqualified_id): Use TEMPLATE_TYPE_PARM_INDEX ↵Richard Kenner3-2/+11
instead of TYPE_FIELDS. * cxx-pretty-print.c (pp_cxx_unqualified_id): Use TEMPLATE_TYPE_PARM_INDEX instead of TYPE_FIELDS. * search.c (dfs_unuse_fields): Add two more TREE_CODES that mean the field is named TEMPLATE_TYPE_PARM_INDEX. From-SVN: r79683
2004-03-19altivec-6.c: Use vector_size attribute, not mode.Paolo Bonzini3-3/+8
2004-03-19 Paolo Bonzini <bonzini@gnu.org> * gcc.dg/altivec-6.c: Use vector_size attribute, not mode. * gcc.dg/ppc64-abi-3.c: Likewise. From-SVN: r79682
2004-03-19rs6000.c (rs6000_init_builtins): Fix typo.Paolo Bonzini2-1/+5
2004-03-19 Paolo Bonzini <bonzini@gnu.org> * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo. From-SVN: r79681
2004-03-19sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of aggregate, ↵Laurent GUERBY2-1/+8
allows bootstrap from 3.3 on powerpc-darwin. 2004-03-19 Laurent GUERBY <laurent@guerby.net> * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of aggregate, allows bootstrap from 3.3 on powerpc-darwin. From-SVN: r79677
2004-03-19expmed.c (choose_mult_variant, [...]): New, split from...Richard Sandiford2-264/+304
* expmed.c (choose_mult_variant, expand_mult_const): New, split from... (expand_mult): ...here. (extract_high_half): New, split out from expand_mult_highpart. (expand_highpart_optab): Likewise. Don't clobber target prematurely. (expand_highpart): Evaluate the cost of a shift/add sequence, then see if any of the specialized optabs are cheaper. From-SVN: r79673
2004-03-19re PR c++/14545 (Cannot compile pooma-gcc (regression))Giovanni Bajo5-2/+64
PR c++/14545 * parser.c (cp_parser_functional_cast): A cast to anything but integral or enumaration type is not an integral constant expression. * pt.c (value_dependent_expression_p): Handle cast expressions without operands (such as "int()"). PR c++/14545 * g++.dg/parse/template15.C: New test. From-SVN: r79672
2004-03-19semantics.c (finish_pseudo_destructor_expr): Allow differing ↵Mark Mitchell16-19/+167
cv-qualification between the type named by the... * semantics.c (finish_pseudo_destructor_expr): Allow differing cv-qualification between the type named by the pseudo-destructor-name and the object-type. * search.c (accessible_base_p): Handle non-proper bases. * name-lookup.c (do_nonmember_using_decl): If a using declaration refers to a single overloaded function, set the type of the function. * tree.c (lvalue_type): Simplify. * typeck.c (type_unknown_p): Do not assume all OVERLOADs have an unknown type. (build_unary_op): Handle OVERLOADs with known types. * decl.c (duplicate_decls): Do not destroy DECL_ARGUMENTS for function templates. * parser.c (cp_parser_postfix_expression): Handle the use of "typename" in non-dependent contexts. Convert appropriately when when using a qualified name after "->" or ".". * call.c (conditional_conversion): Honor the requirement that some conversions refer to the original object. * g++.dg/expr/dtor2.C: New test. * g++.dg/lookup/anon4.C: New test. * g++.dg/overload/using1.C: New test. * g++.dg/template/lookup7.C: New test. * g++.dg/template/typename6.C: New test. * g++.dg/expr/cond6.C: New test. From-SVN: r79671
2004-03-19* mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.Ian Lance Taylor2-4/+8
From-SVN: r79669
2004-03-19convert.c (convert_to_real): Add more math builtins.Kaveh R. Ghazi4-2/+61
* convert.c (convert_to_real): Add more math builtins. testsuite: * gcc.dg/torture/builtin-convert-1.c: Test more math builtins. From-SVN: r79668
2004-03-19* convert.c (convert_to_real): Reformat using switch stmt.Kaveh R. Ghazi2-33/+41
From-SVN: r79667
2004-03-19c-common.c (pointer_int_sum): Do not complain about using pointers to ↵Mark Mitchell10-13/+64
pointers-to-members. * c-common.c (pointer_int_sum): Do not complain about using pointers to pointers-to-members. * call.c (build_conditional_expr): Do not call force_rvalue for operands of void_type when the conditional expression itself has void type. * name-lookup.c (pushdecl): Don't consider a declaration of a function named "main" to be an overload of a type named "main". * parser.c (cp_parser_template_name): Perform name lookup when the template name is proceeded by "template" if the qualifying scope is non-dependent. * typeck.c (composite_pointer_type_r): Correctly handle pointer-to-member types. (build_const_cast): Likewise. * g++.dg/expr/cond5.C: New test. * g++.dg/expr/constcast1.C: Likewise. * g++.dg/expr/ptrmem2.C: Likewise. * g++.dg/expr/ptrmem3.C: Likewise. * g++.dg/lookup/main1.C: Likewise. * g++.dg/template/lookup6.C: Likewise. From-SVN: r79663
2004-03-19system.h (MD_ASM_CLOBBERS): Move to "Old target macros that have moved to ↵Kazu Hirata2-2/+7
the target hooks structure". * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that have moved to the target hooks structure". From-SVN: r79656
2004-03-19Daily bump.GCC Administrator1-1/+1
From-SVN: r79653
2004-03-18Another patch for pending SB-1 DFA scheduler.James E Wilson7-62/+71
* config/mips/mips.md (type): Split move into arith and fmove. Split hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses. * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs): Likewise. * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs): Likewise. * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo, rm7_fp_quick): Likewise. * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo, rm9k_fquick): Likewise. * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs): Likewise. (ir_sr70_icmp): Delete. From-SVN: r79650
2004-03-18cp-tree.def (TEMPLATE_TYPE_PARM, [...]): Update comments.Richard Kenner3-11/+27
* cp-tree.def (TEMPLATE_TYPE_PARM, TYPEOF_TYPE): Update comments. * cp-tree.h (NEW_EXPR_USE_GLOBAL, DELETE_EXPR_USE_GLOBAL): Add check. (DELETE_EXPR_USE_VEC, COMPOUND_EXPR_OVERLOADED): Likewise. (KOENIG_LOOKUP_P, PTRMEM_OK_P, TEMPLATE_TYPE_PARM_INDEX): Likewise. (TYPENAME_TYPE_FULLNAME): Add check and use type.values. (TYPEOF_TYPE_EXPR): New macro. From-SVN: r79645
2004-03-18* stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.Richard Kenner2-2/+2
From-SVN: r79642
2004-03-18Fix typo in comment.Richard Kenner1-1/+1
From-SVN: r79639
2004-03-18tree.h (TREE_CHECK2, [...]): New macros.Richard Kenner19-240/+490
* tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros. (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl. (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros. (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise. (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Protect with proper check. (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise. (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise. * tree.c (type_hash_eq): Rewrite to access proper fields for each type. (tree_check2_failed, tree_check3_failed, tree_check5_failed): New. * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES. * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES, not TYPE_FIELDS. * cp/class.c (finish_struct_bits): Use TYPE_VFIELD and TYPE_METHODS. * cp/error.c (dump_type): Use TYPEOF_TYPE_EXPR. * cp/pt.c (tsubst): Likewise. * cp/semantics.c (finish_typeof): Likewise. * cp/search.c (dfs_unuse_fields): Handle TYPENAME_TYPE, TYPEOF_TYPE, and TEMPLATE_TYPE_PARM. * cp/typeck.c (comptypes): Use TYPE_ORIG_SIZE_TYPE, not TYPE_DOMAIN. (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES. * java/java-tree.h: Changes throughout to add checking to macros and numerous whitespace changes. (VAR_OR_FIELD_CHECK): New macro. * java/jcf-write.c (get_access_flags): Use FIELD_PUBLIC, METHOD_PUBLIC, FIELD_FINAL, and METHOD_FINAL instead of CLASS_PUBLIC and CLASS_FINAL. * ada/ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking. (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise. (TYPE_RM_SIZE_INT): Directly use type.values. (TREE_LOOP_ID): Clean up check. * ada/decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use TYPE_VALUES, not TYPE_FIELDS. * ada/trans.c (convert_with_check): Delay access of bounds of basetype until sure is numeric. From-SVN: r79638
2004-03-18gcse.c (eliminate_partially_redundant_loads): Reject change if dest is set ↵Mostafa Hagog2-3/+10
between beginning and current insn. 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com> * gcse.c (eliminate_partially_redundant_loads): Reject change if dest is set between beginning and current insn. From-SVN: r79636
2004-03-18c-decl.c (grokdeclarator): Do not complain about redeclaring visible ↵Mark Mitchell6-1/+38
"static" identifiers "extern" in a... * c-decl.c (grokdeclarator): Do not complain about redeclaring visible "static" identifiers "extern" in a local scope. * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and post-increments/decrements. * gcc.dg/local1.c: New test. * gcc.dg/debug/dwarf2/c99-typedef1.c: New test. From-SVN: r79634
2004-03-18xtensa.c (current_function_arg_words): Delete.Bob Wilson2-3/+7
* config/xtensa/xtensa.c (current_function_arg_words): Delete. (xtensa_builtin_saveregs): Use current_function_args_info.arg_words. (xtensa_va_start): Remove assignment to current_function_arg_words. From-SVN: r79632
2004-03-18* be.po, da.po, el.po, es.po, ja.po, nl.po, sv.po, tr.po: Update.Joseph Myers9-65565/+78226
From-SVN: r79630
2004-03-18alias.c (record_set): Detect the case where a register is assigned a new ↵Richard Sandiford2-5/+21
value that has the same base... * alias.c (record_set): Detect the case where a register is assigned a new value that has the same base term as the old one. From-SVN: r79629
2004-03-18doloop.c: Removed.Zdenek Dvorak10-912/+612
* doloop.c: Removed. * loop-doloop.c: New file. * Makefile.in (doloop.o): Remove. (loop-doloop.o): New. * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare. * cfgloopanal.c (get_loop_level): New function. * loop-iv.c (iv_number_of_iterations): Handle case when loop is leaved immediatelly. * loop.c (strength_reduce): Do not call doloop optimization. * loop.h (LOOP_BCT): Removed. * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT. (rest_of_handle_loop2): Call doloop_optimize_loops. (rest_of_compilation): Test for optimizations moved to rest_of_handle_loop2. From-SVN: r79625
2004-03-18Fixed some stack size allocation in G5's mixed mode.Fariborz Jahanian3-3/+15
Oked by David Edelsohn. From-SVN: r79624
2004-03-18[multiple changes]Arnaud Charlet30-548/+1425
2004-03-18 Arnaud Charlet <charlet@act-europe.fr> * 5atpopsp.adb: Remove RTEMS from list of platforms using this file. Code clean up: * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb, 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use Specific.Set instead of direct call to e.g pthread_setspecific. 2004-03-18 Thomas Quinot <quinot@act-europe.fr> * adaint.c: Update comments. * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and GNATLIB_SHARED for FreeBSD. 2004-03-18 Jose Ruiz <ruiz@act-europe.fr> * init.c [VxWorks]: Do not fix the stack size for the environment task. When needed (stack checking) the stack size is retrieved from the VxWorks kernel. * Makefile.in: Flag -nostdinc is required when building the run time for avoiding looking for files in the base compiler. Add the VxWorks specific version of the package body for System.Stack_checking.Operations (5zstchop.adb). * Make-lang.in: Add the object file for System.Stack_Checking.Operations. * Makefile.rtl: Add object file for the package System.Stack_Checking.Operations. * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files. * s-stache.ads, s-stache.adb: Move the operations related to stack checking from this package to package System.Stack_Checking.Operations. This way, stack checking operations are only linked in the final executable when using the -fstack-check flag. 2004-03-18 Doug Rupp <rupp@gnat.com> * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads). Reorganize ifeq's. * 5qsystem.ads, 5xcrtl.ads: New files. 2004-03-18 Vincent Celier <celier@gnat.com> * prj.adb (Reset): Reset hash table Files_Htable * prj-env.adb (Source_Paths, Object_Paths): New tables. (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace the procedures Add_To_Path_File. (Set_Ada_Paths): Accumulate source and object dirs in the tables, making sure that each directory is present only once and, for object dirs, when a directory already present is added, the duplicate is removed and the directory is always put as the last in the table. Write the path files at the end of these accumulations. * prj-nmsc.adb (Record_Source): Add source file name in hash table Files_Htable for all sources. * prj-proc.adb (Process): Remove restrictions between not directly related extending projects. 2004-03-18 Emmanuel Briot <briot@act-europe.fr> * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode. (Find_Sources): Minor speed optimization. * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New parameter Trusted_Mode. 2004-03-18 Sergey Rybin <rybin@act-europe.fr> * scn.adb (Determine_License): Take into account a degenerated case when the source contains only comments. 2004-03-18 Ed Schonberg <schonberg@gnat.com> * sem_warn.adb (Check_References): For a warning on a selected component that does not come from source, locate an uninitialized component of the record type to produce a more precise error message. From-SVN: r79623
2004-03-18predict.c (propagate_freq): Compute correctly frequency of EXIT_BLOCK.Jan Hubicka2-1/+6
* predict.c (propagate_freq): Compute correctly frequency of EXIT_BLOCK. From-SVN: r79621
2004-03-18Daily bump.GCC Administrator1-1/+1
From-SVN: r79612
2004-03-17builtins.c (apply_args_size): Use reg_raw_mode.Eric Christopher2-87/+25
2004-03-17 Eric Christopher <echristo@redhat.com> * builtins.c (apply_args_size): Use reg_raw_mode. (apply_result_size): Ditto. From-SVN: r79609
2004-03-17* gcc.dg/torture/builtin-convert-1.c: New test.Kaveh R. Ghazi2-0/+120
From-SVN: r79591
2004-03-17re PR target/14577 (Switching sh-rtems to ELF)Ralf Corsepius2-1/+18
2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de> PR target/14577 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff. From-SVN: r79590
2004-03-17t-linux64 (bispecs): Don't add -mlong-double-128 for 32-bit builds when ↵Jakub Jelinek2-2/+10
defaulting to 32-bit. * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for 32-bit builds when defaulting to 32-bit. From-SVN: r79587
2004-03-17cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info array.Jan Hubicka2-2/+11
* cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info array. From-SVN: r79585
2004-03-17Patch for pending SB-1 DFA scheduler.James E Wilson7-101/+116
* config/mips/mips.md (zero_extendsidi2): Add length attribute. (hazard_nop): Change type to nop. (type): Split arith into arith, shift, slt, clz. Delete darith. Fix all uses. Change arith to multi if more than one insn emitted. * config/mips/5400.md (ir_vr54_arith): Likewise. * config/mips/5500.md (ir_vr55_arith): Likewise. * config/mips/7000.md (rm7_int_other): Likewise. * config/mips/9000.md (rm9k_int): Likewise. * config/mips/sr71k.md (ir_sr70_arith): Likewise. From-SVN: r79583
2004-03-17dwarf2out.c (subrange_type_die): Define new variable "subtype" to hold the ↵Joel Brobecker2-4/+10
subtype tree instead of recomputing... * dwarf2out.c (subrange_type_die): Define new variable "subtype" to hold the subtype tree instead of recomputing it several times. From-SVN: r79577
2004-03-17Fix stuff accidentally committed in previous patchMark Mitchell1-6/+6
From-SVN: r79574
2004-03-17mn10300.c (notice_update_cc): Don't handle CC_INVERT.Kazu Hirata3-9/+7
* config/mn10300/mn10300.c (notice_update_cc): Don't handle CC_INVERT. * config/mn10300/mn10300.md (cc): Remove "invert". From-SVN: r79573
2004-03-17builtins.c (integer_valued_real_p): Add builtin rint.Kaveh R. Ghazi5-0/+17
* builtins.c (integer_valued_real_p): Add builtin rint. (fold_builtin): Likewise. * convert.c (convert_to_real): Likewise. testsuite: * gcc.dg/torture/builtin-integral-1.c: Also check for `rint'. From-SVN: r79572
2004-03-17convert.c (convert_to_real): Fix typos in `long double' builtins.Kaveh R. Ghazi2-3/+8
* convert.c (convert_to_real): Fix typos in `long double' builtins. From-SVN: r79571
2004-03-17re PR c++/14481 (strange warning when assigning to bitfield)Mark Mitchell4-6/+30
PR c++/14481 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly generated COMPOUND_EXPRs. PR c++/14481 * g++.dg/warn/Wunused-7.C: New test. From-SVN: r79570
2004-03-17* config/h8300/t-rtems (h8300-*-rtems*): New.Ralf Corsepius2-0/+11
From-SVN: r79568
2004-03-17Fix typo in copyright year.Kaveh Ghazi1-1/+1
From-SVN: r79566
2004-03-17* gcc.dg/torture/builtin-integral-1.c: New test.Kaveh R. Ghazi2-0/+61
From-SVN: r79565
2004-03-17Daily bump.GCC Administrator1-1/+1
From-SVN: r79561