Commit Graph

139105 Commits

Author SHA1 Message Date
Tom de Vries
ca431befaa Remove -fopenmp in dg-options in libgomp.c
2015-06-15  Tom de Vries  <tom@codesourcery.com>

	* testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
	in dg-options.
	* testsuite/libgomp.c/atomic-3.c: Same.
	* testsuite/libgomp.c/debug-1.c: Same.
	* testsuite/libgomp.c/nqueens-1.c: Same.
	* testsuite/libgomp.c/pr26171.c: Same.
	* testsuite/libgomp.c/pr48591.c: Same.
	* testsuite/libgomp.c/pr64824.c: Same.
	* testsuite/libgomp.c/pr64868.c: Same.
	* testsuite/libgomp.c/pr66133.c: Same.
	* testsuite/libgomp.c/pr66199-1.c: Same.
	* testsuite/libgomp.c/pr66199-2.c: Same.
	* testsuite/libgomp.c/target-8.c: Same.

From-SVN: r224480
2015-06-15 13:26:12 +00:00
Tom de Vries
0d8a9e2065 Use dg-additional-options for -std={gnu99,c99}
2015-06-15  Tom de Vries  <tom@codesourcery.com>

	* testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
	-std={gnu99,c99}.
	* testsuite/libgomp.c/for-1.c: Same.
	* testsuite/libgomp.c/for-2.c: Same.
	* testsuite/libgomp.c/for-3.c: Same.
	* testsuite/libgomp.c/pr35625.c: Same.
	* testsuite/libgomp.c/pr39154.c: Same.
	* testsuite/libgomp.c/simd-16.c: Same.
	* testsuite/libgomp.c/simd-17.c: Same.

From-SVN: r224479
2015-06-15 13:26:03 +00:00
Andre Vehreschild
1792349b0b re PR fortran/44672 ([F08] ALLOCATE with SOURCE and no array-spec)
gcc/testsuite/ChangeLog:

2015-06-15  Andre Vehreschild  <vehre@gmx.de>

	PR fortran/44672
	PR fortran/45440
	PR fortran/57307
	* gfortran.dg/allocate_with_source_3.f90: Removed check for
	unimplemented error.
	* gfortran.dg/allocate_with_source_7.f08: New test.
	* gfortran.dg/allocate_with_source_8.f08: New test.

gcc/fortran/ChangeLog:

2015-06-15  Andre Vehreschild  <vehre@gmx.de>

	PR fortran/44672
	PR fortran/45440
	PR fortran/57307
	* gfortran.h: Extend gfc_code.ext.alloc to carry a
	flag indicating that the array specification has to be
	taken from expr3.
	* resolve.c (resolve_allocate_expr): Add F2008 notify
	and flag indicating source driven array spec.
	(resolve_allocate_deallocate): Check for source driven
	array spec, when array to allocate has no explicit
	array spec.
	* trans-array.c (gfc_array_init_size): Get lower and
	upper bound from a tree array descriptor, except when
	the source expression is an array-constructor which is
	fixed to be one-based.
	(retrieve_last_ref): Extracted from gfc_array_allocate().
	(gfc_array_allocate): Enable allocate(array, source= 
	array_expression) as specified by F2008:C633.
	(gfc_conv_expr_descriptor): Add class tree expression
	into the saved descriptor for class arrays.
	* trans-array.h: Add temporary array descriptor to
	gfc_array_allocate ().
	* trans-expr.c (gfc_conv_procedure_call): Special handling
	for _copy() routine translation, that comes without an
	interface. Third and fourth argument are now passed by value.
	* trans-stmt.c (gfc_trans_allocate): Get expr3 array
	descriptor for temporary arrays to allow allocate(array,
	source = array_expression) for array without array
	specification.

From-SVN: r224477
2015-06-15 12:08:04 +02:00
Shiva Chen
cf0c27ef2b [AArch64] Change %ld to %wd for HOST_WIDE_INT parameter.
From-SVN: r224476
2015-06-15 09:58:42 +00:00
GCC Administrator
14c9cbc6fe Daily bump.
From-SVN: r224475
2015-06-15 00:16:14 +00:00
Jan Hubicka
351d90f4c4 re PR ipa/66181 (/usr/include/bits/types.h:134:16: ICE: verify_type failed)
PR ipa/66181
	* lto.c (compare_tree_sccs_1): Do not compare TYPE_NO_FORCE_BLK.
	* lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
	* tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
	TYPE_NO_FORCE_BLK.
	* tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.

