Commit Graph

124414 Commits

Author SHA1 Message Date
Joseph Myers
2c6215249d * fi.po: Update.
From-SVN: r200911
2013-07-11 22:47:04 +01:00
Teresa Johnson
7b24b67537 This patch adds a call to ggc_free from va_gc::release, which is called by vec_free.
This patch adds a call to ggc_free from va_gc::release, which is
called by vec_free. This restores the functionality of the old VEC_free
and reduces the memory footprint during compilation.

2013-07-11  Teresa Johnson  <tejohnson@google.com>

	* vec.h (struct va_gc): Move release out-of-line.
	(va_gc::release): Call ggc_free on released vec.

From-SVN: r200909
2013-07-11 21:32:14 +00:00
Ulrich Weigand
85d4cbb878 rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"): Require GOT register as additional operand in UNSPEC.
* config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
	Require GOT register as additional operand in UNSPEC.
	("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
	("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
	("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
	("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
	("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
	("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
	("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.

From-SVN: r200904
2013-07-11 16:36:09 +00:00
Georg-Johann Lay
52b3f9e2ed re PR target/57631 (Use assembler name for sanity checking of ISR names provided it is set)
gcc/
	PR target/57631
	* config/avr/avr.c (avr_set_current_function): Sanity-check signal
	name seen by assembler/linker rather if available.

gcc/testsuite/
	PR target/57631
	* gcc.target/avr/torture/pr57631.c: New test.

From-SVN: r200901
2013-07-11 08:41:13 +00:00
Andreas Schwab
3f3e266e20 Define _REENTRANT with -pthread on aarch64-linux
* config/aarch64/aarch64-linux.h (CPP_SPEC): Define.

From-SVN: r200900
2013-07-11 07:03:26 +00:00
Vladimir Makarov
21231ca600 lra-constraints.c (curr_insn_transform): Switch off optional reloads.
2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>

	* lra-constraints.c (curr_insn_transform): Switch off optional
	reloads.

From-SVN: r200899
2013-07-11 02:12:00 +00:00
GCC Administrator
a12a4d7b3f Daily bump.
From-SVN: r200896
2013-07-11 00:16:16 +00:00
Joseph Myers
673c2f63be tm.texi.in: Move hook documentation to ....
* doc/tm.texi.in: Move hook documentation to ....
	* target.def: ... here.

From-SVN: r200893
2013-07-11 00:24:24 +01:00
Paolo Carlini
adcffce38c re PR c++/57827 (compiler segmentation fault)
2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r200892
2013-07-10 23:16:38 +00:00
Joseph Myers
d331d37480 tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray text on @hook line.
* doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
	text on @hook line.
	* doc/tm.texi: Regenerate.

From-SVN: r200891
2013-07-10 22:36:12 +01:00
Jack Howarth
bff7cdf66d re PR target/57792 (toplevel configure should enable "--with-sysroot="xcrun --show-sdk-path"" for darwin13 and later)
2013-07-10  Jack Howarth  <howarth@bromo.med.uc.edu>

	PR target/57792
	* configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on darwin13 and later.
	* configure: Regenerated.

From-SVN: r200890
2013-07-10 21:22:34 +00:00
Janis Johnson
9a5be7f963 20020118-1.c: Force 128-bit stack alignment for EABI targets.
* gcc.target/powerpc/20020118-1.c: Force 128-bit stack alignment
	for EABI targets.
	* gcc.c-torture/execute/nest-align-1.x: New.

From-SVN: r200887
2013-07-10 21:02:17 +00:00
Jack Howarth
be1a0d71ea re PR target/57792 (toplevel configure should enable "--with-sysroot="xcrun --show-sdk-path"" for darwin13 and later)
2013-07-10  Jack Howarth  <howarth@bromo.med.uc.edu>

	    PR target/57792
	    * configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on darwin13 and later.
	    * configure: Regenerated.

From-SVN: r200886
2013-07-10 20:52:45 +00:00
Graham Stott
6a2fa4b28e * Corrected missinge blank line in gcc/ChangeLog Entries
and move one entry to c-family/ChangeLog

From-SVN: r200881
2013-07-10 18:17:56 +00:00
Paolo Carlini
1fe62960d3 re PR c++/57874 (No SFINAE on ADL lookup failure)
2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57874
	* g++.dg/cpp0x/sfinae48.C: New.

From-SVN: r200880
2013-07-10 17:45:43 +00:00
Jakub Jelinek
d5e48350b4 re PR preprocessor/57824 (Raw string literals not handled correctly in macro arguments or deferred pragmas)
PR preprocessor/57824
	* lex.c (lex_raw_string): Allow reading new-lines if
	in_deferred_pragma or if parsing_args and there is still
	data in the current buffer.

	* c-c++-common/raw-string-17.c: New test.
	* c-c++-common/gomp/pr57824.c: New test.

From-SVN: r200879
2013-07-10 18:52:19 +02:00
Jakub Jelinek
c26302d535 c-ppoutput.c (scan_translation_unit): Call account_for_newlines for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
* c-ppoutput.c (scan_translation_unit): Call account_for_newlines
	for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.

	* include/cpplib.h (cpp_token_val_index): Change parameter type to
	const cpp_token *.
	* lex.c (cpp_token_val_index): Likewise.

	* c-c++-common/raw-string-18.c: New test.
	* c-c++-common/raw-string-19.c: New test.

From-SVN: r200878
2013-07-10 18:49:24 +02:00
Paolo Carlini
dfeadaa00b re PR c++/57869 ([C++11] Casting a object pointer to a function pointer should not warn about a forbidden conversion)
/c-family
2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57869
	* c.opt: Add Wconditionally-supported.

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

	PR c++/57869
	* typeck.c (build_reinterpret_cast_1): With -Wconditionally-supported
	warn about casting between pointer-to-function and pointer-to-object.

/gcc
2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/57869
	* doc/invoke.texi: Document -Wconditionally-supported.

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

	PR c++/57869
	* g++.dg/cpp0x/reinterpret_cast1.C: New.
	* g++.dg/warn/Wconditionally-supported-1.C: Likewise.
	* g++.dg/conversion/dr195.C: Update.
	* g++.dg/expr/cast2.C: Likewise.

From-SVN: r200876
2013-07-10 16:45:25 +00:00
Jakub Jelinek
87e356bada re PR preprocessor/57757 (CPP extra inserted whitespace needs to be reviewed for C++11 user-defined literals)
PR preprocessor/57757
	* lex.c (cpp_avoid_paste): Avoid pasting CPP_{,W,UTF8}STRING
	or CPP_STRING{16,32} with CPP_NAME or SPELL_LITERAL token that
	starts if a-zA-Z_.

	* g++.dg/cpp/paste1.C: New test.
	* g++.dg/cpp/paste2.C: New test.

From-SVN: r200875
2013-07-10 18:40:49 +02:00
Georg-Johann Lay
bb6f2bacbb re PR target/57844 (ICE: unrecognizable addqi3 insn with -msp8 and frame size of 128 bytes)
PR target/57844
	* config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
	of my_fp.

From-SVN: r200872
2013-07-10 12:39:18 +00:00
Georg-Johann Lay
5219b2325d re PR target/57506 ([avr] Some devices are present twice in avr-mcus.def)
PR target/57506
	* config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
	(atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
	(atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
	Remove duplicate devices.
	* config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
	* config/avr/t-multilib: Regenerate.
	* config/avr/avr-tables.opt: Regenerate.
	* doc/avr-mmcu.texi: Regenerate.

From-SVN: r200870
2013-07-10 12:32:05 +00:00
Georg-Johann Lay
283045c0b4 re PR target/56987 (gcc/config/avr/avr.opt:80: "change" -> "changed"?)
PR target/56987
	* config/avr/avr.opt (Waddr-space-convert): Fix typo.

From-SVN: r200869
2013-07-10 11:21:41 +00:00
Graham Stott
ceb2d59f8c mips.c (mips_rtx_costs): Very slightly increase the cost of MULT when optimizing for size.
* config/mips/mips.c (mips_rtx_costs): Very slightly increase
	the cost of MULT when optimizing for size.

	* gcc.target/mips/mulsize-1.c: New.
	* gcc.target/mips/mulsize-2.c: New.
	* gcc.target/mips/mulsize-3.c: New.
	* gcc.target/mips/mulsize-4.c: New.

From-SVN: r200867
2013-07-10 09:26:13 +00:00
Jan-Benedict Glaw
055e0a992c cr16-protos.h: Don't include target.h.
2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

gcc/
	* config/cr16/cr16-protos.h: Don't include target.h.

From-SVN: r200865
2013-07-10 08:08:07 +00:00
Jason Merrill
06b76c7fa8 re PR c++/57402 (ICE: in make_decl_rtl, at varasm.c:1147 when initializing variable-sized array)
PR c++/57402
	* init.c (build_vec_init): Don't take shortcuts when initializing
	a VLA.

From-SVN: r200860
2013-07-09 20:37:49 -04:00
GCC Administrator
9be2cb3797 Daily bump.
From-SVN: r200859
2013-07-10 00:16:39 +00:00
Joseph Myers
ef43e86898 rs6000.c (rs6000_init_hard_regno_mode_ok): Only adjust register size for TDmode and TFmode for VSX registers.
* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
	adjust register size for TDmode and TFmode for VSX registers.

From-SVN: r200853
2013-07-09 23:35:46 +01:00
Jason Merrill
d966b2749c re PR c++/57471 (Bizarre error for template parameter pack)
PR c++/57471
	* parser.c (cp_parser_sizeof_pack): Clear parser scopes.

From-SVN: r200852
2013-07-09 17:52:40 -04:00
Janis Johnson
7da3805802 * config.host (powerpc-*-eabispe*): Add t-fdpbit to tmake_file.
From-SVN: r200846
2013-07-09 21:31:09 +00:00
Jason Merrill
ce9011004c re PR c++/57658 (ICE in tsubst_copy, at cp/pt.c:12213)
PR c++/57658
	* semantics.c (finish_id_expression): Return the id for an
	unevaluated outer variable.

From-SVN: r200845
2013-07-09 14:50:28 -04:00
Jason Merrill
d9fac9dd59 re PR c++/57526 (use of X before deduction of auto error for seemingly good code)
PR c++/57526
	* semantics.c (lambda_capture_field_type): Build a DECLTYPE_TYPE
	if the variable type uses 'auto'.

From-SVN: r200844
2013-07-09 13:56:43 -04:00
Jason Merrill
f9f91ddcf7 re PR c++/57437 (C++11: mutable lambdas)
PR c++/57437
	* typeck.c (check_return_expr): Lambda proxies aren't eligible
	for nrv or return by move.

From-SVN: r200843
2013-07-09 13:56:32 -04:00
Jason Merrill
9a3970ddfc re PR c++/57532 (operator& broken when used on rvalues)
PR c++/57532
	* parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse
	a ref-qualifier in C++98 mode.

From-SVN: r200842
2013-07-09 13:56:14 -04:00
Jason Merrill
cb5f47b639 re PR c++/57545 (Generation of debug symbols leads to internal compiler error)
PR c++/57545
	* pt.c (convert_nontype_argument) [INTEGER_CST]: Force the
	argument to have the exact type of the parameter.

From-SVN: r200841
2013-07-09 13:56:03 -04:00
Jason Merrill
7eb48705c0 re PR regression/57551 (g++.dg/ext/visibility/anon6.C scan-assembler 1BIiE1cE)
PR c++/57551
	* semantics.c (cxx_eval_indirect_ref): Don't try to look through
	a POINTER_PLUS_EXPR for type punning diagnostic.

From-SVN: r200840
2013-07-09 13:55:43 -04:00
Jason Merrill
1d0859d894 re PR c++/57831 (pointer to member function inaccessible through using statement (or ICE))
PR c++/57831
	* pt.c (tsubst_copy): Handle USING_DECL.

From-SVN: r200839
2013-07-09 13:55:24 -04:00
Marc Glisse
40e0364c55 re PR c++/53094 (constexpr vector subscripting)
2013-07-09  Marc Glisse  <marc.glisse@inria.fr>

	PR c++/53094
gcc/cp/
	* semantics.c (cxx_eval_bit_field_ref): Handle VECTOR_CST.

gcc/testsuite/
	* g++.dg/cpp0x/constexpr-53094-1.C: Adjust.
	* g++.dg/ext/vector24.C: New testcase.

From-SVN: r200822
2013-07-09 15:58:36 +00:00
Marc Glisse
76c7bf65e8 re PR c++/53000 (Conditional operator does not behave as standardized)
2013-07-09  Marc Glisse  <marc.glisse@inria.fr>

	PR c++/53000
gcc/cp/
	* call.c (build_conditional_expr_1): Preserve xvalues.

gcc/testsuite/
	* g++.dg/cpp0x/decltype17.C: Adjust.

From-SVN: r200821
2013-07-09 15:55:49 +00:00
Tim Shen
b3ebe3d0e0 Implement class regex_traits.
2013-07-09  Tim Shen  <timshen91@gmail.com>

	Implement class regex_traits.
	* include/bits/regex.h: Implement lookup_classname and
	lookup_collatename; modify isctype; partially implement
	transform_primary.
	* testsuite/28_regex/traits/char/isctype.cc: Add more test cases.
	* testsuite/28_regex/traits/char/lookup_classname.cc: Likewise.
	* testsuite/28_regex/traits/char/lookup_collatename.cc: Likewise.
	* testsuite/28_regex/traits/char/transform_primary.cc: Likewise.
	* testsuite/28_regex/traits/wchar_t/isctype.cc: New.
	* testsuite/28_regex/traits/wchar_t/lookup_classname.cc: New.
	* testsuite/28_regex/traits/wchar_t/lookup_collatename.cc: New.
	* testsuite/28_regex/traits/wchar_t/transform_primary.cc: New.

From-SVN: r200818
2013-07-09 13:41:10 +00:00
Simon Baldwin
309f50b920 configure.ac: Add AC_CONFIG_AUX_DIR.
* configure.ac: Add AC_CONFIG_AUX_DIR.
	* configure: Regenerated.

From-SVN: r200814
2013-07-09 10:24:39 +00:00
Paolo Carlini
22adf7b528 re PR c++/51786 ([c++0x] Invalid declaration with decltype accepted)
/cp
2013-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/51786
	* parser.c (cp_parser_simple_declaration): Before calling shadow_tag
	also check declares_class_or_enum.

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

	PR c++/51786
	* g++.dg/cpp0x/pr51786.C: New.

From-SVN: r200813
2013-07-09 09:28:09 +00:00
Tristan Gingold
3830d98a8b makefile.vms (OBJS): Add dwarfnames.obj
2013-07-09  Tristan Gingold  <gingold@adacore.com>

	* makefile.vms (OBJS): Add dwarfnames.obj

From-SVN: r200812
2013-07-09 07:43:35 +00:00
Jason Merrill
0ef08a8117 re PR c++/57550 (bogus "error ... is private")
PR c++/57550
	* pt.c (fn_type_unification): Only defer during substitution.
	(type_unification_real): Defer during defarg substitution,
	add checks parm to pass back deferred checks.
	(unify, do_auto_deduction): Adjust.
	* semantics.c (reopen_deferring_access_checks): New.
	* cp-tree.h: Declare it.

From-SVN: r200808
2013-07-08 23:19:36 -04:00
GCC Administrator
a89b31132d Daily bump.
From-SVN: r200806
2013-07-09 00:16:22 +00:00
Janis Johnson
3cefbd8860 * gcc.target/powerpc/tfmode_off.c: Skip for EABI targets.
From-SVN: r200802
2013-07-08 20:19:35 +00:00
Janis Johnson
21d3410721 * gcc.target/powerpc/ppc-spe64-1.c: Update expected error message.
From-SVN: r200799
2013-07-08 19:34:39 +00:00
Janis Johnson
bb9d19834b * gcc.target/powerpc/pr47197.c: Require powerpc_altivec_ok.
From-SVN: r200798
2013-07-08 19:33:52 +00:00
Janis Johnson
ad3d089954 sd-vsx.c: Require dfp.
* gcc.target/powerpc/sd-vsx.c: Require dfp.
	* gcc.target/powerpc/sd-pwr6.c: Likewise.

From-SVN: r200797
2013-07-08 19:33:10 +00:00
Tobias Burnus
5e7ea2143a re PR fortran/57834 (C_F_POINTER (only with -std=): accepts only explicit- and assumed-size arrays for FPTR when SHAPE is present)
2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57834
        * check.c (is_c_interoperable): Add special case for
        * c_f_pointer.
        (explicit-size, gfc_check_c_f_pointer, gfc_check_c_loc): Update
        call.

2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57834
        * gfortran.dg/c_f_pointer_tests_8.f90: New.

From-SVN: r200794
2013-07-08 21:05:16 +02:00
Kai Tietz
4a283fdfbf re PR c++/56892 (dllexport prevents inline inside dll)
PR target/56892
	* config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
	hook_bool_const_tree_true.

From-SVN: r200792
2013-07-08 19:54:55 +02:00