Commit Graph

100234 Commits

Author SHA1 Message Date
Iain Sandoe
683fc98b74 add TLS checks to ObjC++
* obj-c++.dg/torture/tls/trivial.mm: New.
	* obj-c++.dg/torture/tls/thr-init-1.mm: New.
	* obj-c++.dg/torture/tls/thr-init-2.mm: New.
	* obj-c++.dg/torture/tls/thr-init-3.mm: New.
	* obj-c++.dg/torture/tls/diag-1.mm: New.
	* obj-c++.dg/torture/tls/tls.exp: New.
	* obj-c++.dg/torture/trivial.mm: New.
	* obj-c++.dg/torture/dg-torture.exp: New.
	* obj-c++.dg/dg.exp: Gather tests explicitly from the source dir.
	* obj-c++.dg/tls/trivial.m: New.
	* obj-c++.dg/tls/init-1.mm: New.
	* obj-c++.dg/tls/diag-1.mm: New.
	* obj-c++.dg/tls/init-2.mm: New.
	* obj-c++.dg/tls/diag-2.mm: New.
	* obj-c++.dg/tls/diag-3.mm: New.
	* obj-c++.dg/tls/diag-4.mm: New.
	* obj-c++.dg/tls/static-1.mm: New.
	* obj-c++.dg/tls/tls.exp: New.
	* obj-c++.dg/tls/diag-5.mm: New.
	* obj-c++.dg/tls/static-1a.mm: New.
	* objc-obj-c++-shared/Object1.mm: New.
	* lib/obj-c++-dg.exp (obj-c++-dg-runtest): New proc.

From-SVN: r159810
2010-05-25 08:28:44 +00:00
Jakub Jelinek
9d4545b28e dwarf2out.c (loc_descr_plus_const): When offset is negative, use DW_OP_minus with negated offset instead of DW_OP_plus.
* dwarf2out.c (loc_descr_plus_const): When offset is negative, use
	DW_OP_minus with negated offset instead of DW_OP_plus.
	(loc_list_from_tree): Don't test whether second operand is
	INTEGER_CST.

From-SVN: r159809
2010-05-25 09:49:16 +02:00
Shujing Zhao
fd33fd1023 re PR c++/18249 (C++ parser i18n problems)
2010-05-25  Shujing Zhao  <pearly.zhao@oracle.com>

        PR c++/18249
        * parser.c: Remove inclusion of dyn-string.h.
        (non_integral_constant): New enum.
        (name_lookup_error): New enum.
        (required_token): New enum.
        (cp_parser_required_error): New function.
        (cp_parser_require): Change the type of variable token_desc to
        required_token and use cp_parser_required_error.
        (cp_parser_require_keyword): Likewise.
        (cp_parser_error): Use gmsgid as parameter.
        (cp_parser_name_lookup_error): Change the type of variable desired to
        name_lookup_error and put the diagnostic in the full sentences. Change
        caller.
        (cp_parser_non_integral_constant_expression): Change the type of the
        variable thing to non_integral_constant and put the diagnostics in
        full sentences. Change caller.

From-SVN: r159808
2010-05-25 06:26:07 +00:00
Wei Guozhi
ee4e170616 thumb2.md (thumb2_tlobits_cbranch): Add constraint to tst instruction and a new alternative.
* config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
	tst instruction and a new alternative.
	* config/arm/constraints.md (Pu): New constraint.

From-SVN: r159806
2010-05-25 01:08:35 +00:00
Iain Sandoe
cf3b8ee3ab re PR objc++/43689 (const-str-5/6 fails)
2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>

	PR ObjC++/43689
	* obj-c++.dg/const-str-5.mm: Name pointer equivalence union.
	* obj-c++.dg/const-str-6.mm: Ditto.

From-SVN: r159805
2010-05-25 01:00:16 +00:00
GCC Administrator
c9160fef83 Daily bump.
From-SVN: r159804
2010-05-25 00:17:23 +00:00
Eric Botcazou
12a149a034 re PR middle-end/44100 (ICE compiling g++.dg/init/struct2.C on Tru64 UNIX V5.1B)
PR middle-end/44100
	* typeck.c (cp_build_unary_op): Fold offsetof-like computations.

From-SVN: r159800
2010-05-24 22:03:09 +00:00
Eric Botcazou
feb4c2937a re PR ada/38394 (clashing assembler symbols)
PR ada/38394
	* gnat.dg/array13.ad[sb]: New test.