From-SVN: r224471
2015-06-14 23:40:12 +00:00
Richard Sandiford
3beaff21f3 rtl.h (classify_insn): Declare.
gcc/
	* rtl.h (classify_insn): Declare.
	* emit-rtl.c (classify_insn): Move to...
	* rtl.c: ...here and add generator support.
	* gensupport.h (get_emit_function, needs_barrier_p): Declare.
	* gensupport.c (get_emit_function, needs_barrier_p): New functions.
	* genemit.c (gen_emit_seq): New function.
	(gen_expand, gen_split): Use it.

From-SVN: r224470
2015-06-14 20:25:40 +00:00
Joseph Myers
b25b4ed2b7 * sv.po: Update.
From-SVN: r224468
2015-06-14 18:01:10 +01:00
Richard Biener
c61e2d3673 crontab: Disable snapshots from the 4.8 branch.
2015-06-14  Richard Biener  <rguenther@suse.de>

	* crontab: Disable snapshots from the 4.8 branch.

From-SVN: r224466
2015-06-14 10:21:05 +00:00
Jan Hubicka
8cbababc58 re PR middle-end/66325 (ICE in gcc.c-torture/execute/930408-1.c, verify_type fails with --enable-checking=yes on arm-none-eabi)
PR middle-end/66325
	* c-decl.c (start_enum): Set TYPE_PACKED consistently among type
	variants.

From-SVN: r224463
2015-06-14 07:05:03 +00:00
Thomas Koenig
56476ab84e intrinsic.texi: Change \leq to < in descrition of imaginary part in argument to log.
2015-06-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

	* intrinsic.texi:  Change \leq to < in descrition of imaginary
	part in argument to log.

From-SVN: r224462
2015-06-14 07:05:00 +00:00
GCC Administrator
eb28465561 Daily bump.
From-SVN: r224461
2015-06-14 00:16:15 +00:00
Patrick Palka
34a6a4663a Fix comment documenting make_vector_stat
* tree.c (make_vector_stat): Fix comment to state that the
	function returns a VECTOR_CST.

From-SVN: r224457
2015-06-13 16:29:47 +00:00
Patrick Palka
6feffb3a65 Remove stale commentary in cp/call.c
* call.c: Remove comment documenting the long-deleted
	function build_method_call.

From-SVN: r224456
2015-06-13 16:22:19 +00:00
Patrick Palka
076fecad0d Emit -Waddress warnings for comparing address of reference against NULL
gcc/c-family/ChangeLog:

	PR c++/65168
	* c-common.c (c_common_truthvalue_conversion): Warn when
	converting an address of a reference to a truth value.

gcc/cp/ChangeLog:

	PR c++/65168
	* typeck.c (cp_build_binary_op): Warn when comparing an address
	of a reference against NULL.

gcc/testsuite/ChangeLog:

	PR c++/65168
	g++.dg/warn/Walways-true-3.C: New test.

From-SVN: r224455
2015-06-13 16:11:15 +00:00
Richard Sandiford
313d38e359 gensupport.h (add_implicit_parallel): Declare.
gcc/
	* gensupport.h (add_implicit_parallel): Declare.
	* genrecog.c (add_implicit_parallel): Move to...
	* gensupport.c (add_implicit_parallel): ...here.
	(process_one_cond_exec): Use it.
	* genemit.c (gen_insn): Likewise.

From-SVN: r224454
2015-06-13 09:48:35 +00:00
Tom de Vries
a6860be9c8 Add gcc.dg/parloops-exit-first-loop-alt-4.c
2015-06-13  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/parloops-exit-first-loop-alt-4.c: New test.

	* testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.

From-SVN: r224453
2015-06-13 08:05:54 +00:00
Tom de Vries
ab3306d23c Update parloops-exit-first-loop-alt{,-2,-3}.c
2015-06-13  Tom de Vries  <tom@codesourcery.com>

	* testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
	* testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
	* testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
	(N): Define.
	(main): Use N instead of hardcoded constants.

	* gcc.dg/parloops-exit-first-loop-alt-2.c: Add comment.
	(main): Remove superfluous attributes.
	* gcc.dg/parloops-exit-first-loop-alt-3.c: Same.
	* gcc.dg/parloops-exit-first-loop-alt.c: Same.

From-SVN: r224452
2015-06-13 08:05:44 +00:00
Iain Sandoe
522b7b88b2 re PR bootstrap/66448 (Bootstrap fails on darwin after r224161)
gcc:
	PR bootstrap/66448
	* passes.c (rest_of_decl_compilation): Do not register globals for
	early debug if they are declared in built-ins.

