Commit Graph

129334 Commits

Author SHA1 Message Date
Jerry DeLisle 861b2d2cde re PR fortran/60810 (list directed io from array results in end of file)
2014-04-11  Jerry DeLisle  <jvdelisle@gcc.gnu>

	PR libfortran/60810
	io/unit.c (is_trim_ok): If internal unit is array, do not trim.

From-SVN: r209329
2014-04-12 00:04:41 +00:00
Tobias Burnus cbbd2b1c82 re PR c/60194 (-Wformat should also warn when using %d (instead of %u) for unsigned arguments)
2014-04-11  Tobias Burnus  <burnus@net-b.de>

        PR c/60194
gcc/
        * doc/invoke.texi (-Wformat-signedness): Document it.
        (Wformat=2): Mention that this enables -Wformat-signedness.

gcc/c-family/
        * c.opt (Wformat-signedness): Add
        * c-format.c(check_format_types): Use it.

gcc/testsuite/
        * * g++.dg/warn/warn_format_signedness.C: New.
        * gcc.dg/format/warn-signedness.c: New.

From-SVN: r209328
2014-04-12 00:43:54 +02:00
Tobias Burnus cb41490017 re PR fortran/58880 ([OOP] ICE on valid with FINAL function and type extension)
2014-04-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/58880
        PR fortran/60495
        * resolve.c (gfc_resolve_finalizers): Ensure that vtables
        and finalization wrappers are generated.

2014-04-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/58880
        PR fortran/60495
        * gfortran.dg/finalize_25.f90: New.

From-SVN: r209327
2014-04-12 00:35:47 +02:00
Barry Tannenbaum b1cd42c580 re PR bootstrap/60644 (Build of i686-pc-linux-android is broken)
Fix for PR other/60644.
+2014-04-11  Barry Tannenbaum  <barry.m.tannenbaum@intel.com>
+
+       PR other/60644
+       * runtime/os-unix.c: Replaced all occurrances of ANDROID with
+       __ANDROID__.
+       * runtime/bug.h: Likewise.
+       * include/cilk/metaprogramming.h: Likewise.
+       * include/cilk/reducer_min_max.h: Likewise.
+

From-SVN: r209324
2014-04-11 12:56:42 -07:00
Marc Glisse 4de3afd972 re PR libstdc++/59434 ([lwg/2106] move_iterator is broken for input iterators with an rvalue as reference type)
2014-04-11  Marc Glisse  <marc.glisse@inria.fr>

	PR libstdc++/59434
	* include/bits/stl_iterator.h (move_iterator::reference,
	move_iterator::operator*): Implement LWG 2106.
	* testsuite/24_iterators/move_iterator/dr2106.cc: New file.

From-SVN: r209323
2014-04-11 19:23:49 +00:00
Jan Hubicka bbe281da97 lto.c: Include ipa-inline.h
* lto.c: Include ipa-inline.h
	(do_whole_program_analysis): Free inline summary after partitioning.

From-SVN: r209322
2014-04-11 19:22:20 +00:00
Marc Glisse 742f66e736 complex (__complex_exp, pow): Specify the template parameter in calls to std::polar, for expression templates.
2014-04-11  Marc Glisse  <marc.glisse@inria.fr>

	* include/std/complex (__complex_exp, pow): Specify the template
	parameter in calls to std::polar, for expression templates.

