When file status is unknown, don't set O_CREAT when opening read-only.

2013-11-15  Janne Blomqvist  <jb@gcc.gnu.org>
	    Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/59108
	* io/unix.c (regular_file): Don't set O_CREAT when opening a file
	read-only with unknown status. Mask out O_CREAT when falling back
	to opening read-only if ACTION= is not set and read-write fails.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204864 138bc75d-0d04-0410-961f-82ee72b054a4
	* config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
	is null.



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

	PR c++/58599
	* g++.dg/cpp0x/nsdmi-template5.C: New.


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

	PR c++/58188
	* g++.dg/cpp0x/nsdmi-template8.C: New.

2013-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58725
	* g++.dg/cpp0x/nsdmi-template7.C: New.

2013-11-15  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58829
	* g++.dg/cpp0x/nsdmi-template6.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204881 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite:
	* c-c++-common/cpp/ucnid-2011-1.c: New test.

libcpp:
	* ucnid.tab: Add C11 and C11NOSTART data.
	* makeucnid.c (digit): Rename enum value to N99.
	(C11, N11, all_languages): New enum values.
	(NUM_CODE_POINTS, MAX_CODE_POINT): New macros.
	(flags, decomp, combining_value): Use NUM_CODE_POINTS as array
	size.
	(decomp): Use unsigned int as element type.
	(all_decomp): New array.
	(read_ucnid): Handle C11 and C11NOSTART.  Use MAX_CODE_POINT.
	(read_table): Use MAX_CODE_POINT.  Store all decompositions in
	all_decomp.
	(read_derived): Use MAX_CODE_POINT.
	(write_table): Use NUM_CODE_POINTS.  Print N99, C11 and N11
	flags.  Print whole array variable declaration rather than just
	array contents.
	(char_id_valid, write_context_switch): New functions.
	(main): Call write_context_switch.
	* ucnid.h: Regenerate.
	* include/cpplib.h (struct cpp_options): Add c11_identifiers.
	* init.c (struct lang_flags): Add c11_identifiers.
	(cpp_set_lang): Set c11_identifiers option from selected language.
	* internal.h (struct normalize_state): Document "previous" as
	previous starter character.
	(NORMALIZE_STATE_UPDATE_IDNUM): Take character as argument.
	* charset.c (DIG): Rename enum value to N99.
	(C11, N11): New enum values.
	(struct ucnrange): Give name to struct.  Use short for flags and
	unsigned int for end of range.  Include ucnid.h for whole variable
	declaration.
	(ucn_valid_in_identifier): Allow for characters up to 0x10FFFF.
	Allow for C11 in determining valid characters and valid start
	characters.  Use check_nfc for non-Hangul context-dependent
	checks.  Only store starter characters in nst->previous.
	(_cpp_valid_ucn): Pass new argument to
	NORMALIZE_STATE_UPDATE_IDNUM.
	* lex.c (lex_identifier): Pass new argument to
	NORMALIZE_STATE_UPDATE_IDNUM.  Call NORMALIZE_STATE_UPDATE_IDNUM
	after initial non-UCN part of identifier.
	(lex_number): Pass new argument to NORMALIZE_STATE_UPDATE_IDNUM.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204886 138bc75d-0d04-0410-961f-82ee72b054a4
	* lib/gcc.exp (gcc_target_compile): Add support for random runtime
	* lib/g++.exp (g++_target_compile): Likewise.
	libraries.
	* gcc.dg/cilk-plus/cilk-plus.exp: Improve support for runtime
	libraries.  Remove debugging.
	* g++.dg/cilk-plus/cilk-plus.exp: Add support to find runtime
	libraries.  Remove -O0, redundant with default.


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


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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204891 138bc75d-0d04-0410-961f-82ee72b054a4
        * MAINTAINERS (Global Reviewers, c++): Remove Mark Mitchell.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204893 138bc75d-0d04-0410-961f-82ee72b054a4
	* gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.

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

	PR c++/29143
	* semantics.c (finish_call_expr): Ensure that for OVERLOADs too
	'(&f)(...)' is the same as '(f)(...)', per 13.3.1.1.

/testsuite
2013-11-16  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/29143
	* g++.dg/overload/addr2.C: New.
	* g++.old-deja/g++.other/overload11.C: Adjust.


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

	PR c++/29143
	* semantics.c (finish_call_expr): Ensure that for OVERLOADs too
	'(&f)(...)' is the same as '(f)(...)', per 13.3.1.1.

/testsuite
2013-11-16  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/29143
	* g++.dg/overload/addr2.C: New.
	* g++.old-deja/g++.other/overload11.C: Adjust.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204899 138bc75d-0d04-0410-961f-82ee72b054a4
 	* config/arc/constraints.md (Rcq): Simplify register number test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204900 138bc75d-0d04-0410-961f-82ee72b054a4
        * config/arc/arc.c (arc_predicate_delay_insns): New function.
        (pass_data_arc_predicate_delay_insns): New pass_data instance.
        (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
        (make_pass_arc_predicate_delay_insns): New function.
        (arc_init): Register pass_arc_predicate_delay_insns if
        flag_delayed_branch is active.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204901 138bc75d-0d04-0410-961f-82ee72b054a4
Merge branch 'trunk' of https://github.com/mirrors/gcc into arc-mainline-dev
Merge branch 'trunk' of https://github.com/mirrors/gcc into arc-mainline-dev