From-SVN: r224451
2015-06-13 07:55:05 +00:00
GCC Administrator
fc1a3257ef Daily bump.
From-SVN: r224450
2015-06-13 00:16:16 +00:00
Jason Merrill
350562a75d re PR c++/65719 (Link error with constexpr variable template)
PR c++/65719
	* pt.c (tsubst_decl) [VAR_DECL]: Mark namespace-scope
	variables as DECL_NOT_REALLY_EXTERN.

From-SVN: r224442
2015-06-12 14:16:22 -04:00
Aldy Hernandez
df649a1c7e * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
From-SVN: r224431
2015-06-12 13:44:15 +00:00
Kyrylo Tkachov
d8204b12f6 [ifcvt][obvious] Use std::swap instead of manually swapping
* ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
	manually swapping.
	(noce_try_cmove_arith): Likewise.
	(noce_get_alt_condition): Likewise.

From-SVN: r224429
2015-06-12 13:18:17 +00:00
Jonathan Wakely
7388ee9e9b * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>.
From-SVN: r224425
2015-06-12 13:27:06 +01:00
Jonathan Wakely
f0b587aa84 Fix whitespace in changelog.
From-SVN: r224416
2015-06-12 11:26:10 +01:00
Jonathan Wakely
6a3d0bb327 re PR libstdc++/66464 (codecvt_utf16 max_length returning incorrect value)
PR libstdc++/66464
	* src/c++11/codecvt.cc (codecvt_utf16_base<char32_t>::do_max_length):
	Return 4 not 3.

