1. 25 May, 2010 29 commits
  2. 24 May, 2010 11 commits
    • re PR middle-end/44100 (ICE compiling g++.dg/init/struct2.C on Tru64 UNIX V5.1B) · 12a149a0
      	PR middle-end/44100
      	* typeck.c (cp_build_unary_op): Fold offsetof-like computations.
      
      From-SVN: r159800
      Eric Botcazou committed
    • re PR ada/38394 (clashing assembler symbols) · feb4c293
      	PR ada/38394
      	* gnat.dg/array13.ad[sb]: New test.
      
      From-SVN: r159798
      Eric Botcazou committed
    • Fix bootstrap at -O3. · 427188d5
      2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* function.c (assign_stack_local_1): Initialize variable
      	to avoid warning when bootstrapping at -O3.
      
      From-SVN: r159797
      Sebastian Pop committed
    • configure.ac (all_lang_makefiles): Remove everything related to it. · 96ee6e08
      	* configure.ac (all_lang_makefiles): Remove everything related to it.
      	* configure: Regenerate.
      	* Makefile.in: Fix reference to ada Make-lang.in.
      	Remove support for LANG_MAKEFILES.
      
      From-SVN: r159795
      Steven Bosscher committed
    • neon-testgen.ml: Use dg-add-options arm_neon. · 0c422e74
      2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
      	    Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
      	* doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
      	description.  Add arm_neon_fp16_ok.
      	(Add Options): Add arm_neon and arm_neon_fp16.
      
      	gcc/testsuite/
      	* gcc.target/arm/neon/: Regenerated test cases.
      
      	* gcc.target/arm/neon/polytypes.c,
      	gcc.target/arm/neon-vmla-1.c, gcc.target/arm/neon-vmls-1.c,
      	gcc.target/arm/neon-cond-1.c, gcc.target/arm/neon/vfp-shift-a2t2.c,
      	gcc.target/arm/neon-thumb2-move.c, gcc.dg/torture/arm-fp16-ops-8.c, 
      	gcc.dg/torture/arm-fp16-ops-7.c, g++.dg/ext/arm-fp16/arm-fp16-ops-7.C,
      	g++.dg/ext/arm-fp16/arm-fp16-ops-8.C, g++.dg/abi/mangle-neon.C: Use
      	dg-add-options arm_neon.
      
      	* gcc.target/arm/fp16-compile-vcvt.c, gcc.dg/torture/arm-fp16-ops-5.c,
      	gcc.dg/torture/arm-fp16-ops-6.c, g++.dg/ext/arm-fp16/arm-fp16-ops-5.C,
      	g++.dg/ext/arm-fp16/arm-fp16-ops-6.C: Use dg-add-options arm_neon_fp16
      	and arm_neon_fp16_ok.
      
      	* gcc.dg/vect/vect.exp, g++.dg/vect/vect.exp,
      	gfortran.dg/vect/vect.exp: Use add_options_for_arm_neon.
      
      	* lib/target-supports.exp (add_options_for_arm_neon): New.
      	(check_effective_target_arm_neon_ok_nocache): New, from
      	check_effective_target_arm_neon_ok.  Check multiple possibilities.
      	(check_effective_target_arm_neon_ok): Use
      	check_effective_target_arm_neon_ok_nocache.
      	(add_options_for_arm_neon_fp16)
      	(check_effective_target_arm_neon_fp16_ok)
      	check_effective_target_arm_neon_fp16_ok_nocache): New.
      	(check_effective_target_arm_neon_hw): Use add_options_for_arm_neon.
      
      
      Co-Authored-By: Sandra Loosemore <sandra@codesourcery.com>
      
      From-SVN: r159794
      Daniel Jacobowitz committed
    • diagnostic.c: Don't include flags.h. · 243fbddd
      	* diagnostic.c: Don't include flags.h.
      	(pedantic_warning_kind, permissive_error_kind): Take diagnostic
      	context parameters.  Check flags in the context passed as a
      	parameter.
      	(diagnostic_build_prefix): Add context parameter.  Check
      	show_column flag in context.
      	(diagnostic_action_after_output): Check fatal_errors flag in
      	context.
      	(diagnostic_report_current_module): Check show_column flag in
      	context.
      	(default_diagnostic_starter): Update call to
      	diagnostic_build_prefix.
      	(diagnostic_report_diagnostic): Pass context to
      	pedantic_warning_kind.
      	(emit_diagnostic): Pass context to permissive_error_kind.
      	(permerror): Pass context to permissive_error_kind.
      	* diagnostic.h (struct diagnostic_context): Add show_column,
      	pedantic_errors, permissive and fatal_errors fields.
      	(diagnostic_build_prefix): Update prototype.
      	* langhooks.c
      	* toplev.c (process_options): Set flags in global_dc from
      	flag_show_column, flag_pedantic_errors, flag_permissive,
      	flag_fatal_errors.
      	* tree-diagnostic.c (default_tree_diagnostic_starter): Update call
      	to diagnostic_build_prefix.
      	* Makefile.in (diagnostic.o): Update dependencies.
      
      cp:
      	* error.c (cp_diagnostic_starter): Update call to
      	diagnostic_build_prefix.
      	(cp_print_error_function,
      	print_instantiation_partial_context_line): Check show_column flag
      	in context.
      
      From-SVN: r159793
      Joseph Myers committed
    • re PR c++/41510 ([C++0x] std::complex vs. initialization lists) · 611d6f76
      	PR c++/41510
      	* decl.c (check_initializer): Don't wrap an init-list in a
      	TREE_LIST.
      	* init.c (build_aggr_init): Don't assume copy-initialization if
      	init has CONSTRUCTOR_IS_DIRECT_INIT.
      	* call.c (build_new_method_call): Sanity check.
      
      From-SVN: r159792
      Jason Merrill committed
    • rtti.c (tinfo_base_init): Use build_constructor instead of build_constructor_from_list. · e20463aa
      	* rtti.c (tinfo_base_init): Use build_constructor instead of
      	build_constructor_from_list.  Don't cons a tree node for
      	returning.
      	(generic_initializer): Use build_constructor_single instead of
      	build_constructor_from_list.
      	(ptr_initializer): Use build_constructor instead of
      	build_constructor_from_list
      	(ptm_initializer): Likewise.
      	(class_initializer): Likewise.  Take varargs instead of TRAIL.
      	(get_pseudo_ti_init): Adjust calls to class_initializer.  Use
      	build_constructor instead of build_constructor_from_list.
      
      From-SVN: r159788
      Nathan Froyd committed
    • Define __crc32q only if __SSE4_2__ is defined. · 42f40af4
      2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/ia32intrin.h (__crc32q): Define only if
      	__SSE4_2__ is defined.
      
      From-SVN: r159783
      H.J. Lu committed
    • expr.c (quick_stack): Change type to a VEC. · 00f93def
      	* expr.c (quick_stack): Change type to a VEC.  Update comment.
      	(tree_list_free_list): Delete.
      	(flush_quick_stack): Update for quick_stack type change.
      	(push_value): Likewise.
      	(pop_value): Likewise.
      
      From-SVN: r159782
      Nathan Froyd committed
    • re PR target/44132 (emutls is broken under a range of circumstances.) · 1db0429a
      2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
      
      	PR target/44132
      	PR middle-end/43602
      	* varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
      	DECL_VISIBILITY_SPECIFIED.
      	(emutls_decl): Set DECL_PRESERVE_P and copy
      	DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
      	(emutls_finalize_control_var): New callback.
      	(emutls_finish): Finalize emutls control variables.
      	* toplev.c (compile_file): Move the call to emutls_finish () 
      	before varpool_assemble_pending_decls ().
      
      From-SVN: r159781
      Iain Sandoe committed