From-SVN: r159798
2010-05-24 21:43:31 +00:00
Sebastian Pop
427188d5b2 Fix bootstrap at -O3.
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
2010-05-24 21:14:23 +00:00
Steven Bosscher
96ee6e0819 configure.ac (all_lang_makefiles): Remove everything related to it.
* 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
2010-05-24 20:18:00 +00:00
Daniel Jacobowitz
0c422e7433 neon-testgen.ml: Use dg-add-options arm_neon.
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
2010-05-24 15:36:31 -04:00
Joseph Myers
243fbddd9c diagnostic.c: Don't include flags.h.
* 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
2010-05-24 19:55:44 +01:00
Jason Merrill
611d6f76fe re PR c++/41510 ([C++0x] std::complex vs. initialization lists)
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
2010-05-24 14:38:16 -04:00
Nathan Froyd
e20463aaf0 rtti.c (tinfo_base_init): Use build_constructor instead of build_constructor_from_list.
* 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
2010-05-24 17:17:57 +00:00
H.J. Lu
42f40af469 Define __crc32q only if __SSE4_2__ is defined.
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
2010-05-24 08:38:31 -07:00
Nathan Froyd
00f93defed expr.c (quick_stack): Change type to a VEC.
* 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
2010-05-24 14:46:54 +00:00
Iain Sandoe
1db0429a13 re PR target/44132 (emutls is broken under a range of circumstances.)
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
2010-05-24 14:36:32 +00:00
Daniel Gutson
e72e2da4db lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__ added to the preprocessor condition.
* config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
	added to the preprocessor condition.

From-SVN: r159780
2010-05-24 13:19:51 +00:00
Richard Guenther
468194f443 lto-elf.c (lto_obj_build_section_table): Work around FreeBSD libelf issue.
2010-05-24  Richard Guenther  <rguenther@suse.de>

	* lto-elf.c (lto_obj_build_section_table): Work around
	FreeBSD libelf issue.

From-SVN: r159777
2010-05-24 12:27:30 +00:00
Paul Brook
b748fbd6b9 gengtype-lex.l: Add HARD_REG_SET.
2010-05-25  Paul Brook  <paul@codesourcery.com>

	gcc/
	* gengtype-lex.l: Add HARD_REG_SET.
	* expr.c (expand_expr_real_1): Record writes to hard registers.
	* function.c (rtl_data): Add asm_clobbers.
	* ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
	(ira_setup_eliminable_regset): Remove regs_asm_clobbered.
	Use crtl->asm_clobbers.

	gcc/testsuite/
	* gcc.target/arm/frame-pointer-1.c: New test.
	* gcc.target/i386/pr9771-1.c: Move code out of main to allow frame
	pointer elimination.

From-SVN: r159776
2010-05-24 12:24:00 +00:00
Ralf Wildenhues
9888e9cf85 Mention renamed stages for profiledbootstrap.
gcc/:
	* doc/makefile.texi (Makefile): Mention stages 'profile'
	and 'feedback' for profiledbootstrap.

From-SVN: r159775
2010-05-24 07:25:40 +00:00
GCC Administrator
56e0571cfc Daily bump.
From-SVN: r159774
2010-05-24 00:17:22 +00:00
H.J. Lu
cf5b989e82 Properly check OPTION_MASK_ISA_64BIT.
gcc/

2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/44245
	* config/i386/i386.c (def_builtin): Properly check
	OPTION_MASK_ISA_64BIT.

gcc/testsuite/

2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/44245
	* gcc.target/i386/crc32-3.c: New.
	* gcc.target/i386/crc32-4.c: Likewise.

From-SVN: r159768
2010-05-23 14:57:13 -07:00
Joseph Myers
dc5027f474 c-decl.c (diagnose_mismatched_decls): Give error for duplicate typedefs with different but compatible types.
* c-decl.c (diagnose_mismatched_decls): Give error for duplicate
	typedefs with different but compatible types.  Allow duplicate
	typedefs with the same type except for pedantic non-C1X, but give
	warning for variably modified types.
	* c-typeck.c (tagged_types_tu_compatible_p,
	function_types_compatible_p, type_lists_compatible_p,
	comptypes_internal): Add parameter different_types_p; set
	*different_types_p for different but compatible types.  All
	callers changed.
	(comptypes_check_different_types): New.
	* c-tree.h (comptypes_check_different_types): Declare.

