aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-09-29re PR middle-end/24053 (ICE in build_int_cst_wide, at tree.c:795)Richard Kenner2-0/+7
PR middle-end/24053 * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype. From-SVN: r104800
2005-09-29* optabs.c (expand_binop): Initialize first_pass_p.Mark Mitchell2-1/+5
From-SVN: r104798
2005-09-29re PR middle-end/24109 (non unit-at-a-time failure with compound literals)Jakub Jelinek4-2/+43
PR middle-end/24109 * c-decl.c (c_write_global_declarations_1): If any wrapup_global_declaration_2 call returned true, restart the loop. * gcc.c-torture/execute/20050929-1.c: New test. From-SVN: r104794
2005-09-29re PR tree-optimization/24117 (struct is not marked fully as call clobbered)Daniel Berlin3-2/+34
2005-09-29 Daniel Berlin <dberlin@dberlin.org> Fix PR tree-optimization/24117 * tree-ssa-structalias.c (find_func_aliases): Strip nops before considering whether to use anyoffset. From-SVN: r104791
2005-09-29* gcc.dg/tree-ssa/ssa-ccp-11.c: Fix the test case and un-xfail.Steven Bosscher2-3/+7
From-SVN: r104777
2005-09-29Revert this patch:Paolo Bonzini2-24/+21
2005-09-15 Paolo Bonzini <bonzini@gnu.org> * optabs.c (expand_binop): Use swap_commutative_operands_with_target to order operands. (swap_commutative_operands_with_target): New. From-SVN: r104775
2005-09-29re PR c/21419 (Accepts writting to const via asm)Paolo Bonzini4-0/+32
gcc: 2005-09-29 Paolo Bonzini <bonzini@gnu.org> PR c/21419 * gimplify.c (gimplify_asm_expr): Raise an error if an output is read-only. testsuite: 2005-09-29 Paolo Bonzini <bonzini@gnu.org> PR c/21419 * gcc.dg/pr21419.c: New test. From-SVN: r104774
2005-09-29re PR tree-optimization/23911 (Failure to propagate constants from a const ↵Steven Bosscher4-0/+41
initializer for _Complex) gcc/ PR tree-optimization/23911 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR and IMAGPART_EXPR too. testsuite/ * gcc.dg/pr23911.c: New test. From-SVN: r104771
2005-09-29Added missing PR number toUros Bizjak1-0/+1
2005-09-20 Richard Henderson <rth@redhat.com> From-SVN: r104765
2005-09-29re PR middle-end/17886 (variable rotate and unsigned long long rotate should ↵Mark Mitchell4-22/+111
be better optimized) PR 17886 * expmed.c (expand_shift): Move logic to reverse rotation direction when rotating by constants ... * optabs.c (expand_binop): ... here. * config/i386/i386.md (rotrdi3): Handle 32-bit mode. (ix86_rotrdi3): New pattern. (rotldi3): Handle 32-bit mode. (ix86_rotldi3): New pattern. From-SVN: r104761
2005-09-29Index: ChangeLogGeoffrey Keating1-12/+39
2005-09-28 Geoffrey Keating <geoffk@apple.com> * Makefile.tpl (BASE_TARGET_EXPORTS): Add LIPO, STRIP. (LIPO_FOR_TARGET): New. (CONFIGURED_LIPO_FOR_TARGET): New. (USUAL_LIPO_FOR_TARGET): New. (STRIP_FOR_TARGET): New. (CONFIGURED_STRIP_FOR_TARGET): New. (USUAL_STRIP_FOR_TARGET): New. * Makefile.def (flags_to_pass): Add LIPO_FOR_TARGET and STRIP_FOR_TARGET. * configure.in: Set LIPO_FOR_TARGET, STRIP_FOR_TARGET, CONFIGURED_LIPO_FOR_TARGET, CONFIGURED_STRIP_FOR_TARGET. * Makefile.in: Regenerate. * configure.in: Regenerate. Index: gcc/ChangeLog 2005-09-28 Geoffrey Keating <geoffk@apple.com> * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET. (stage1-start): Delete old libgcc and libunwind before moving anything into the stage directory. (stage2-start): Likewise. (stage3-start): Likewise. (stage4-start): Likewise. (stageprofile-start): Likewise. (stagefeedback-start): Likewise. * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h header in tm_file and CPU-specific t-darwin in tmake_file. (i[34567]86-*-darwin*): Don't change tm_file. (powerpc-*-darwin*): Don't change tm_file or tmake_file. * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc shared library stub for target OS version. * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete. (SHLIB_LINK): Don't make SHLIB_SOLINK. (SHLIB_INSTALL): Don't install SHLIB_SOLINK. (libgcc_s.%.dylib): New. (LIBGCC): Define. (install-darwin-libgcc-stubs): New. (INSTALL_LIBGCC): New append. * config/i386/darwin-libgcc.10.4.ver: New. * config/i386/darwin-libgcc.10.5.ver: New. * config/i386/t-darwin: New. * config/rs6000/darwin-libgcc.10.4.ver: New. * config/rs6000/darwin-libgcc.10.5.ver: New. * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete. * config/rs6000/t-darwin (SHLIB_VERPFX): Define. From-SVN: r104756
2005-09-29t-darwin8: Uncomment contents, allow -m64 multilib to be built.Geoffrey Keating2-4/+5
* config/rs6000/t-darwin8: Uncomment contents, allow -m64 multilib to be built. From-SVN: r104755
2005-09-29Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r104752.2
2005-09-29re PR target/24102 (floatdisf2_internal2 broken)Alan Modra2-1/+7
PR target/24102 * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range check for numbers that need no bit twiddle. From-SVN: r104750
2005-09-28Index: ChangeLogGeoffrey Keating11-38/+392
2005-09-28 Geoffrey Keating <geoffk@apple.com> * Makefile.tpl (BASE_TARGET_EXPORTS): Add LIPO, STRIP. (LIPO_FOR_TARGET): New. (CONFIGURED_LIPO_FOR_TARGET): New. (USUAL_LIPO_FOR_TARGET): New. (STRIP_FOR_TARGET): New. (CONFIGURED_STRIP_FOR_TARGET): New. (USUAL_STRIP_FOR_TARGET): New. * Makefile.def (flags_to_pass): Add LIPO_FOR_TARGET and STRIP_FOR_TARGET. * configure.in: Set LIPO_FOR_TARGET, STRIP_FOR_TARGET, CONFIGURED_LIPO_FOR_TARGET, CONFIGURED_STRIP_FOR_TARGET. * Makefile.in: Regenerate. * configure.in: Regenerate. Index: gcc/ChangeLog 2005-09-28 Geoffrey Keating <geoffk@apple.com> * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET. (stage1-start): Delete old libgcc and libunwind before moving anything into the stage directory. (stage2-start): Likewise. (stage3-start): Likewise. (stage4-start): Likewise. (stageprofile-start): Likewise. (stagefeedback-start): Likewise. * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h header in tm_file and CPU-specific t-darwin in tmake_file. (i[34567]86-*-darwin*): Don't change tm_file. (powerpc-*-darwin*): Don't change tm_file or tmake_file. * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc shared library stub for target OS version. * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete. (SHLIB_LINK): Don't make SHLIB_SOLINK. (SHLIB_INSTALL): Don't install SHLIB_SOLINK. (libgcc_s.%.dylib): New. (LIBGCC): Define. (install-darwin-libgcc-stubs): New. (INSTALL_LIBGCC): New append. * config/i386/darwin-libgcc.10.4.ver: New. * config/i386/darwin-libgcc.10.5.ver: New. * config/i386/t-darwin: New. * config/rs6000/darwin-libgcc.10.4.ver: New. * config/rs6000/darwin-libgcc.10.5.ver: New. * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete. * config/rs6000/t-darwin (SHLIB_VERPFX): Define. From-SVN: r104747
2005-09-28fpgnulib.c (__extendsfdf2, [...]): Handle denormals.Paul Brook2-3/+32
2005-09-28 Paul Brook <paul@codesourcery.com> * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle denormals. From-SVN: r104745
2005-09-28re PR tree-optimization/23853 (ICE: in tree_low_cst, at tree.c:4270)Richard Guenther2-3/+9
2005-09-28 Richard Guenther <rguenther@suse.de> PR tree-optimization/23853 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use host_integerp to verify misalignment value. From-SVN: r104743
2005-09-28* g++.dg/opt/pr19650.C: Use -w -fpermissive.Mark Mitchell2-1/+3
From-SVN: r104742
2005-09-28builtins.c (get_builtin_sync_mode): New.Richard Henderson2-30/+65
* builtins.c (get_builtin_sync_mode): New. (expand_builtin_sync_operation): Pass in mode argument. (expand_builtin_compare_and_swap): Likewise. (expand_builtin_lock_test_and_set): Likewise. (expand_builtin_lock_release): Likewise. (expand_builtin): Update to match. From-SVN: r104741
2005-09-28config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up formatting.Nick Clifton3-5/+18
Add check to PLUS case to ensure that the offset is within an acceptable range. config/v850/v850.md (casesi): Disable the generation of the switch pattern as it is not being handled properly at the moment. From-SVN: r104736
2005-09-28re PR c++/16782 (Accepts qualified member function declaration in class)Mark Mitchell6-13/+23
PR c++/16782 * decl.c (grokdeclarator): Always pedwarn about overqualified member names. PR c++/16782 * g++.dg/parse/qualified4.C: New test. * g++.old-deja/g++.law/static-mem5.C: Use -w -fpermissive. * g++.old-deja/g++.mike/p8154.C: Likewise. From-SVN: r104733
2005-09-28config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction for when theNick Clifton2-1/+6
high words are identical. From-SVN: r104730
2005-09-27* pretty-print.c (pp_base_format): Fix typo for %>.Richard Henderson2-1/+5
From-SVN: r104728
2005-09-28Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r104716.2
2005-09-27re PR c++/22147 (ICE in get_bindings)Mark Mitchell6-2/+39
PR c++/22147 * name-lookup.c (maybe_process_template_type_declaration): Don't treat forward declarations of classes as templates just because we're processing_template_decl. * pt.c (tsubst_decl): Clear DECL_TEMPLATE_INFO for friend functions. PR c++/22147 * g++.dg/template/friend37.C: New test. * g++.dg/parse/crash28.C: Adjust error markers. From-SVN: r104713
2005-09-27re PR fortran/18518 (equivalenced variables are not saved)Jakub Jelinek4-3/+45
PR fortran/18518 * trans-common.c (build_equiv_decl): Add IS_SAVED argument. If it is true, set TREE_STATIC on the decl. (create_common): If any symbol in equivalence has SAVE attribute, pass true as last argument to build_equiv_decl. * gfortran.fortran-torture/execute/save_2.f90: New decl. From-SVN: r104712
2005-09-27re PR tree-optimization/23625 (ICE: in bsi_after_labels, at ↵Devang Patel4-8/+40
tree-flow-inline.h:758) PR tree-optimization/23625 * tree-flow-inline.h (bsi_after_labels): Remove, first statement is LABEL_EXPR, assertion check. * gcc.dg/PR23625.c: New test. From-SVN: r104711
2005-09-27optabs.c (no_conflict_move_test): Check if a result of a to-be-moved insn ↵J"orn Rennecke2-2/+14
would be clobbered by an originally... * optabs.c (no_conflict_move_test): Check if a result of a to-be-moved insn would be clobbered by an originally preceding insn. From-SVN: r104709
2005-09-27pr22585.c: Run on 32-bit x86 only.Uros Bizjak3-0/+7
2005-09-27 Uros Bizjak <uros@kss-loka.si> * gcc.target/i386/pr22585.c: Run on 32-bit x86 only. * gcc.target/i386/builtin-apply-mmx.c: Run on 32-bit x86 only. From-SVN: r104708
2005-09-27passes.c (init_optimization_passes): Replace copy propagation passes ↵Jeff Law4-13/+80
immediately after DOM with phi-only copy... * passes.c (init_optimization_passes): Replace copy propagation passes immediately after DOM with phi-only copy propagation pases. Add phi-only copy propagation pass after first DOM pass. * tree-pass.h (pass_phi_only_copy_prop): Declare. * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument. If true, then mark all non-control statements with DONT_SIMULATE_AGAIN. (execute_copy_prop): Accept new PHI_ONLY argument. Pass it along to init_copy_prop. Callers updated. (do_phi_only_copy_prop): New function. (pass_phi_only_copy_prop): New pass descriptor. From-SVN: r104705
2005-09-27* libgcc2.c (__popcount_tab): Remove redundant prototype.Nick Clifton2-5/+4
From-SVN: r104702
2005-09-27re PR c++/13764 (c++ front-end creates extra blocks)Jason Merrill7-8/+52
PR c++/13764 * c-common.c (finish_fname_decls): Use append_to_statement_list_force. * cp/cp-tree.h (FUNCTION_NEEDS_BODY_BLOCK): New macro. * cp/name-lookup.c (pushdecl_maybe_friend): Check it. * cp/decl.c (begin_function_body): Do nothing if it's false. (finish_function_body): Ditto. (outer_curly_brace_block): New fn. (finish_function): Use it. From-SVN: r104698
2005-09-27Add missing part of committed patch from 21stDaniel Berlin1-3/+6
From-SVN: r104696
2005-09-27Correct ChangeLog formatting.David Edelsohn1-3/+3
From-SVN: r104683
2005-09-26* doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.Jason Merrill2-4/+11
From-SVN: r104681
2005-09-26Fix problems with copyrights for files that end up in libgcc.a.James E Wilson5-41/+94
* config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc copyright. Add gcc copyright plus libgcc exception. * config/ia64/crtfastmath.asm: Remove glibc copyright. Add gcc copyright. * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception. From-SVN: r104675
2005-09-27Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r104671.2
2005-09-26[multiple changes]Janne Blomqvist2-6/+51
2005-09-24 Janne Blomqvist <jblomqvi@cc.hut.fi> * trans-io.c (gfc_build_io_library_fndecls): Add entry iocall_x_array for transfer_array. (transfer_array_desc): New function. (gfc_trans_transfer): Add code to call transfer_array_desc. 2005-09-24 Janne Blomqvist <jblomqvi@cc.hut.fi> * io.h: Changed prototypes of list_formatted_{read|write}. * list_read.c (list_formatted_read): Renamed to list_formatted_read_scalar and made static. (list_formatted_read): New function. * transfer.c: Prototype for transfer_array. Changed transfer function pointer. (unformatted_read): Add nelems argument, use it. (unformatted_write): Likewise. (formatted_transfer): Changed name to formatted_transfer_scalar. (formatted_transfer): New function. (transfer_integer): Add nelems argument to transfer call, move updating item count to transfer functions. (transfer_real): Likewise. (transfer_logical): Likewise. (transfer_character): Likewise. (transfer_complex): Likewise. (transfer_array): New function. (data_transfer_init): Call formatted_transfer with new argument. (iolength_transfer): New argument, use it. * write.c (list_formatted_write): Renamed to list_formatted_write_scalar, made static. (list_formatted_write): New function. From-SVN: r104662
2005-09-26re PR fortran/23677 (-fno-automatic does not accept legal save statements)Jakub Jelinek7-2/+81
PR fortran/23677 * symbol.c (gfc_is_var_automatic): Return true if character length is non-constant rather than constant. * resolve.c (gfc_resolve): Don't handle !gfc_option.flag_automatic here. * options.c (gfc_post_options): Set gfc_option.flag_max_stack_var_size to 0 for -fno-automatic. * gfortran.fortran-torture/execute/save_1.f90: New test. * gfortran.dg/save_1.f90: New test. From-SVN: r104661
2005-09-26tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective about when ↵Jeff Law2-1/+10
to iterate. * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective about when to iterate. From-SVN: r104658
2005-09-26re PR target/22576 (ICE with simple factorial program compiled with ↵Uros Bizjak5-0/+96
-ffast-math on gcc 4.0.2) 2005-08-26 Uros Bizjak <uros@kss-loka.si> * gcc.target/i386/builtin-apply-mmx.c: New test. PR target/22576 * gcc.target/i386/pr22576.c: New test. PR target/22585 * gcc.target/i386/pr22585.c: New test. PR target/23268 * gcc.target/i386/pr23268.c: New test. From-SVN: r104656
2005-09-26re PR target/23847 (Darwin -mpowerpc64 complex ABI breakage)Fariborz Jahanian2-1/+26
PR target/23847. Oked by David Edelsohn. From-SVN: r104655
2005-09-26re PR tree-optimization/23942 (loop problem / testcase takes very long time ↵Sebastian Pop3-82/+122
to compile) PR tree-optimization/23942 * Makefile.in (SCEV_H): Depends on PARAMS_H. * tree-scalar-evolution.c: Include params.h. (t_bool): New enum. (follow_ssa_edge, follow_ssa_edge_in_rhs, follow_ssa_edge_in_condition_phi_branch, follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi): Change return type to t_bool. Use a parameter to limit the size of trees that are walked before stopping (analyze_evolution_in_loop): Initialize the limit to 0. (follow_ssa_edge): Give up by returning t_dont_know if the limit exceeds PARAM_SCEV_MAX_EXPR_SIZE. From-SVN: r104653
2005-09-26re PR middle-end/23831 (ICE in immed_double_const with vectorized multipication)Uros Bizjak2-0/+13
PR middle-end/23831 * gcc.dg/vect/pr23831.c: New test. From-SVN: r104651
2005-09-26re PR middle-end/23831 (ICE in immed_double_const with vectorized multipication)Uros Bizjak2-1/+9
PR middle-end/23831 * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT. From-SVN: r104650
2005-09-26Check for valid use of subreg.Fariborz Jahanian2-1/+5
Oked by Richard Henderson. From-SVN: r104649
2005-09-26re PR target/24055 ("could not split insn" with -O1 -ffast-math)Uros Bizjak2-0/+31
PR target/24055 * gcc.target/i386/pr24055.c: New test. From-SVN: r104648
2005-09-26re PR target/24055 ("could not split insn" with -O1 -ffast-math)Uros Bizjak2-11/+37
PR target/24055 * config/i386/i386.md ("*fistdi2_1"): New pattern. ("*fist<mode>2_1"): Use only HImode and SImode register operands. ("fist<mode>2_with_temp"): Use only register operands. From-SVN: r104647
2005-09-26rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in ↵J"orn Rennecke2-3/+6
CALL_INSN_FUNCTION_USAGE. * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in CALL_INSN_FUNCTION_USAGE. From-SVN: r104643
2005-09-26re PR middle-end/15855 (g++ crash with -O2 and -O3 on input file)Richard Guenther2-102/+123
2005-09-26 Richard Guenther <rguenther@suse.de> PR middle-end/15855 * decl2.c (do_static_destruction): Remove. (finish_static_initialization_or_destruction): Likewise. (DECL_EFFECTIVE_INIT_PRIORITY): New macro. (NEEDS_GUARD_P): Likewise. (do_static_initialization): Rename to do_static_initialization_or_destruction. Process all initializers/destructors and handle common conditionalizing. (start_static_initialization_or_destruction): Rename to one_static_initialization_or_destruction. Handle only decl-specific conditionalizing. (cp_finish_file): Call do_static_initialization_or_destruction. From-SVN: r104642