From-SVN: r209321
2014-04-11 18:57:59 +00:00
Joern Rennecke d9bb58007e gcc:
* common/config/epiphany/epiphany-common.c
        (epiphany_option_optimization_table): Enable section anchors by
        default at -O1 or higher.
        * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
        (TARGET_MIN_ANCHOR_OFFSET): Likewise.
        (epiphany_rtx_costs) <SET>: For binary operators, the set as such
        carries no extra cost.
        (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
        * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
        * config/epiphany/predicates.md (memclob_operand): New predicate.
        * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
        Use memclob_operand predicate and X constraint for operand 3.
gcc/testsuite:
        * gcc.target/epiphany/t1068-2.c: New file.

From-SVN: r209320
2014-04-11 19:40:04 +01:00
Joern Rennecke b5d0ecea79 epiphany.c (epiphany_rtx_cost): Compare with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for its operands.
gcc:
            * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
            with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
            its operands.
    gcc/testsuite:
            * gcc.target/epiphany/btst-1.c: New test.

From-SVN: r209319
2014-04-11 19:29:30 +01:00
Joern Rennecke 2a55e33d25 re PR rtl-optimization/60651 (Mode switching instructions are sometimes emitted in the wrong order)
gcc/testsuite:
        PR rtl-optimization/60651
        * gcc.target/epiphany/mode-switch.c: New test.

From-SVN: r209318
2014-04-11 19:27:45 +01:00
Jason Merrill 6415bd5d63 re PR c++/57926 (Atomic functions broken with C++ but not C?)
PR c++/57926
	* c-common.c (sync_resolve_size, get_atomic_generic_size): Call
	default_conversion for an array argument.

From-SVN: r209316
2014-04-11 14:25:13 -04:00
Jason Merrill 636201978b parser.h (struct cp_token): Rename ambiguous_p to error_reported.
* parser.h (struct cp_token): Rename ambiguous_p to error_reported.
	* parser.c: Adjust.
	(cp_lexer_get_preprocessor_token): Always clear it.
	(cp_parser_lambda_expression): Use it to avoid duplicate diagnostics.

From-SVN: r209315
2014-04-11 14:25:07 -04:00
Jason Merrill 1c982d1313 DR 1467 PR c++/51747
DR 1467
	PR c++/51747
	* decl.c (reshape_init_r): Handle a single element of class type.

From-SVN: r209314
2014-04-11 14:25:02 -04:00
Jason Merrill 7d0039a6fc DR 1338
DR 1338
	* decl.c (cxx_init_decl_processing): Set DECL_IS_MALLOC on
	built-in operator new.

From-SVN: r209313
2014-04-11 14:24:57 -04:00
Joern Rennecke 473fd99a4c re PR rtl-optimization/60651 (Mode switching instructions are sometimes emitted in the wrong order)
gcc:
        PR rtl-optimization/60651
        * mode-switching.c (optimize_mode_switching): Make sure to emit
        sets of a lower numbered entity before sets of a higher numbered
        entity to a mode of the same or lower priority.
        When creating a seginfo for a basic block that starts with a code
        label, move the insertion point past the code label.
        (new_seginfo): Document and enforce requirement that
        NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
        * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
        * doc/tm.texi: Regenerate.
gcc/testsuite:
        PR rtl-optimization/60651
        * gcc.target/epiphany/mode-switch.c: New test.

From-SVN: r209312
2014-04-11 19:12:53 +01:00
Joern Rennecke 6ace1161e6 re PR target/60811 (arc/arc.c:2135: possible bad argument to abs)
PR target/60811
        * config/arc/arc.c (arc_save_restore): Fix assert typo.

From-SVN: r209311
2014-04-11 19:04:43 +01:00
Paolo Carlini 1b255e8f36 re PR c++/58600 ([c++11] ICE on wrong usage of alignas)
/cp
2014-04-11  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58600
	* name-lookup.c (parse_using_directive): Return early if the
	attribs argument is error_mark_node; use get_attribute_name.

/testsuite
2014-04-11  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58600
	* g++.dg/cpp0x/gen-attrs-58.C: New.
	* g++.dg/cpp0x/gen-attrs-59.C: Likewise.

From-SVN: r209310
2014-04-11 17:36:44 +00:00
Jason Merrill 4561285bf4 DR 1030 PR c++/51253
DR 1030
	PR c++/51253
	* cp-tree.h (CALL_EXPR_LIST_INIT_P): New.
	* call.c (struct z_candidate): Add flags field.
	(add_candidate): Add flags parm.
	(add_function_candidate, add_conv_candidate, build_builtin_candidate)
	(add_template_candidate_real): Pass it.
	(build_over_call): Set CALL_EXPR_LIST_INIT_P.
	* tree.c (build_aggr_init_expr): Copy it.
	* semantics.c (simplify_aggr_init_expr): Preevaluate args if it's set.

From-SVN: r209309
2014-04-11 13:08:47 -04:00
Jakub Jelinek 6602e7fcd7 * crontab: Enable snapshots from gcc-4_9-branch.
From-SVN: r209306
2014-04-11 14:55:17 +02:00
Jakub Jelinek 89eb97de15 * BASE-VER: Set to 4.9.0.
From-SVN: r209305
2014-04-11 14:50:55 +02:00
Tobias Burnus 9d0c721440 re PR other/59055 (gcc.texinfo warnings)
PR other/59055
	* doc/bugreport.texi (Bugs): Remove nodes pointing to the
	nirvana.
	* doc/gcc.texi (Service): Update description in the @menu
	* doc/invoke.texi (Option Summary): Remove misplaced and
	duplicated @menu.

From-SVN: r209303
2014-04-11 14:47:20 +02:00
Janne Blomqvist 393d989161 Improve RANDOM_SEED documentation example.
2014-04-11  Janne Blomqvist  <jb@gcc.gnu.org>

	* intrinsic.texi (RANDOM_SEED): Improve example.

From-SVN: r209301
2014-04-11 15:03:05 +03:00
Steve Ellcey 3662b2774c re PR middle-end/60556 (tip of tree crash with mips compiler)
PR middle-end/60556
	* expr.c (convert_move): Use emit_store_flag_force instead of
	emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
	argument to it.

	* gcc.c-torture/compile/pr60556.c: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r209300
2014-04-11 13:52:14 +02:00
Richard Biener 8330537b5b re PR middle-end/60797 (gcc hangs with error: only weak aliases are supported in this configuration)
2014-04-11  Richard Biener  <rguenther@suse.de>

	PR middle-end/60797
	* varasm.c (assemble_alias): Avoid endless error reporting
	recursion by setting TREE_ASM_WRITTEN.

	* gcc.dg/pr60797.c: New testcase.

From-SVN: r209299
2014-04-11 11:45:44 +00:00
Andreas Krebbel 3c91f126f4 s390.md: Add a splitter for NOT rtx.
2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.md: Add a splitter for NOT rtx.

From-SVN: r209295
2014-04-11 10:42:27 +00:00
Andreas Krebbel 8f0ad2e592 htm-nofloat-1.c: Rename to ...
2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.target/s390/htm-nofloat-1.c: Rename to ...
	* gcc.target/s390/htm-nofloat-compile-1.c: ... this one.
	* gcc.target/s390/htm-nofloat-2.c: Add check for htm target and
	rename to ...
	* gcc.target/s390/htm-nofloat-1.c: ... this one.
	* gcc.target/s390/s390.exp: Make sure the assembler supports htm
	instructions as well.

From-SVN: r209294
2014-04-11 10:36:58 +00:00
Jakub Jelinek d8d6ea53a7 re PR rtl-optimization/60663 (Errors out on valid inline asm)
PR rtl-optimization/60663
	* cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in
	PARALLEL.

	* gcc.target/arm/pr60663.c: New test.

From-SVN: r209293
2014-04-11 12:11:01 +02:00
GCC Administrator f8e6f6bad7 Daily bump.
From-SVN: r209289
2014-04-11 00:17:05 +00:00
Jason Merrill 5ea6474478 * g++.dg/dso/dlclose1.C: Disable for 4.9.
From-SVN: r209283
2014-04-10 16:27:58 -04:00
Bernd Edlinger ce1d2dcc18 moved this ChangeLog entry to fortran/ChangeLog
2014-04-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR fortran/60191
        * fortran/trans-types.c (gfc_get_function_type): In case of recursion
        build a variadic function type with empty argument list instead of a
        stdarg-like function type with incomplete argument list.

From-SVN: r209282
2014-04-10 20:13:23 +00:00
Jakub Jelinek fa5866c0e3 re PR lto/60567 (lto1 ICE in add_symbol_to_partition, at lto/lto-partition.c:233 with -fno-use-linker-plugin)
PR lto/60567
	* ipa.c (function_and_variable_visibility): Copy forced_by_abi flag from
	decl_node to node.

	* g++.dg/lto/pr60567_0.C: New test.

From-SVN: r209280
2014-04-10 20:57:48 +02:00
Richard Biener 8aa1cce64e re PR ipa/60761 (Improve dump_decl for clones)
PR ipa/60761
	* error.c (dump_decl) <case FUNCTION_DECL>: If
	DECL_LANG_SPECIFIC is NULL, but DECL_ABSTRACT_ORIGIN is not,
	recurse on DECL_ABSTRACT_ORIGIN instead of printing
	<built-in>.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r209278
2014-04-10 18:20:07 +02:00
Bernd Edlinger 073afca688 class.c (gfc_build_class_symbol): Append "_t" to target class names to make the generated type names unique.
gcc:
2014-04-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * fortran/class.c (gfc_build_class_symbol): Append "_t" to target class
        names to make the generated type names unique.

testsuite:
2014-04-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * gfortran.dg/class_nameclash.f90: New test.

From-SVN: r209277
2014-04-10 14:40:25 +00:00
Paolo Carlini 87c66338d7 re PR c++/52844 (ICE)
2014-04-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52844
	* g++.dg/cpp0x/variadic156.C: New.

From-SVN: r209276
2014-04-10 14:06:36 +00:00
Andreas Krebbel 0e2f1313f1 htm-builtins-compile-1.c: Replace long long with long.
2014-04-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.target/s390/htm-builtins-compile-1.c: Replace long long with
	long.

From-SVN: r209275
2014-04-10 10:09:29 +00:00
Andreas Schwab 4ada6d5850 Remove TLS symbols from libstdc++ baselines
* config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Remove TLS
symbols.
* config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
* config/abi/post/mips64-linux-gnu/baseline_symbols.txt: Likewise.

From-SVN: r209270
2014-04-10 08:29:10 +00:00
Ramana Radhakrishnan b322c36a1a Fix PR debug/60655 part 2.
2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR debug/60655
        * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
        (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
        ameliorating the cases where it can be.

2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR debug/60655
        * gcc.c-torture/compile/pr60655-2.c: Copy from pr60655-1.c without
        -fdata-sections.

From-SVN: r209269
2014-04-10 08:13:30 +00:00
Andreas Schwab 9e837b7f5d Update ia64 libstdc++ baseline symbols
* config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r209266
2014-04-10 07:52:23 +00:00
GCC Administrator 0a90f7ee7a Daily bump.
From-SVN: r209260
2014-04-10 00:17:07 +00:00
Eric Botcazou 7056f58f69 re PR ada/54040 ([x32] Incorrect timeval and timespec)
PR ada/54040
	PR ada/59346
	* s-osinte-x32.adb (To_Timespec): Add use directive.
	* s-osprim-x32.ads (Clock): Adjust.
	(To_Timespec): Likewise.

Co-Authored-By: Svante Signell <svante.signell@gmail.com>

From-SVN: r209257
2014-04-09 23:18:28 +00:00
David Edelsohn 8267f6bb08 Revert
2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>

        * config/rs6000/sync.md (AINT mode_iterator): Move definition.
        (loadsync_<mode>): Change mode.
        (load_quadpti, store_quadpti): New.
        (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
        * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
        * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.

From-SVN: r209253
2014-04-09 15:53:39 -04:00
Fabien Chêne 51970b3e33 pt.c (check_template_variable): Check for the return of pedwarn before emitting a note.
2014-04-09  Fabien Chêne  <fabien@gcc.gnu.org>

	* pt.c (check_template_variable): Check for the return of pedwarn
	before emitting a note.
	* parser.c (cp_parser_lambda_introducer): Likewise.

From-SVN: r209252
2014-04-09 21:51:17 +02:00
Steve Ellcey dbe1eced08 ssa-ifcombine-13.c: Remove mips*-*-* from option and scan lists.
2014-04-09  Steve Ellcey  <sellcey@mips.com>

	* gcc.dg/tree-ssa/ssa-ifcombine-13.c: Remove mips*-*-* from option
	and scan lists.

From-SVN: r209248
2014-04-09 16:27:07 +00:00
Eric Botcazou 303a0cea55 Adjust
From-SVN: r209247
2014-04-09 15:22:46 +00:00
Eric Botcazou ebe0249e24 re PR ada/54040 ([x32] Incorrect timeval and timespec)
PR ada/54040
	PR ada/59346
	* s-osinte-x32.adb: New file.
	* s-linux.ads (Time): New section.
	* s-linux-alpha.ads (Time): Likewise.
	* s-linux-android.ads (Time: Likewise.
	* s-linux-hppa.ads (Time): Likewise.
	* s-linux-mipsel.ads (Time): Likewise.
	* s-linux-sparc.ads (Time): Likewise.
	* s-linux-x32.ads (Time): Likewise.
	* s-osprim-x32.ads (timespec): Adjust.
	* s-osinte-linux.ads (Time): Define local subtypes for those defined
	in System.Linux.
	* s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
	* s-osinte-hpux.ads (timespec): Revert POSIX breakage.
	* s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
	* s-osinte-solaris-posix.ads (timespec): Likewise.
	* s-osinte-posix.adb (To_Timespec): Likewise.
	* gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.

From-SVN: r209244
2014-04-09 14:54:29 +00:00
Rainer Orth 5e1f630ae8 Check if GCC uses assembler cfi support
* config/generic/asmcfi.h: Also check for
	__GCC_HAVE_DWARF2_CFI_ASM.

From-SVN: r209242
2014-04-09 14:49:59 +00:00
Cong Hou 5d1a5a5378 re PR testsuite/60773 (FAIL: gcc.dg/vect/pr60656.c -flto -ffat-lto-objects scan-tree-dump-times vect "vectorized 1 loops" 1)
2014-04-09  Cong Hou  <congh@google.com>

	PR testsuite/60773
	* doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
	documentation.

	* lib/target-supports.exp:
	(check_effective_target_vect_widen_si_to_di_pattern): New.
	* gcc.dg/vect/pr60656.c: Require vect_long effective target.
	Use scan-tree-dump-times for vect_widen_mult_si_to_di_pattern
	targets only.
	(foo): Fix up formatting.
	(main): Call check_vect.

From-SVN: r209241
2014-04-09 13:37:14 +02:00
Eric Botcazou 7dfaf6c385 re PR ada/60411 (Ada bootstrap failure on ARM)
PR ada/60411
	* s-osinte-android.ads: Adjust.

From-SVN: r209237
2014-04-09 07:57:48 +00:00
Bill Schmidt da90fa4cf9 rs6000.c (rs6000_expand_vector_set): Use vnand instead of vnor to exploit possible fusion opportunity in the future.
2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
	instead of vnor to exploit possible fusion opportunity in the
	future.
	(altivec_expand_vec_perm_const_le): Likewise.

From-SVN: r209235
2014-04-09 02:12:11 +00:00
GCC Administrator 8312c7fd70 Daily bump.
From-SVN: r209233
2014-04-09 00:17:02 +00:00