testsuite:
	* gcc.dg/c1x-typedef-1.c, gcc.dg/c1x-typedef-2.c,
	gcc.dg/c90-typedef-1.c, gcc.dg/c99-typedef-1.c: New tests.
	* gcc.dg/decl-8.c: Use -std=gnu89 -pedantic-errors.

From-SVN: r159767
2010-05-23 21:47:16 +01:00
H.J. Lu
8f9e812dac Move "dg-do run" before lp64.
2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.c-target/pr43869.c: Move "dg-do run" before lp64.

From-SVN: r159765
2010-05-23 12:37:23 -07:00
Steven Bosscher
f67cc87d4f java-gimplify.c: Do not include tm.h, toplev.h.
* java-gimplify.c: Do not include tm.h, toplev.h.
	* typeck.c: Do not include tm.h.
	* mangle_name.c: Do not include tm.h.
	* jcf-dump.c: Do not include tm.h, ggc.h.
	* class.c: Do not include rtl.h, tm_p.h, target.h, except.h, cgraph.h.
	* decl.c: Do not include tm.h, rtl.h, function.h, expr.h, except.h,
	and timevar.h.
	* jcf-parse.c: Do not include tm.h and tm_p.h.
	* resource.c: Do not include tm.h, rtl.h, flags.h, obstack.h,
	target.h, and expr.h.
	* except.c: Do not include tm.h, rtl.h, function.h.
	* builtins.c: Do not include convert.h.  Explain why RTL headers
	have to be included here.
	* verify-glue.c: Do not include tm.h.
	* jcf-depend.c: Do not include tm.h.
	* jcf-reader.c: Include ggc.h.
	* jcf-io.c: Do not include tm.h, toplev.h.
	* expr.c: Do not include tm.h, rtl.h, expr.h, except.h, tm_p.h,
	gimple.h.
	* lang.c: Do not include rtl.h, expr.h.
	* Make-lang.in: Update dependencies.

From-SVN: r159764
2010-05-23 17:48:41 +00:00
Tobias Burnus
7274feea19 gfortran.h: Do not include system.h.
2010-05-21  Tobias Burnus  <burnus@net-b.de>

        * gfortran.h: Do not include system.h.
        * bbt.c: Include system.h.
        * data.c: Ditto.
        * dependency.c: Ditto.
        * dump-parse-tree.c: Ditto.
        * arith.h: Do not include gfortran.h.
        * constructor.h: Do not include gfortran.h and splay-tree.h.
        * match.h: Do not include gfortran.h.
        * parse.h: Ditto.
        * target-memory.h: Ditto.
        * openmp.c: Do not include toplev.h and target.h.
        * trans-stmt.c: Ditto not include toplev.h.
        * primary.c: Ditto.
        * trans-common.c: Tell why toplev.h is needed. And
        do not include target.h.
        * trans-expr.c: Tell why toplev.h is needed.
        * trans-array.c: Ditto.
        * trans-openmp.c: Ditto.
        * trans-const.c: Ditto.
        * trans.c: Ditto.
        * trans-types.c: Ditto.
        * trans-io.c: Ditto.
        * trans-decl.c: Ditto.
        * scanner.c: Ditto.
        * convert.c: Ditto.
        * trans-intrinsic.c: Ditto.
        * options.c: Ditto.

From-SVN: r159763
2010-05-23 19:18:24 +02:00
Steven Bosscher
539bac3774 Fix another botched commit.
From-SVN: r159762
2010-05-23 15:46:54 +00:00
Steven Bosscher
2d1a4cc1dc regs.h: Do not include obstack.h, basic-block.h.
* regs.h: Do not include obstack.h, basic-block.h.
	Include machmode.h.
	* jump.c: Include basic-block.h.
	* profile.c: Likewise.
	* tree-profile.c: Likewise.
	* coverage.c: Likewise.
	* basic-block.h (optimize_function_for_size_p): Move to function.h.
	(optimize_function_for_speed_p): Likewise.
	* function.h (optimize_function_for_size_p,
	optimize_function_for_speed_p): Moved here from basic-block.h.

From-SVN: r159761
2010-05-23 15:40:15 +00:00
Ralf Wildenhues
5767217f7a Honor $MAKE for -fwhopr=; do not honor $MAKEFLAGS, $MFLAGS.
gcc/:
	* lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
	before calling make; allow override through $MAKE.
	* doc/invoke.texi (Optimize Options): Document override.

