PR rtl-optimization/57968
        * mode-switching.c (create_pre_exit): Allow instructions that
        don't set a return register to need a non-exit mode.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201225 138bc75d-0d04-0410-961f-82ee72b054a4
runtime: Handle allocating memory in cgo/SWIG function.

A function that returns an interface type and returns a value
that requires memory allocation will try to allocate while
appearing to be in a syscall.  This patch lets that work.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201226 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-24  David Malcolm  <dmalcolm@redhat.com>

	Introduce context class.

	* Makefile.in (CONTEXT_H): New.
	(OBJS): Add context.o.
	(toplev.o): Add CONTEXT_H to dependencies.
	(context.o): New.

	* toplev.c (general_init): Create the singleton gcc::context
	instance.

	* context.c: New.

	* context.h: New.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201230 138bc75d-0d04-0410-961f-82ee72b054a4
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201233 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/57976
	* doc/xml/manual/status_cxx2011.xml: Note missing time_get::get and
	time_get::do_get.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201234 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
	    Anton Blanchard <anton@au1.ibm.com>

	* config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
	(altivec_vpks<VI_char>ss): Likewise.
	(altivec_vpks<VI_char>us): Likewise.
	(altivec_vpku<VI_char>us): Likewise.
	(altivec_vpku<VI_char>um): Likewise.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201235 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog:
2013-07-24  Terry Guo  <terry.guo@arm.com>

	* config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
	shift_add/shift_sub0/shift_sub1 RTXs.

gcc/testsuite/ChangeLog:
2013-07-24  Terry Guo  <terry.guo@arm.com>

	* gcc.target/arm/thumb1-Os-mult.c: New test case.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201237 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-25  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/57639
	* interface.c (compare_parameter): Check for class_ok.
	* simplify.c (gfc_simplify_same_type_as): Ditto.

2013-07-25  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/57639
	* gfortran.dg/unlimited_polymorphic_9.f90: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201239 138bc75d-0d04-0410-961f-82ee72b054a4
Fix PR target/57909.

2013-07-17  Yvan Roux  <yvan.roux@linaro.org>

        PR target/57909
        * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
        usage in HI mode.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201240 138bc75d-0d04-0410-961f-82ee72b054a4
Remove unnecessary space.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201241 138bc75d-0d04-0410-961f-82ee72b054a4
	* lto-symtab.c (lto_cgraph_replace_node): Release function body.
	* cgraph.c (cgraph_remove_node): Do not release function body
	when in cgraph streaming.
	* ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
	in other partitions are not considered reachable; fix handling of clones.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201242 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/57960
	* lra-constraints.c (process_alt_operands): Use the right mode
	when checking strict_low.

2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/57960
	* gcc.target/s390/pr57960.c: New.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201243 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-25  Tim Shen  <timshen91@gmail.com>

	Add documents and comments.
	* include/bits/regex.h: Documents and comments.
	* include/bits/regex_grep_matcher.h: Likewise.
	* include/bits/regex_grep_matcher.tcc: Likewise.
	* testsuite/28_regex/iterators/regex_iterator/char/string_position_01.cc:
	New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201244 138bc75d-0d04-0410-961f-82ee72b054a4
/cp
2013-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57981
	* decl.c (check_default_argument): Take a tsubst_flags_t parameter.
	(grokparms): Adjust.
	* parser.c (cp_parser_late_parse_one_default_arg): Likewise.
	* pt.c (tsubst_default_argument, tsubst_default_arguments): Take
	a tsubst_flags_t parameter.
	(tsubst_decl): Adjust.
	* call.c (convert_default_arg): Likewise.
	* cp-tree.h (check_default_argument, tsubst_default_argument):
	Update declarations.

/testsuite
2013-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57981
	* g++.dg/cpp0x/pr57981.C: New.

/cp
2013-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57880
	* parser.c (cp_parser_operator, case CPP_WSTRING, CPP_STRING16,
	CPP_STRING32, CPP_UTF8STRING, CPP_WSTRING_USERDEF,
	CPP_STRING16_USERDEF, CPP_STRING32_USERDEF, CPP_UTF8STRING_USERDEF):
	Fix string_len management, tidy.

/testsuite
2013-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57880
	* g++.dg/cpp1y/udlit-empty-string-neg.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201245 138bc75d-0d04-0410-961f-82ee72b054a4
	* config.gcc (hppa-*-openbsd*): Don't set tmake_file.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201247 138bc75d-0d04-0410-961f-82ee72b054a4
	* config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
	libcall if HAVE_ENABLE_EXECUTE_STACK is defined.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201248 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
	Adjust for arm_restrict_it.
	Remove trailing whitespace.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201249 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
	addsi3_carryin_alt2_<optab>): Correct output template.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201250 138bc75d-0d04-0410-961f-82ee72b054a4
	* cgraph.c (release_function_body): Break out from ...
	(cgraph_release_function_body): ... this one; also release DECL_RESULT
	and DECL_ARGUMENTS.
	* ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
	old_tree in the map.
	(create_specialized_node): Update.
	* lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
	into index.
	* cgraphclones.c (cgraph_create_virtual_clone): Do not copy DECL_ARGUMENTS,
	DECL_INITIAL and DECL_RESULT.
	* ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
	* tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
	DECL_RESULT.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201251 138bc75d-0d04-0410-961f-82ee72b054a4
2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>

	* doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.

2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>

	PR target/38836
	* doc/extend.texi: Remove obsolete builtins. Fix
	typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201252 138bc75d-0d04-0410-961f-82ee72b054a4