- 10 May, 2014 4 commits
-
-
gcc/testsuite/ PR target/51244 * gcc.target/sh/pr51244-14.c: Relax criteria for passing the test. From-SVN: r210301
Oleg Endo committed -
* c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to maybe_warn_string_init. (c_parser_postfix_expression_after_paren_type): Pass type_loc to maybe_warn_string_init. * c-tree.h (maybe_warn_string_init): Update declaration. * c-typeck.c (maybe_warn_string_init): Add location parameter. Call pedwarn_init with loc instead of with input_location. (digest_init): Pass init_loc to maybe_warn_string_init. (pop_init_level): Call pedwarn_init with loc instead of with input_location. (set_init_index): Likewise. (process_init_element): Likewise. * gcc.dg/pedwarn-init.c: New test. * gcc.dg/init-string-1.c: Adjust dg-error. From-SVN: r210300
Marek Polacek committed -
(check_effective_target_logical_op_short_circuit): Add mmix-*-* to the list. From-SVN: r210299
Hans-Peter Nilsson committed -
From-SVN: r210298
GCC Administrator committed
-
- 09 May, 2014 26 commits
-
-
PR c++/60463 PR c++/60755 * lambda.c (lambda_expr_this_capture): Add new parameter add_capture_p controlling whether the functions will try to capture 'this' via the default capture. (maybe_resolve_dummy): Likewise. * cp-tree.h: Adjust prototypes. * call.c, semantics.c: Change callers of these functions. * call.c (build_new_method_call_1): Use the actual 'this' that would be potentially captured for the overload resolution, instead of the dummy object. From-SVN: r210292
Momchil Velikov committed -
From-SVN: r210291
Jonathan Wakely committed -
* config/abi/pre/gnu.ver (GLIBCXX_3.4.20): Correct regex_error export. (GLIBCXX_3.4.21): Export base object constructor for regex_error. * acinclude.m4 (libtool_VERSION): Bump. * configure: Regenerate. * testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.21 version. * testsuite/28_regex/regex_error/base.cc: New. From-SVN: r210290
Jonathan Wakely committed -
2014-05-09 Paolo Carlini <paolo.carlini@oracle.com> * pt.c (convert_nontype_argument_function): Add tsubst_flags_t parameter. (convert_nontype_argument): Adjust calls. (coerce_template_parameter_pack): Add missing complain & tf_error check. From-SVN: r210289
Paolo Carlini committed -
2014-05-09 Teresa Johnson <tejohnson@google.com> * cgraphunit.c (analyze_functions): Use correct dump file. From-SVN: r210286
Teresa Johnson committed -
DR 587 PR c++/51317 * call.c (build_conditional_expr_1, conditional_conversion): Handle non-class lvalues and xvalues that differ only in cv-qualifiers. From-SVN: r210285
Jason Merrill committed -
DR 5 PR c++/60019 * call.c (build_user_type_conversion_1): The copy-init temporary is cv-unqualified. From-SVN: r210284
Jason Merrill committed -
re PR c++/58714 (Bogus overload resolution for the assignment operator in assignment to a conditional) PR c++/58714 * tree.c (stabilize_expr): A stabilized prvalue is an xvalue. From-SVN: r210283
Jason Merrill committed -
PR c++/32019 * call.c (build_conditional_expr_1): Improve ambiguity diagnostic. PR c++/54348 * call.c (build_conditional_expr_1): If overload resolution finds no match, just say "different types". From-SVN: r210282
Jason Merrill committed -
PR c++/22434 * call.c (build_conditional_expr_1): Don't try to pool cv-quals if we didn't find a conversion. Don't accept a bad conversion too early. From-SVN: r210281
Jason Merrill committed -
PR c/61096 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level. (c_parser_initelt): Pass location to set_init_label. Pass array index location to set_init_index. * c-tree.h (push_init_level): Update declaration. (pop_init_level): Likewise. (set_init_index): Likewise. (set_init_label): Likewise. * c-typeck.c (error_init): Add location parameter. Call error_at instead of error. (digest_init): Pass init_loc to error_init. (really_start_incremental_init): (push_init_level): Add location parameter. Pass loc to pop_init_level and error_init. (pop_init_level): Likewise. (set_designator): Add location parameter. Pass loc to pop_init_level, push_init_level, and error_init. (set_init_index): Add location parameter. Pass loc to error_init and set_designator. (set_init_label): Likewise. (output_init_element): Pass loc to error_init. (process_init_element): Pass loc to error_init, pop_init_level, pedwarn_init, and push_init_level. * gcc.dg/pr61096-1.c: New test. * gcc.dg/pr61096-2.c: New test. From-SVN: r210280
Marek Polacek committed -
PR fortran/61109 * trans-array.c (gfc_conv_array_initializer): Fix wide-int conversion bug. From-SVN: r210277
Mike Stump committed -
From-SVN: r210276
Kenneth Zadeck committed -
This patch fixes a loophole in the -fstack-protector-strong protection. If a function call uses a return slot, the caller needs stack protector instrumentation because the return slot is addressable. gcc/ 2014-05-09 Florian Weimer <fweimer@redhat.com> * cfgexpand.c (stack_protect_decl_p): New function, extracted from expand_used_vars. (stack_protect_return_slot_p): New function. (expand_used_vars): Call stack_protect_decl_p and stack_protect_return_slot_p for -fstack-protector-strong. gcc/testsuite/ 2014-05-09 Florian Weimer <fweimer@redhat.com> * gcc.dg/fstack-protector-strong.c: Add coverage for return slots. * g++.dg/fstack-protector-strong.C: Likewise. * gcc.target/i386/ssp-strong-reg.c: New file. From-SVN: r210275
Florian Weimer committed -
2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> PR middle-end/61111 * fold-const.c (fold_binary_loc): Changed width of mask. From-SVN: r210274
Kenneth Zadeck committed -
014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com> Andrew Haley <aph@redhat.com> Richard Sandiford <rdsandiford@googlemail.com> * doc/extend.texi: Rewrite inline asm page / re-org asm-related pages. From-SVN: r210273
David Wohlferd committed -
avr-fixed.md (round<mode>3): Use -1U instead of -1 in unsigned int initializers for regno_in, regno_out. * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in unsigned int initializers for regno_in, regno_out. From-SVN: r210272
Georg-Johann Lay committed -
gcc/config/avr PR target/61055 * config/avr/avr.md (cc): Add new attribute set_vzn. (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]: Set cc insn attribute to set_vzn instead of set_zn for alternatives with INC, DEC or NEG. * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN. (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN. INC, DEC and ADD+ADC set cc0 to CC_CLOBBER. gcc/testsuite/ PR target/61055 * gcc.target/avr/torture/pr61055.c: New test. From-SVN: r210267
Georg-Johann Lay committed -
2014-05-09 Joey Ye <joey.ye@arm.com> * files.c (find_file_in_dir): Always try to shorten for DOS non-system headers. * init.c (ENABLE_CANONICAL_SYSTEM_HEADERS): Default enabled for DOS. From-SVN: r210264
Joey Ye committed -
2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> Revert: 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * wide-int.cc (UTItype): Define. (UDWtype): Define for appropriate W_TYPE_SIZE. From-SVN: r210263
Ramana Radhakrishnan committed -
PR c/50459 c-family/ * c-common.c (check_user_alignment): Return -1 if alignment is error node. (handle_aligned_attribute): Don't call default_conversion on FUNCTION_DECLs. (handle_vector_size_attribute): Likewise. (handle_tm_wrap_attribute): Handle case when wrap_decl is error node. (handle_sentinel_attribute): Call default_conversion and allow even integral types as an argument. c/ * c-parser.c (c_parser_attributes): Parse the arguments as an expression-list if the attribute takes identifier. testsuite/ * c-c++-common/attributes-1.c: Move test line to a new test. * c-c++-common/attributes-2.c: New test. * c-c++-common/pr50459.c: New test. * c-c++-common/pr59280.c: Add "undeclared" to dg-error. * gcc.dg/nonnull-2.c: Likewise. * gcc.dg/pr55570.c: Modify dg-error. * gcc.dg/tm/wrap-2.c: Likewise. From-SVN: r210262
Marek Polacek committed -
2014-05-09 Richard Biener <rguenther@suse.de> * Makefile.in (GTFILES): Remove tree-ssa-propagate.c. * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h. (interesting_ssa_edges, varying_ssa_edges): Move out of GC space. (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init, ssa_propagate): Adjust. From-SVN: r210261
Richard Biener committed -
2014-05-09 Jan-Benedict Glaw <jbglaw@lug-owl.de> * config-list.mk (show): New target. From-SVN: r210260
Jan-Benedict Glaw committed -
mmap.c (backtrace_free): If freeing a large aligned block of memory, call munmap rather than holding onto it. * mmap.c (backtrace_free): If freeing a large aligned block of memory, call munmap rather than holding onto it. (backtrace_vector_grow): When growing a vector, double the number of pages requested. When releasing the old version of a grown vector, pass the correct size to backtrace_free. From-SVN: r210256
Ian Lance Taylor committed -
2014-05-08 Jeff Law <law@redhat.com> PR tree-optimization/61009 * tree-ssa-threadedge.c (thread_through_normal_block): Return a tri-state rather than a boolean. When a block is too big to thread through, inform caller via negative return value. (thread_across_edge): If a block was too big for normal threading, then it's too big for a joiner too, so remove temporary equivalences and return immediately. PR tree-optimization/61009 * g++.dg/tree-ssa/pr61009.C: New test. From-SVN: r210254
Jeff Law committed -
From-SVN: r210253
GCC Administrator committed
-
- 08 May, 2014 10 commits
-
-
gcc/ 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org> Matthias Klose <doko@ubuntu.com> PR driver/61106 * optc-gen.awk: Fix option handling for -Wunused-parameter. gcc/testsuite/ 2014-05-08 Matthias Klose <doko@ubuntu.com> PR driver/61106 * gcc-dg/unused-8a.c: New. * gcc-dg/unused-8b.c: Likewise. From-SVN: r210246
Matthias Klose committed -
contrib/ * dg-extract-results.py: New file. * dg-extract-results.sh: Use it if the environment seems suitable. From-SVN: r210243
Richard Sandiford committed -
2014-05-08 Joshua Gay <jgay@gnu.org> PR libstdc++/61117 * doc/xml/faq.xml (faq.license.what_restrictions): Replace "open source" with "free software". * doc/html/faq.html: Likewise. From-SVN: r210241
Joshua Gay committed -
PR target/59952 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM. From-SVN: r210234
Uros Bizjak committed -
PR target/61092 * config/alpha/alpha.c: Include gimple-iterator.h. (alpha_gimple_fold_builtin): New function. Move ALPHA_BUILTIN_UMULH folding from ... (alpha_fold_builtin): ... here. (TARGET_GIMPLE_FOLD_BUILTIN): New define. From-SVN: r210233
Uros Bizjak committed -
* include/std/iostream: Fix URL in comment. * src/c++98/ios_init.cc: Fix path in comment. From-SVN: r210232
Jonathan Wakely committed -
PR libstdc++/13860 * include/std/fstream (basic_filebuf): Enforce requirements on traits. From-SVN: r210231
Jonathan Wakely committed -
PR c/61053 c-family/ * c-common.c (min_align_of_type): New function factored out from... (c_sizeof_or_alignof_type): ...here. * c-common.h (min_align_of_type): Declare. c/ * c-decl.c (grokdeclarator): Use min_align_of_type instead of TYPE_ALIGN_UNIT. testsuite/ * gcc.dg/pr61053.c: New test. From-SVN: r210230
Marek Polacek committed -
PR c/61077 c-family/ * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified parameter type of main. c/ * c-decl.c (start_function): Warn for _Atomic-qualified return type of main. testsuite/ * gcc.dg/pr61077.c: New test. From-SVN: r210229
Marek Polacek committed -
re PR libstdc++/57394 ([C++11] basic_streambuf incorrect copy constructor / copy assignment access specifier) PR libstdc++/57394 * include/bits/ios_base.h (ios_base(const ios_base&)): Define as deleted for C++11. (operator=(const ios_base&)): Likewise. * include/std/streambuf: Remove trailing whitespace. (basic_streambuf(const basic_streambuf&)): Fix initializer for _M_out_end. Define as defaulted for C++11. (operator=(const basic_streambuf&)): Define as defaulted for C++11. (swap(basic_streambuf&)): Define for C++11. * testsuite/27_io/basic_streambuf/cons/57394.cc: New. From-SVN: r210228
Jonathan Wakely committed
-