aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2005-01-29re PR target/19690 (ICE with -O3 -march=athlon-xp -mfpmath=sse -mno-80387)Richard Henderson2-4/+10
PR target/19690 * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering of # and * in constraints. From-SVN: r94433
2005-01-29re PR middle-end/19689 (ICE in store_bit_field, at expmed.c)Richard Henderson3-6/+37
PR middle-end/19689 * expr.c (store_field): Don't strip sub-mode cast when the input data is even smaller. From-SVN: r94429
2005-01-29re PR middle-end/19687 (ICE with union initializer)Richard Henderson3-19/+47
PR middle-end/19687 * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a union being empty. From-SVN: r94421
2005-01-29combine.c (make_field_assignment): Fix argument order to gen_int_mode.Richard Henderson2-1/+6
* combine.c (make_field_assignment): Fix argument order to gen_int_mode. From-SVN: r94420
2005-01-30Daily bump.GCC Administrator2-2/+2
From-SVN: r94417
2005-01-29re PR tree-optimization/15791 (fold misses that two ADDR_EXPR of an arrary ↵Richard Guenther13-0/+253
obvious not equal) 2005-01-29 Richard Guenther <richard.guenther@uni-tuebingen.de> PR tree-optimization/15791 * fold-const.c (extract_array_ref): New function. (fold): Fold comparisons between &a[i] and &a[j] or semantically equivalent trees. * gcc.dg/tree-ssa/pr15791-1.c: New testcase. * gcc.dg/tree-ssa/pr15791-2.c: Likewise. * gcc.dg/tree-ssa/pr15791-3.c: Likewise. * gcc.dg/tree-ssa/pr15791-4.c: Likewise. * gcc.dg/tree-ssa/pr15791-5.c: Likewise. * g++.dg/tree-ssa/pr15791-1.C: Likewise. * g++.dg/tree-ssa/pr15791-2.C: Likewise. * g++.dg/tree-ssa/pr15791-3.C: Likewise. * g++.dg/tree-ssa/pr15791-4.C: Likewise. * g++.dg/tree-ssa/pr15791-5.C: Likewise. From-SVN: r94414
2005-01-29gcse.c (insert_expr_in_table): Revamp handling of available and ↵Jeff Law2-59/+30
anticipatable occurrence lists to avoid... * gcse.c (insert_expr_in_table): Revamp handling of available and anticipatable occurrence lists to avoid unnecessary list walking. (insert_set_in_table): Similarly. From-SVN: r94413
2005-01-29re PR fortran/18565 (gfortran: CONJG: false error message about standard ↵Paul Brook6-16/+106
violation) 2005-01-29 Paul Brook <paul@codesourcery.com> PR fortran/18565 * check.c (real_or_complex_check): New function. (gfc_check_fn_c, gfc_check_fn_r, gfc_check_fn_rc): New functions. * intrinsic.c (add_functions): Use new check functions. * intrinsic.h (gfc_check_fn_c, gfc_check_fn_r, gfc_check_fn_rc): Add prototypes. testsuite/ * gfortran.dg/double_complex_1.f90: New test. From-SVN: r94412
2005-01-29c-common.c (fix_string_type): Just use c_build_qualified_type to build ↵Joseph Myers9-80/+188
string type. * c-common.c (fix_string_type): Just use c_build_qualified_type to build string type. (c_build_qualified_type): Build qualified array types with TYPE_MAIN_VARIANT pointing to corresponding unqualified type. * c-decl.c (c_make_fname_decl): Build unqualified array type before qualified type. (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element type is qualified, not just if type itself is. Don't apply qualifiers to array type when declarator is processed. Apply qualifiers to field type whether or not it is an array type. Don't handle array types specially for applying qualifiers to variables. * c-typeck.c (composite_type): Build unqualified element type and array type when forming composite of array types. (common_pointer_type, comptypes, comp_target_types, type_lists_compatible_p, build_indirect_ref, build_array_ref, convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array types. (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE (args2) in variables a1 and a2. testsuite: * gcc.dg/Wwrite-strings-1.c, gcc.dg/array-quals-2.c, gcc.dg/lvalue-3.c: New tests. * gcc.dg/concat.c: Update expected messages. From-SVN: r94411
2005-01-29re PR libfortran/19595 ([4.0 only] eor does not work)Thomas Koenig4-1/+21
2005-01-29 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/19595 * io/transfer.c (data_transfer_init): eor requires advance="NO". testsuite/ * gfortran.dg/eor_1.f90: New test. From-SVN: r94410
2005-01-29re PR fortran/19589 (Regression: Error on Data assignment with LOGICAL*1)Steven G. Kargl4-0/+22
2005-01-29 Steven G. Kargl <kargls@comcast.net> PR fortran/19589 * expr.c (gfc_check_assign): Check for conformance of logical operands testsuite/ * gfortran.dg/logical_data_1.f90: New test. From-SVN: r94409
2005-01-29lang-specs.h, [...]: Update copyright.Kazu Hirata5-4/+9
* lang-specs.h, objc-act.c, objc-act.h, objc-lang.c: Update copyright. From-SVN: r94408
2005-01-29cse.c (n_elements_made, [...]): Remove.Kazu Hirata2-20/+7
* cse.c (n_elements_made, max_elements_made): Remove. (insert): Don't touch n_elements_made. (cse_main): Don't touch n_elements_made or max_elements_made. From-SVN: r94407
2005-01-29configure.in (noconfigdirs): Match like cris-*-*.Hans-Peter Nilsson3-103/+112
* configure.in (noconfigdirs) <crisv32-*-*>: Match like cris-*-*. <crisv32-*-*, cris-*-*>: Only disable target-newlib and target-libgloss when not *-*-elf and *-*-aout. * configure: Regenerate. From-SVN: r94404
2005-01-29re PR c++/19253 (bad error message / ICE for invalid template parameter)Mark Mitchell4-1/+20
PR c++/19253 * parser.c (cp_parser_diagnose_invalid_type_name): Commit to tentative parses. PR c++/19253 * g++.dg/template/crash33.C: New test. From-SVN: r94403
2005-01-29re PR c++/19667 (ICE on (very trivial) invalid)Mark Mitchell4-0/+26
PR c++/19667 * g++.dg/template/crash32.C: New test. PR c++/19667 * pt.c (redeclare_class_template): Robustify. From-SVN: r94402
2005-01-29re PR libgcj/19649 (java.util.Date.getTimezoneOffset returns negated output)Jeroen Frijters2-8/+16
2004-01-28 Jeroen Frijters <jeroen@frijters.net> PR libgcj/19649 * java/util/Date.java (Date(int,int,int), Date(int,int,int,int,int)): Delegate to other constructor. (Date(int,int,int,int,int,int)): Fixed to handle out-of-range arguments. (getTimezoneOffset): Inverted sign. From-SVN: r94401
2005-01-29Daily bump.GCC Administrator2-2/+2
From-SVN: r94399
2005-01-28re PR target/15384 (Lines witout effect in t-m68hc11-gas file)Stephane Carrez2-2/+8
PR target/15384 * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a configuration part of dp-bit.c to be lost. From-SVN: r94390
2005-01-28type_traits (is_function): Minor consistency tweaks.Paolo Carlini2-4/+17
2005-01-28 Paolo Carlini <pcarlini@suse.de> * include/tr1/type_traits (is_function): Minor consistency tweaks. From-SVN: r94385
2005-01-28libstdc++.exp (libstdc++_init): Search the path for the compiler.Geoffrey Keating11-51/+101
* testsuite/lib/libstdc++.exp (libstdc++_init): Search the path for the compiler. Don't set cxxflags. (v3_target_compile): Search for libv3test.a relative to $objdir. (lsearch_all_inline): New. (lsearch_all_inline_not): New. (v3-list-tests): Rewrite to not need generated files. * testsuite/Makefile.am (IGNORE_WCHAR_T): New. (IGNORE_THREAD): New. (TESTS_TO_IGNORE): New. (site.exp): Set tests_to_ignore, cxxflags. * aclocal.m4: Regenerate. * Makefile.in: Regenerate. * libmath/Makefile.in: Likewise. * libsupc++/Makefile.in: Likewise. * po/Makefile.in: Likewise. * src/Makefile.in: Likewise. * testsuite/Makefile.in: Likewise. From-SVN: r94384
2005-01-28expmed.c (expand_mult_highpart_optab): When attempting to use a non-widening ↵Roger Sayle2-3/+23
multiplication in a wider mode... * expmed.c (expand_mult_highpart_optab): When attempting to use a non-widening multiplication in a wider mode, the operands need to be converted (zero or sign extended) to that mode. From-SVN: r94383
2005-01-28re PR middle-end/16558 (bogus missing-return warning)Ian Lance Taylor2-0/+25
PR middle-end/16558 * g++.dg/warn/Wreturn-type-2.C: New test. From-SVN: r94382
2005-01-28re PR middle-end/16558 (bogus missing-return warning)Ian Lance Taylor2-2/+17
PR middle-end/16558 PR middle-end/19583 * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls through if both operands fall through. From-SVN: r94381
2005-01-28type_traits: Implement is_empty.Paolo Carlini4-3/+150
2005-01-28 Paolo Carlini <pcarlini@suse.de> * include/tr1/type_traits: Implement is_empty. * testsuite/tr1/4_metaprogramming/type_properties/is_empty/ is_empty.cc: New. * testsuite/tr1/4_metaprogramming/type_properties/is_empty/ typedefs.cc: Likewise. * include/tr1/type_traits (__is_abstract_helper): Simplify a bit. From-SVN: r94379
2005-01-28* cse.c (fold_rtx) <PC>: Don't optimize.Kazu Hirata2-11/+5
From-SVN: r94378
2005-01-28* gcc.dg/tree-ssa/20050128-1.c: New test.Jeff Law2-0/+17
From-SVN: r94377
2005-01-28fold-const.c (fold, [...]): Optimize 0 % X.Jeff Law2-1/+7
* fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X. (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly. From-SVN: r94376
2005-01-28cse.c (cse_reg_info_free_list, [...]): Remove.Kazu Hirata2-20/+40
* cse.c (cse_reg_info_free_list, cse_reg_info_used_list, cse_reg_info_used_list_end): Remove. (cse_reg_info_list, cse_reg_info_list_free): New. (get_cse_reg_info): When allocating an instance of cse_reg_info, add it to the beginning of the cse_reg_info_list list. Remove code to maintain cse_reg_info_used_list. (new_basic_block): Reset the free list to the beginning of cse_reg_info_list. From-SVN: r94375
2005-01-28Fix date on my entry from this morning.Steven Bosscher1-1/+1
From-SVN: r94374
2005-01-28Rmove bogus line from last entry.Richard Sandiford1-1/+0
From-SVN: r94372
2005-01-28frv.c (bdesc_2arg): Remove __MDPACKH.Richard Sandiford4-2/+79
* config/frv/frv.c (bdesc_2arg): Remove __MDPACKH. (frv_init_builtins): Change its prototype to take 4 uhalf arguments. (frv_expand_mdpackh_builtin): New function. (frv_expand_builtin): Use it to expand __MDPACKH. * config/frv/media.h (__MDPACKH): Update prototype. * doc/extend.texi (__MDPACKH): Update documentation. From-SVN: r94371
2005-01-28type_traits: Implement is_abstract, by exploiting the resolution of DR core/337.Paolo Carlini6-23/+151
2005-01-28 Paolo Carlini <pcarlini@suse.de> * include/tr1/type_traits: Implement is_abstract, by exploiting the resolution of DR core/337. * testsuite/testsuite_tr1.h: Add AbstractClass. * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/ is_abstract.cc: New. * testsuite/tr1/4_metaprogramming/type_properties/is_abstract/ typedefs.cc: Likewise. * include/tr1/type_traits (is_function): Rewrite, use the conversion F& -> F* instead, thus avoiding problems with abstract classes. * testsuite/tr1/4_metaprogramming/primary_type_categories/ is_function/is_function.cc: Add a test for tricky AbstractClass. From-SVN: r94370
2005-01-28i386.c (ix86_expand_fp_absneg_operator): Use SSE_FLOAT_MODE_P for use_sse ↵Uros Bizjak2-1/+6
computation. * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use SSE_FLOAT_MODE_P for use_sse computation. From-SVN: r94365
2005-01-28* gcc.dg/tree-ssa/20030711-2.c: Run at -O2, not -O1.Steven Bosscher2-1/+5
From-SVN: r94364
2005-01-28re PR target/19663 (LINK_GCC_C_SEQUENCE_SPEC doesn't play nice with RTEMS)Ralf Corsepius2-0/+8
2005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org> PR target/19663 * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine. From-SVN: r94363
2005-01-28objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before calling ↵Matt Austern2-0/+6
instantiate_pending_templates. * objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before calling instantiate_pending_templates. From-SVN: r94362
2005-01-27builtins.c (expand_builtin_copysign): New.Richard Henderson12-63/+484
* builtins.c (expand_builtin_copysign): New. (expand_builtin): Call it. * genopinit.c (optabs): Add copysign_optab. * optabs.c (init_optabs): Initialize it. (expand_copysign): New. * optabs.h (OTI_copysign, copysign_optab): New. (expand_copysign): Declare. * config/alpha/alpha.md (UNSPEC_COPYSIGN): New. (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New. * config/i386/i386.c (ix86_build_signbit_mask): Split from ... (ix86_expand_fp_absneg_operator): ... here. (ix86_split_copysign): New. * config/i386/i386-protos.h: Update. * config/i386/i386.md (UNSPEC_COPYSIGN): New. (copysignsf3, copysigndf3): New. * config/ia64/ia64.md (UNSPEC_COPYSIGN): New. (copysignsf3, ncopysignsf3): New. (copysigndf3, ncopysigndf3): New. (copysignxf3, ncopysignxf3): New. * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN. From-SVN: r94357
2005-01-27* gcc.dg/uninit-I.c: Fix typos in dg-options and dg-warning directives.Richard Henderson2-2/+6
From-SVN: r94356
2005-01-28Daily bump.GCC Administrator2-2/+2
From-SVN: r94354
2005-01-27cse.c: (find_best_addr): Don't call copy_rtx before calling fold_rtx.Arend Bayer2-15/+29
* cse.c: (find_best_addr): Don't call copy_rtx before calling fold_rtx. Save cost recomputation if fold_rtx did nothing. (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is NULL_RTX. Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu> From-SVN: r94345
2005-01-27tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register definitions ↵Jeff Law2-14/+17
of SSA_NAMEs which are not being rewritten. * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register definitions of SSA_NAMEs which are not being rewritten. (rewrite_ssa_into_ssa): Only initialize the current definition of an SSA_NAME if that SSA_NAME has been marked for rewriting. If checking is enabled, assert that SSA_NAME_AUX is clear for all SSA_NAMEs before returning. From-SVN: r94343
2005-01-27Fix a couple of typos.Eric Botcazou1-1/+1
From-SVN: r94340
2005-01-27Makefile.in: Fix a-intnam.ads from previous commit, add 2005 to copyright.Laurent GUERBY3-2/+9
2005-01-27 Laurent GUERBY <laurent@guerby.net> * Makefile.in: Fix a-intnam.ads from previous commit, add 2005 to copyright. * a-intman-rtems.ads: Renamed to... * a-intnam-rtems.ads: From-SVN: r94335
2005-01-27* gcc.dg/intmax_t-1.c: Extend dg-error to cover mips*-elf targets.Richard Sandiford2-1/+5
From-SVN: r94332
2005-01-27* gcc.dg/mips-movcc-1.c, gcc.dg/mips-movcc-2.c, gcc.dg/mips-movcc-3.c,Richard Sandiford8-2/+43
* gcc.dg/mips-nmadd-1.c, gcc.dg/mips-nmadd-2.c, gcc.dg/mips-rsqrt-1.c, * gcc.dg/mips-rsqrt-2, gcc.dg/mips-rsqrt-3.c: Add dummy asm statements to cope with cases where the multilib options override the dg-options. From-SVN: r94331
2005-01-27Per request from Eric Botcazou, fix my ChangeLog entry of 26jan2005:Stuart Hastings2-2/+6
fix relative path, move new testcase to testsuite ChangeLog. From-SVN: r94329
2005-01-27c-common.def, [...]: Update copyright.Kazu Hirata18-17/+26
* c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c, cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h, tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c, config/avr/avr.md, config/cris/aout.h, config/cris/cris.h, config/mips/iris6.h, config/sh/sh.c: Update copyright. From-SVN: r94328
2005-01-27re PR middle-end/17278 (8% C++ compile-time regression in comparison with ↵Steven Bosscher3-5/+16
3.4.1 at -O1 optimization level) PR middle-end/17278 * opts.c (decode_options): Move flag_thread_jumps from -O1 and higher to -O2 and higher. Likewise for tree PRE. * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2 and better. From-SVN: r94325
2005-01-27re PR middle-end/19583 (Incorrect diagnostic: control may reach end of ↵Ian Lance Taylor3-0/+63
non-void function '...' being inlined) PR middle-end/19583 * gimple-low.c (try_catch_may_fallthru): New static function. (block_may_fallthru): Handle TRY_CATCH_EXPR. * tree-inline.c (expand_call_inline): Don't warn about reaching the end of a non-void function being inlined if the function uses a return slot. From-SVN: r94323