2014-08-13  Paolo Carlini  <paolo.carlini@oracle.com>

	* parser.c (cp_parser_elaborated_type_specifier): Handle
	specially cp_parser_template_id returning a BASELINK.

2014-08-13  Paolo Carlini  <paolo.carlini@oracle.com>

	* parser.c (cp_parser_diagnose_invalid_type_name,
	cp_parser_make_typename_type): Remove scope parameter.
	(cp_parser_parse_and_diagnose_invalid_type_name,
	cp_parser_elaborated_type_specifier): Adjust calls.


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

	* gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
	generator.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213905 138bc75d-0d04-0410-961f-82ee72b054a4
2014-08-13  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/62118
	* include/ext/random.tcc (uniform_on_sphere_helper<2, _RealType>::
	operator()): Use std::hypot only when _GLIBCXX_USE_C99_MATH_TR1.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213906 138bc75d-0d04-0410-961f-82ee72b054a4
2014-08-13  Paolo Carlini  <paolo.carlini@oracle.com>

	* Fix thinko in the last commit.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213908 138bc75d-0d04-0410-961f-82ee72b054a4
2014-08-13  Andrew Sutton  <andrew.n.sutton@gmail.com>

        * pt.c (lookup_template_variable): Make dependent variable templates
        have unknown type.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213910 138bc75d-0d04-0410-961f-82ee72b054a4
libiberty/
	* testsuite/demangler-fuzzer.c: New file.
	* testsuite/Makefile.in (fuzz-demangler): New rule.
	(demangler-fuzzer): Likewise.
	(mostlyclean): Clean up demangler fuzzer.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213912 138bc75d-0d04-0410-961f-82ee72b054a4
Remove redundant '@' to avoid compiling warning

2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com

	* microblaze/microblaze.md: Remove redundant '@' to avoid compiling
	warning.




git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213913 138bc75d-0d04-0410-961f-82ee72b054a4
2014-08-12  Sylvestre Ledru  <sylvestre@debian.org>

        * include/profile/impl/profiler_hash_func.h: Fix a comment typo



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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213916 138bc75d-0d04-0410-961f-82ee72b054a4
2014-08-13  Sylvestre Ledru  <sylvestre@debian.org>

        * 9drpc.adb: Fix a typo
        * s-interr.ads: Likewise
        * s-taskin.ads: Likewise
        * s-traces.ads: Likewise
        * sysdep.c: Likewise



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213917 138bc75d-0d04-0410-961f-82ee72b054a4
	* call.c (build_x_va_arg): Support passing non-POD through ....
	(convert_arg_to_ellipsis): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213921 138bc75d-0d04-0410-961f-82ee72b054a4
	PR libstdc++/61841
	* include/std/thread (thread::_M_start_thread): Declare new overload.
	(thread::thread<_Callable, _Args...>): Call new overload with an
	explicit reference to pthread_create.
	* src/c++11/thread.cc (thread::_M_start_thread): Add new overload.
	* config/abi/pre/gnu.ver: Export new function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213922 138bc75d-0d04-0410-961f-82ee72b054a4
2014-08-13  Steve Ellcey  <sellcey@mips.com>

	* crtstuff.c: Undef caddr_t.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213931 138bc75d-0d04-0410-961f-82ee72b054a4
compiler, runtime: Fix unexpected GC interfering with closure passing.

The Go frontend passes closures through to functions using the
functions __go_set_closure and __go_get_closure.  The
expectation is that there are no function calls between
set_closure and get_closure.  However, it turns out that there
can be function calls if some of the function arguments
require type conversion to an interface type.  Converting to
an interface type can allocate memory, and that can in turn
trigger a garbage collection, and that can in turn call pool
cleanup functions that may call __go_set_closure.  So the
called function can see the wrong closure value, which is bad.

This patch fixes the problem in two different ways.  First, we
move all type conversions in function arguments into temporary
variables so that they can not appear before the call to
__go_set_closure.  (This required shifting the flatten phase
after the simplify_thunk phase, since the latter expects to
work with unconverted argument types.)  Second, we fix the
memory allocation function to preserve the closure value
across any possible garbage collection.

A test case is the libgo database/sql check run with the
environment variable GOGC set to 1.


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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213936 138bc75d-0d04-0410-961f-82ee72b054a4
	testcases
	* c-c++-common/addrtmp.c: Add bind_pic_locally option.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213937 138bc75d-0d04-0410-961f-82ee72b054a4
ChangeLog:
2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>

	* config/arm/arm.c (arm_option_override): Set max_insns_skipped
	to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.

testsuite/ChangeLog:
2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>

	* gcc.target/arm/max-insns-skipped.c: New test.


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