Commit Graph

133157 Commits

Author SHA1 Message Date
Uros Bizjak 1c173a32b1 i386.c (ix86_expand_call): Generate MS->SYSV extra clobbered registers using clobber_reg.
* config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
	clobbered registers using clobber_reg.  Remove UNSPEC decoration.
	* config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
	(*call_rex64_ms_sysv): Remove.
	(*call_value_rex64_ms_sysv): Ditto.
	* config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.

testsuite/ChangeLog:

	* gcc.target/i386/avx-vzeroupper-16.c (dg-final): Remove check
	for call_value_rex64_ms_sysv.
	* gcc.target/i386/avx-vzeroupper-17.c (dg-final): Ditto.
	* gcc.target/i386/avx-vzeroupper-18.c (dg-final): Remove check
	for call_rex64_ms_sysv.

From-SVN: r215428
2014-09-21 17:13:14 +02:00
Jason Merrill 1dc7b1f208 re PR c++/62017 (AddressSanitizer reports *-buffer-overflow in destructor when multiple virtual inheritance is used)
PR c++/62017
	* decl.c (begin_destructor_body): Only clobber the as-base part of
	*this.

From-SVN: r215427
2014-09-20 22:42:40 -04:00
GCC Administrator 1c2c9440d4 Daily bump.
From-SVN: r215426
2014-09-21 00:16:33 +00:00
Ian Lance Taylor f0c1b5671a runtime: Restore copyright notice accidentally removed from mgc0.c.
From-SVN: r215423
2014-09-20 20:42:59 +00:00
Joern Rennecke 7dff44b955 epiphany.md (sub_f_add_imm): Change constraint of operand 3 to "CnL".
* config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
        operand 3 to "CnL".

From-SVN: r215422
2014-09-20 20:37:10 +01:00
Alessandro Fanfarillo b2c298ab89 trans-intrinsic.c (conv_intrinsic_atomic_op): Fix issue with generating temporary for value argument.
2014-09-20  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
            Tobias Burnus  <burnus@net-b.de>

gcc/fortran
        * trans-intrinsic.c (conv_intrinsic_atomic_op): Fix issue with
        generating temporary for value argument.

gcc/testsuite/
        * gfortran.dg/coarray_atomic_5.f90: New


Co-Authored-By: Tobias Burnus <burnus@net-b.de>

From-SVN: r215421
2014-09-20 16:14:08 +02:00
Joost VandeVondele 1cc0e19328 trans-expr.c (gfc_reset_vptr): Fix comment whitespace.
2014-09-20  Joost VandeVondele  <vondele@gcc.gnu.org>

	* trans-expr.c (gfc_reset_vptr): Fix comment whitespace.
	(gfc_conv_class_to_class): Likewise.
	(gfc_conv_procedure_call): Likewise.
	(arrayfunc_assign_needs_temporary): Likewise.
	(realloc_lhs_loop_for_fcn_call): Likewise.
	(gfc_trans_assignment_1): Likewise.
	* trans-array.c (gfc_conv_array_ref): Likewise.
	(gfc_array_allocate): Likewise.
	(gfc_alloc_allocatable_for_assignment): Likewise.
	* symbol.c (generate_isocbinding_symbol): Likewise.
	* class.c (finalization_scalarizer): Likewise.
	(finalizer_insert_packed_call): Likewise.
	(generate_finalization_wrapper): Likewise.
	(find_intrinsic_vtab): Likewise.
	* decl.c (gfc_match_import): Likewise.
	(match_procedure_decl): Likewise.
	(gfc_match_subroutine): Likewise.
	(gfc_match_bind_c): Likewise.
	(gfc_match_volatile): Likewise.
	* trans-common.c (create_common): Likewise.
	* error.c (gfc_diagnostic_starter): Likewise.
	* trans-stmt.c (gfc_trans_sync): Likewise.
	(gfc_trans_critical): Likewise.
	(gfc_trans_simple_do): Likewise.
	(gfc_trans_do): Likewise.
	(gfc_trans_where_assign): Likewise.
	* expr.c (gfc_is_simply_contiguous): Likewise.
	* module.c (unquote_string): Likewise.
	* trans.c (gfc_add_finalizer_call): Likewise.
	* trans-types.c (gfc_init_kinds): Likewise.
	* scanner.c (preprocessor_line): Likewise.
	* gfortranspec.c (lang_specific_driver): Likewise.
	* frontend-passes.c (create_var): Likewise.
	(cfe_expr_0): Likewise.
	* resolve.c (check_host_association): Likewise.
	(gfc_resolve_code): Likewise.
	(resolve_fl_derived0): Likewise.
	(resolve_symbol): Likewise.
	* f95-lang.c (poplevel): Likewise.
	* trans-decl.c (create_main_function): Likewise.
	* trans-io.c (transfer_expr): Likewise.
	* arith.c (gfc_arith_divide): Likewise.
	* parse.c (resolve_all_program_units): Likewise.
	* check.c (gfc_check_rank): Likewise.
	(gfc_check_sizeof): Likewise.
	(is_c_interoperable): Likewise.
	* dependency.c (gfc_dep_difference): Likewise.
	* primary.c (gfc_match_rvalue): Likewise.
	* trans-intrinsic.c (conv_intrinsic_system_clock): Likewise.
	(conv_isocbinding_subroutine): Likewise.
	* options.c (gfc_post_options): Likewise.
	(gfc_handle_fpe_option): Likewise.
	(gfc_get_option_string): Likewise.
	* simplify.c (simplify_transformation_to_scalar): Likewise.
	(gfc_simplify_spread): Likewise.