From-SVN: r159760
2010-05-23 14:36:07 +00:00
Anatoly Sokolov
7a955d6248 rs6000.c (rs6000_mode_dependent_address_p): New.
* config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
	(TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
	(rs6000_mode_dependent_address_ptr): Make static.
	* config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
	* config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
	Remove.

From-SVN: r159759
2010-05-23 12:52:21 +04:00
Kai Tietz
362ff46e82 Fix typo in name.
From-SVN: r159758
2010-05-23 09:06:25 +02:00
Maarten Lankhorst
7b37a805ed re PR target/43869 (ms_abi -> sysv_abi passing float arguments incorrectly)
2010-05-23  Naarten Lankhorst  <mlankhorst@codeweavers.com>

        PR target/43869
        * config/i386/i386.c: Make sure that the correct regparm is passed.

From-SVN: r159755
2010-05-23 08:52:32 +02:00
Maarten Lankhorst
6f1dba7b78 re PR target/43869 (ms_abi -> sysv_abi passing float arguments incorrectly)
2010-05-23  Naarten Lankhorst  <mlankhorst@codeweavers.com>

        PR target/43869
        * gcc.c-target/pr43869.c: New test.

From-SVN: r159754
2010-05-23 08:51:50 +02:00
GCC Administrator
861de7fa6d Daily bump.
From-SVN: r159753
2010-05-23 00:17:08 +00:00
Steven Bosscher
9ecb17301f sbitmap.h (sbitmap_ptr, [...]): Move from here...
* sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
	* sbitmap.c: ...to here to internalize sbitmap element access.
	Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
	Explain why basic-block.h is included.
	* function.h: Include tm.h for CUMULATIVE_ARGS.
	* Makefile.in: Update dependencies.

From-SVN: r159749
2010-05-23 00:11:55 +00:00
Steven Bosscher
62a00d0899 jcf-parse.c: Include bitmap.h.
* jcf-parse.c: Include bitmap.h.
	* Make-lang.in: Update dependencies.

From-SVN: r159748
2010-05-23 00:05:11 +00:00
Jerry DeLisle
5d2d72cb79 re PR fortran/43851 (Add _gfortran_error_stop_numeric)
2010-05-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>

	PR fortran/43851
	* match.c (gfc_match_stopcode): Use gfc_match_init_expr. Go to cleanup
	before returning MATCH_ERROR. Add check for scalar. Add check for
	default integer kind.

From-SVN: r159747
2010-05-23 00:00:17 +00:00
Steven Bosscher
7a8cba34b0 coretypes.h (struct simple_bitmap_def, [...]): New core types.
gcc/ChangeLog:
	* coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
	New core types.
	* sbitmap.h (struct sbitmap_def): Do not typedef here.
	* sbitmap.c: Include sbitmap.h.
	* basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
	hard-reg-set.h.  Split everything related to regsets out from here...
	* regset.h: ...to here.  New file.
	* df.h: Include regset.h and sbitmap.h.
	* tree-flow.h: Likewise.
	* cfgloop.h: Likewise.
	* except.h: Do not include sbitmap.h.  Include hashtab.h.
	* cgraph.h: Include vec.h and function.h.
	* reload.h (struct insn_chain): Change types of live_throughout
	and dead_or_set from regset_head to bitmap_head.
	(compute_use_by_pseudos): Be defined also if regset.h is not included.
	* ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
	spilled_regs from regset_head to bitmap_head to avoid dependency
	in regset.h.
	* sel-sched-ir.h: Include regset.h.
	* reload.c: Include df.h before reload.h.
	* caller-save.c: Likewise.
	* reload1.c: Likewise.
	* ira.c: Likewise.
	(mark_elimination): Update type of r to bitmap, consistent with
	DF_LR_IN.
	* dominance.c: Include bitmap.h.
	* modulo-sched.c: Include df.h.
	* cfganal.c: Include bitmap.h and sbitmap.h.
	* cfgbuild.c: Include sbitmap.h.
	* lcm.c: Include sbitmap.h.
	* gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
	* domwalk.c: Include sbitmap.h, exclude ggc.h.
	* cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
	* cselib.c: Include bitmap.h.
	* tree-optimize.c: Include regset.h.
	* stmt.c: Include bitmap.h.
	* Makefile.in: Update dependencies.

cp/ChangeLog
	* semantics.c: Include bitmap.h.
	* Make-lang.in: Update dependencies.

From-SVN: r159746
2010-05-22 22:24:53 +00:00
Janus Weil
bc382218ce re PR fortran/44212 ([OOP] ICE when defining a pointer component before defining the class and calling a TBP then)
2010-05-22  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/44212
	* match.c (gfc_match_select_type): On error jump back out of the local
	namespace.
	* parse.c (parse_derived): Defer creation of vtab symbols to resolution
	stage, more precisely to ...
	* resolve.c (resolve_fl_derived): ... this place.


2010-05-22  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/44212
	* gfortran.dg/class_22.f03: New.

From-SVN: r159745
2010-05-22 20:55:53 +02:00
Iain Sandoe
09c58f303c darwin assembler does not support .type
From-SVN: r159700
2010-05-22 17:34:46 +00:00
Jan Hubicka
9f90e80a18 decl2.c (maybe_emit_vtables): Produce same comdat group when outputting comdat vtables.
* decl2.c (maybe_emit_vtables): Produce same comdat group when outputting
	comdat vtables.
	(cxx_callgraph_analyze_expr): Remove code marking vtables needed.

	* cgraph.h (struct varpool_node): Add same_comdat_group.
	* lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
	pointer.
	(output_varpool): Update call of lto_output_varpool_node.
	(input_varpool): Read same_comdat_group pointer.
	(input_varpool_1): Fixup same_comdat_group pointer.
	* ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
	group is needed, all are.
	* varpool.c (varpool_remove_node): Remove node from same comdat group
	linklist too.
	(varpool_analyze_pending_decls): Walk same comdat groups.

From-SVN: r159699
2010-05-22 14:48:40 +00:00
Steven Bosscher
a2c9fe4253 rtl.h (union rtunion_def): Remove rt_bit member.
* rtl.h (union rtunion_def): Remove rt_bit member.
	(XBITMAP, X0BITMAP, XCBITMAP): Remove.
	* print-rtl (print_rtx): Do not print the member.
	* gengtype.c (adjust_field_rtx_def): Do not handle it.
	* gengenrtl.c (type_from_format): Likewise.
	(accessor_from_format): Likewise.

From-SVN: r159698
2010-05-22 14:15:50 +00:00
Joseph Myers
3b2ce251b8 dbgcnt.c: Include toplev.h instead of errors.h.
* dbgcnt.c: Include toplev.h instead of errors.h.
	* ira-emit.c: Don't include errors.h.
	* ira.c: Include toplev.h instead of errors.h.
	* lto-compress.c: Include toplev.h instead of errors.h.
	* Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
	ira.o, dbgcnt.o): Update dependencies.

