1. 28 May, 2009 6 commits
    • re PR middle-end/33699 (missing optimization on const addr area store) · 2c5bfdf7
      	PR middle-end/33699
      	* target.h (struct gcc_target): Fix indentation.  Add
      	const_anchor.
      	* target-def.h (TARGET_CONST_ANCHOR): New macro.
      	(TARGET_INITIALIZER): Use it.
      	* cse.c (CHEAPER): Move it up to the other macros.
      	(insert): Rename this ...
      	(insert_with_costs): ... to this.  Add cost parameters.  Update
      	function comment.
      	(insert): New function.  Call insert_with_costs.
      	(compute_const_anchors, insert_const_anchor, insert_const_anchors,
      	find_reg_offset_for_const, try_const_anchors): New functions.
      	(cse_insn): Call try_const_anchors.  Adjust cost of src_related
      	when using a const-anchor.  Call insert_const_anchors.
      	* config/mips/mips.c (mips_set_mips16_mode): Set
      	targetm.const_anchor.
      	* doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
      
      testsuite/
      	* gcc.target/mips/const-anchor-1.c: New test.
      	* gcc.target/mips/const-anchor-2.c: New test.
      
      From-SVN: r147944
      Adam Nemet committed
    • Fix typo in ChangeLog entry date. · 51fb7760
      From-SVN: r147943
      Olivier Hainque committed
    • tree-inline.c (remap_decls): Enable nonlocalized variables when not optimizing. · 9e6aced0
      * tree-inline.c (remap_decls): Enable nonlocalized variables
      when not optimizing.
      
      From-SVN: r147941
      Alexandre Oliva committed
    • tree-ssa-live.c (remove_unused_locals): Skip when not optimizing. · 89fbbe4e
      * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
      Simplify other tests involving optimize.
      
      From-SVN: r147939
      Alexandre Oliva committed
    • Daily bump. · c0ba7737
      From-SVN: r147938
      GCC Administrator committed
    • testsuite_allocator.h (check_new, [...]): Move to ... · daa15929
      2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/util/testsuite_allocator.h (check_new, check_delete): Move
      	to ...
      	* testsuite/util/replacement_memory_operators.h: ...here. New.
      	* testsuite/util/testsuite_hooks.h (counter): To object_counter.
      	* testsuite/util/testsuite_hooks.cc: Same.
      
      	* testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Use
      	replacement_memory_operators.h.
      	* testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
      	* testsuite/ext/mt_allocator/check_delete.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local-6.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_local-8.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
      	* testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
      	* testsuite/ext/mt_allocator/check_new.cc: Same.
      	* testsuite/ext/debug_allocator/check_delete.cc: Same.
      	* testsuite/ext/debug_allocator/check_new.cc: Same.
      	* testsuite/ext/new_allocator/deallocate_global.cc: Same.
      	* testsuite/ext/new_allocator/check_delete.cc: Same.
      	* testsuite/ext/new_allocator/check_new.cc: Same.
      	* testsuite/ext/new_allocator/deallocate_local.cc: Same.
      	* testsuite/ext/throw_allocator/deallocate_global.cc: Same.
      	* testsuite/ext/throw_allocator/check_delete.cc: Same.
      	* testsuite/ext/throw_allocator/check_new.cc: Same.
      	* testsuite/ext/throw_allocator/deallocate_local.cc: Same.
      	* testsuite/ext/malloc_allocator/deallocate_global.cc: Same.
      	* testsuite/ext/malloc_allocator/check_delete.cc: Same.
      	* testsuite/ext/malloc_allocator/check_new.cc: Same.
      	* testsuite/ext/malloc_allocator/deallocate_local.cc: Same.
      	* testsuite/ext/pool_allocator/check_delete.cc: Same.
      	* testsuite/ext/pool_allocator/check_new.cc: Same.
      	* testsuite/ext/bitmap_allocator/check_delete.cc: Same.
      	* testsuite/ext/bitmap_allocator/check_new.cc: Same.
      	* testsuite/ext/array_allocator/check_delete.cc: Same.
      	* testsuite/ext/array_allocator/check_new.cc: Same.
      	* testsuite/23_containers/deque/cons/1.cc: Same.
      	* testsuite/23_containers/deque/cons/2.cc: Same.
      
      From-SVN: r147937
      Benjamin Kosnik committed
  2. 27 May, 2009 26 commits
  3. 26 May, 2009 8 commits
    • re PR fortran/39178 (Generate main() rather than using a main in libgfortran/fmain.c) · 092231a8
      fortran/
      2009-05-26  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/39178
              * gfortranspec.c (lang_specific_driver): Stop linking
              libgfortranbegin.
              * trans-decl.c (gfc_build_builtin_function_decls): Stop
              making MAIN__ publicly visible.
              (gfc_build_builtin_function_decls): Add
              gfor_fndecl_set_args.
              (create_main_function) New function.
              (gfc_generate_function_code): Use it.
      
      libgfortran/
      2009-05-26  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/39178
              * runtime/main.c (store_exe_path): Make static
              and multiple-times callable.
              (set_args): Call store_exe_path.
              * libgfortran.h: Remove store_exe_path prototype.
              * fmain.c (main): Remove store_exe_path call.
      
      From-SVN: r147883
      Tobias Burnus committed
    • re PR fortran/40246 (ICE on invalid SOURCE= using NULLIFY) · 9a0bab0b
      2009-05-26  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/40246
              * match.c (gfc_match_nullify): NULLify freed pointer.
      
      2009-05-26  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/40246
              * gfortran.dg/nullify_4.f90: New test.
      
      From-SVN: r147879
      Tobias Burnus committed
    • plugins.texi (Loading plugins): typo. · ae2392a9
      
      2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
      
      	* gcc/doc/plugins.texi
      	(Loading plugins): typo.
      	(Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
      	PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
      	(Interacting with the GCC Garbage Collector): Added new section.
      	(Giving information about a plugin): Added new section for
      	PLUGIN_INFO.
      	* gcc/testsuite/gcc.dg/plugin/plugin.exp: Added ggcplug.c test plugin
      	with ggcplug-test-1.c for testing PLUGIN_GGC_MARKING etc...
      	* gcc/testsuite/gcc.dg/plugin/ggcplug-test-1.c: Added new file.
      	* gcc/testsuite/gcc.dg/plugin/ggcplug.c: Added new file.
      	* gcc/ggc.h (ggc_register_root_tab): Added declaration.
      	* gcc/gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
      	(PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
      	(register_callback): Improved comment in declaration.
      	* gcc/ggc-common.c (const_ggc_root_tab_t) Added new typedef for
      	vectors.
      	(extra_root_vec) Added static variable for dynamic roots
      	registration.
      	(ggc_register_root_tab) Added new routine.
      	(ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
      	PLUGIN_GGC_MARKING event.
      	* gcc/ggc-zone.c: Include plugin.h.
      	(ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
      	* gcc/ggc-page.c: Include plugin.h.
      	(ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
      	* gcc/plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
      	PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
      	(register_callback): check lack of callbacks for
      	pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
      	PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
      	(invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
      	PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
      	* gcc/Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
      	dependency on plugin.h.
      	(plugin.o): Added dependency on ggc.h...
      
      From-SVN: r147878
      Basile Starynkevitch committed
    • revert: neon-gen.ml: Include vxWorks.h rather than stdint.h for VxWorks kernels. · 06d9ea42
      revert
      	* config/arm/neon-gen.ml: Include vxWorks.h rather than stdint.h
      	for VxWorks kernels.
      	* config/arm/arm_neon.h: Regenerate.
      
      From-SVN: r147877
      Nathan Sidwell committed
    • inline-3.c: Remove dump file. · da28a951
      2009-05-26  Richard Guenther  <rguenther@suse.de>
      
      	* gcc.dg/tree-ssa/inline-3.c: Remove dump file.
      
      From-SVN: r147876
      Richard Guenther committed
    • re PR middle-end/40248 (FAIL: gcc.c-torture/compile/20090518-1.c at -O1 and above) · f0cfd3a8
      2009-05-26  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/40248
      	Revert
      	* expr.c (expand_expr_real_1): Avoid calling do_store_flag
      	with mismatched comparison modes.
      
      	* expr.c (expand_expr_real_1): Expand the operand of a
      	VIEW_CONVERT_EXPR in its natural mode.
      
      From-SVN: r147874
      Richard Guenther committed
    • Makefile.in (COMPILER, [...]): Define. · 7980bfb8
      ./:	* Makefile.in (COMPILER, COMPILER_FLAGS): Define.
      	(COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
      	(ALL_COMPILERFLAGS): Define.
      	(.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
      	(cc1-dummy$(exeext), cc1$(exeext)): Likewise.
      	(collect2$(exeext), collect2.o): Likewise.
      	(c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
      	(gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
      	($(out_object_file), mips-tfile, mips-tdump): Likewise.
      	(libbackend.o, intl.o, cppdefault.o): Likewise.
      	(gcov$(exeext), gcov-dump$(exeext)): Likewise.
      	(build/%.o): Use $(COMPILER_FOR_BUILD).
      	(build/gen%$(build_exeext)): Likewise.
      	(build/gcov-iov$(build_exeext)): LIkewise.
      	* config/t-darwin (darwin.o): Use $(COMPILER).
      	(darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
      	* config/t-sol2 (sol2-c.o): Likewise.
      	(sol2.o): Likewise.
      	* config/t-vxworks (vxworks.o): Likewise.
      	* config/x-darwin (host-darwin.o): Likewise.
      	* config/x-hpux (host-hpux.o): Likewise.
      	* config/x-linux (host-linux.o): Likewise.
      	* config/x-solaris (host-solaris.o): Likewise.
      	* config/alpha/x-alpha (driver-alpha.o): Likewise.
      	* config/arm/t-arm (arm-c.o): Likewise.
      	* config/arm/t-pe (pe.o): Likewise.
      	* config/arm/t-wince-pe (pe.o): Likewise.
      	* config/i386/t-cygming (winnt.o): Likewise.
      	(winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
      	* config/i386/t-cygwin (cygwin1.o): Likewise.
      	(cygwin2.o): Likewise.
      	* config/i386/t-i386 (i386-c.o): Likewise.
      	* config/i386/t-interix (winnt.o): Likewise.
      	* config/i386/t-netware (netware.o): Likewise.
      	* config/i386/t-nwld (nwld.o): Likewise.
      	* config/i386/x-darwin (host-i386-darwin.o): Likewise.
      	* config/i386/x-i386 (driver-i386.o): Likewise.
      	* config/i386/x-cygwin (host-cygwin.o): Likewise.
      	* config/i386/x-mingw32 (host-mingw32.o): Likewise.
      	* config/ia64/t-ia64 (ia64-c.o): Likewise.
      	* config/m32c/t-m32c (m32c-pragma.o): Likewise.
      	* config/mips/x-native (driver-native.o): Likewise.
      	* config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
      	* config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
      	* config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
      	* config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
      	* config/score/t-score-elf (score7.o): Likewise.
      	(score3.o): Likewise.
      	* config/sh/t-sh (sh-c.o): Likewise.
      	* config/sh/t-symbian (sh-c.o): Likewise.
      	(symbian.o): Likewise.
      	* config/spu/t-spu-elf (spu-c.o): Likewise.
      	* config/v850/t-v850 (v850-c.o): Likewise.
      	* config/v850/t-v850e (v850-c.o): Likewise.
      ada/:
      	* gcc-interface/Makefile.in (COMPILER): Define.
      	(COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
      	(.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
      	(seh_init.o, tracebak.o): Likewise.
      	* gcc-interface/Make-lang.in (ada/targext.o): Likewise.
      	(ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
      	(ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
      	(ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
      	(ada/utils2.o): Likewise.
      cp/:
      	* Make-lang.in (g++spec.o): Use $(COMPILER).
      	(g++$(exeext), cc1plus-dummy$(exeext)): Likewise.
      	(cc1plus$(exeext)): Likewise.
      fortran/:
      	* Make-lang.in (gfortranspec.o): Use $(COMPILER).
      	(gfortran$(exeext), f951$(exeext), fortran/cpp.o): Likewise.
      java/:
      	* Make-lang.in (jvspec.o): Use $(COMPILER).
      	($(XGCJ)$(exeext), jc1$(exeext), jcf-dump$(exeext)): Likewise.
      	(jvgenmain$(exeext), java/jcf-io.o, java/jcf-path.o): Likewise.
      objc/:
      	* Make-lang.in (cc1obj-dummy$(exeext)): Use $(COMPILER).
      	(cc1obj$(exeext)): Likewise.
      objcp/:
      	* Make-lang.in (cc1objplus-dummy$(exeext)): Use $(COMPILER).
      	(cc1objplus$(exeext), objcp/objcp-act.o): Likwise.
      
      From-SVN: r147873
      Ian Lance Taylor committed
    • neon-gen.ml: Include vxWorks.h rather than stdint.h for VxWorks kernels. · d0cb643b
      	* config/arm/neon-gen.ml: Include vxWorks.h rather than stdint.h
      	for VxWorks kernels.
      	* config/arm/arm_neon.h: Regenerate.
      
      From-SVN: r147870
      Richard Sandiford committed