1. 17 Dec, 2014 22 commits
    • * constexpr.c: Tweak comments and formatting. · 13f649f6
      From-SVN: r218830
      Jason Merrill committed
    • [AArch64] Remove "generic_sched" attribute · 43a39cdd
      gcc/
      
      	* config/aarch64/aarch64.md (generic_sched): Delete it.
      
      From-SVN: r218829
      James Greenhalgh committed
    • MSP430: Fix unused arg warning · 53fea787
      The build robot found this:
      
      g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include -I/opt/cfarm/mpc/include  -I../../../gcc/gcc/../libdecnumber -I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../../gcc/gcc/../libbacktrace   -o msp430.o -MT msp430.o -MMD -MP -MF ./.deps/msp430.TPo ../../../gcc/gcc/config/msp430/msp430.c
      ../../../gcc/gcc/config/msp430/msp430.c:979:43: error: unused parameter ‘file’ [-Werror=unused-parameter]
       msp430_asm_output_addr_const_extra (FILE *file, rtx x)
                                                 ^
      cc1plus: all warnings being treated as errors
      make[2]: *** [msp430.o] Error 1
      
      (See for example this build:
      http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=384666)
      
      Ok for this one?
      
      2014-12-17  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
      
              * config/msp430/msp430.c (msp430_asm_output_addr_const_extra): Fix
              unused argument warning.
      
      From-SVN: r218828
      Jan-Benedict Glaw committed
    • dwarf2out.c: do not short-circuit add_bound_info in array descr. lang-hook · d8e103f9
      gcc/
      	* dwarf2out.h (struct array_descr_info): Remove the base_decl field.
      	* dwarf2out.c (enum dw_scalar_form): New.
      	(struct loc_descr_context): New.
      	(add_scalar_info): New.
      	(add_bound_info): Add a context parameter.  Use add_scalar_info.
      	(loc_list_from_tree): Add a context parameter.  Handle PLACEHOLDER_EXPR
      	nodes for type-related expressions.  Likewise for base declarations.
      	(loc_descriptor_from_tree): Add a context parameter.
      	(subrange_type_die): Update calls to add_bound_info.
      	(tls_mem_loc_descriptor): Likewise.
      	(loc_list_for_address_of_addr_expr_of_indirect_ref): Add a context
      	parameter.  Update calls to loc_list_from_tree.
      	(add_subscript_info): Update calls to add_bound_info.
      	(gen_array_type_die): Update calls to loc_list_from_tree and to
      	add_bound_info.
      	(descr_info_loc): Remove.
      	(add_descr_info_field): Remove.
      	(gen_descr_array_type_die): Switch add_descr_info_field calls into
      	add_scalar_info/add_bound_info ones.
      	(gen_subprogram_die): Update calls to loc_list_from_tree.
      	(gen_variable_die): Likewise.
      
      From-SVN: r218827
      Pierre-Marie de Rodat committed
    • Add a few debug utilities for DWARF expressions · f08649c0
      	* dwarf2out.c (print_loc_descr): New.
      	(print_dw_val): New.
      	(print_attribute): New.
      	(print_loc_descr): New.
      	(print_die): Use print_dw_val.
      	(debug_dwarf_loc_descr): New.
      	* dwarf2out.h (debug_dwarf_loc_descr): New declaration.
      
      From-SVN: r218826
      Pierre-Marie de Rodat committed
    • Make the Ada front-end use the array descr language hook · ce37c297
      	* gcc-interface/misc.c (gnat_get_array_descr_info): New.  Use it for
      	the get_array_descr_info lang-hook.  Use it to tune the DWARF output
      	for array types.
      
      From-SVN: r218825
      Pierre-Marie de Rodat committed
    • Enable the array descr language hook for all DWARF versions · de8143ca
      	* dwarf2out.c (gen_type_die_with_usage): Enable the array lang-hook
      	even when (dwarf_version < 3 && dwarf_strict).
      	(gen_descr_array_die): Do not output DW_AT_data_locationn,
      	DW_AT_associated, DW_AT_allocated and DW_AT_byte_stride DWARF
      	attributes when (dwarf_version < 3 && dwarf_strict).
      
      From-SVN: r218824
      Pierre-Marie de Rodat committed
    • Complete information generated through the array descriptor language hook · 616743a8
      gcc/
      	* dwarf2out.h (enum array_descr_ordering): New.
      	(array_descr_dimen): Add a bounds_type structure field.
      	(struct array_descr_info): Add a field to hold index type information
      	and another one to hold ordering information.
      	* dwarf2out.c (gen_type_die_with_usage): Get the main variant before
      	invoking the array descriptor language hook.  Initialize the
      	array_descr_info structure before calling the lang-hook.
      	(gen_descr_array_type_die): Use gen_type_die if not processing the main
      	type variant.  Replace Fortran-specific code with generic one using
      	this new field.  Add a GNAT descriptive type, if any.  Output type
      	information for the array bound subrange, if any.
      
      gcc/fortran
      	* trans-types.c (gfc_get_array_descr_info): Describe all Fortran arrays
      	with column major ordering.
      
      From-SVN: r218823
      Pierre-Marie de Rodat committed
    • * MAINTAINERS (Write After Approval): Add myself. · b86d271e
      From-SVN: r218822
      Pierre-Marie de Rodat committed
    • Fix a typo in ChangeLog · 0e379783
      From-SVN: r218820
      H.J. Lu committed
    • Add -malign-data={abi|compat|cachineline} · 239711f6
      Add -malign-data={abi|compat,cachineline} to control how GCC aligns
      variables.  "compat" uses increased alignment value compatible with
      GCC 4.8 and earlier, "abi" uses alignment value as specified by the
      psABI, and "cacheline" uses increased alignment value to match the
      cache line size.  "compat" is the default.
      
      gcc/
      
      	PR target/61296
      	* config/i386/i386-opts.h (ix86_align_data): New enum.
      	* config/i386/i386.c (ix86_data_alignment): Return the ABI
      	alignment value for -malign-data=abi, the cachine line size
      	for -malign-data=cachineline and the older GCC compatible
      	alignment value for for -malign-data=compat.
      	* config/i386/i386.opt (malign-data=): New.
      	* doc/invoke.texi: Document -malign-data=.
      
      gcc/testsuite/
      
      	PR target/61296
      	* gcc.target/i386/pr61296-2.c: New.
      	* gcc.target/i386/pr61296-2.c: Likewise.
      	* gcc.target/i386/pr61296-3.c: Likewise.
      	* gcc.target/i386/pr61296-4.c: Likewise.
      	* gcc.target/i386/pr61296-5.c: Likewise.
      	* gcc.target/i386/pr61296-6.c: Likewise.
      	* gcc.target/i386/pr61296-7.c: Likewise.
      
      Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
      Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
      
      From-SVN: r218818
      H.J. Lu committed
    • re PR testsuite/64328 (addr_equal-1.c fails execution.) · 52c691fb
      
      	PR testsuite/64328
      	* gcc.dg/addr_equal-1.c: Not supported for -fPIC.
      
      From-SVN: r218817
      Tejas Belagod committed
    • re PR middle-end/63568 (Missed optimization (a & ~mask) | (b & mask) = a ^ ((a ^ b) & mask)) · f52baa7b
      	PR middle-end/63568
      	* match.pd: Add (x & ~m) | (y & m) -> ((x ^ y) & m) ^ x pattern.
      
      	* gcc.dg/pr63568.c: New test.
      
      From-SVN: r218816
      Marek Polacek committed
    • re PR tree-optimization/64322 (More optimize opportunity for constant folding) · 4c57980f
      	PR tree-optimization/64322
      	* tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
      	range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
      
      	* gcc.dg/tree-ssa/vrp95.c: New test.
      
      From-SVN: r218812
      Jakub Jelinek committed
    • re PR sanitizer/64289 (ICE with -fsanitize=float-cast-overflow) · 8f94a8c4
      	PR sanitizer/64289
      	* c-convert.c: Include ubsan.h.
      	(convert): For real -> integral casts and
      	-fsanitize=float-cast-overflow don't call convert_to_integer, but
      	instead instrument the float cast directly.
      
      	* c-c++-common/ubsan/pr64289.c: New test.
      
      From-SVN: r218811
      Jakub Jelinek committed
    • re PR libstdc++/64302 (The match_results::cbegin()/cend() return incorrect results) · e16a69a8
      	PR libstdc++/64302
      	PR libstdc++/64303
      	* include/bits/regex.h (match_results::cbegin, match_results::cend,
      	regex_token_iterator::regex_token_iterator,
      	regex_token_iterator::_M_normalize_result): Fix match_results cbegin
      	and cend and regex_token_iterator::_M_result invariant.
      	* include/bits/regex.tcc: Fix regex_token_iterator::_M_result invariant.
      	* testsuite/28_regex/iterators/regex_token_iterator/64303.cc: Testcase.
      
      From-SVN: r218810
      Tim Shen committed
    • drop reason for my change from ChangeLog · b2048707
      From-SVN: r218809
      Michael Haubenwallner committed
    • re PR fortran/54687 (Use gcc option machinery for gfortran) · f19626cf
      2014-12-17  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/54687
      gcc/
              * flag-types.h (gfc_init_local_real, gfc_fcoarray,
              gfc_convert): New enums; moved from fortran/.
      
      gcc/fortran/
              * gfortran.h (gfc_option_t): Remove flags which now
              have a Var().
              (init_local_real, gfc_fcoarray): Moved to ../flag-types.h.
              * libgfortran.h (unit_convert): Add comment.
              * lang.opt (flag-convert, flag-init_real, flag-coarray):
              Add Var() and Enum().
              * options.c (gfc_handle_coarray_option): Remove.
              (gfc_init_options, gfc_post_options, gfc_handle_option):
              Update for *.opt changes.
              * array.c: Update for flag-variable name changes.
              * check.c: Ditto.
              * match.c: Ditto.
              * resolve.c: Ditto.
              * simplify.c: Ditto.
              * trans-array.c: Ditto.
              * trans-decl.c: Ditto.
              * trans-expr.c: Ditto.
              * trans-intrinsic.c: Ditto.
              * trans-stmt.c: Ditto.
              * trans-types.c: Ditto.
              * trans.c: Ditto.
      
      From-SVN: r218808
      Tobias Burnus committed
    • crt.h: New. · 69044fa9
      libgcc/
      	* config/sh/crt.h: New.
      	* config/sh/crti.S: Use GLOBAL macro from crt.h for _init and _fini
      	symbols.
      	* config/sh/crt1.S: Likewise.
      
      From-SVN: r218807
      Oleg Endo committed
    • compiler: Don't crash on append with single argument. · d8a99c7c
      Instead of allocating an empty slice literal, use a slice
      value with a nil pointer.
      
      From-SVN: r218806
      Ian Lance Taylor committed
    • Daily bump. · 03625f07
      From-SVN: r218805
      GCC Administrator committed
  2. 16 Dec, 2014 18 commits