aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2012-12-16Daily bump.GCC Administrator1-1/+1
From-SVN: r194528
2012-12-16re PR fortran/55638 (Wrongly accepts INTENT + VALUE - and wrongly requires ↵Tobias Burnus5-5/+45
it for PURE) 2012-12-16 Tobias Burnus <burnus@net-b.de> PR fortran/55638 * resolve.c (resolve_formal_arglist): Allow VALUE without INTENT for ELEMENTAL procedures. 2012-12-16 Tobias Burnus <burnus@net-b.de> PR fortran/55638 * gfortran.dg/elemental_args_check_3.f90: Update dg-error. * gfortran.dg/elemental_args_check_7.f90: New. From-SVN: r194525
2012-12-15* lib/scanasm.exp (get_ada_spec_filename): Use procedural form.Eric Botcazou2-1/+5
From-SVN: r194524
2012-12-15re PR ada/52735 (ICE in gnat_to_gnu_entity at gcc-interface/decl.c:4156)Eric Botcazou4-0/+37
PR ada/52735 * gnat.dg/nested_generic1.adb: New test. * gnat.dg/nested_generic1_pkg.ad[sb]: New helper. From-SVN: r194523
2012-12-15re PR ada/53766 (ICE in build_binary_op on Max_Size_In_Storage_Elements with ↵Eric Botcazou3-0/+30
-gnatp) PR ada/53766 * gnat.dg/controlled7.ad[sb]: New test. From-SVN: r194521
2012-12-15re PR ada/53996 (format string issue in gcc-interface/utils.c)Eric Botcazou2-1/+7
PR ada/53996 * gcc-interface/utils.c (gnat_type_for_size): Use %u in lieu of %d. Co-Authored-By: Martin Ettl <ettl.martin@gmx.de> From-SVN: r194520
2012-12-15re PR libmudflap/53952 (FAIL: libmudflap.c++/pass55-frag.cxx ( -O[123]) ↵Alexandre Oliva4-9/+57
execution test) PR libmudflap/53952 * expr.c (mem_ref_refers_to_non_mem_p): Factor out implementation into... (addr_expr_of_non_mem_decl_p_1): ... this new function. (addr_expr_of_non_mem_decl_p): New. * tree.h (addr_expr_of_non_mem_decl_p): Declare. * tree-mudflap.c (mf_xform_derefs_1): Don't change MEM_REFs and TARGET_MEM_REFs that have an ADDR_EXPR of a non-mem DECL as base operand. From-SVN: r194519
2012-12-14re PR c++/55685 (ICE: canonical types differ for identical types)Jason Merrill3-1/+18
PR c++/55685 * pt.c (tsubst_copy_and_build): Don't use SIZEOF_EXPR_TYPE_P in templates. From-SVN: r194517
2012-12-15Daily bump.GCC Administrator1-1/+1
From-SVN: r194515
2012-12-14re PR regression/55688 (FAIL: g++.dg/other/pr55650.C)Steve Ellcey2-0/+6
2012-12-14 Steve Ellcey <sellcey@mips.com> PR regression/55688 * g++.dg/other/pr55650.C: Add dg-require-profiling. From-SVN: r194512
2012-12-14re PR c++/42315 (ICE with invalid array initializer)Jason Merrill5-5/+15
PR c++/42315 * decl.c (maybe_deduce_size_from_array_init): Don't change the variable type. From-SVN: r194509
2012-12-14* optabs.c (expand_atomic_store): Elide redundant model test.Yvan Roux2-2/+5
From-SVN: r194504
2012-12-14re PR gcov-profile/55674 (>20% size increase of lto/pgo binaries since r193747)Teresa Johnson2-1/+9
2012-12-14 Teresa Johnson <tejohnson@google.com> PR gcov-profile/55674 * lto-cgraph.c (merge_profile_summaries): Set min correctly the first time we merge into a histogram entry. From-SVN: r194502
2012-12-14compiler: Better error message for invalid shift operations.Ian Lance Taylor1-6/+3
From-SVN: r194501
2012-12-14re PR tree-optimization/55684 (ICE in remove_redundant_iv_tests, at ↵Richard Biener4-3/+47
tree-ssa-loop-ivcanon.c:559) 2012-12-14 Richard Biener <rguenther@suse.de> PR tree-optimization/55684 * tree-ssa-loop-ivcanon.c (remove_redundant_iv_tests): Handle gracefully the case where we cannot compute the number of iterations at an exit. * gcc.dg/torture/pr55684.c: New testcase. From-SVN: r194499
2012-12-14re PR tree-optimization/55687 (ICE in ↵Richard Biener4-1/+41
hide_evolution_in_other_loops_than_loop, at tree-chrec.c:716) 2012-12-14 Richard Biener <rguenther@suse.de> PR tree-optimization/55687 * tree-chrec.h (no_evolution_in_loop_p): Properly use tree_contains_chrecs. * gcc.dg/torture/pr55687.c: New testcase. From-SVN: r194498
2012-12-14Daily bump.GCC Administrator1-1/+1
From-SVN: r194495
2012-12-13compiler: Accept trailing comma after varargs parameter.Ian Lance Taylor6-21/+88
Also fix handling of interfaces seen only in a function or method declaration. From-SVN: r194492
2012-12-13re PR middle-end/55492 (__atomic_load doesn't match ACQUIRE memory model)Richard Henderson2-7/+12
PR middle-end/55492 * optabs.c (expand_atomic_load): Emit acquire barrier after the load. From-SVN: r194490
2012-12-13alpha: Consider barriers when placing nops after sibcallsRichard Henderson2-9/+17
* config/alpha/alpha.c (alpha_pad_function_end): Consider barriers when looking for NOTE_INSN_CALL_ARG_LOCATION. From-SVN: r194484
2012-12-13re PR middle-end/53476 (FAIL: gcc.dg/attr-weakref-1.c)Richard Biener2-2/+7
2012-12-13 Richard Biener <rguenther@suse.de> PR middle-end/53476 * varpool.c (varpool_remove_unreferenced_decls): Revert to 4.7 behavior. From-SVN: r194481
2012-12-13re PR c++/55652 (ICE (segfault) with templates and structs)Jakub Jelinek4-1/+41
PR c++/55652 * typeck2.c (merge_exception_specifiers): Don't call operand_equal_p if noex is NULL. * g++.dg/cpp0x/noexcept19.C: New test. From-SVN: r194479
2012-12-13unspecs.md: Add copyright notice.Kyrylo Tkachov2-0/+24
2012-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * config/arm/unspecs.md: Add copyright notice. From-SVN: r194478
2012-12-13tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Avoid ↵Jakub Jelinek2-1/+6
-Wsign-compare warning. * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Avoid -Wsign-compare warning. From-SVN: r194476
2012-12-13re PR lto/55660 (ICE instead of some warning during lto build with supplied ↵Richard Biener5-0/+49
different options (-funsigned-char vs none)) 2012-12-13 Richard Biener <rguenther@suse.de> PR lto/55660 * tree-streamer.c (record_common_node): Check that we are not recursively pre-loading nodes we want to skip. Handle char_type_node appearing as part of va_list_type_node. * gcc.dg/lto/pr55660_0.c: New testcase. * gcc.dg/lto/pr55660_1.c: Likewise. From-SVN: r194473
2012-12-13* Makefile.in: Fix bitmap.o dependencies.Steven Bosscher2-1/+3
From-SVN: r194472
2012-12-13re PR gcov-profile/55650 (Firefox profiledbuild: libxul.so: cannot map ↵Jakub Jelinek5-0/+40
zero-fill pages: Cannot allocate memory) PR gcov-profile/55650 * coverage.c (coverage_obj_init): Return false if no functions are being emitted. * g++.dg/other/pr55650.C: New test. * g++.dg/other/pr55650.cc: New file. From-SVN: r194470
2012-12-13bitmap.c (struct bitmap_descriptor): Remove forward declaration.Steven Bosscher3-31/+65
* bitmap.c (struct bitmap_descriptor): Remove forward declaration. (struct bitmap_head_def): Remove desc pointer. Add descriptor_id field. Reorder fields for pointer alignment. * bitmap.c: Include vec.h. (struct bitmap_descriptor): Rename to bitmap_descriptor_d. (bitmap_descriptor): New typedef, pointer to bitmap_descriptor_d. Update all struct bitmap_descriptor references. (next_bitmap_desc_id): New running index for bitmap desciptors. (bitmap_descriptors): Vec of all bitmap descriptors by descriptor id. (hash_descriptor, eq_descriptor): Update for struct bitmap_descriptor change. (bitmap_descriptor): Rename function to get_bitmap_descriptor. Stuff newly allocated bitmap descriptor into bitmap_descriptors. Set the bitmap descriptor id. (bitmap_register): Lookup bitmap desciptor and store its ID in the passed bitmap. (register_overhead): Likewise. (bitmap_find_bit): Lookup descriptor by id in bitmap_descriptors. (print_statistics): Update for struct bitmap_descriptor change. From-SVN: r194469
2012-12-13tree-ssa-pre.c (get_representative_for): Adjust dumping.Richard Biener2-16/+18
2012-12-13 Richard Biener <rguenther@suse.de> * tree-ssa-pre.c (get_representative_for): Adjust dumping. Mark created SSA names for release. (eliminate_bb): Insert only when expr is not NULL. From-SVN: r194468
2012-12-13Daily bump.GCC Administrator1-1/+1
From-SVN: r194466
2012-12-12runtime: Delete from a nil map is now a no-op.Ian Lance Taylor1-3/+2
From-SVN: r194462
2012-12-13re PR debug/55665 (Missing DW_TAG_lexical_block PC range)Jakub Jelinek4-4/+45
PR debug/55665 * tree-inline.c (remap_decls): Change nonlocalized_list to pointer to pointer to vector from pointer to vector. (remap_block): Pass address of BLOCK_NONLOCALIZED_VARS. * g++.dg/guality/pr55665.C: New test. From-SVN: r194461
2012-12-13re PR sanitizer/55508 (many test cases fail using -fsanitize=address with ↵Jakub Jelinek4-11/+31
internal compiler error: in expand_call_tm) PR sanitizer/55508 * builtin-attrs.def (ATTR_TMPURE_NOTHROW_LEAF_LIST, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST): New. * asan.c (ATTR_TMPURE_NOTHROW_LEAF_LIST, ATTR_TMPURE_NORETURN_NOTHROW_LEAF_LIST): Define. * sanitizer.def: Make __asan_report_* and __asan_handle_no_return builtins tm pure. From-SVN: r194459
2012-12-13gcc-dg.exp (${tool}_load): Handle non-existing set_target_env_var the same ↵Jakub Jelinek28-4/+805
as if it is empty list. * lib/gcc-dg.exp (${tool}_load): Handle non-existing set_target_env_var the same as if it is empty list. (dg-set-target-env-var): Fix up error message. (set-target-env-var): Record both preexisting env var values as well as info that env wasn't set. (restore-target-env-var): Iterate on reversed list, if second sublist element is 1, setenv the env var to the third sublist element, otherwise unsetenv it. (gcc-dg-runtest): Don't initialize set_target_env_var. (dg-test): Unset set_target_env_var if it was set. * g++.dg/asan/deep-tail-call-1.C: Whitespace fixes. Don't rely on argc being one. * g++.dg/asan/interception-malloc-test-1.C: Only run on linux. Whitespace fixes. Avoid unnecessary * sizeof(char). * g++.dg/asan/deep-thread-stack-1.C: Add -lasan -lpthread to dg-options. Whitespace fixes. * g++.dg/asan/deep-stack-uaf-1.C: Skip for -flto. Whitespace fixes. * g++.dg/asan/interception-test-1.C: Whitespace fixes. * g++.dg/asan/interception-failure-test-1.C: Whitespace fixes. Avoid unnecessary * sizeof(char). Remove // CHECK: comment. * g++.dg/asan/default-options-1.C: Whitespace fixes. * g++.dg/asan/symbolize-callback-1.C: Whitespace fixes. Make first __asan_symbolize argument unnamed. Avoid unnecessary * sizeof(char). * g++.dg/asan/large-func-test-1.C: Whitespace fixes. Don't rely on argc being one. Allow both _Znwj and _Znwm as operator new. Ignore everything in the backtrace above operator new. Fix up dg-output regexps. * c-c++-common/asan/null-deref-1.c: Add -fno-omit-frame-pointer and for x86 -mno-omit-leaf-frame-pointer. Fix up dg-output regexps. * c-c++-common/asan/clone-test-1.c: Whitespace fixes. Return non-zero on failures. Avoid pointless PASS dg-output check. Remove bogus dg-shouldfail. * c-c++-common/asan/sanity-check-pure-c-1.c: Fix up dg-output regexps. Avoid unnecessary * sizeof(char). * c-c++-common/asan/heap-overflow-1.c: Fix up dg-output regexps. Don't rely on argc being one. * c-c++-common/asan/sleep-before-dying-1.c: Whitespace fixes. Avoid unnecessary * sizeof(char). * c-c++-common/asan/rlimit-mmap-test-1.c: Whitespace fixes. * c-c++-common/asan/stack-overflow-1.c: Fix up dg-output regexps. * c-c++-common/asan/global-overflow-1.c: Add -fno-builtin-memset. Fix up dg-output regexps. * c-c++-common/asan/strncpy-overflow-1.c: Fix up dg-output regexps. * c-c++-common/asan/memcmp-1.c: Don't rely on argc being one. * c-c++-common/asan/use-after-free-1.c: Fix up dg-output regexps. * c-c++-common/asan/swapcontext-test-1.c: Don't rely on argc being one. * c-c++-common/asan/force-inline-opt0-1.c: Remove dg-skip-if. * c-c++-common/asan/strip-path-prefix-1.c: Whitespace fixes. Avoid unnecessary * sizeof(char). 2012-12-12 Wei Mi <wmi@google.com> * lib/target-supports.exp (check_effective_target_dlopen, check_effective_target_clone, check_effective_target_setrlimit, check_effective_target_swapcontext): New procedures. * lib/gcc-dg.exp (${tool}_load): Handle dg-set-target-env-var. (dg-set-target-env-var, set-target-env-var, restore-target-env-var): New procedures. (gcc-dg-runtest): Set set_target_env_var. * g++.dg/asan/symbolize-callback-1.C: New test. * g++.dg/asan/shared-lib-test-1-so.cc: New file. * g++.dg/asan/deep-tail-call-1.C: New test. * g++.dg/asan/default-options-1.C: New test. * g++.dg/asan/interception-test-1.C: New test. * g++.dg/asan/dlclose-test-1-so.cc: New file. * g++.dg/asan/deep-thread-stack-1.C: New test. * g++.dg/asan/interception-malloc-test-1.C: New test. * g++.dg/asan/deep-stack-uaf-1.C: New test. * g++.dg/asan/large-func-test-1.C: New test. * g++.dg/asan/interception-failure-test-1.C: New test. * c-c++-common/asan/strip-path-prefix-1.c: New test. * c-c++-common/asan/force-inline-opt0-1.c: New test. * c-c++-common/asan/swapcontext-test-1.c: New test. * c-c++-common/asan/null-deref-1.c: New test. * c-c++-common/asan/global-overflow-1.c: New test. * c-c++-common/asan/strncpy-overflow-1.c: New test. * c-c++-common/asan/rlimit-mmap-test-1.c: New test. * c-c++-common/asan/stack-overflow-1.c: New test. * c-c++-common/asan/use-after-free-1.c: New test. * c-c++-common/asan/sanity-check-pure-c-1.c: New test. * c-c++-common/asan/clone-test-1.c: New test. * c-c++-common/asan/heap-overflow-1.c: New test. * c-c++-common/asan/sleep-before-dying-1.c: New test. From-SVN: r194458
2012-12-12pr55150-2.c: Add pic support check.Steve Ellcey3-0/+7
2012-12-12 Steve Ellcey <sellcey@mips.com> * gcc.dg/pr55150-2.c: Add pic support check. * gcc.dg/lto/pr54709_0.c: Ditto. From-SVN: r194454
2012-12-12mips.c (mips_option_override): Set mips_dbx_regno entries to ↵Steve Ellcey2-4/+6
IGNORED_DWARF_REGNUM by default. 2012-12-12 Steve Ellcey <sellcey@mips.com> * config/mips/mips.c (mips_option_override): Set mips_dbx_regno entries to IGNORED_DWARF_REGNUM by default. From-SVN: r194453
2012-12-12graph.c: Include sbitmap.h and cfgloop.h.Steven Bosscher3-28/+144
* graph.c: Include sbitmap.h and cfgloop.h. (draw_cfg_nodes_no_loops): New function to dump basic blocks in topological order if the function does not have a loop tree. Handle unreachable blocks also. (draw_cfg_nodes_for_loop): New function to dump basic blocks in one loop tree node as a named cluster of nodes. (draw_cfg_nodes): New function to draw all CFG nodes. (draw_cfg_edges): New function to draw all CFG edges. (print_graph_cfg): Simplify using the new functions. * Makefile.in (graph.o): Fix dependencies. From-SVN: r194446
2012-12-12dumpfile.h (enum tree_dump_index): Remove TDI_vcg.Steven Bosscher5-118/+15
* dumpfile.h (enum tree_dump_index): Remove TDI_vcg. * dumpfile.c (dump_files[]): Remove entry for TDI_vcg. * tree-cfg.c (gimple_cfg2vcg): Remove. (build_gimple_cfg): Don't call it. * doc/invoke.texi (-fdump-tree-vcg): Remove documentation. Correct GraphViz documentation, it does handle multiple functions in a single dump. From-SVN: r194445
2012-12-12re PR middle-end/55481 (-O2 generates a wrong-code infinite loop in ↵Zdenek Dvorak4-32/+38
C++Benchmark's simple_types_constant_folding int8 xor test) 2012-12-12 Zdenek Dvorak <ook@ucw.cz> PR tree-optimization/55481 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fall back to general rewriting if we cannot leave an original biv definition alone. * gcc.dg/torture/pr55481.c: New testcase. From-SVN: r194444
2012-12-12re PR target/55659 ([SH] Build failure with ICE in dwarf2out_var_location, ↵Jakub Jelinek2-46/+27
at dwarf2out.c:20748) PR target/55659 Revert 2012-12-11 Jakub Jelinek <jakub@redhat.com> PR middle-end/43631 * var-tracking.c (emit_note_insn_var_location): If insn is followed by BARRIER, put note after the BARRIER. (next_non_note_insn_var_location): Skip over BARRIERs. (emit_notes_in_bb): If call is followed by BARRIER, put note after the BARRIER. 2012-12-06 Jakub Jelinek <jakub@redhat.com> PR middle-end/43631 * var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb): Clear BLOCK_FOR_INSN on notes emitted in between basic blocks, don't adjust BB_END when inserting note after BB_END of some bb. From-SVN: r194442
2012-12-12re PR middle-end/52640 (performance bottleneck: gcc/tree.c;value_member)Steven Bosscher4-1/+81
PR middle-end/52640 * varasm.c (pending_assemble_externals_set): New pointer set. (process_pending_assemble_externals): Destroy the pointer set. (assemble_external): See if decl is in pending_assemble_externals_set, and add it to pending_assemble_externals if necessary. (init_varasm_once): Allocate pending_assemble_externals_set. * gcc.c-torture/compile/limits-externdecl.c: New test. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r194441
2012-12-12fast-math-pr38968.f90: Decrease n from 2000 to 400.Jakub Jelinek2-1/+4
* gfortran.dg/vect/fast-math-pr38968.f90: Decrease n from 2000 to 400. From-SVN: r194440
2012-12-12re PR fortran/55633 (FAIL: gfortran.dg/g77/f90-intrinsic-bit.f -Os ↵Jakub Jelinek4-2/+62
execution test) PR fortran/55633 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Ignore bounds on which bound += double_int_one overflowed. * gcc.dg/torture/pr55633.c: New test. From-SVN: r194438
2012-12-12re PR tree-optimization/55079 (false positive -Warray-bounds (also seen at ↵Andreas Schwab1-1/+1
-O3 bootstrap)) PR tree-optimization/55079 * gcc.dg/tree-ssa/ssa-pre-1.c: Adjust. From-SVN: r194437
2012-12-12Daily bump.GCC Administrator1-1/+1
From-SVN: r194435
2012-12-11re PR c++/54883 (Name mangling of types in an unnamed namespace)Jason Merrill3-8/+17
PR c++/54883 * decl2.c (min_vis_r): Handle anon visibility for enums. From-SVN: r194430
2012-12-11re PR c++/53094 (constexpr vector subscripting)Marc Glisse7-2/+52
2012-12-11 Marc Glisse <marc.glisse@inria.fr> PR c++/53094 cp/ * tree.c (cp_tree_equal): Handle VECTOR_CST. * semantics.c (cxx_eval_bare_aggregate): Protect a dereference. Handle VECTOR_CST. testsuite/ * g++.dg/cpp0x/constexpr-53094-1.C: New testcase. * g++.dg/cpp0x/constexpr-53094-2.C: Likewise. * g++.dg/cpp0x/constexpr-53094-3.C: Likewise. From-SVN: r194421
2012-12-11re PR c++/55643 ([C++11] incorrect "warning: variable ‘myVar’ set but ↵Jakub Jelinek4-0/+35
not used" with an "enum class"-typed variable is casted to double for the use) PR c++/55643 * expr.c (mark_exp_read): Handle FLOAT_EXPR similarly to NOP_EXPR. * g++.dg/warn/Wunused-var-19.C: New test. From-SVN: r194415
2012-12-11* g++.dg/asan/asan_test.C: Link -lasan before -lpthread.Jakub Jelinek2-1/+5
From-SVN: r194414
2012-12-11re PR target/54121 (ICE at extract_insn, at recog.c:2123 with ↵Eric Botcazou4-7/+116
-fprofile-generate) PR target/54121 * config/sparc/sparc.md (tldo_stb_sp32): Fix pasto. (tldo_stb_sp64): Likewise. (tldo_sth_sp32): Likewise. (tldo_sth_sp64): Likewise. (tldo_stw_sp32): Likewise. (tldo_stw_sp64): Likewise. (tldo_stx_sp64): Likewise. From-SVN: r194410