From-SVN: r159697
2010-05-22 14:46:01 +01:00
Richard Guenther
bd9eb5dacc gimple.c (gimple_types_compatible_p): Check type qualifications before merging pointer to complete and pointer to...
2010-05-22  Richard Guenther  <rguenther@suse.de>

	* gimple.c (gimple_types_compatible_p): Check type qualifications
	before merging pointer to complete and pointer to incomplete type.
	* lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
	we use our own resolution algorithm.  The gold linker plugin
	doesn't do the job we want it to do here.

	lto/
	* lto.c (read_cgraph_and_symbols): Do not collect.

From-SVN: r159696
2010-05-22 12:56:53 +00:00
Janus Weil
7c9b8fb912 re PR fortran/44213 (ICE when extending abstract type)
2010-05-22  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/44213
	* resolve.c (ensure_not_abstract): Allow abstract types with
	non-abstract ancestors.


2010-05-22  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/44213
	* gfortran.dg/abstract_type_7.f03: New.

From-SVN: r159695
2010-05-22 12:21:32 +02:00
Anatoly Sokolov
277e287344 sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
* config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
	* config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
	(sparc_mode_dependent_address_p): New function.

From-SVN: r159694
2010-05-22 13:15:37 +04:00
GCC Administrator
0350c97ebe Daily bump.
From-SVN: r159691
2010-05-22 00:17:24 +00:00
Steven Bosscher
613b1547cb Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
* Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.

	* timevar.c: Do not include any core headers.
	(timevar_print): De-i18n-ize.
	(print_time): Likewise.
	* timevar.h (timevar_push, timevar_pop): Make inline functions.

From-SVN: r159687
2010-05-21 23:00:23 +00:00
Joseph Myers
5d127eeb29 * cxx-pretty-print.c: Correct merge error.
From-SVN: r159686
2010-05-21 23:58:12 +01:00