PR libfortran/62768 Handle filenames with embedded null characters.

testsuite ChangeLog:

2014-09-17  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/62768
	* gfortran.dg/filename_null.f90: New test.

libgfortran ChangeLog:

2014-09-17  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/62768
	* io/io.h (gfc_unit): Store C string for the filename.
	* io/close.c (st_close): Use gfc_unit.filename.
	* io/inquire.c (inquire_via_unit): Likewise.
	* io/open.c (new_unit): Likewise.
	(already_open): Likewise, unlink file before freeing filename.
	* io/unit.c (init_units): Likewise.
	(close_unit_1): Likewise.
	(filename_from_unit): Likewise.
	* io/unix.c (compare_file_filename): Likewise.
	(find_file0): Likewise.
	(delete_file): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215307 138bc75d-0d04-0410-961f-82ee72b054a4
	PR target/61853
	* config/pa/pa.c (pa_function_value): Directly handle aggregates
	that fit exactly in a word or double word.



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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215313 138bc75d-0d04-0410-961f-82ee72b054a4
Disallow -mfpu=neon for unsuitable architectures.

2014-09-17  Andrew Stubbs  <ams@codesourcery.com>

	* config/arm/arm.c (arm_option_override): Reject -mfpu=neon
	when architecture is older than ARMv7.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215321 138bc75d-0d04-0410-961f-82ee72b054a4
2014-09-17  Olivier Hainque  <hainque@adacore.com>

        * config.host (x86_64-*-mingw*): Add i386/t-cygming to tmake_file
        and crtbegin.o + crtend.o to extra_parts.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215323 138bc75d-0d04-0410-961f-82ee72b054a4
2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	* config.gcc (*-*-rtems*): Default to 'rtems' thread model.
	Enable selection of 'posix' or no thread model.


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

	PR c++/63241
	* g++.dg/cpp0x/constexpr-63241.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215326 138bc75d-0d04-0410-961f-82ee72b054a4
	* ipa-devirt.c (type_pair, default_hashset_traits): New types.
	(odr_types_equivalent_p): Use pair hash.
	(odr_subtypes_equivalent_p): Likewise, do structural compare
	on ODR types that may be mismatched.
	(warn_odr): Support warning when only one field is given.
	(odr_types_equivalent_p): Strenghten comparsions made;
	support VOIDtype.
	(add_type_duplicate): Update VISITED hash set.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215328 138bc75d-0d04-0410-961f-82ee72b054a4
	Minor cleanup, don't run tests for which compilation is enough.
	* g++.dg/g++.dg/cpp1y/var-templ1.C: Change return to
	static_assert, compile instead of running.
	* g++.dg/g++.dg/cpp1y/var-templ3.C: Likewise.
	* g++.dg/g++.dg/cpp1y/var-templ4.C: Likewise.
	* g++.dg/g++.dg/cpp1y/var-templ5.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215329 138bc75d-0d04-0410-961f-82ee72b054a4
	* ada/acats/run_all.sh: Redirect mkdir stderr to /dev/null.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215330 138bc75d-0d04-0410-961f-82ee72b054a4
	PR debug/63284
	* tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
	if there are only debug stmts after the noreturn call, instead
	remove the debug stmts.

	* gcc.dg/pr63284.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215331 138bc75d-0d04-0410-961f-82ee72b054a4
	* Makefile.in (LIBGCOV_INTERFACE): Add _gcov_dump from ...
	(LIBGCOV_DRIVER): ... here.
	* libgcov-driver.c (gcov_master): New.
	(gcov_exit): Remove from master chain.
	(__gcov_init): Add to master chain if version compatible.  Don't
	clear the version.
	* libgcov_interface (__gcov_flust): Call gcov_dump_int.
	(gcov_reset_int): Clear master chain, if compatible.
	(gcov_dump_int): New internal interface.  Dump master chain, if
	compatible.
	(gcov_dump): Alias for gcov_dump_int.
	* libgcov.h (struct gcov_root): Add next and prev fields.
	(struct gcov_master): New struct.
	(__gcov_master): New.
	(gcov_dump_int): Declare.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215337 138bc75d-0d04-0410-961f-82ee72b054a4
PR libfortran/62768 Use gfc_unit.filename also when HAVE_TTYNAME{_R} is not defined.

2014-09-18  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/62768
	* io/inquire.c (inquire_via_unit): Use gfc_unit.filename also when
	HAVE_TTYNAME{_R} is not defined.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215338 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c/61854
libcpp/
	* init.c (struct lang_flags): Remove cplusplus_comments.
	(cpp_set_lang): Likewise.
	(post_options): Likewise.
	* lex.c (_cpp_lex_direct): Disallow C++ style comments in C90/C94.
testsuite/
	* gcc.dg/cpp/pr61854-1.c: New test.
	* gcc.dg/cpp/pr61854-2.c: New test.
	* gcc.dg/cpp/pr61854-3.c: New test.
	* gcc.dg/cpp/pr61854-3.h: New test.
	* gcc.dg/cpp/pr61854-4.c: New test.
	* gcc.dg/cpp/pr61854-5.c: New test.
	* gcc.dg/cpp/pr61854-6.c: New test.
	* gcc.dg/cpp/pr61854-7.c: New test.
	* gcc.dg/cpp/pr61854-c90.c: New test.
	* gcc.dg/cpp/pr61854-c94.c: New test.


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

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

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

	PR c++/61745
	* g++.dg/template/pr61745.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215345 138bc75d-0d04-0410-961f-82ee72b054a4
[ARM] Fix insn type of movmisalign neon load pattern.

	* config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
	to neon_load1_1reg<q>.


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

The i386 sfp-machine.h defines FP_TRAPPING_EXCEPTIONS in a way that is
always wrong: it treats a set bit as indicating the exception is
trapping, when actually a set bit (both for 387 and SSE floating
point) indicates it is masked, and a clear bit indicates it is
trapping.  This patch fixes this bug.

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

libgcc:
	* config/i386/sfp-machine.h (FP_TRAPPING_EXCEPTIONS): Treat clear
	bits not set bits as indicating trapping exceptions.

gcc/testsuite:
	* gcc.dg/torture/float128-exact-underflow.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215347 138bc75d-0d04-0410-961f-82ee72b054a4
	* libsupc++/dyncast.cc (__dynamic_cast): Handle mid-destruction
	dynamic_cast more gracefully.

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