1. 08 Jun, 2015 20 commits
  2. 07 Jun, 2015 3 commits
    • alias.c (get_alias_set): Be ready for TYPE_CANONICAL of ptr_type_node to not be ptr_to_node. · ccb5ad37
      
      	* alias.c (get_alias_set): Be ready for TYPE_CANONICAL
      	of ptr_type_node to not be ptr_to_node.
      	* tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
      	TREE_TYPE of pointers.
      	* gimple-expr.c (useless_type_conversion): Reorder the check for
      	function pointers and TYPE_CANONICAL.
      	* lto.c (hash_canonical_type): Do not hash TREE_CODE of TREE_TYPE of
      	pointers.
      	* gfortran.dg/lto/bind_c-1_0.f90: New testcase.
      	* gfortran.dg/lto/bind_c-1_1.c: New testcase.
      	* gcc.dg/lto/c-compatible-types_0.c: Rename to ...
      	* gcc.dg/lto/c-compatible-types-1_0.c: this one; fix template
      	* gcc.dg/lto/c-compatible-types_1.c: Rename to ...
      	* gcc.dg/lto/c-compatible-types-1_1.c: this one; harden for
      	-fshort-enum.
      
      From-SVN: r224201
      Jan Hubicka committed
    • stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to outer scope and rename to ... · d7b35f22
      2015-06-07  François Dumont  <fdumont@gcc.gnu.org>
      
      	* include/bits/stl_tree.h (_Rb_tree<>::__is_transparent<>): Move to
      	outer scope and rename to ...
      	(std::__hash_is_transparent<>): ... this.
      	* include/debug/stl_map.h (map::find<>,
      	map::lower_bound<>, map::upper_bound<>, map::equal_range<>): New
      	member function templates to perform heterogeneous lookup.
      	* include/debug/stl_multimap.h (multimap::find<>,
      	multimap::lower_bound<>, multimap::upper_bound<>,
      	multimap::equal_range<>): Likewise.
      	* include/debug/stl_multiset.h (multiset::find<>,
      	multiset::lower_bound<>, multiset::upper_bound<>,
      	multiset::equal_range<>): Likewise.
      	* include/debug/stl_set.h (set::find<>,
      	set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
      	* include/profile/stl_map.h (map::find<>, map::count<>,
      	map::lower_bound<>, map::upper_bound<>, map::equal_range<>): Likewise.
      	* include/profile/stl_multimap.h (multimap::find<>, multimap::count<>,
      	multimap::lower_bound<>, multimap::upper_bound<>,
      	multimap::equal_range<>): Likewise.
      	* include/profile/stl_multiset.h (multiset::find<>, multiset::count<>,
      	multiset::lower_bound<>, multiset::upper_bound<>,
      	multiset::equal_range<>): Likewise.
      	* include/profile/stl_set.h (set::find<>, set::count<>,
      	set::lower_bound<>, set::upper_bound<>, set::equal_range<>): Likewise.
      	* testsuite/23_containers/map/operations/1.cc: Check const variants.
      	* testsuite/23_containers/multimap/operations/1.cc: Likewise.
      	* testsuite/23_containers/multiset/operations/1.cc: Likewise.
      	* testsuite/23_containers/set/operations/1.cc: Likewise.
      
      From-SVN: r224200
      François Dumont committed
    • Daily bump. · 3d2c9e18
      From-SVN: r224198
      GCC Administrator committed
  3. 06 Jun, 2015 10 commits
    • re PR bootstrap/66319 (gcov-tool.c:84:65: error: invalid conversion from 'int… · 08b5b29e
      re PR bootstrap/66319 (gcov-tool.c:84:65: error: invalid conversion from 'int (*)(const c har*, const stat*, int, FTW*)' to 'int (*)(const char*, const stat*, int, FTW)')
      
      	PR bootstrap/66319
      	* config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
      	defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
      	Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
      	later.
      	* config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
      	Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
      	_INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
      	_INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
      	and non iso if unix2003.
      
      From-SVN: r224192
      John David Anglin committed
    • re PR fortran/47359 (Recursive functions of intrinsic names generates invalid assembler) · 7dde9926
      2015-06-06  Thomas Koenig  <tkoenig@netcologne.de>
      
      	PR fortran/47359
      	* ChangeLog: Correct PR number in previous commit.
      
      From-SVN: r224191
      Thomas Koenig committed
    • re PR fortran/47359 (Recursive functions of intrinsic names generates invalid assembler) · cbf560d7
      2015-06-06  Thomas Koenig  <tkoenig@netcologne.de>
      
      	PR fortran/47359
      	* arith.c (eval_intrinsic_op): Set warn flag for
      	gfc_type_convert_binary if -Wconversion or -Wconversion-extra
      	are set.
      	(wprecision_real_real): New function.
      	(wprecision_int_real): New function.
      	(gfc_int2int): If -fno-range-check and -Wconversion are specified
      	and it is a narrowing conversion, warn.
      	(gfc_int2real): If there is a change in value for the conversion,
      	warn.
      	(gfc_int2complex):  Likewise.
      	(gfc_real2int): If there is a fractional part to the real number,
      	warn with -Wconversion, otherwise warn with -Wconversion-extra.
      	(gfc_real2real): Emit warning if the constant was changed by
      	conversion with either -Wconversion or -Wconversion-extra.  With
      	-Wconversion-extra, warn if no warning was issued earlier.
      	(gfc_real2complex):  Likewise.
      	(gfc_complex2int): For -Wconversion or -Wconversion-extra, if
      	there was an imaginary part, warn; otherwise, warn for change in
      	value.  Warn with -Wconversion-extra if no other warning was
      	issued.
      	(gfc_complex2real): For -Wconversion or -Wconversion-extra, if
      	there was an imaginary part, warn; otherwise, warn for change in
      	value. Warn with -Wconversion-extra if no other warning was
      	issued.
      	(gfc_complex2complex):  For -Wconversion, warn if the value of
      	either the real or the imaginary part was changed.  Warn for
      	-Wconversion-extra if no prior warning was issued.
      	* expr.c (gfc_check_assign):  Remove check for change in value.
      	* primary.c (match_real_constant): For -Wconversion-extra, check
      	against a number in which the last non-zero digit has been
      	replaced with a zero.  If the number compares equal, warn.
      	* intrinsic.c (gfc_convert_type_warn):  Do not warn about constant
      	conversions.
      
      2015-06-06  Thomas Koenig  <tkoenig@netcologne.de>
      
      	PR fortran/47359
      	* gfortran.dg/array_constructor_type_17.f03: Adjust error message.
      	* gfortran.dg/warn_conversion.f90: Add warning for change in value
      	for assignment.
      	* gfortran.dg/warn_conversion_3.f90: Add warnings.
      	* gfortran.dg/warn_conversion_5.f90: New test.
      	* gfortran.dg/warn_conversion_6.f90: New test.
      	* gfortran.dg/warn_conversion_7.f90: New test.
      
      From-SVN: r224190
      Thomas Koenig committed
    • * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die. · 5a7929c8
      From-SVN: r224189
      Aldy Hernandez committed
    • emit-rtl.c, [...]: Replace rtx base types with more derived ones. · e67d1102
      gcc/
      	* emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
      	rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
      	cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
      	except.c, final.c, function.c, gcse-common.c, genemit.c,
      	haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
      	lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
      	sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
      	shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
      	more derived ones.
      
      From-SVN: r224187
      Richard Sandiford committed
    • Add missing entry. · ad42dbbe
      From-SVN: r224185
      Eric Botcazou committed
    • utils.c (note_types_used_by_globals): Tweak comment. · 0f50b3db
      	* gcc-interface/utils.c (note_types_used_by_globals): Tweak comment.
      	* gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
      
      From-SVN: r224184
      Eric Botcazou committed
    • Promote types of rtl expressions to rtx_insn in gen_split and gen_peephole2 · bb5c4956
      	* combine.c (combine_split_insns): Remove cast.
      	* config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
      	* config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
      	* config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
      	* emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
      	* genemit.c (gen_split): Change return type of generated functions to
      	rtx_insn.
      	* genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
      	(print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
      	gen_peephole2_* functions.
      	(print_subroutine, main): Likewise.
      	* recog.c (peephole2_optimize): Remove cast.
      	(peep2_next_insn): Promote return type to rtx_insn.
      	* recog.h (peep2_next_insn): Fix prototype.
      	* rtl.h (try_split, split_insns): Likewise.
      
      From-SVN: r224183
      Mikhail Maltsev committed
    • msp430.c (msp430_asm_integer): Support addition and subtraction too. · 2bc43588
      * config/msp430/msp430.c (msp430_asm_integer): Support addition
      and subtraction too.
      
      From-SVN: r224182
      DJ Delorie committed
    • Daily bump. · 9feddb71
      From-SVN: r224181
      GCC Administrator committed
  4. 05 Jun, 2015 7 commits
    • re PR libstdc++/6641 (-D__USE_MALLOC doesn't link) · 852776b3
      PR target/6641
      * Split Snd constraint into Sid and Ssd.  Disparage Sid/z alternative
        of *mov<mode> insn to avoid spill failure.
      
      From-SVN: r224177
      Kaz Kojima committed
    • re PR fortran/66347 (Seg fault (ICE) on compile) · d012125d
      2015-06-05  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/66347
      	* resolve.c (apply_default_init_local): Do not dereference a NULL
      	pointer.
      
      2015-06-05  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/66347
      	* gfortran.dg/blockdata_9.f: New test.
      
      From-SVN: r224175
      Steven G. Kargl committed
    • Remove jit_langhook_post_compilation_parsing_cleanups · e4753451
      gcc/jit/ChangeLog:
      	* dummy-frontend.c
      	(jit_langhook_post_compilation_parsing_cleanups): Remove.
      	(LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): Remove
      	* jit-playback.c (gcc::jit::playback::context::new_global): Add
      	call to varpool_node::finalize_decl.
      	(gcc::jit::playback::context::finalize_global_decls): Remove.
      	* jit-playback.h
      	(gcc::jit::playback::context::finalize_global_decls): Remove.
      
      From-SVN: r224173
      David Malcolm committed
    • re PR fortran/66385 (ICE: FORALL writing multiple elements of one array) · 9c3e121b
      2015-06-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/66385
      	* frontend-passes.c (combine_array_constructor): Return early if
      	inside a FORALL loop.
      
      2015-06-05  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/66385
      	* gfortran.dg/forall_17.f90:  New test.
      
      From-SVN: r224172
      Thomas Koenig committed
    • Fix build of jit after debug-early merger · e7547bc6
      gcc/jit/ChangeLog:
      	* dummy-frontend.c (jit_langhook_write_globals): Rename to...
      	(jit_langhook_post_compilation_parsing_cleanups): ...this, and
      	eliminate calls to finalize_compilation_unit and
      	write_global_decls_2.
      	(LANG_HOOKS_WRITE_GLOBALS): Rename to...
      	(LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): ...this and
      	redirect from jit_langhook_write_globals to
      	jit_langhook_post_compilation_parsing_cleanups.
      	* jit-playback.c
      	(gcc::jit::playback::context::write_global_decls_1): Rename to...
      	(gcc::jit::playback::context::finalize_global_decls): ...this.
      	(gcc::jit::playback::context::write_global_decls_1): Delete.
      	* jit-playback.h
      	(gcc::jit::playback::context::write_global_decls_1): Rename to...
      	(gcc::jit::playback::context::finalize_global_decls): ...this.
      	(gcc::jit::playback::context::write_global_decls_1): Delete.
      
      From-SVN: r224170
      David Malcolm committed
    • * jcf-parse.c: Include toplev.h. · 47d201f0
      From-SVN: r224168
      Aldy Hernandez committed
    • re PR c++/66405 (ICE: in tsubst, at cp/pt.c:11984) · 39f383b7
      	PR c++/66405
      	* pt.c (argument_pack_element_is_expansion_p): Return 2 if
      	the expansion has extra args.
      	(use_pack_expansion_extra_args_p): Return true in that case.
      
      From-SVN: r224163
      Jason Merrill committed