aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2006-02-26common.opt (-floop-optimize, [...]): Remove.Steven Bosscher14-84/+31
gcc/ * common.opt (-floop-optimize, -frerun-loop-opt): Remove. * tree-pass.h (pass_loop_optimize): Remove. * passes.c (pass_loop_optimize): Never run it. * toplev.c (backend_init): Don't call init_loop. * opts.c (flag_loop_optimize_set): Remove. (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt. (common_handle_option) <OPT_floop_optimize>: Remove. Don't disable the old RTL loop optimizer when profiling enabled. * predict.c (tree_estimate_probability): Always strip builtin_expect. * cfgcleanup.c (try_forward_edges): Don't avoid killing loop pre-headers for the sake of the old RTL loop optimizer. * Makefile.in: Remove all references to loop.o. * doc/invoke.texi: Remove all references to -floop-optimize and -frerun-loop-opt. testsuite/ * gcc.dg/20031201-1.c: Don't use -frerun-loop-opt. * g++.old-deja/g++.robertl/eb132.C: Likewise. From-SVN: r111459
2006-02-26md.texi (Machine Constraints): Refer to all files with paths relative to gcc ↵Zack Weinberg2-66/+72
directory (i.e. * doc/md.texi (Machine Constraints): Refer to all files with paths relative to gcc directory (i.e. config/CPU/file). Add missing @table @code ... @end table to M32C subsection. From-SVN: r111457
2006-02-26fold-const.c (fold_binary): Fold (X & 1) ^ 1 as (X & 1) == 0.Roger Sayle4-0/+72
* fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as (X & 1) == 0. <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0. * gcc.dg/fold-even-1.c: New test case. From-SVN: r111454
2006-02-26re PR tree-optimization/21137 (Convert (a >> 2) & 1 != 0 into a & 4 != 0)Roger Sayle4-0/+106
2006-02-26 Roger Sayle <roger@eyesopen.com> James A. Morrison <phython@gcc.gnu.org> PR middle-end/21137 * fold-const.c (fold_binary) <EQ_EXPR>: Fold ((X>>C1)&C2) eq/ne 0, when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the new constant C2<<C1, or as (X<0) or (X,false) depending upon the signedness of the shift operation. * gcc.dg/fold-eqandshift-1.c: New test case. Co-Authored-By: James A. Morrison <phython@gcc.gnu.org> From-SVN: r111453
2006-02-26re PR middle-end/25125 ((short) ((int)(unsigned short) + (int)) is done in ↵Dorit Nuzman4-0/+154
the wrong type) PR tree-optimization/25125 * gcc.dg/vect/wrapv-vect-7.c, gcc.dg/vect/wrapv-vect-reduc-2char.c, gcc.dg/vect/wrapv-vect-reduc-2short.c: New tests. From-SVN: r111452
2006-02-26re PR tree-optimization/26359 (Over optimization of loop when using ↵Dorit Nuzman5-0/+37
-ftree-vectorize) PR tree-optimization/26359 * tree-ssa-alias.c (new_type_alias): Set fields for new tag. From-SVN: r111451
2006-02-26Daily bump.GCC Administrator1-1/+1
From-SVN: r111449
2006-02-25simplify-rtx.c (simplify_relational_operation_1): Simplify (X^Y) == 0 as X ↵Roger Sayle2-1/+40
== Y and (X^Y) != 0 as X != Y. * simplify-rtx.c (simplify_relational_operation_1): Simplify (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y. Simplify (X^Y) == Y as X == 0, and some symmetry related transformations. Simplify (X^C1) == C2 as X == (C1^C2). Split long comment line. From-SVN: r111443
2006-02-25re PR middle-end/23673 (fold does not fold (a^b) != 0 to a != b)Roger Sayle6-0/+125
PR middle-end/23673 * fold-const.c (fold_binary) <EQ_EXPR>: Fold (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y. Fold (X^Y) == Y as X == 0, and some symmetry related transformations. Fold (X^C1) == C2 as X == (C1^C2). * gcc.dg/fold-eqxor-1.c: New test case. * gcc.dg/fold-eqxor-2.c: Likewise. * gcc.dg/fold-eqxor-3.c: Likewise. From-SVN: r111442
2006-02-25scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.Juergen Weigert2-0/+7
2006-02-25 Juergen Weigert <jw@suse.de> Richard Guenther <rguenther@suse.de> * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF. Co-Authored-By: Richard Guenther <rguenther@suse.de> From-SVN: r111440
2006-02-25re PR fortran/23092 ([4.1 only] scalar mask for minval/maxval/sum/product)Thomas Koenig4-6/+69
2006-02-25 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/23092 * trans-intrinsic.c (gfc_conv_intrinsic_arith): If the mask expression exists and has rank 0, enclose the generated loop in an "if (mask)". * (gfc_conv_intrinsic_minmaxloc): Likewise. 2006-02-25 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/23092 * scalar_mask_1.f90: New test. From-SVN: r111438
2006-02-25combine.c (gen_lowpart_or_truncate): Call simplify_gen_unary(TRUNCATE, ...) ↵Adam Nemet2-1/+6
instead of gen_rtx_TRUNCATE. * combine.c (gen_lowpart_or_truncate): Call simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE. From-SVN: r111437
2006-02-25Daily bump.GCC Administrator1-1/+1
From-SVN: r111435
2006-02-24invoke.texi: Move -fopenmp description to "Options for Code Generation".Diego Novillo2-9/+14
* doc/invoke.texi: Move -fopenmp description to "Options for Code Generation". Remove reference to -lgomp. From-SVN: r111429
2006-02-24* doc/install.texi: Require GNU tar version 1.14.David Edelsohn2-1/+5
From-SVN: r111428
2006-02-24Index: gcc/ChangeLogGeoffrey Keating16-7/+257
2006-02-24 Geoffrey Keating <geoffk@apple.com> * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS. * doc/invoke.texi (C++ Dialect Options): Document -fno-use-cxa-get-exception-ptr. * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1. * configure: Regenerate. * c.opt (fuse-cxa-get-exception-ptr): New. * c-opts.c (c_common_handle_option): Handle OPT_fuse_cxa_get_exception_ptr. * c-common.c (flag_use_cxa_atexit): Update documentation. (flag_use_cxa_get_exception_ptr): New. * c-common.h (flag_use_cxa_get_exception_ptr): New. * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve documentation. (C_COMMON_OVERRIDE_OPTIONS): New. Index: gcc/testsuite/ChangeLog 2006-02-24 Geoffrey Keating <geoffk@apple.com> * g++.dg/eh/uncaught1.C: Add dg-options for ppc-darwin. * g++.dg/eh/uncaught2.C: New. * g++.dg/eh/uncaught3.C: New. Index: gcc/cp/ChangeLog 2006-02-24 Geoffrey Keating <geoffk@apple.com> * except.c (expand_start_catch_block): Handle flag_use_cxa_get_exception_ptr. From-SVN: r111427
2006-02-24re PR middle-end/24952 (ICE: RTL check: expected code 'set' or 'clobber', ↵Roger Sayle2-1/+8
have 'unspec' in try_combine, at combine.c:2898) PR middle-end/24952 * combine.c (try_combine): Explicitly check whether GET_CODE is a SET or a CLOBBER, instead on checking that it isn't a USE. From-SVN: r111425
2006-02-24fold-const.c (fold_comparison): New subroutine of fold_binary containing ↵Roger Sayle2-686/+705
transformations common to both the... * fold-const.c (fold_comparison): New subroutine of fold_binary containing transformations common to both the equality and ordering relational operators, factored out of fold_binary. (fold_binary): Separate out the equality operators (EQ_EXPR and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR, LE_EXPR and GE_EXPR), calling fold_comparison to perform the transformations common to both. (fold_div_compare): Fix latent bugs in the previously unreachable LT_EXPR and GE_EXPR cases. From-SVN: r111423
2006-02-24re PR libfortran/26423 (Error on binary I/O for large array)Jerry DeLisle2-0/+28
2006-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/26423 * gfortran.dg/read_many_1.f: New test. From-SVN: r111421
2006-02-24rs6000.c (rs6000_init_builtins): Change decl libname for clog to __clog on AIX.David Edelsohn3-0/+18
* config/rs6000/rs6000.c (rs6000_init_builtins): Change decl libname for clog to __clog on AIX. * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define. From-SVN: r111418
2006-02-24re PR fortran/26409 (ICE on Assumed shape nested subroutine)Paul Thomas2-3/+10
2006-02-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/26409 * resolve.c (resolve_contained_functions, resolve_types, gfc_resolve): Revert patch of 2006-02-19. From-SVN: r111417
2006-02-24re PR fortran/24519 (gfortran slow because of incomplete dependency checking)Paul Thomas7-12/+135
2006-02-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/24519 * dependency.c (gfc_is_same_range): Correct typo. (gfc_check_section_vs_section): Call gfc_is_same_range. PR fortran/25395 * trans-common.c (add_equivalences): Add a new flag that is set when an equivalence is seen that prevents more from being reset until the start of a new traversal of the list, thus ensuring completion of all the equivalences. 2006-02-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/24519 * gfortran.dg/dependency_3.f90: New test. * gfortran.fortran-torture/execute/vect-3.f90: Remove two of the XFAILs. PR fortran/25395 * gfortran.dg/equiv_6.f90: New test. From-SVN: r111416
2006-02-24re PR target/26453 (Segfault with -m64 -mtraceback=full)Alan Modra2-3/+8
PR target/26453 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't output traceback table for thunks. Localise rs6000_stack_info call. From-SVN: r111415
2006-02-24gthr-posix.h (__gthrw): Fix typo in comment.Roger Sayle2-2/+7
* gthr-posix.h (__gthrw): Fix typo in comment. From-SVN: r111414
2006-02-24Daily bump.GCC Administrator1-1/+1
From-SVN: r111407
2006-02-24cpp.texi (Character sets): Document that we do support input files to be in ↵Geoffrey Keating2-6/+7
any character set. * doc/cpp.texi (Character sets): Document that we do support input files to be in any character set. From-SVN: r111401
2006-02-23tree.h (PHI_ARG_NONZERO): Remove.Jeff Law3-6/+7
* tree.h (PHI_ARG_NONZERO): Remove. * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO. (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old node to the new node. From-SVN: r111400
2006-02-23re PR tree-optimization/26425 (ice on valid C code with flag -Os)Jeff Law4-1/+24
PR tree-optimization/26425 * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL min/max, then assume its varying. * gcc.c-torture/compile/pr26425.c: New test. From-SVN: r111399
2006-02-23module.c (read_module): Remove redundant code lines.Erik Edelmann2-6/+4
2006-02-23 Erik Edelmann <eedelman@gcc.gnu.org> * module.c (read_module): Remove redundant code lines. From-SVN: r111398
2006-02-23re PR middle-end/26316 (loop-invariant miscompiles openmp.c)Zdenek Dvorak4-11/+46
PR rtl-optimization/26316 * rtlanal.c (enum may_trap_p_flags): New. (may_trap_p_1): Take flags instead of unaligned_mems argument. Ignore MEM_NOTRAP_P if flags & MTP_AFTER_MOVE. (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1. (may_trap_after_code_motion_p): New function. * loop-invariant.c (find_identical_invariants): Fix dump formating. (find_invariant_insn): Use may_trap_after_code_motion_p. * rtl.h (may_trap_after_code_motion_p): Declare. From-SVN: r111397
2006-02-23emit-rtl.c (immed_double_const): Cleanup.Zdenek Dvorak2-50/+18
* emit-rtl.c (immed_double_const): Cleanup. From-SVN: r111396
2006-02-23re PR tree-optimization/26376 (K+R style function compiled with -fipa-pta ICEs)Daniel Berlin2-6/+8
2006-02-23 Daniel Berlin <dberlin@dberlin.org> Fix PR tree-optimization/26376 * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree, remove assert. From-SVN: r111392
2006-02-23re PR middle-end/26412 (ICE with external arrays using OpenMP)Jakub Jelinek4-1/+30
PR middle-end/26412 * gimplify.c (omp_add_variable): Guard variable size decl test with DECL_SIZE (decl) check. * gcc.dg/gomp/pr26412.c: New test. From-SVN: r111391
2006-02-23re PR middle-end/26439 (missing VOPs for complex assignments)Richard Guenther2-5/+17
2006-02-23 Richard Guenther <rguenther@suse.de> PR middle-end/26439 * tree-ssa-structalias.c (find_func_aliases): Handle complex types like aggregate types. From-SVN: r111389
2006-02-23jcf-parse.c (parse_class_file): Set input_location from current_class.Andrew Haley2-1/+6
2006-02-20 Andrew Haley <aph@redhat.com> * jcf-parse.c (parse_class_file): Set input_location from current_class. From-SVN: r111383
2006-02-23[multiple changes]Jakub Jelinek10-1/+139
2006-02-23 Jakub Jelinek <jakub@redhat.com> * configure.ac: Add --with{,out}-long-double-128 configure option. (TARGET_DEFAULT_LONG_DOUBLE_128): New test. * configure: Rebuilt. * config.in: Rebuilt. * doc/install.texi (Options specification): Document --with-long-double-128. * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128] (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128. * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128] (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128. 2006-02-23 Aldy Hernandez <aldyh@redhat.com> * config/s390/s390.c (override_options): Handle TARGET_DEFAULT_LONG_DOUBLE_128. * config/alpha/alpha.c (override_options): Handle TARGET_DEFAULT_LONG_DOUBLE_128. * config/sparc/sparc.c (sparc_override_options): Handle TARGET_DEFAULT_LONG_DOUBLE_128. From-SVN: r111381
2006-02-23Daily bump.GCC Administrator1-1/+1
From-SVN: r111378
2006-02-22Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).Daniel Jacobowitz2-1/+19
* Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR). (real-install-headers-tar, real-install-headers-cpio) (real-install-headers-cp): New targets. From-SVN: r111372
2006-02-22tree.h (variable_section): Delete.Richard Sandiford3-14/+5
* tree.h (variable_section): Delete. * varasm.c (variable_section): Delete. From-SVN: r111369
2006-02-22re PR c++/26291 (Invalid ellipsis in operator not diagnosed)Volker Reichelt5-5/+35
PR c++/26291 * decl.c (grok_op_properties): Check for ellipsis in arguments of operators. * g++.dg/other/ellipsis1.C: New test. * g++.dg/parse/operator4.C: Adjust error marker. From-SVN: r111367
2006-02-22re PR target/25603 (Miscompiled FORTRAN program)H.J. Lu2-0/+65
2006-02-22 H.J. Lu <hongjiu.lu@intel.com> PR target/25603 * gfortran.dg/pr25603.f: New testcase. From-SVN: r111365
2006-02-22install.texi: Add notes on install.texi2html.Paolo Bonzini2-5/+15
2006-02-22 Paolo Bonzini <bonzini@gnu.org> * install.texi: Add notes on install.texi2html. (Building in parallel): Do not use footnotes. From-SVN: r111363
2006-02-22bf-spl1.c: Don't specify -m68000.Nathan Sidwell3-3/+7
* gcc.dg/bf-spl1.c: Don't specify -m68000. * g++.old-deja/g++.pt/static11.C: Xfail for m68k-elf From-SVN: r111360
2006-02-22Daily bump.GCC Administrator1-1/+1
From-SVN: r111353
2006-02-21re PR libgomp/26234 (--disable-libgomp is not documented)Aldy Hernandez2-0/+8
PR libgomp/26234 * doc/install.texi (Configuration): Document --disable-libgomp. From-SVN: r111345
2006-02-21* config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.Geoffrey Keating4-5/+47
From-SVN: r111344
2006-02-21sse.md (vec_extractv2df_1_sse): New.Alexandre Oliva2-0/+35
* config/i386/sse.md (vec_extractv2df_1_sse): New. (vec_extractv2df_0_sse): New. From-SVN: r111342
2006-02-21defaults.h (CFA_FRAME_BASE_OFFSET): Define.Alexandre Oliva5-32/+80
* defaults.h (CFA_FRAME_BASE_OFFSET): Define. * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override. * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document. * dwarf2out.c (build_cfa_loc): New offset parameter. Add it to the result of the expression. (def_cfa_1): Adjust. (frame_pointer_cfa_offset): Rename to... (frame_pointer_fb_offset): ... this. Adjust all uses. (convert_cfa_to_loc_list): Rename to... (convert_cfa_to_fb_loc_list): ... this. New offset parameter. Pass it on to build_cfa_loc. (compute_frame_pointer_to_cfa_displacement): Rename to... (compute_frame_pointer_to_fb_displacement): ... this. New offset parameter. Use it in computation. (gen_subprogram_die): Compute cfa_fb_offset with the new macro, and use it to compute the fb loc list and the displacement. From-SVN: r111341
2006-02-21predicates.md (cc_operand): Delete predicate.Bernd Schmidt5-30/+43
* config/bfin/predicates.md (cc_operand): Delete predicate. All uses replaced with register_operand. * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any non-DREG is expensive. * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed. * config/bfin/bfin.md (movbi): Fix constraints and template for moves involving memory. From-SVN: r111336
2006-02-21* doc/install.texi2html: Use set -e.Joseph Myers2-1/+7
From-SVN: r111332