From-SVN: r215420
2014-09-20 11:48:00 +00:00
Andreas Schwab 516e2f1cf0 ia64.md: Remove constraints from define_split patterns.
* config/ia64/ia64.md: Remove constraints from define_split
patterns.

From-SVN: r215419
2014-09-20 06:52:45 +00:00
Jan Hubicka 6f8091fc3e ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
* ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
	(possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
	possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
	(get_dynamic_type): Remove.
	* ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
	(clear_speculation): Bring to ipa-deivrt.h
	(get_class_context): Rename to ...
	(ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
	(contains_type_p): Update.
	(get_dynamic_type): Rename to ...
	ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
	(possible_polymorphic_call_targets): UPdate.
	* tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
	* ipa-prop.c (ipa_analyze_call_uses): Update.

From-SVN: r215418
2014-09-20 06:22:58 +00:00
Jan Hubicka 8e1ba78f1b ipa-visibility.c (varpool_node::externally_visible_p): Do not privatize dynamic TLS variables.
* ipa-visibility.c (varpool_node::externally_visible_p): Do not
	privatize dynamic TLS variables.

From-SVN: r215417
2014-09-20 03:11:04 +00:00
Jan Hubicka 26e8257938 diagnostic.c (warning_n): New function.
* diagnostic.c (warning_n): New function.
	* diagnostic-core.h (warning_n): Declare.
	* ipa-devirt.c (ipa_devirt): Handle singulars correctly;
	output dynamic counts when available.

From-SVN: r215416
2014-09-20 03:06:26 +00:00
Jan Hubicka 1acc55917e re PR tree-optimization/63255 (FAIL: gcc.dg/lto/ipareference2 c_lto_ipareference2_0.o-c_lto_ipareference2_1.o execute -O1 -flto -flto-partition=1to1 -fwhole-program)
PR tree-optimization/63255
	* ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
	issue in setting body_removed flag.

From-SVN: r215415
2014-09-20 02:58:42 +00:00
Jason Merrill e2254932f9 re PR c++/61392 (internal compiler error: in write_template_arg_literal, at cp/mangle.c:3072)
PR c++/61392
	* mangle.c (write_expression): Use unresolved-name mangling for
	DR850 case.

From-SVN: r215414
2014-09-19 20:55:14 -04:00
Jason Merrill 207fd2123a re PR c++/61465 (Bogus parameter set but not used warning in constructor initialization list)
PR c++/61465
	* call.c (convert_like_real) [ck_identity]: Call mark_rvalue_use
	after pulling out an element from a CONSTRUCTOR.

From-SVN: r215413
2014-09-19 20:54:55 -04:00
GCC Administrator dfd20b8280 Daily bump.
From-SVN: r215412
2014-09-20 00:16:42 +00:00
Jan Hubicka f7217cde7f re PR c++/61825 (g++.dg/cpp0x/static_assert9.C FAILs)
PR c++/61825
	* c-family/c-common.c (handle_alias_ifunc_attribute): Check
	that visibility change is possible
	(handle_weakref_attribute): Likewise.
	* cgraph.h (symtab_node): Add method get_create and
	field refuse_visibility_changes.
	(symtab_node::get_create): New method.
	* fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
	* varasm.c (mark_weak): Verify that visibility change is
	possible.

	* gcc.dg/tree-ssa/nonzero-1.c: Require error to be output.

From-SVN: r215409
2014-09-19 23:56:52 +00:00
Michael Meissner 3f99b0612f predicates.md (fusion_gpr_mem_load): Move testing for base_reg_operand to be common between LO_SUM and PLUS.
2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
	for base_reg_operand to be common between LO_SUM and PLUS.
	(fusion_gpr_mem_combo): New predicate to match a fused address
	that combines the addis and memory offset address.

	* config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
	calling signature.
	(emit_fusion_gpr_load): Likewise.

	* config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
	signature to pass each argument separately, rather than
	using an operands array.  Rewrite the insns found by peephole2 to
	be a single insn, rather than hoping the insns will still be
	together when the peephole pass is done.  Drop being called via a
	normal peephole.
	(emit_fusion_gpr_load): Change calling signature to be called from
	the fusion_gpr_load_<mode> insns with a combined memory address
	instead of the peephole pass passing the addis and offset
	separately.

	* config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
	fusion.
	(power8 fusion peephole): Drop support for doing power8 via a
	normal peephole that was created by the peephole2 pass.
	(power8 fusion peephole2): Create a new insn with the fused
	address, so that the fused operation is kept together after
	register allocation is done.
	(fusion_gpr_load_<mode>): Likewise.

From-SVN: r215404
2014-09-19 19:36:57 +00:00
Jan Hubicka ca21928bb3 re PR lto/63286 (FAIL: g++.dg/lto/20101014-2 cp_lto_20101014-2_0.o assemble, * after r215196)
PR lto/63286
	* tree.c (need_assembler_name_p): Do not mangle variadic types.

From-SVN: r215403
2014-09-19 18:54:23 +00:00
Ian Lance Taylor 5850bf669f compiler: Pass constant arguments directly to thunk functions.
From-SVN: r215402
2014-09-19 18:53:50 +00:00
Andi Kleen 2bfbb86133 Fix mcount test cases to only run on supported targets
* gcc.dg/pg-override.c: Only run on x86 Linux.
       * gcc.dg/pg.c: Dito.
       * gcc.target/i386/fentry-override.c: Exclude for PIC.
       * gcc.target/i386/fentry.c: Dito.

From-SVN: r215401
2014-09-19 17:09:10 +00:00
Segher Boessenkool 813271fc4e dg-extract-results.py (Prog.result_re): Include options in test name.
2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>

	* dg-extract-results.py (Prog.result_re): Include options in test name.

From-SVN: r215400
2014-09-19 18:57:04 +02:00
Segher Boessenkool f8fb315582 recog.c (scratch_operand): Do not simply allow all hard registers: only allow those that are allocatable.
2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>

	* recog.c (scratch_operand): Do not simply allow all hard registers:
	only allow those that are allocatable.

From-SVN: r215399
2014-09-19 18:42:26 +02:00
Felix Yang 2b9c63a2d8 cfgrtl.c [...]: Update comments and fix spacing to conform to coding style.
* cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
        comments and fix spacing to conform to coding style.

From-SVN: r215398
2014-09-19 10:28:42 -06:00
James Greenhalgh bcd0e41fda Re: [Patch] Teach genrecog/genoutput that scratch registers require write constraint modifiers
gcc/

	* genrecog.c (validate_pattern): Allow empty constraints in
	a match_scratch.

From-SVN: r215397
2014-09-19 16:23:44 +00:00
Aldy Hernandez d39d05a75b dwarf2out.c (decl_ultimate_origin): Update comment.
* dwarf2out.c (decl_ultimate_origin): Update comment.
	* tree.c (block_ultimate_origin): Same.

From-SVN: r215396
2014-09-19 16:02:21 +00:00
Ulrich Weigand fdea58659c rs6000.c (rs6000_special_adjust_field_align_p): Update GCC version name to GCC 5.
* config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
	Update GCC version name to GCC 5.
	(rs6000_function_arg_boundary): Likewise.
	(rs6000_function_arg): Likewise.

From-SVN: r215395
2014-09-19 15:49:21 +00:00
Ian Lance Taylor 0f1fbc836e simple-object-elf.c (simple_object_elf_write_ehdr): Correctly handle objects with more than SHN_LORESERVE sections.
* simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
	handle objects with more than SHN_LORESERVE sections.
	(simple_object_elf_write_shdr): Add sh_link parameter.
	(simple_object_elf_write_to_file): Correctly handle objects with
	more than SHN_LORESERVE sections.

From-SVN: r215394
2014-09-19 15:24:56 +00:00
James Greenhalgh 4c52ada060 [Patch sh] Fixup use of constraints in define_split
* config/sh/sh.md: Fix use of constraints in define_split.

From-SVN: r215393
2014-09-19 14:51:57 +00:00
Markus Trippelsdorf 4cd5658b60 PR ipa/61998 Fix crash -Wsuggest-final-types crash
-Wsuggest-final-types crashes when used on mininal testcases.
Fix by bailing out early when odr_types_ptr is NULL in ipa_devirt()

2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>

        PR ipa/61998
        * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.

2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>

        PR ipa/61998
        * g++.dg/warn/Wsuggest-final-2.C: New testcase.

From-SVN: r215392
2014-09-19 14:44:09 +00:00
James Greenhalgh 5fd4bc9630 [Patch] Teach genrecog/genoutput that scratch registers require write constraint modifiers
gcc/

	* doc/md.texi (Modifiers): Consistently use "read/write"
	nomenclature rather than "input/output".
	* genrecog.c (constraints_supported_in_insn_p): New.
	(validate_pattern): If needed, also check constraints on
	MATCH_SCRATCH operands.
	* genoutput.c (validate_insn_alternatives): Catch earlyclobber
	operands with no '=' or '+' modifier.

From-SVN: r215388
2014-09-19 10:37:40 +00:00
Joost VandeVondele 727dc1217d re PR fortran/63152 (needless initialization of local pointer arrays.)
2014-09-19  Joost VandeVondele  <vondele@gcc.gnu.org>

	PR fortran/63152
	* trans-array.c (gfc_trans_deferred_array): Only nullify allocatables.

2014-09-19  Joost VandeVondele  <vondele@gcc.gnu.org>

	PR fortran/63152
	* gfortran.dg/auto_char_dummy_array_1.f90: Fix undefined behavior.
	* gfortran.dg/pr63152.f90: New test.

From-SVN: r215387
2014-09-19 10:28:00 +00:00
Paolo Carlini c9aa0007f8 re PR c++/58328 ([C++11] bogus: error: constructor required before non-static data member for)
2014-09-19  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58328
	* g++.dg/cpp0x/nsdmi10.C: New.

From-SVN: r215386
2014-09-19 09:34:14 +00:00
James Greenhalgh b4e9251d1e [PATCH AArch64]: Add constraint letter for stack_protect_test pattern
gcc/

	* config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
	scratch register as an output to placate register renaming.

gcc/testsuite/

	* gcc.dg/ssp-3.c: New.
	* gcc.dg/ssp-4.c: Likewise.

From-SVN: r215385
2014-09-19 09:31:01 +00:00
Andreas Krebbel 159d58942f s390.c (s390_emit_epilogue): Remove bogus assignment.
2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_emit_epilogue): Remove bogus
	assignment.

From-SVN: r215384
2014-09-19 09:23:08 +00:00
Andreas Krebbel feade5a81f s390.md ("trunctdsd2", [...]): New expanders.
2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
	expanders.

2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.target/s390/dfp-conv1.c: New testcase.

From-SVN: r215382
2014-09-19 09:17:00 +00:00
Andreas Krebbel db716bdeca re PR target/62662 (Miscompilation of Qt on s390x)
2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	PR target/62662
	* config/s390/s390.c (s390_emit_epilogue): When doing the return
	address load optimization force s390_optimize_prologue to leave it
	that way.  Only do the optimization if we already decided to push
	r14 into a stack slot.

From-SVN: r215381
2014-09-19 09:14:59 +00:00
Marat Zakirov f434eb6997 asan.c (build_check_stmt): Alignment arg was added.
gcc/ChangeLog:

2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>

	* asan.c (build_check_stmt): Alignment arg was added.
	(asan_expand_check_ifn): Optimization for alignment >= 8.

gcc/testsuite/ChangeLog:

2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>

	* c-c++-common/asan/red-align-1.c: New test.
	* c-c++-common/asan/red-align-2.c: New test.

From-SVN: r215380
2014-09-19 08:29:04 +00:00
Olivier Hainque 4ce351defb vxworksae.h: Remove obsolete definitions.
2014-09-19  Olivier Hainque  <hainque@adacore.com>

        * config/i386/vxworksae.h: Remove obsolete definitions.
        (STACK_CHECK_PROTECT): Define.
        * config/i386/vx-common.h: Remove.  Merge contents within
        config/i386/vxworks.h.
        * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
        i386/vx-common.h.

From-SVN: r215378
2014-09-19 08:19:04 +00:00
Olivier Hainque 3a8fe7c660 config.gcc (powerpc-wrs-vxworksmils): New configuration.
2014-09-18  Olivier Hainque  <hainque@adacore.com>

gcc/
	* config.gcc (powerpc-wrs-vxworksmils): New configuration.
	* config/rs6000/t-vxworksmils: New file.
	* config/rs6000/vxworksmils.h: New file.

libgcc/
	* config.host (powerpc-wrs-vxworksmils): New configuration,
	same as vxworksae.

contrib/
	* config-list.mk (LIST): Add powerpc-wrs-vxworksmils.

From-SVN: r215377
2014-09-19 08:11:55 +00:00
Olivier Hainque c3b4b410ae varasm.c (default_section_type_flags): Flag .persistent.bss sections as SECTION_BSS.
2014-09-19  Olivier Hainque  <hainque@adacore.com>

        * varasm.c (default_section_type_flags): Flag .persistent.bss
        sections as SECTION_BSS.

From-SVN: r215376
2014-09-19 08:02:44 +00:00
Nick Clifton 553130b0ba rl78.c (rl78_expand_epilogue): Generate a USE of the pop'ed registers so that DCE does not eliminate them.
* config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
	pop'ed registers so that DCE does not eliminate them.

From-SVN: r215375
2014-09-19 07:45:22 +00:00
Jan Hubicka 9d8fc086d1 re PR ipa/63298 (internal compiler error: in types_same_for_odr, at ipa-devirt.c:449 with LTO)
PR lto/63298
	* ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.

From-SVN: r215374
2014-09-19 02:04:20 +00:00
GCC Administrator 102ed6c62b Daily bump.
From-SVN: r215373
2014-09-19 00:16:48 +00:00
H.J. Lu df43e02a5c Update gcc.dg/pr61053.c for x32
* gcc.dg/pr61053.c: Updated for x32.

From-SVN: r215369
2014-09-18 16:45:21 -07:00
Joseph Myers dd69f0471d Remove LIBGCC2_TF_CEXT target macro.
This patch removes the (undocumented) LIBGCC2_TF_CEXT target macro,
replacing it by -fbuilding-libgcc predefines (and thereby gets rid of
another LIBGCC2_LONG_DOUBLE_TYPE_SIZE conditional, though some more
patches are needed before that target macro can be eliminated).  This
macro indicated the suffix used on __builtin_huge_val,
__builtin_copysign, __builtin_fabs built-in function names to produce
the names for a given floating-point mode.

Predefines are added for all floating-point modes supported for
libgcc, not just TFmode.  These are fully accurate for modes
corresponding to float, double and long double.  For other modes, the
suffix for *constants* is determined by the targetm.c.mode_for_suffix
hook (the limit to two possible suffixes 'w' and 'q' being hardcoded
in various places).  This is in fact the suffix for built-in functions
as well where such functions exist.

* For i386, the *q functions always exist (whether or not TFmode is
  used for long double).  The *w functions never exist (but this
  doesn't matter for libgcc, since no i386 configuration treats XFmode
  as a supported scalar mode if long double is TFmode; if __float80
  were to be supported for 64-bit Android, properly such functions
  ought to be added).

* For ia64, the *q functions exist for non-HP-UX (under HP-UX, long
  double is TFmode, so they aren't needed).  The *w functions never
  exist.  This is an issue for this libgcc code for the XFmode complex
  functions in libgcc on HP-UX; as I understand it, right now those
  will accidentally be using TFmode versions of those three functions,
  so involving unnecessary conversions, while the sanity check on CEXT
  accidentally passes because all it tests is the sizes of the types.

Because of the lack of 'w' functions, the patch uses 'l' when the
constant suffix is 'w', matching what the existing libgcc code would
do for IA64 HP-UX in that case.

Ideally there would be generic code to create such built-in functions
for all supported floating-point types.  That may be something to
consider if support for TS 18661-3 (standard bindings for IEEE
754-2008, defining names such as _Float128, and function names such as
copysignf128) is added in future.

Bootstrapped with no regressions on x86_64-unknown-linux-gnu.

gcc:
	* system.h (LIBGCC2_TF_CEXT): Poison.
	* config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
	* config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
	* config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
	* config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
	* config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
	* config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
	* config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
	* config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
	* config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.

gcc/c-family:
	* c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
	for supported floating-point modes.

libgcc:
	* libgcc2.c (CEXT): Define using __LIBGCC_*_FUNC_EXT__.

From-SVN: r215368
2014-09-19 00:27:26 +01:00
Kito Cheng f1717f8df9 Add header guard to several header files.
2014-09-19  Kito Cheng  <kito@0xlab.org>

	* except.h: Fix header guard.
	* addresses.h: Add missing header guard.
	* cfghooks.h: Likewise.
	* collect-utils.h: Likewise.
	* collect2-aix.h: Likewise.
	* conditions.h: Likewise.
	* cselib.h: Likewise.
	* dwarf2asm.h: Likewise.
	* graphds.h: Likewise.
	* graphite-scop-detection.h: Likewise.
	* gsyms.h: Likewise.
	* hw-doloop.h: Likewise.
	* incpath.h: Likewise.
	* ipa-inline.h: Likewise.
	* ipa-ref.h: Likewise.
	* ira-int.h: Likewise.
	* ira.h: Likewise.
	* lra-int.h: Likewise.
	* lra.h: Likewise.
	* lto-section-names.h: Likewise.
	* read-md.h: Likewise.
	* reload.h: Likewise.
	* rtl-error.h: Likewise.
	* sdbout.h: Likewise.
	* targhooks.h: Likewise.
	* tree-affine.h: Likewise.
	* xcoff.h: Likewise.
	* xcoffout.h: Likewise.

From-SVN: r215365
2014-09-18 23:34:23 +01:00
Vladimir Makarov 2fb5f0da9d re PR debug/63285 (-fcompare-debug scheduler related failure)
2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>

	PR debug/63285
	* haifa-sched.c (schedule_block): Advance cycle at the end of BB
	if advance != 0.

2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>

	PR debug/63285
	* gcc.target/i386/pr63285.c: New test.

From-SVN: r215364
2014-09-18 19:14:19 +00:00
Joel Sherrill f4d5fe4732 config-list.mk (LIST): Add v850-rtems.
2014-09-18  Joel Sherrill <joel.sherrill@oarcorp.com>

	* config-list.mk (LIST): Add v850-rtems.

From-SVN: r215362
2014-09-18 18:44:52 +00:00
Jakub Jelinek bce16b887f re PR c++/63248 (Crash when OpenMP target's array section handling is used with templates)
PR c++/63248
	* semantics.c (finish_omp_clauses): Don't call cp_omp_mappable_type
	on type of type dependent expressions, and don't call it if
	handle_omp_array_sections has kept TREE_LIST because something
	was type dependent.
	* pt.c (tsubst_expr) <case OMP_TARGET, case OMP_TARGET_DATA>:
	Use keep_next_level, begin_omp_structured_block and
	finish_omp_structured_block instead of push_stmt_list and
	pop_stmt_list.
libgomp/
	* testsuite/libgomp.c++/pr63248.C: New test.

From-SVN: r215359
2014-09-18 18:43:28 +02:00
Vladimir Makarov 74c101d5fd re PR target/61360 (ICE: in lra_update_insn_recog_data, at lra.c:1363 with -mtune=bdver4)
2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/61360
	* lra.c (lra): Call recog_init.

2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/61360
	* gcc.target/i386/pr61360.c: New.

From-SVN: r215358
2014-09-18 15:57:06 +00:00