1. 23 Nov, 2009 9 commits
    • re PR middle-end/42095 (g++.dg/lto/20081118-1 cp_lto_20081118-1_0.o-cp_lto_20081118-1_1.o link) · 87501227
      	PR middle-end/42095
      	* tree.c: Include cgraph.h.
      	(cp_fix_function_decl_p): Don't return true for same_body aliases.
      	* Make-lang.in (cp/tree.o): Depend on $(CGRAPH_H).
      
      From-SVN: r154449
      Jakub Jelinek committed
    • re PR ada/42153 (s-osinte.adb:46:21: missing body for "To_Duration" declared at s-osinte.ads:216) · a7194bfe
      2009-11-23  Eric Botcazou  <ebotcazou@adacore.com>
                  Laurent GUERBY  <laurent@guerby.net>
      
      	PR ada/42153
              * s-osinte-linux.ads (struct_timeval): Delete.
              * s-osinte-hpux.ads (struct_timeval, To_Duration, To_Timeval): 
              Delete.
              * s-osinte-kfreebsd-gnu.ads: Likewise.
              * s-osinte-rtems.ads: Likewise.
              * s-osinte-aix.ads: Likewise.
              * s-osinte-hpux-dce.ads: Likewise.
              * s-osinte-darwin.ads: Likewise.
              * s-osinte-solaris-posix.ads: Likewise.
              * s-osinte-irix.ads: Likewise.
              * s-osinte-solaris.ads: Likewise.
              * s-osinte-hpux-dce.adb (To_Duration, To_Timeval): Delete.
              * s-osinte-irix.adb: Likewise.
              * s-osinte-solaris.adb: Likewise.
              * s-osinte-rtems.adb: Likewise. Minor reformatting.
              * s-osinte-aix.adb (To_Duration, To_Timeval): Delete.
              (clock_gettime): Use cal.c timeval_to_duration.
              * s-osinte-darwin.adb: Likewise.
      
      
      Co-Authored-By: Laurent GUERBY <laurent@guerby.net>
      
      From-SVN: r154446
      Eric Botcazou committed
    • re PR c++/14777 (typedef doesn't fully expose base class type) · aa373032
      Fix PR c++/14777
      
      gcc/cp/ChangeLog:
      
      	PR c++/14777
      	* cp-tree.def <TEMPLATE_INFO>: Declare new kind of tree
      	node.
      	* cp-tree.h (struct tree_template_info,
      	struct qualified_typedef_usage_s): New.
      	(cp_tree_node_structure_enum): add TS_CP_TEMPLATE_INFO.
      	(union lang_tree_node): Add template_info.
      	(TI_TEMPLATE, TI_ARGS, TI_TYPEDEFS_NEEDING_ACCESS_CHECKING):
      	Adjust.
      	(build_template_info): Declare.
      	(get_types_needing_access_check): Adjust return type.
      	(add_typedef_to_current_template_for_access_check): Declare.
      	* cp-objcp-common.c (cp_tree_size): Handle TEMPLATE_INFO.
      	* semantics.c (add_typedef_to_current_template_for_access_check):
      	Split from ...
      	(check_accessibility_of_qualified_id): ... here.
      	* decl.c (make_typename_type): Use it.
      	* pt.c (build_template_info): Define.
      	(check_explicit_specialization, find_parameter_packs_r,
      	push_template_decl_real, lookup_template_class,
      	for_each_template_parm_r, tsubst_decl, tsubst): Use
      	build_template_info.
      	(get_types_needing_access_check): Adjust return type.
      	(append_type_to_template_for_access_check_1): Record the
      	location of the usage point of the typedef. Adjust to TEMPLATE_INFO.
      	(append_type_to_template_for_access_check): Add new location
      	parameter. Pass it to append_type_to_template_for_access_check_1.
      	Adjust to TEMPLATE_INFO.
      	(perform_typedefs_access_check): Temporarily set input_location to
      	the usage point of the typedef we are checking access for. Adjust
      	to new TEMPLATE_INFO tree node.
      	* tree.c (bind_template_template_parm): Use build_template_info.
      	* call.c (add_template_candidate_real): Likewise.
      	* decl.c (grokfndecl): Likewise.
      	(cp_tree_node_structure): Handle TEMPLATE_INFO.
      
      gcc/testsuite/ChangeLog:
      
      	PR c++/14777
      	* g++.dg/template/typedef13.C: Adjust.
      	* g++.dg/template/typedef19.C: Adjust.
      	* g++.dg/template/typedef20.C: Adjust.
      	* g++.dg/template/typedef22.C: New test.
      
      From-SVN: r154443
      Dodji Seketeli committed
    • * adaint.h: Assume large file support on IRIX only if _LFAPI. · 75d05d2a
      From-SVN: r154442
      Rainer Orth committed
    • arm.c (arm_compute_save_reg0_reg12_mask): Add special case for noreturn functions. · 1586899e
      2009-11-23  Paul Brook  <paul@codesourcery.com>
      
      	gcc/
      	* config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
      	case for noreturn functions.
      	(arm_compute_save_reg_mask): Remove special noreturn handling.
      
      From-SVN: r154441
      Paul Brook committed
    • tree-dfa.c (get_ref_base_and_extent): Adjust maximum access size for DECL bases. · 0230277c
      2009-11-23  Richard Guenther  <rguenther@suse.de>
      
      	* tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
      	size for DECL bases.
      
      From-SVN: r154433
      Richard Guenther committed
    • pex-unix.c (pex_child_error): Improve warning avoidance by checking the results… · 5120dc38
      pex-unix.c (pex_child_error): Improve warning avoidance by checking the results of write(3) and exiting with...
      
      	* pex-unix.c (pex_child_error): Improve warning avoidance by
      	checking the results of write(3) and exiting with -2 if any write
      	returns a negative value.
      
      Co-Authored-By: Ian Lance Taylor <iant@google.com>
      
      From-SVN: r154431
      Ben Elliston committed
    • Daily bump. · 5154a159
      From-SVN: r154430
      GCC Administrator committed
    • i386.c (avx_vpermilp_parallel): New function. · 8a67ca92
      	* i386.c (avx_vpermilp_parallel): New function.
      	* i386-protos.h: Declare it.
      	* predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
      	avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
      	* sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
      	(ssescalarnum, ssedoublesizemode): Add AVX modes.
      	(vpermilbits): Remove.
      	(avx_vpermil<mode>): Change insns to expanders.
      	(*avx_vpermil<mode>): New.  Use vec_select.
      
      From-SVN: r154427
      Richard Henderson committed
  2. 22 Nov, 2009 8 commits
  3. 21 Nov, 2009 16 commits
  4. 20 Nov, 2009 7 commits
    • i386-builtin-types.awk: New file. · fe40daa0
      	* config/i386/i386-builtin-types.awk: New file.
      	* config/i386/i386-builtin-types.def: New file.
      	* config/i386/t-i386: Use them to build i386-builtin-types.inc.
      	* config/i386/i386.c: Include it.
      	(ix86_builtin_type_tab, ix86_get_builtin_type): New.
      	(ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
      	(struct builtin_isa): Remove GTY marker.  Replace tree type with
      	ix86_builtin_func_type; add set_and_not_built_p.
      	(def_builtin): Change type parameter to tcode; use
      	ix86_get_builtin_func_type; update all callers.  Accept zero mask
      	to mean the builtin is unconditionally available.
      	(ix86_add_new_builtins): Use set_and_not_built_p instead of type
      	being set to NULL.
      	(enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
      	Update some users to rationalized enumeration codes from new include.
      	(enum multi_arg_type): Remove.  Replace all enumeration values
      	with defines to new ix86_builtin_func_type.
      	(ix86_init_mmx_sse_builtins): Don't build any types here.  Defer
      	all type resolution to def_builtin.
      	(ix86_init_builtin_types): Split out from ...
      	(ix86_init_builtins): ... here.  Use ix86_get_builtin_func_type.
      
      From-SVN: r154388
      Richard Henderson committed
    • Undo part of 2009-10-23 change · 497d3834
      From-SVN: r154380
      Michael Meissner committed
    • re PR c++/38646 (ICE with invalid specialization of variadic template) · 2282976b
      gcc/cp/
      
      2009-11-20  Simon Martin  <simartin@users.sourceforge.net>
      
      	PR c++/38646
      	* pt.c (process_partial_specialization): Do not turn wrongly located
      	parameter pack arguments into error_mark_node.
      	Split too long lines into two.
      
      gcc/testsuite/
      
      2009-11-20  Simon Martin  <simartin@users.sourceforge.net>
      
      	PR c++/38646
      	* g++.dg/cpp0x/pr38646.C: New test.
      
      From-SVN: r154378
      Simon Martin committed
    • re PR libstdc++/42019 (shared_ptr can not be used with -fno-rtti) · 70826946
      2009-11-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	PR libstdc++/42019
      	* include/tr1/shared_ptr.h: Only use typeid when RTTI is enabled.
      	* include/bits/shared_ptr_base.h: Likewise.
      	* include/bits/shared_ptr.h: Likewise.
      	* testsuite/tr1/2_general_utilities/shared_ptr/misc/42019.cc: New.
      	* testsuite/20_util/shared_ptr/misc/42019.cc: New.
      
      From-SVN: r154377
      Jonathan Wakely committed
    • invoke.texi: Document ARM -mcpu=cortex-a5. · d5473643
      2009-11-20  Paul Brook  <paul@codesourcery.com>
      
      	gcc/
      	* doc/invoke.texi: Document ARM -mcpu=cortex-a5.
      	* config/arm/arm-cores.def: Add cortex-a5.
      	* config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
      	* config/arm/arm-tune.md: Regenerate.
      
      From-SVN: r154375
      Paul Brook committed
    • re PR tree-optimization/39960 (struct-reorg is broken) · eed8fcad
      2009-11-17 Olga Golovanevsky <olga@il.ibm.com>
      
      	PR middle-end/39960
      	* ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
      	(ref_pos): New field in structure.
      	(insert_new_var_in_stmt): New function.
      
      From-SVN: r154374
      Olga Golovanevsky committed
    • config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint. · 25bcd7ea
      	gcc:
      	* config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
      	* config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
      	(INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
      	(UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
      	(INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
      	(INT_LEAST64_TYPE): Define.
      	(UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
      	UINT_LEAST64_TYPE): Define.
      	(INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
      	INT_FAST64_TYPE): Define.
      	(UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
      	UINT_FAST64_TYPE): Define.
      	(INTPTR_TYPE, UINTPTR_TYPE): Define.
      
      	gcc/testsuite:
      	* gcc.dg/c99-stdint-6.c: Set dg-options for alpha*-dec-osf5*.
      	Wrap *int_least*_t tests in !NO_LEAST_TYPES.
      	Wrap *intmax_t tests in !NO_MAX_TYPES.
      
      From-SVN: r154373
      Rainer Orth committed