1. 23 Feb, 2016 21 commits
    • re PR objc/69844 (Possibly bogus error: unknown type name in ObjC code) · 067fbd8b
      	PR objc/69844
      	* c-parser.c (c_parser_for_statement): Properly handle ObjC classes
      	in id_kind reclassification.
      
      	* objc.dg/pr69844.m: New test.
      
      From-SVN: r233643
      Jakub Jelinek committed
    • re PR fortran/69456 (Namelist value with trailing sign is ignored without error) · 64a454d9
      2016-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/69456
      	* io/list_read.c (read_real): If digit is missing from exponent issue
      	an error. (parse_real): Likewise and adjusted error message to clarify
      	it is part of a complex number.
      	(nml_read_obj): Bump item count and add comment that this is used to
      	identify which item in a namelist read has a problem.
      
      	PR libgfortran/69456
      	* gfortran.dg/namelist_89.f90: New test.
      	* gfortran.dg/pr59700.f90: Update test..
      
      From-SVN: r233641
      Jerry DeLisle committed
    • PR middle-end/69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align · 35886f0b
      PR middle-end/69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align
      	with small alignment
      PR c/69759 - __builtin_alloca and __builtin_alloca_with_align undocumented
      
      gcc/c-family/ChangeLog:
      	* c-common.c (check_builtin_function_arguments): Validate and reject
      	invalid arguments to __builtin_alloca_with_align.
      
      gcc/ChangeLog:
      	* doc/extend.texi (Other Builtins): Document __builtin_alloca and
      	__builtin_alloca_with_align.
      
      gcc/testsuite/ChangeLog:
      	* g++.dg/ext/builtin_alloca.C: New test.
      	* gcc.dg/builtins-68.c: New test.
      
      From-SVN: r233640
      Martin Sebor committed
    • Remove __seg_tls before first release. · 162cc7e3
        * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
        (ix86_register_pragmas): Remove __seg_tls.
        * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
        * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
        (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
        (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
        (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
        * doc/extend.texi (__seg_tls): Remove item.
      testsuite/
        * gcc.target/i386/addr-space-3.c: Remove test.
      
      From-SVN: r233639
      Richard Henderson committed
    • PR preprocessor/69126: avoid comparing ad-hoc and non-ad-hoc locations · 196440f8
      gcc/testsuite/ChangeLog:
      	PR preprocessor/69126
      	PR preprocessor/69543
      	* c-c++-common/pr69126-2-long.c: New test.
      	* c-c++-common/pr69126-2-short.c: New test.
      	* c-c++-common/pr69543-1.c: Remove xfail.
      
      libcpp/ChangeLog:
      	PR preprocessor/69126
      	PR preprocessor/69543
      	* line-map.c (linemap_compare_locations): At the function top,
      	replace inlined bodies of get_location_from_adhoc_loc with calls
      	to get_location_from_adhoc_loc.  Add a pair of calls to
      	get_location_from_adhoc_loc at the bottom of the function, to
      	avoid meaningless comparisons of ad-hoc and non-ad-hoc locations.
      
      From-SVN: r233638
      David Malcolm committed
    • Add test coverage for _Pragma (PR preprocessor 69126, 69543, 69558) · 1d3121af
      We had some regressions in the ability for _Pragma to disable a warning
      (PR preprocessor/69126, PR preprocessor/69543, PR preprocessor/69558).
      
      This patch attempts to add more test coverage for this, for the
      various combinations of:
        - various warnings:
          -Wunused-variable
          -Wuninitialized
          -Wdeprecated-declarations
        - various combinations of location of _Pragma relative to location of
          the warning:
           - _Pragma is in a macro, warning isn't a macro
           - neither is in a macro
           - _Pragma isnt't in a macro, warning is in a macro
           - in different macros
           - both in the same macro
        - C vs C++ frontend.
      
      It adds some XFAILs:
        - pr69543-1.c for C++ (fixed in the followup patch)
        - pr69543-3.c for both C and C++
        - pr69543-4.c for both C and C++
        - pr69558.c for C++ (moving it from gcc.dg to c-c++-common,
          marking it as xfail for C++ for now)
      
      gcc/testsuite/ChangeLog:
      	PR preprocessor/69126
      	PR preprocessor/69543
      	PR preprocessor/69558
      	* c-c++-common/pr69126.c (MACRO_1, test_1): New.
      	(f): Rename to...
      	(test_2): ...this, and add leading comment.
      	(MACRO_3, test_3): New.
      	(MACRO_4A, MACRO_4B, test_4): New.
      	(MACRO): Rename to...
      	(MACRO_5): ...this.
      	(g): Rename to...
      	(test_5): ...this, updating for renaming of MACRO, and
      	add leading comment.
      	* c-c++-common/pr69543-1.c: New.
      	* c-c++-common/pr69543-2.c: New.
      	* c-c++-common/pr69543-3.c: New.
      	* c-c++-common/pr69543-4.c: New.
      	* c-c++-common/pr69558-1.c: New.
      	* c-c++-common/pr69558-2.c: New.
      	* c-c++-common/pr69558-3.c: New.
      	* c-c++-common/pr69558-4.c: New.
      	* gcc.dg/pr69558.c: Move to...
      	* c-c++-common/pr69558.c: ...here.  Add dg-bogus directives, with
      	xfail for c++.
      
      From-SVN: r233637
      David Malcolm committed
    • re PR libstdc++/69881 (with gcc-6 of today building gcc-4.9 fails) · 5f6dd593
      2016-02-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              PR libstdc++/69881
              * include/c_global/cstdarg: Undefine __need___va_list.
              * include/c_global/cstddef: Undefine all kinds of __need_*.
      
      From-SVN: r233636
      Bernd Edlinger committed
    • alloc-pool.h (struct allocation_object): Make id member conditional on CHECKING_P again. · d286e1e3
      2016-02-23  Richard Biener  <rguenther@suse.de>
      
      	* alloc-pool.h (struct allocation_object): Make id member
      	conditional on CHECKING_P again.
      	(get_instance): Adjust.
      	(base_pool_allocator): Likewise.
      
      From-SVN: r233635
      Richard Biener committed
    • Use plain -fopenacc to enable OpenACC kernels processing · f99c3557
      	gcc/
      	* tree-parloops.c (create_parallel_loop, gen_parallel_loop)
      	(parallelize_loops): In OpenACC kernels mode, set n_threads to
      	zero.
      	(pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
      	flag_openacc.
      	* tree-ssa-loop.c (gate_oacc_kernels): Likewise.
      	gcc/testsuite/
      	* c-c++-common/goacc/kernels-counter-vars-function-scope.c: Adjust
      	to -ftree-parallelize-loops/-fopenacc changes.
      	* c-c++-common/goacc/kernels-double-reduction-n.c: Likewise.
      	* c-c++-common/goacc/kernels-double-reduction.c: Likewise.
      	* c-c++-common/goacc/kernels-loop-2.c: Likewise.
      	* c-c++-common/goacc/kernels-loop-3.c: Likewise.
      	* c-c++-common/goacc/kernels-loop-g.c: Likewise.
      	* c-c++-common/goacc/kernels-loop-mod-not-zero.c: Likewise.
      	* c-c++-common/goacc/kernels-loop-n.c: Likewise.
      	* c-c++-common/goacc/kernels-loop-nest.c: Likewise.
      	* c-c++-common/goacc/kernels-loop.c: Likewise.
      	* c-c++-common/goacc/kernels-one-counter-var.c: Likewise.
      	* c-c++-common/goacc/kernels-reduction.c: Likewise.
      	* gfortran.dg/goacc/kernels-loop-inner.f95: Likewise.
      	* gfortran.dg/goacc/kernels-loops-adjacent.f95: Likewise.
      	libgomp/
      	* oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
      	* plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
      	dims.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
      	-ftree-parallelize-loops/-fopenacc changes.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
      	Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
      	Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
      	Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
      	Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
      	Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
      	Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
      	Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
      	Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
      	Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
      	* testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
      	Likewise.
      
      From-SVN: r233634
      Thomas Schwinge committed
    • mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t. · 43331dfb
      2016-02-23  Richard Biener  <rguenther@suse.de>
      
      	* mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
      	* bitmap.h (struct bitmap_usage): Likewise.
      	(bitmap_move): Declare.
      	* bitmap.c (register_overhead): Take size_t argument.
      	(bitmap_move): New function.
      	* df-problems.c (df_rd_transfer_function): Use bitmap_move
      	to properly account overhead.
      	* tree.c (free_node): Use tree_size.
      
      From-SVN: r233633
      Richard Biener committed
    • Require alias support in gcc.target/i386/chkp-hidden-def.c · c60ec7c2
      	* gcc.target/i386/chkp-hidden-def.c: Require alias support.
      
      From-SVN: r233632
      Rainer Orth committed
    • re PR c++/69902 (Bogus -Wnonnull-compare for: dynamic_cast<T*>(&ref) == nullptr) · e67bf044
      	PR c++/69902
      	* fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
      	when inverting comparison.
      
      	* g++.dg/warn/Wnonnull-compare-5.C: New test.
      
      From-SVN: r233631
      Jakub Jelinek committed
    • re PR c/69900 (Unhelpful diagnostic about Ignored options) · f1a62b6f
      	PR c/69900
      	* common.opt (Wunreachable-code): Add Warning flag.
      
      	* gcc.dg/pr69900.c: New test.
      
      From-SVN: r233630
      Jakub Jelinek committed
    • PR c/69911 Check main_input_filename and DECL_SOURCE_FILE are not NULL. · 261e741f
      DECL_SOURCE_FILE can be NULL (for example when DECL_ARTIFICIAL).
      So make sure to check before comparing against main_input_filename.
      
      gcc/ChangeLog
      
      	PR c/69911
      	* cgraphunit.c (check_global_declaration): Check main_input_filename
      	and DECL_SOURCE_FILE are not NULL.
      
      Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
      
      From-SVN: r233627
      Mark Wielaard committed
    • [pr 69666] No SRA default_def replacements for unscalarizable regions · 20c5e09e
      2016-02-23  Martin Jambor  <mjambor@suse.cz>
      
      	PR tree-optimization/69666
      	* tree-sra.c (sra_modify_assign): Do not attempt to create
      	default_def replacements for unscalarizable regions.
      
      testsuite/
      	* gcc.dg/tree-ssa/pr69666.c: New test.
      
      From-SVN: r233626
      Martin Jambor committed
    • re PR fortran/67451 ([F08] ICE with sourced allocation from coarray.) · e457a6fc
      gcc/testsuite/ChangeLog:
      
      2016-02-23  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	PR fortran/67451
      	* gfortran.dg/coarray_allocate_5.f08: New test.
      
      
      gcc/fortran/ChangeLog:
      
      2016-02-23  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	PR fortran/67451
      	* trans-array.c (gfc_array_allocate): Take the attributes from the
      	expression to allocate and not from the source=-expression.
      
      From-SVN: r233625
      Andre Vehreschild committed
    • S/390: Move vcond-shift.c to vector subdir. · d7b574f4
      gcc/testsuite/ChangeLog:
      
      	* gcc.target/s390/vcond-shift.c: Move to ...
      	* gcc.target/s390/vector/vcond-shift.c: ... here.
      
      From-SVN: r233624
      Andreas Krebbel committed
    • S/390: Move movstr-2.c into vector subdir. · 58bdeb44
      gcc/testsuite/ChangeLog:
      
      	* gcc.target/s390/md/movstr-2.c: Move and rename to ...
      	* gcc.target/s390/vector/stpcpy-1.c: ... this one.
      
      From-SVN: r233623
      Andreas Krebbel committed
    • S/390: Turn movstr-1.c into compile only test. · 7cd0387b
      gcc/testsuite/ChangeLog:
      
      	* gcc.target/s390/md/movstr-1.c: Turn into compile test.
      
      From-SVN: r233622
      Andreas Krebbel committed
    • sso tests need int32 machines. · 524cf46a
      From-SVN: r233621
      Mike Stump committed
    • Daily bump. · 4b0311f7
      From-SVN: r233620
      GCC Administrator committed
  2. 22 Feb, 2016 18 commits
  3. 21 Feb, 2016 1 commit