From-SVN: r224415
2015-06-12 11:26:05 +01:00
Venkataramanan Kumar
500a08b263 gcc/
2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>

        * common/config/i386/i386-common.c
        (OPTION_MASK_ISA_MWAITX_SET): New.
        (ix86_handle_option): Handle mwaitx.
        * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
        (x86_64-*-*): Likewise.
        * config/i386/mwaitxintrin.h: New header.
        * config/i386/cpuid.h (bit_MWAITX):  Define.
        * config/i386/driver-i386.c (host_detect_local_cpu): Detect
        MWAITX support.
        * config/i386/i386.opt (mwaitx): New.
        * config/i386/i386-builtin-types.def
        (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
        * config/i386/i386-c.c: Define __MWAITX__ if needed.
        * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
        (PTA_MWAITX): New.
        (ix86_option_override_internal): Handle new option.
        (processor_alias_table): Added PTA_MWAITX.
        (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
        (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
        (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
        IX86_BUILTIN_MONITORX  built-ins.
        * config/i386/i386.h (TARGET_MWAITX): New.
        * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
        UNSPEC_MONITORX.
        (mwaitx):  New pattern.
        (monitorx_<mode>): New pattern.
        * config/i386/x86intrin.h: Include mwaitxintrin.h.
        * doc/extend.texi: Document monitorx and mwaitx builtins.
        * doc/invoke.texi: Document -mmwaitx option.

gcc/testsuite

2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>

        * gcc.target/i386/monitorx.c: New.
        * gcc.target/i386/sse-12.c: Add -mmwaitx.
        * gcc.target/i386/sse-13.c: Ditto.
        * gcc.target/i386/sse-14.c: Ditto.
        * gcc.target/i386/sse-22.c: Ditto.
        * gcc.target/i386/sse-23.c: Ditto.
        * g++.dg/other/i386-2.C: Ditto.
        * g++.dg/other/i386-3.C: Ditto.

From-SVN: r224414
2015-06-12 10:02:25 +00:00
Ramana Radhakrishnan
1c6682fa9f Use atomics in guard.cc / remove special casing in targets.
The PowerPC, AIX, Alpha, IA64  implementations of atomic_word.h are in no
way different from what can be achieved with the generic rewrite in
Patch 1 of this series - delete these.

2015-06-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        * config/cpu/alpha/atomic_word.h: Remove.
        * config/cpu/ia64/atomic_word.h: Remove.
        * config/cpu/powerpc/atomic_word.h: Remove.
        * config/os/aix/atomic_word.h: Remove.
        * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
        Use generic definition.

From-SVN: r224413
2015-06-12 09:55:38 +00:00
Ramana Radhakrishnan
dd38693ee5 Use atomics in guard.cc / remove special casing in targets.
The PowerPC, AIX, Alpha, IA64  implementations of atomic_word.h are in no
way different from what can be achieved with the generic rewrite in
Patch 1 of this series - delete these.

2015-06-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        * config/cpu/alpha/atomic_word.h: Remove.
        * config/cpu/ia64/atomic_word.h: Remove.
        * config/cpu/powerpc/atomic_word.h: Remove.
        * config/os/aix/atomic_word.h: Remove.
        * configure.host (atomic_word_dir) [ia64, aix*, powerpc, alpha]:
        Use generic definition.

From-SVN: r224412
2015-06-12 09:53:24 +00:00
Ramana Radhakrishnan
57e6d9be77 Use atomics in guard.cc.
This provides proper definitions for _GLIBCXX_READ_MEM_BARRIER and
_GLIBCXX_WRITE_MEM_BARRIER, rewrites the guards in terms of proper
atomic extensions and removes internal uses of
_GLIBCXX_READ_MEM_BARRIER and _GLIBCXX_WRITE_MEM_BARRIER and replaces
them with equivalent atomics.

2015-06-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	PR target/66200
	PR c++/66192
	* * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
        (_GLIBCXX_WRITE_MEM_BARRIER): Likewise
        * include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
        * include/ext/atomicity.h: Likewise.
        * include/tr1/shared_ptr.h: Likewise.
        * libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
        Update comment.
        (__set_and_release): Likewise.
        * testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
	line numbers.
        * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
        * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
	Likewise.

From-SVN: r224411
2015-06-12 09:49:41 +00:00
Uros Bizjak
40ad260d6c emit-rtl.c (need_atomic_barrier_p): Mask model with MEMMODEL_BASE_MASK.
* emit-rtl.c (need_atomic_barrier_p): Mask model with
	MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.

From-SVN: r224410
2015-06-12 11:06:27 +02:00
DJ Delorie
44c42705d0 lto-lang.c (lto_type_for_size): Include intN types.
* lto-lang.c (lto_type_for_size): Include intN types.
(lto_type_for_mode): Likewise.

From-SVN: r224408
2015-06-12 01:59:31 -04:00
David Edelsohn
1b92614483 dbxout.c (xcoff_debug_hooks): Provide a function for register_main_translation_unit hook.
* dbxout.c (xcoff_debug_hooks): Provide a function for
register_main_translation_unit hook.

From-SVN: r224407
2015-06-11 20:32:08 -04:00
GCC Administrator
708146b3af Daily bump.
From-SVN: r224406
2015-06-12 00:16:16 +00:00
Martin Sebor
d99a7b4d6b re PR sanitizer/65479 (sanitizer stack trace missing frames past #0 on powerpc64)
2015-06-11  Martin Sebor  <msebor@redhat.com>

	PR sanitizer/65479
	* dwarf.c (struct line): Add new field idx.
	(line_compare): Use it.
	(add_line): Set it.
	(read_line_info): Reset it.

From-SVN: r224402
2015-06-11 18:01:50 -06:00
David Edelsohn
39e150e85f rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC variants cases from switch.
* config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
        variants cases from switch.
        (rs6000_post_atomic_barrier): Same.
        (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
        (rs6000_expand_atomic_exchange): Same.
        (rs6000_expand_atomic_op): Same.
        * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
        SYNC variants cases from switch.
        (atomic_load): Same.
        (atomic_store): Same.

From-SVN: r224401
2015-06-11 20:00:53 -04:00
Jonathan Wakely
7672ab25db tuple (__is_tuple_like_impl): Disambiguate array in debug and profile modes.
* include/std/tuple (__is_tuple_like_impl): Disambiguate array in
	debug and profile modes.
	* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Adjust tests
	for swap in C++11 and later.

From-SVN: r224397
2015-06-12 00:22:19 +01:00
John David Anglin
3ab604d528 pa.c (pa_output_global_address): Handle LABEL_REF plus CONST_INT for goto.
* config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
	CONST_INT for goto.

From-SVN: r224396
2015-06-11 23:20:33 +00:00
Steve Ellcey
91234054f7 stringop-2.c: Fix ifdef __mips.
2015-06-11  Steve Ellcey  <sellcey@imgtec.com>

	* gcc.dg/tree-prof/stringop-2.c: Fix ifdef __mips.

From-SVN: r224394
2015-06-11 21:53:44 +00:00
Aldy Hernandez
2702245925 re PR bootstrap/66448 (Bootstrap fails on darwin after r224161)
PR bootstrap/66448
	* dwarf2out.c (check_die): Check for common duplicate attributes.
	(add_location_or_const_value_attribute): Do not add duplicate
	attributes.
	(gen_formal_parameter_die): Do not add DW_AT_artificial the second
	time around.
	(gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
	(gen_type_die_with_usage): Call check_die.
	(dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.

From-SVN: r224393
2015-06-11 20:46:46 +00:00
Jason Merrill
1eb231ed3f dwarf2out.c (prune_unused_types): Handle unused top-level limbo dies.
* dwarf2out.c (prune_unused_types): Handle unused top-level limbo
	dies.

From-SVN: r224391
2015-06-11 13:33:40 -04:00
Marek Polacek
2d6f2dce79 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
From-SVN: r224390
2015-06-11 17:18:34 +00:00
Pierre-Marie de Rodat
a0349665f6 Fix misplaced ChangeLog entries
From-SVN: r224387
2015-06-11 16:03:47 +00:00
Eric Botcazou
ca3e6775c3 re PR bootstrap/66252 (bootstrap comparison failures on sparc-linux)
PR bootstrap/66252
	* config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
	* config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
	(*addx_extend_sp32): Fix pasto.
	(*subx_extend): Rename into...
	(*subx_extend_sp32): ...this.
	(*adddi3_extend_sp32): Add earlyclobber.
	(*subdi3_insn_sp32): Likewise.
	(*subdi3_extend_sp32): Likewise.
	(*and_not_di_sp32): Likewise.
	(*or_not_di_sp32): Likewise.
	(*xor_not_di_sp32): Likewise.
	(*negdi2_sp32): Likewise.
	(*one_cmpldi2_sp32): Likewise.

From-SVN: r224384
2015-06-11 15:56:30 +00:00
Paul Thomas
26e46e4b94 re PR fortran/66079 (memory leak with source allocation in internal subprogram)
2015-06-11  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/66079
	* trans-expr.c (gfc_conv_procedure_call): Allocatable scalar
	function results must be freed and nullified after use. Create
	a temporary to hold the result to prevent duplicate calls.
	* trans-stmt.c (gfc_trans_allocate): Rename temporary variable
	as 'source'. Deallocate allocatable components of non-variable
	'source's.

2015-06-11  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/66079
	* gfortran.dg/allocatable_scalar_13.f90: New test

From-SVN: r224383
2015-06-11 15:49:32 +00:00
Jason Merrill
133bc698cb re PR c++/66445 (ICE with lambda in stmt expression in a template)
PR c++/66445
	* constexpr.c (potential_constant_expression_1): Handle a
	DECL_EXPR of TYPE_DECL.

From-SVN: r224382
2015-06-11 11:45:08 -04:00
Jason Merrill
acb2970c3b re PR c++/66450 ([C++11][constexpr] Issues when delegating implicit copy constructor in constexpr function)
PR c++/66450
	* constexpr.c (cxx_eval_store_expression): Avoid messing up outer
	ctx->ctor.

From-SVN: r224381
2015-06-11 11:45:01 -04:00
Pierre-Marie de Rodat
881a5e608a Restore DW_AT_abstract_origin for cross-unit call sites
PR debug/66503

gcc/ChangeLog:
	* debug.h (struct gcc_debug_hooks): Add a
	register_main_translation_unit hook.
	* debug.c (do_nothing_debug_hooks): Provide a function for this
	new hook.
	* dbxout.c (dbx_debug_hooks): Likewise.
	* sdbout.c (sdb_debug_hooks): Likewise.
	* vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
	* dwarf2out.c (main_translation_unit): New global variable.
	(dwarf2out_register_main_translation_unit): New function
	implementing the new hook.
	(dwarf2_debug_hooks): Assign
	dwarf2out_register_main_translation_unit to this new hook.
	(dwarf2out_init): Associate any main translation unit to
	comp_unit_die ().
	* c/c-decl.c (pop_scope): Register the main translation unit
	through the new debug hook.
	* cp/decl.c (cxx_init_decl_processing): Likewise.

gcc/ada/ChangeLog:
	* gcc-interface/utils.c (get_global_context): Register the main
	translation unit through the new debug hook.

gcc/fortran/ChangeLog:
	* f95-lang.c (gfc_create_decls): Register the main translation
	unit through the new debug hook.

From-SVN: r224371
2015-06-11 12:40:10 +00:00
Marek Polacek
f13c4673a5 match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
* match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.

	* gcc.dg/fold-xor-3.c: New test.

From-SVN: r224370
2015-06-11 12:37:37 +00:00
Marek Polacek
6e28e5162a * match.pd: Use single_use throughout.
From-SVN: r224368
2015-06-11 10:42:44 +00:00