1. 24 Sep, 2009 6 commits
    • Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for a-except% in target pairs list... · 42b9d34f
      	* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
      	a-except% in target pairs list; don't (implicitly) compare whitespace.
      
      From-SVN: r152116
      Dave Korn committed
    • * gnat.dg/nested_proc.adb: New test. · 01c3cf4d
      From-SVN: r152115
      Eric Botcazou committed
    • cgraphunit.c (cgraph_lower_function): Revert last change. · 9f62cb92
      	* cgraphunit.c (cgraph_lower_function): Revert last change.
      	* targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
      	instead of DECL_NO_STATIC_CHAIN.
      	* tree-cfg.c (verify_gimple_call): Likewise.
      	* tree-nested.c (get_chain_decl, get_chain_field,
      	convert_tramp_reference_op, convert_gimple_call): Likewise.
      	(convert_all_function_calls): Likewise.  Always set or clear
      	DECL_STATIC_CHAIN initially, for !n->outer clear it.
      	(lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
      	* c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
      	if nested.
      	* print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
      	DECL_NO_STATIC_CHAIN.
      	* config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
      	instead of DECL_NO_STATIC_CHAIN.
      	(ix86_function_regparm, find_drap_reg): Likewise.  Don't test
      	decl_function_context.
      	* varasm.c (initializer_constant_valid_p): Likewise.
      	* tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
      	(DECL_STATIC_CHAIN): ... this.
      	* config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
      	instead of DECL_NO_STATIC_CHAIN.
      
      	* method.c (make_thunk, make_alias_for): Don't set
      	DECL_NO_STATIC_CHAIN.
      	* decl.c (builtin_function_1, grokfndecl): Likewise.
      	* lex.c (build_lang_decl): Likewise.
      
      	* gcc-interface/utils.c (gnat_pushdecl): Don't set
      	DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
      	nested functions.
      
      	* testsuite/gcc.target/i386/pr12329.c: Adjust.
      
      From-SVN: r152114
      Jakub Jelinek committed
    • algo.h: Uglify internal identifiers; correct line breaks. · 78605f0a
      2009-09-24  Johannes Singler  <singler@ira.uka.de>
      
              * include/parallel/algo.h: Uglify internal identifiers;
              correct line breaks.
              * include/parallel/for_each.h: Likewise.
              * include/parallel/numeric: Likewise.
              * include/parallel/omp_loop.h: Likewise.
              * include/parallel/omp_loop_static.h: Likewise.
              * include/parallel/par_loop.h: Likewise.
              * include/parallel/workstealing.h: Likewise.
      
      From-SVN: r152113
      Johannes Singler committed
    • base.h (_EqualFromLess): Move _Compare template parameter to the end as of others. · 2a2e7f9d
      2009-09-24  Johannes Singler  <singler@ira.uka.de>
      
              * include/parallel/base.h (_EqualFromLess):  Move _Compare template
              parameter to the end as of others.
              * include/parallel/algobase.h
              (__lexicographical_compare_switch): Likewise.
      
      From-SVN: r152112
      Johannes Singler committed
    • Daily bump. · 7f7d7fa6
      From-SVN: r152109
      GCC Administrator committed
  2. 23 Sep, 2009 25 commits
  3. 22 Sep, 2009 9 commits
    • install.texi (*-*-freebsd*): Add proper format codes. · f2431d5d
      2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
                  Joseph S. Myers  <joseph@codesourcery.com>
      
              * doc/install.texi (*-*-freebsd*): Add proper format codes.
      
      Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
      
      From-SVN: r152051
      Loren J. Rittle committed
    • Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Remove stray $$r/. · 03261b6d
      2009-09-22  Loren J. Rittle <ljrittle@acm.org>
      
      	* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Remove stray $$r/.
      	* Makefile.in: Rebuilt.
      
      From-SVN: r152050
      Loren J. Rittle committed
    • gengtype.c (is_file_equal): New function. · 41e7ac51
      2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
                  Rafael Avila de Espindola  <espindola@google.com>
      
      	* gengtype.c (is_file_equal): New function.
      	(close_output_files): Use is_file_equal. Free of->buf.
      
      
      Co-Authored-By: Rafael Avila de Espindola <espindola@google.com>
      
      From-SVN: r152049
      Basile Starynkevitch committed
    • gengtype.c (write_types, [...]): Add the output_header argument. · 0182d016
      2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
                  Rafael Avila de Espindola  <espindola@google.com>
      
      	* gengtype.c (write_types, write_local): Add the output_header
      	argument. Update all callers.
      
      
      Co-Authored-By: Rafael Avila de Espindola <espindola@google.com>
      
      From-SVN: r152046
      Basile Starynkevitch committed
    • re PR debug/41266 (Emit DW_TAG_template_parameter_pack and DW_TAG_formal_parameter_pack) · d40a19da
      Fix for PR debug/41266
      
      ChangeLog:
      
      	* include/dwarf2.h (enum dwarf_tag): Add
      	DW_TAG_template_parameter_pack and DW_TAG_formal_parameter_pack.
      
      gcc/ChangeLog:
      
      	* dwarf2out.c (template_parameter_pack_die,
      	gen_formal_parameter_pack_die ): New functions.
      	(make_ith_pack_parameter_name): Remove this function.
      	(dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
      	DW_TAG_formal_parameter_pack.
      	(gen_generic_params_dies): Represent each template parameter pack
      	by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
      	represented by usual DW_TAG_template_*_parameter DIEs that are
      	children of the DW_TAG_template_parameter_pack element DIE.
      	(generic_parameter_die): This doesn't deal with parameter pack
      	names anymore. Don't generate DW_AT_name for some DIEs, e.g. children of
      	parameter pack DIEs.
      	(gen_formal_parameter_die): Add a flag to not emit DW_AT_name
      	in certain cases, e.g. for pack elements.
      	(gen_formal_types_die, gen_decl_die): Adjust usage of
      	gen_formal_parameter_die.
      	(gen_subprogram_die): Represent each function parameter pack by a
      	DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
      	represented by usual DW_TAG_formal_parameter DIEs that are children
      	of the DW_TAG_formal_parameter_pack DIE. Remove references to
      	____builtin_va_alist decls as no part of the compiler uses those
      	anymore.
      	* langhooks.h (struct lang_hooks_for_decls): Add
      	function_parm_expanded_from_pack_p, get_generic_function_decl
      	and function_parameter_pack_p hooks.  Fix comment for
      	get_innermost_generic_parms hook.
      	* langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
      	LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
      	macros and use them to initialize lang_hook.
      
      gcc/cp/ChangeLog:
      
      	* cp-lang.c (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
      	LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P,
      	LANG_HOOKS_GET_GENERIC_FUNCTION_DECL): Initialize these
      	hooks for the c++ FE.
      	* cp-tree.h (function_parameter_pack_p, get_function_template_decl,
      	function_parameter_expanded_from_pack_p): Declare ...
      	* pt.c (function_parameter_pack_p, get_function_template_decl,
      	function_parameter_expanded_from_pack_p): ... new hooks.
      	(get_template_info): Make this more robust.
      	(template_args_variadic_p, make_ith_pack_parameter_name): Add a new
      	line between comment and function.
      	(get_template_argument_pack_elems): Fix comment.
      	(tsubst_decl): Arguments of function parameter packs are not
      	parameter packs themselves.
      
      gcc/testsuite/ChangeLog:
      	* g++.dg/debug/dwarf2/template-func-params-4.C: Adjust.
      	* g++.dg/debug/dwarf2/template-func-params-7.C: Likewise.
      	* g++.dg/debug/dwarf2/template-params-4.C: Likewise.
      
      From-SVN: r152043
      Dodji Seketeli committed
    • system.h (TRAMPOLINE_TEMPLATE, [...]): Poison. · 82497700
              * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
              (TRAMPOLINE_ADJUST_ADDRESS): Poison.
              * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
              on TRAMPOLINE_TEMPLATE.
              (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
              TRAMPOLINE_ADJUST_ADDRESS.
              * targhooks.c (default_asm_trampoline_template): Remove.
              (default_trampoline_adjust_address): Remove.
              (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
              * targhooks.h: Update decls.
      
      From-SVN: r152042
      Richard Henderson committed
    • cygming.h (TARGET_USE_JCR_SECTION): Enable. · 6a92b6c7
      gcc/ChangeLog
      
      	* config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
      	* config/i386/cygwin.h (LIBGCJ_SONAME): Define.
      	* config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
      
      libjava/ChangeLog
      
      	* configure.host (enable_libgcj_sublibs_default): New variable,
      	set for Cygwin and MinGW.
      	* configure.ac (--enable-libgcj-sublibs): New command-line switch.
      	(BUILD_SUBLIBS): New AM_CONDITIONAL relating to it.
      	(libgcj_spec_lgcj_override): New variable, define if building sublibs.
      	(libgcj_spec_lgcj_bc_override): Likewise for when USE_LIBGCJ_BC.
      	(LIBGCJ_SPEC_LGCJ): New variable to abstract "-lgcj" from specs.
      	(LIBGCJ_SPEC_LGCJ_BC): Likewise for when USE_LIBGCJ_BC.
      	(LIBGCJ_SPEC): Use them.
      	* configure: Regenerate.
      	* Makefile.am (LOWER_PACKAGE_FILES_LO): New variable.
      	(ALL_PACKAGE_SOURCE_FILES_LO): Likewise.
      	(NONCORE_PACKAGE_SOURCE_FILES_LO): Likewise.
      	(CORE_PACKAGE_SOURCE_FILES_LO): Likewise.
      	(toolexeclib_LTLIBRARIES): Add libgcj-noncore.la if building sublibs.
      	(libgcj_noncore_la_LIBADD_SUBOBJECTS): New variable.
      	(libgcj_la_LIBADD_SUBOBJECTS): Likewise.
      	(libgcj_la_LDFLAGS_NOUNDEF): Likewise.
      	(libgij_la_LDFLAGS): Add DLL-related options.
      	(libgcj_la_LDFLAGS): Use libgcj_la_LDFLAGS_NOUNDEF and
      	libgcj_la_LIBADD_SUBOBJECTS.
      	(libgcj_la_DEPENDENCIES): Adjust to match.
      	(libgcj_noncore_la_SOURCES, libgcj_noncore_la_LDFLAGS,
      	libgcj_noncore_la_LIBADD, libgcj_noncore_la_DEPENDENCIES,
      	libgcj_noncore_la_LINK): New automake variables for sublibrary.
      	(libgcj_tools_la_LDFLAGS): Add DLL-related flags.
      	(libgcj_tools_la_LIBADD): New variable.
      	(libjvm_la_LDFLAGS): Add DLL-related flags.
      	(lib_gnu_awt_xlib_la_LDFLAGS): Likewise.
      	(libgcj_bc_la_LDFLAGS): Likewise.
      	(libgij_la_DEPENDENCIES): Add dependency on libgcj-noncore.la when
      	building sublibs.
      	(libgcj_tools_la_DEPENDENCIES, libjvm_la_DEPENDENCIES,
      	lib_gnu_awt_xlib_la_DEPENDENCIES, jv_convert_DEPENDENCIES,
      	gcj_dbtool_DEPENDENCIES, gc_analyze_DEPENDENCIES, ecjx_DEPENDENCIES):
      	Likewise.
      	* Makefile.in: Regenerate.
      	* sysdep/i386/backtrace.h (MAIN_FUNC): New #define for main function,
      	set appropriately for Cygwin on that platform or to "main" elsewhere.
      	(fallback_backtrace): Use it to limit stack unwind.
      
      libjava/libltdl/ChangeLog:
      
      	* ltdl.h (LT_SCOPE): Change conditional to avoid breaking
      	auto-export during libgcj DLL linking.
      	* Makefile.am (libltdl_la_LDFLAGS): Remove -bindir switch.
      	* Makefile.in: Regenerate.
      
      From-SVN: r152041
      Dave Korn committed
    • re PR debug/41295 (gfortran.dg/loc_2.f90 -O3 -g fails on SH with orphaned debug_insn) · 502a1e45
      gcc/ChangeLog:
      PR debug/41295
      * reload1.c (reload): Reset debug insns with pseudos without
      equivalences.
      gcc/testsuite/ChangeLog:
      PR debug/41295
      * gcc.dg/pr41295.c: New.
      
      From-SVN: r152040
      Alexandre Oliva committed
    • code-readable-1.c: Change \. · ae6032ea
      	* gcc.target/mips/code-readable-1.c: Change \. to \\. when
      	matching assembly.
      	* gcc.target/mips/code-readable-2.c: Likewise.
      	* gcc.target/mips/code-readable-3.c: Likewise.
      
      From-SVN: r152039
      Adam Nemet committed