Andrew Bennett
e25d96321c
Add myself to the MAINTAINERS file.
...
2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r211167
2014-06-03 09:37:13 +00:00
Thomas Preud'homme
3cc272c178
re PR tree-optimization/61328 (valgrind finds problem in find_bswap_or_nop_1)
...
2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR tree-optimization/61328
* tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
initialization from find_bswap_or_nop_1.
(find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
in source_expr2 before using the size value the function sets. Also
make use of init_symbolic_number () in both the old place and
find_bswap_or_nop_load () to avoid reading uninitialized memory when
doing recursion in the GIMPLE_BINARY_RHS case.
From-SVN: r211166
2014-06-03 09:29:06 +00:00
Richard Biener
597c6315ca
re PR tree-optimization/61383 (wrong code at -O2 and -O3 on x86_64-linux-gnu)
...
2014-06-03 Richard Biener <rguenther@suse.de>
PR tree-optimization/61383
* tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
stmts can't trap.
* gcc.dg/torture/pr61383-1.c: New testcase.
From-SVN: r211163
2014-06-03 08:48:28 +00:00
Richard Sandiford
b48e9677e5
gcc/
...
* defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
(EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
(CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
(REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
in this file.
(REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
(CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
* system.h: ...here and make it unconditional.
* target.def (conditional_register_usage): Mention
define_register_constraint instead of old-style constraint macros.
* doc/tm.texi.in: Remove documentation for old-style constraint macros.
* doc/tm.texi: Regenerate.
* genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
protected by !USE_MD_CONSTRAINTS.
* config/frv/frv.md: Remove quote from old version of documentation.
* config/frv/frv.c (frv_conditional_register_usage): Likewise.
* config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
CONST_DOUBLE_OK_FOR_LETTER.
* config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
From-SVN: r211161
2014-06-03 07:27:13 +00:00
Jason Merrill
99d14de62f
re PR c++/61046 (ICE in lookup_field_1, at cp/search.c:384)
...
PR c++/61046
* decl.c (reshape_init_class): Handle un-folded
constant-expressions.
From-SVN: r211160
2014-06-03 00:57:39 -04:00
Jason Merrill
cfc8dced31
re PR c++/61134 ([C++11] bogus "no matching function for call...")
...
PR c++/61134
* pt.c (pack_deducible_p): Handle canonicalization.
From-SVN: r211159
2014-06-03 00:57:32 -04:00
Paolo Carlini
a21e55d2bb
pt.c (tsubst_function_type): Initialize arg_types.
...
2014-06-02 Paolo Carlini <paolo.carlini@oracle.com>
* pt.c (tsubst_function_type): Initialize arg_types.
From-SVN: r211158
2014-06-03 02:31:01 +00:00
GCC Administrator
2e91ec353c
Daily bump.
...
From-SVN: r211157
2014-06-03 00:17:07 +00:00
Andrew Pinski
3a87ac45bc
Fix formating in my last changelog entry.
...
From-SVN: r211153
2014-06-02 17:06:41 -07:00
Andreas Schwab
6f75290f91
* gcc.target/powerpc/vsxcopy.c (dg-options): Add -mvsx.
...
From-SVN: r211152
2014-06-02 22:38:30 +00:00
Siva Chandra Reddy
1bae589107
re PR debug/57519 (DW_TAG_imported_declaration put in wrong class (base class instead of derived class))
...
PR debug/57519
* class.c (handle_using_decl): Pass the correct scope to
cp_emit_debug_info_for_using.
From-SVN: r211151
2014-06-02 18:10:57 -04:00
Andrew Pinski
b94f553350
aarch64-linux.h (GLIBC_DYNAMIC_LINKER): /lib/ld-linux32-aarch64.so.1 is used for ILP32.
...
2014-06-02 Andrew Pinski <apinski@cavium.com>
* config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
/lib/ld-linux32-aarch64.so.1 is used for ILP32.
(LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
file whose name depends on -mabi= and -mbig-endian.
* config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
Handle LP64 better and handle ilp32 too.
(MULTILIB_OPTIONS): Delete.
(MULTILIB_DIRNAMES): Delete.
From-SVN: r211148
2014-06-02 14:24:41 -07:00
Ville Voutilainen
adb50dfbf6
re PR c++/59483 (A nested lambda fails to find a protected name with qualified name)
...
PR c++/59483
PR c++/61148
* search.c (accessible_p): Use current_nonlambda_class_type.
* semantics.c (check_accessibility_of_qualified_id): Likewise.
From-SVN: r211147
2014-06-02 16:47:55 -04:00
Andrew MacLeod
9b2b72791e
expr.h: Remove prototypes of functions defined in builtins.c.
...
* expr.h: Remove prototypes of functions defined in builtins.c.
* tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
Remove prototypes of functions defined in builtins.c.
* builtins.h: Update prototype list to include all exported functions.
* builtins.c: (default_libc_has_function, gnu_libc_has_function,
no_c99_libc_has_function): Move to targhooks.c
(build_string_literal, build_call_expr_loc_array,
build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
to tree.c.
(expand_builtin_object_size, fold_builtin_object_size): Make static.
* targhooks.c (default_libc_has_function, gnu_libc_has_function,
no_c99_libc_has_function): Relocate from builtins.c.
* tree.c: Include builtins.h.
(build_call_expr_loc_array, build_call_expr_loc_vec,
build_call_expr_loc, build_call_expr, build_string_literal): Relocate
from builtins.c.
* fold-const.h (fold_fma): Move prototype to builtins.h.
* realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
* fortran/trans.c (trans_runtime_error_vararg): Call
fold_build_call_array_loc instead of fold_builtin_call_array.
* asan.c: Include builtins.h.
* cfgexpand.c: Likewise.
* convert.c: Likewise.
* emit-rtl.c: Likewise.
* except.c: Likewise.
* expr.c: Likewise.
* fold-const.c: Likewise.
* gimple-fold.c: Likewise.
* gimple-ssa-strength-reduction.c: Likewise.
* gimplify.c: Likewise.
* ipa-inline.c: Likewise.
* ipa-prop.c: Likewise.
* lto-streamer-out.c: Likewise.
* stmt.c: Likewise.
* tree-inline.c: Likewise.
* tree-object-size.c: Likewise.
* tree-sra.c: Likewise.
* tree-ssa-ccp.c: Likewise.
* tree-ssa-forwprop.c: Likewise.
* tree-ssa-loop-ivcanon.c: Likewise.
* tree-ssa-loop-ivopts.c: Likewise.
* tree-ssa-math-opts.c: Likewise.
* tree-ssa-reassoc.c: Likewise.
* tree-ssa-threadedge.c: Likewise.
* tree-streamer-in.c: Likewise.
* tree-vect-data-refs.c: Likewise.
* tree-vect-patterns.c: Likewise.
* tree-vect-stmts.c: Likewise.
c
* c-decl.c: Include builtins.h.
* c-parser.c: Likewise.
cp
* decl.c: Include builtins.h.
* semantics.c: Likewise.
go
* go-gcc.cc: Include builtins.h.
lto
* lto-symtab.c: Include builtins.h.
config
* aarch64/aarch64.c: Include builtins.h.
* alpha/alpha.c: Likewise.
* arc/arc.c: Likewise.
* arm/arm.c: Likewise.
* avr/avr.c: Likewise.
* bfin/bfin.c: Likewise.
* c6x/c6x.c: Likewise.
* cr16/cr16.c: Likewise.
* cris/cris.c: Likewise.
* epiphany/epiphany.c: Likewise.
* fr30/fr30.c: Likewise.
* frv/frv.c: Likewise.
* h8300/h8300.c: Likewise.
* i386/i386.c: Likewise.
* i386/winnt.c: Likewise.
* ia64/ia64.c: Likewise.
* iq2000/iq2000.c: Likewise.
* lm32/lm32.c: Likewise.
* m32c/m32c.c: Likewise.
* m32r/m32r.c: Likewise.
* m68k/m68k.c: Likewise.
* mcore/mcore.c: Likewise.
* mep/mep.c: Likewise.
* microblaze/microblaze.c: Likewise.
* mips/mips.c: Likewise.
* mmix/mmix.c: Likewise.
* mn10300/mn10300.c: Likewise.
* moxie/moxie.c: Likewise.
* msp430/msp430.c: Likewise.
* nds32/nds32.c: Likewise.
* pa/pa.c: Likewise.
* pdp11/pdp11.c: Likewise.
* picochip/picochip.c: Likewise.
* rl78/rl78.c: Likewise.
* rs6000/rs6000.c: Likewise.
* rx/rx.c: Likewise.
* s390/s390.c: Likewise.
* score/score.c: Likewise.
* sh/sh.c: Likewise.
* sparc/sparc.c: Likewise.
* spu/spu.c: Likewise.
* stormy16/stormy16.c: Likewise.
* tilegx/tilegx.c: Likewise.
* tilepro/tilepro.c: Likewise.
* v850/v850.c: Likewise.
* vax/vax.c: Likewise.
* xtensa/xtensa.c: Likewise.
From-SVN: r211145
2014-06-02 20:13:44 +00:00
Jonathan Wakely
097f0bcf65
regex_compiler.h (__detail::_BracketMatcher): Reorder members to avoid wasted space when not using a cache.
...
* include/bits/regex_compiler.h (__detail::_BracketMatcher): Reorder
members to avoid wasted space when not using a cache.
(__detail::_BracketMatcher::_M_ready()): Sort and deduplicate set.
* include/bits/regex_compiler.tcc
(__detail::_BracketMatcher::_M_apply(_CharT, false_type)): Use binary
search on set.
* include/bits/regex_executor.h (__detail::_Executor::_Match_mode):
New enumeration type to indicate match mode.
(__detail::_Executor::_State_info): New type holding members only
needed in BFS-mode. Replace unique_ptr<vector<bool>> with
unique_ptr<bool[]>.
(__detail::_Executor::_M_rep_once_more, __detail::_Executor::_M_dfs):
Replace template parameter with run-time function parameter.
(__detail::_Executor::_M_main): Likewise. Dispatch to ...
(__detail::_Executor::_M_main_dispatch): New overloaded functions to
implement DFS and BFS mode.
* include/bits/regex_executor.tcc (__detail::_Executor::_M_main):
Split implementation into ...
(__detail::_Executor::_M_main_dispatch): New overloaded functions.
(__detail::_Executor::_M_lookahead): Create nested executor on stack.
(__detail::_Executor::_M_rep_once_more): Pass match mode as function
argument instead of template argument.
(__detail::_Executor::_M_dfs): Likewise.
* include/bits/regex_scanner.tcc: Fix typos in comments.
* testsuite/performance/28_regex/range.cc: New.
From-SVN: r211143
2014-06-02 20:36:14 +01:00
Jeff Law
0d732cca67
re PR rtl-optimization/61094 (-O3 insn Internal compiler error in copyprop_hardreg_forward_1, at regcprop.c:775)
...
PR rtl-optimization/61094
* ree.c (combine_reaching_defs): Do not reextend an insn if it
was marked as do_no_reextend. If a copy is needed to eliminate
an extension, then mark it as do_not_reextend.
PR rtl-optimization/61094
* g++.dg/pr61094: New test.
From-SVN: r211142
2014-06-02 13:12:08 -06:00
Marcus Shawcroft
a2adad8b0f
[AArch64] Remove ISB after FPCR write.
...
From-SVN: r211140
2014-06-02 16:40:06 +00:00
Richard Henderson
20a951e6b7
re PR target/61336 (ICE on alpha: in print_operand_address, at config/alpha/alpha.c:5454)
...
PR target/61336
* config/alpha/alpha.c (print_operand_address): Allow symbolic
addresses inside asms. Use output_operand_lossage instead of
gcc_unreachable.
From-SVN: r211139
2014-06-02 09:27:41 -07:00
Jonathan Wakely
315eb4bb08
condition_variable (condition_variable_any::_Unlock): Do not swallow __forced_unwind.
...
* include/std/condition_variable (condition_variable_any::_Unlock): Do
not swallow __forced_unwind.
* include/std/future (__future_base::_Task_setter): Likewise.
(__future_base::_Async_state_impl): Turn __forced_unwind into broken
promise and rethrow.
* include/std/mutex (try_lock): Likewise.
* testsuite/30_threads/async/forced_unwind.cc: New.
* testsuite/30_threads/packaged_task/forced_unwind.cc: New.
From-SVN: r211138
2014-06-02 16:45:09 +01:00
Rüdiger Sonderfeld
d371802725
type_traits (__strictest_alignment): New helper struct.
...
2014-06-02 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Jonathan Wakely <jwakely@redhat.com>
* libstdc++-v3/include/std/type_traits (__strictest_alignment): New
helper struct.
(aligned_union): New struct (C++11).
(aligned_union_t): New type alias (C++14).
* doc/xml/manual/status_cxx2011.xml: Update.
* libstdc++-v3/testsuite/20_util/aligned_union/1.cc: New file.
* testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
line number.
Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r211137
2014-06-02 14:55:14 +01:00
Uros Bizjak
ae48824a79
xop-rotate1-vector.c (dg-options): Add -mno-avx2.
...
* gcc.target/i386/xop-rotate1-vector.c (dg-options): Add -mno-avx2.
* gcc.target/i386/xop-rotate2-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-rotate3-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-imul32widen-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-imul64-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-shift1-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-shift2-vector.c (dg-options): Ditto.
* gcc.target/i386/xop-shift3-vector.c (dg-options): Ditto.
From-SVN: r211136
2014-06-02 15:40:49 +02:00
Uros Bizjak
40c0a15972
re PR target/61239 (ICE in decompose, at rtl.h when compiling vshuf-v16hi.c using -mavx2)
...
PR target/61239
* config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
From-SVN: r211134
2014-06-02 15:22:34 +02:00
Tom de Vries
94bfa2da9a
Fix ICE in aarch64_float_const_representable_p
...
2014-06-02 Tom de Vries <tom@codesourcery.com>
* config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
case that x has VOIDmode.
From-SVN: r211132
2014-06-02 13:13:43 +00:00
Bernd Schmidt
242d4d3fdd
Fix a decl to match the calls to it.
...
* trans-decl.c (gfc_build_builtin_function_decls): Correct number of
arguments to caf_init.
From-SVN: r211131
2014-06-02 12:06:20 +00:00
Bernd Schmidt
4a1f940f68
Delete a copy that looks like a relic from obstack times.
...
* varasm.c (copy_constant): Delete function.
(build_constant_desc): Don't call it.
From-SVN: r211130
2014-06-02 12:06:11 +00:00
Ramana Radhakrishnan
27e83a44d3
re PR target/61154 ([ARM] wide-int merge introduced regressions in vshuf tests)
...
Fix PR target/61154
2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
PR target/61154
* config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
* config/arm/arm.md (mov64 splitter): Replace const_double_operand
with immediate_operand.
From-SVN: r211129
2014-06-02 08:22:30 +00:00
Richard Biener
2ba0071e3d
re PR tree-optimization/61346 (VRP chooses bad bounds for variable)
...
2014-06-02 Richard Biener <rguenther@suse.de>
PR tree-optimization/61346
* gcc.dg/torture/pr61346.c: New testcase.
From-SVN: r211128
2014-06-02 08:07:23 +00:00
Andreas Schwab
31815ed772
* config/ia64/ia64.c
...
(ia64_first_cycle_multipass_dfa_lookahead_guard): Check
pending_data_specs first.
From-SVN: r211127
2014-06-02 07:53:26 +00:00
Richard Biener
61dd7fbcbb
re PR middle-end/61378 (Obvious bug in vn_reference_lookup_3)
...
2014-06-02 Richard Biener <rguenther@suse.de>
PR tree-optimization/61378
* tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
valueized_anything.
From-SVN: r211126
2014-06-02 07:45:15 +00:00
GCC Administrator
7c2385cb92
Daily bump.
...
From-SVN: r211125
2014-06-02 00:17:19 +00:00
Jonathan Wakely
314efb66cf
uses_allocator.h (__uses_allocator_helper): Simplify.
...
* include/bits/uses_allocator.h (__uses_allocator_helper): Simplify.
(__uses_allocator_arg): Remove unused type.
(__uses_alloc0): Turn into a trivial type.
(__uses_alloc): Add missing template parameter in primary template.
(__uses_alloc_impl): Rename to __uses_alloc_t.
From-SVN: r211121
2014-06-01 23:35:42 +01:00
Uros Bizjak
54dbf90c37
sibcall-2.c: Xfail dg-final scan-assembler-not, not compilation.
...
* gcc.target/i386/sibcall-2.c: Xfail dg-final scan-assembler-not,
not compilation.
* gcc.target/i386/sibcall-4.c: Ditto.
* gcc.target/i386/fuse-caller-save.c: Add -mregparm=1 for ia32 target.
From-SVN: r211120
2014-06-01 23:14:02 +02:00
Uros Bizjak
1828d3e679
constraints.md (Bw): Rename from 'w'.
...
* config/i386/constraints.md (Bw): Rename from 'w'.
(Bz): Rename from 'z'.
* config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
From-SVN: r211119
2014-06-01 22:53:18 +02:00
Uros Bizjak
7fd009d0a7
sibcall-2.c (dg-final): Properly escape '[' and ']' in scan-assembler-not string.
...
* gcc.target/i386/sibcall-2.c (dg-final): Properly escape '[' and ']'
in scan-assembler-not string.
* gcc.target/i386/sibcall-3.c (dg-final): Ditto.
* gcc.target/i386/sibcall-4.c (dg-final): Ditto.
* gcc.target/i386/sibcall-6.c (dg-final): Ditto.
From-SVN: r211118
2014-06-01 22:37:41 +02:00
Kai Tietz
e9e195d6da
* Add missing ChangeLog entry.
...
From-SVN: r211117
2014-06-01 21:48:53 +02:00
Ray Donnelly
ad484eca9f
pex-win32.c (argv_to_cmdline): Don't quote args unnecessarily
...
2014-06-01 Ray Donnelly <mingw.android@gmail.com>
* pex-win32.c (argv_to_cmdline): Don't quote
args unnecessarily
From-SVN: r211116
2014-06-01 21:09:59 +02:00
Uros Bizjak
e3bbcfb270
pr60969.C (dg-do compile): Change ilp32 target to ia32.
...
* g++.dg/pr60969.C (dg-do compile): Change ilp32 target to ia32.
From-SVN: r211114
2014-06-01 20:12:00 +02:00
Jonathan Wakely
16545743c6
re PR libstdc++/61374 (string_view::operator string() is buggy)
...
PR libstdc++/61374
* include/experimental/string_view (operator basic_string): Correct
order of arguments.
(to_string): Replace with member function.
Add inline specifiers. Remove unused header. Remove _S_empty_rep and
allow _M_str to be null.
* testsuite/experimental/string_view/cons/char/1.cc: Adjust to new
default constructor semantics.
* testsuite/experimental/string_view/cons/wchar_t/1.cc: Likewise.
* testsuite/experimental/string_view/operations/copy/char/1.cc: Fix
copyright dates. Remove unused header.
* testsuite/experimental/string_view/operations/copy/wchar_t/1.cc:
Likewise.
* testsuite/experimental/string_view/operations/data/char/1.cc:
Fix copyright dates. Adjust to new default constructor semantics.
* testsuite/experimental/string_view/operations/data/wchar_t/1.cc:
Likewise.
* testsuite/experimental/string_view/operations/to_string/1.cc: New.
From-SVN: r211113
2014-06-01 18:23:41 +01:00
Kai Tietz
6041d142c4
re PR target/61377 (Bootstrap failure on x86_64-apple-darwin13)
...
PR target/61377
* constrains.md (define_constrain): New 'Bs' constraint.
* i386.md (sibcall_insn_operand): Use Bs instead of m constraint.
From-SVN: r211112
2014-06-01 12:36:55 +02:00
Kai Tietz
4a065d4a62
re PR target/61377 (Bootstrap failure on x86_64-apple-darwin13)
...
PR target/61377
* gcc.target/i386/sibcall-6.c: New test.
From-SVN: r211111
2014-06-01 12:35:19 +02:00
GCC Administrator
9406c7d0b7
Daily bump.
...
From-SVN: r211110
2014-06-01 00:17:25 +00:00
Andreas Schwab
aef1bf3b55
Summary: m68k: add missing early clobber in beq0_di, bne0_di patterns
...
* config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
a separate alternative where the scratch operand 2 is marked as
early clobber.
From-SVN: r211104
2014-05-31 12:08:25 +00:00
Kugan Vivekanandarajah
f10743d3f7
arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
...
gcc/
2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
* config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
(arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
(bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
and __builtins_arm_get_fpscr.
(arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
__builtins_arm_get_fpscr.
(arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
__builtins_arm_ldfpscr.
(arm_atomic_assign_expand_fenv): New function.
* config/arm/vfp.md (set_fpscr): New pattern.
(get_fpscr) : Likewise.
* config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
VUNSPEC_SET_FPSCR.
* doc/extend.texi (AARCH64 Built-in Functions) : Document
__builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
From-SVN: r211103
2014-05-31 09:27:52 +00:00
Paolo Carlini
cab421f485
DR 1227 PR c++/57543
...
/cp
2014-05-31 Paolo Carlini <paolo.carlini@oracle.com>
DR 1227
PR c++/57543
* cp-tree.h (TYPE_HAS_LATE_RETURN_TYPE): Add.
* pt.c (tsubst_function_type): Inject the this parameter; do the
substitutions in the order mandated by the DR.
(copy_default_args_to_explicit_spec): Copy TYPE_HAS_LATE_RETURN_TYPE.
* decl.c (grokdeclarator): Maybe set TYPE_HAS_LATE_RETURN_TYPE.
(static_fn_type): Copy it.
* decl2.c (build_memfn_type, change_return_type,
cp_reconstruct_complex_type): Likewise.
* parser.c (cp_parser_lambda_declarator_opt): Likewise.
* tree.c (strip_typedefs): Likewise.
* typeck.c (merge_types): Likewise.
/testsuite
2014-05-31 Paolo Carlini <paolo.carlini@oracle.com>
DR 1227
PR c++/57543
* g++.dg/cpp0x/pr57543-1.C: New.
* g++.dg/cpp0x/pr57543-2.C: Likewise.
* g++.dg/cpp0x/pr57543-3.C: Likewise.
* g++.dg/cpp0x/decltype59.C: Likewise.
From-SVN: r211102
2014-05-31 08:51:20 +00:00
GCC Administrator
f5fb306951
Daily bump.
...
From-SVN: r211101
2014-05-31 00:17:15 +00:00
Tom de Vries
fb26e9e5e3
Add missing closing brace
...
2014-05-31 Tom de Vries <tom@codesourcery.com>
* gcc.target/i386/sibcall-4.c: Add missing closing brace.
From-SVN: r211097
2014-05-30 22:58:46 +00:00
Jonathan Wakely
8e43535e17
appendix_contributing.xml (list.copyright): Add Paolo's address too.
...
* doc/xml/manual/appendix_contributing.xml (list.copyright): Add
Paolo's address too.
From-SVN: r211095
2014-05-30 20:26:15 +01:00
Jason Merrill
b6bb89777e
re PR c++/56947 (Bogus 'XX' was not declared in this scope)
...
PR c++/56947
* pt.c (instantiate_decl): Check that defer_ok is not set for
local class members.
From-SVN: r211094
2014-05-30 14:55:56 -04:00
Jakub Jelinek
51db86a829
target-libpath.exp (set_gcc_exec_prefix_env_var, [...]): New procedures.
...
* lib/target-libpath.exp (set_gcc_exec_prefix_env_var,
restore_gcc_exec_prefix_env_var): New procedures.
(set_ld_library_path_env_vars,
restore_ld_library_path_env_vars): Use them.
* lib/c-compat.exp: Load target-libpath.exp.
(compat-use-alt-compiler): Call restore_gcc_exec_prefix_env_var.
(compat-use-tst-compiler): Call set_gcc_exec_prefix_env_var.
* g++.dg/compat/compat.exp (compat-use-alt-compiler): Call
restore_gcc_exec_prefix_env_var.
* g++.dg/compat/struct-layout-1.exp (compat-use-alt-compiler):
Likewise.
From-SVN: r211093
2014-05-30 20:40:20 +02:00
Jakub Jelinek
b3f1051b11
asan.c (report_error_func): Add SLOW_P argument, use BUILT_IN_ASAN_*_N if set.
...
* asan.c (report_error_func): Add SLOW_P argument, use
BUILT_IN_ASAN_*_N if set.
(build_check_stmt): Likewise.
(instrument_derefs): If T has insufficient alignment,
force same handling as for odd sizes.
* c-c++-common/asan/misalign-1.c: New test.
* c-c++-common/asan/misalign-2.c: New test.
From-SVN: r211092
2014-05-30 20:37:59 +02:00