aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-08-16re PR target/58105 (wrong code generation for multiversioned functions)Bernd Edlinger2-8/+10
PR target/58105 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE. From-SVN: r201790
2013-08-16gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new arugment ↵Jan Hubicka7-9/+41
expected_type. * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new arugment expected_type. (gimple_fold_call): Use it. * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype. * ipa-cp.c (ipa_get_indirect_edge_target_1): Update. * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class. (try_make_edge_direct_virtual_call): Likewise. * tree.c (obj_type_ref_class): New. * tree.h (obj_type_ref_class): Use it. From-SVN: r201789
2013-08-16sched-vis.c (rtl_slim_pp_initialized): Remove.Gabriel Dos Reis3-55/+46
* sched-vis.c (rtl_slim_pp_initialized): Remove. (rtl_slim_pp): Likewise. (init_rtl_slim_pretty_print): Likewise. (dump_value_slim): Don't call it. Use local pretty printer. (dump_insn_slim): Likewise. (dump_rtl_slim): Likewise. (str_pattern_slim): Likewise. * tree-mudflap.c (mf_varname_tree): Use local pretty printer. Simplify. From-SVN: r201785
2013-08-16regex.h (regex_traits<>::transform_primary): Avoid past-the-end dereferences.Tim Shen2-14/+12
2013-08-16 Tim Shen <timshen91@gmail.com> * include/bits/regex.h (regex_traits<>::transform_primary): Avoid past-the-end dereferences. From-SVN: r201783
2013-08-16re PR tree-optimization/58164 (internal compiler error: in make_decl_rtl, at ↵Jakub Jelinek4-0/+22
varasm.c:1147) PR tree-optimization/58164 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr walk gimple_goto_dest of GIMPLE_GOTO. * gcc.c-torture/compile/pr58164.c: New test. From-SVN: r201782
2013-08-16re PR regression/58165 (internal compiler error: verify_flow_info)Jakub Jelinek4-5/+45
PR tree-optimization/58165 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If bi_call must be the last stmt in a bb, don't split_block, instead use fallthru edge from it and give up if there is none. Release conds vector when returning early. * g++.dg/opt/pr58165.C: New test. From-SVN: r201780
2013-08-16Daily bump.GCC Administrator1-1/+1
From-SVN: r201779
2013-08-15Daily bump.GCC Administrator1-1/+1
From-SVN: r201758
2013-08-15re PR libstdc++/58163 ([C++11] Pedantic assert on str[str.size()] is wrong ↵Paolo Carlini7-6/+180
in C++11) 2013-08-14 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/58163 * include/bits/basic_string.h (basic_string<>::operator[]): Fix _GLIBCXX_DEBUG_PEDASSERT check vs C++11. * include/ext/vstring.h: Likewise. * testsuite/21_strings/basic_string/element_access/char/58163.cc: New. * testsuite/21_strings/basic_string/element_access/wchar_t/58163.cc: Likewise. * testsuite/ext/vstring/element_access/char/58163.cc: Likewise. * testsuite/ext/vstring/element_access/wchar_t/58163.cc: Likewise. From-SVN: r201755
2013-08-14re PR c++/51912 ([C++11] G++ accepts floating point case labels)Paolo Carlini7-4/+40
/cp 2013-08-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51912 * cp-tree.h (LOOKUP_NO_NON_INTEGRAL): Add. * decl.c (case_conversion): Use it. * call.c (standard_conversion): Likewise. (implicit_conversion): Adjust. /testsuite 2013-08-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51912 * g++.dg/cpp0x/enum28.C: New. * g++.dg/cpp0x/enum15.C: Adjust. From-SVN: r201754
2013-08-14revert: configure.tgt: Add -msoft-float to XCFLAGS.Andreas Krebbel2-1/+7
2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> Revert: 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * configure.tgt: Add -msoft-float to XCFLAGS. From-SVN: r201753
2013-08-14Remove unused variable and fieldXinliang David Li2-5/+8
From-SVN: r201752
2013-08-14re PR target/57949 ([powerpc64] Structure parameter alignment issue with ↵Bill Schmidt7-5/+84
vector extensions) gcc: 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/57949 * doc/invoke.texi: Add documentation of mcompat-align-parm option. * config/rs6000/rs6000.opt: Add mcompat-align-parm option. * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX and Linux, correct BLKmode alignment when 128-bit alignment is required and compatibility flag is not set. (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment for zero-size arguments when compatibility flag is not set. gcc/testsuite: 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/57949 * gcc.target/powerpc/pr57949-1.c: New. * gcc.target/powerpc/pr57949-2.c: New. From-SVN: r201750
2013-08-14re PR middle-end/58145 (volatileness of write is discarded, perhaps in ↵Jakub Jelinek5-1/+108
"lim1" related to loop optimizations) PR tree-optimization/58145 * tree-sra.c (build_ref_for_offset): If prev_base has TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF. * gcc.dg/pr58145-1.c: New test. * gcc.dg/pr58145-2.c: New test. From-SVN: r201748
2013-08-14global-used-types.c: Request dwarf output.Joern Rennecke20-19/+39
* gcc.dg/debug/dwarf2/global-used-types.c: Request dwarf output. * gcc.dg/debug/dwarf2/inline2.c: Likewise. * gcc.dg/debug/dwarf2/inline3.c: Likewise. * gcc.dg/debug/dwarf2/pr37726.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-1.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-2.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-3.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-4.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-5.c: Likewise. * gcc.dg/debug/dwarf2/pr41445-6.c: Likewise. * gcc.dg/debug/dwarf2/pr41543.c: Likewise. * gcc.dg/debug/dwarf2/pr41695.c: Likewise. * gcc.dg/debug/dwarf2/pr43237.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-1.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-2.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-3.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-4.c: Likewise. * gcc.dg/debug/dwarf2/pr53948.c: Likewise. * gcc.dg/debug/dwarf2/struct-loc1.c: Likewise. From-SVN: r201747
2013-08-14pr42585.c: Add avr-*-* to list of targets to exclude from scan test.Joern Rennecke2-2/+4
* gcc.dg/tree-ssa/pr42585.c: Add avr-*-* to list of targets to exclude from scan test. From-SVN: r201744
2013-08-14re PR testsuite/52641 (Test cases fail for 16-bit int targets)Joern Rennecke11-13/+46
PR testsuite/52641 * c-c++-common/simulate-thread/bitfields-2.c: Run test only for target { ! int16 }. * gcc.dg/tree-ssa/pr54245.c: Do slsr scan only for target { ! int16 }. * gcc.dg/tree-ssa/slsr-1.c: Adjust multiplicators to scan for for target { int16 }. Restrict existing tests to target { int32 } where appropriate. * gcc.dg/tree-ssa/slsr-2.c, gcc.dg/tree-ssa/slsr-27.c: Likewise. * gcc.dg/tree-ssa/slsr-28.c, gcc.dg/tree-ssa/slsr-29.c: Likewise. * gcc.dg/tree-ssa/slsr-3.c, gcc.dg/tree-ssa/ssa-ccp-23.c: Likewise. * lib/target-supports.exp (check_effective_target_int32): New proc. From-SVN: r201743
2013-08-14re PR testsuite/52641 (Test cases fail for 16-bit int targets)Joern Rennecke2-4/+8
PR testsuite/52641 * c-c++-common/scal-to-vec1.c: Add !int16 and large_double conditions to tests that assume int/double are larger than short/float. From-SVN: r201742
2013-08-14strlenopt-10.c [avr-*-*]: Reduce number of expected memcpy by one.Joern Rennecke4-10/+31
* gcc.dg/strlenopt-10.c [avr-*-*]: Reduce number of expected memcpy by one. * gcc.dg/strlenopt-11.c [avr-*-*]: Likewise. Expect l to be optimized away. * gcc.dg/strlenopt-13.c [avr-*-*]: Likewise. From-SVN: r201741
2013-08-14* gcc.dg/pr46647.c: xfail for avr-*-*.Joern Rennecke2-2/+4
From-SVN: r201740
2013-08-14pr44214-1.c (v2df): Define size using sizeof (double).Joern Rennecke3-2/+5
* gcc.dg/pr44214-1.c (v2df): Define size using sizeof (double). * gcc.dg/pr44214-3.c (v2df): Likewise. From-SVN: r201739
2013-08-14* gcc.dg/c99-stdint-1.c [avr-*-*]: Update line number for dg-bogus.Joern Rennecke2-1/+6
From-SVN: r201738
2013-08-14* gcc.dg/c99-stdint-1.c [avr-*-*]: Update line number for dg-bogus.Joern Rennecke2-1/+3
From-SVN: r201737
2013-08-14re PR testsuite/52641 (Test cases fail for 16-bit int targets)Joern Rennecke2-0/+10
PR testsuite/52641 * gcc.c-torture/execute/pr56799.x: New file. From-SVN: r201736
2013-08-14Fix unitialized varXinliang David Li2-1/+5
From-SVN: r201735
2013-08-14dwarf2.exp: Replace -gdwarf-2 with -gdwarf.Joern Rennecke42-42/+86
* gcc.dg/debug/dwarf2/dwarf2.exp: Replace -gdwarf-2 with -gdwarf. * gcc.dg/debug/dwarf2/dwarf-die7.c: Likewise. * gcc.dg/debug/dwarf2/static1.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-dfp.c: Likewise. * gcc.dg/debug/dwarf2/fesd-any.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-uninit.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-die1.c: Likewise. * gcc.dg/debug/dwarf2/var1.c: Likewise. * gcc.dg/debug/dwarf2/pr29609-2.c: Likewise. * gcc.dg/debug/dwarf2/aranges-fnsec-1.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-die3.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-merge.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-char1.c: Likewise. * gcc.dg/debug/dwarf2/discriminator.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-char2.c: Likewise. * gcc.dg/debug/dwarf2/fesd-baseonly.c: Likewise. * gcc.dg/debug/dwarf2/pr36690-3.c: Likewise. * gcc.dg/debug/dwarf2/const-2.c: Likewise. * gcc.dg/debug/dwarf2/ipa-cp1.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-char3.c: Likewise. * gcc.dg/debug/dwarf2/var2.c: Likewise. * gcc.dg/debug/dwarf2/pr36690-2.c: Likewise. * gcc.dg/debug/dwarf2/pr31230.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-float.c: Likewise. * gcc.dg/debug/dwarf2/short-circuit.c: Likewise. * gcc.dg/debug/dwarf2/pr36690-1.c: Likewise. * gcc.dg/debug/dwarf2/fesd-reduced.c: Likewise. * gcc.dg/debug/dwarf2/pr37616.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-die2.c: Likewise. * gcc.dg/debug/dwarf2/inline1.c: Likewise. * gcc.dg/debug/dwarf2/fesd-sys.c: Likewise. * gcc.dg/debug/dwarf2/pr29609-1.c: Likewise. * gcc.dg/debug/dwarf2/asm-line1.c: Likewise. * gcc.dg/debug/dwarf2/c99-typedef1.c: Likewise. * gcc.dg/debug/dwarf2/dwarf2-macro.c: Likewise. * gcc.dg/debug/dwarf2/fesd-none.c: Likewise. * gcc.dg/debug/dwarf2/pr51410.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-file1.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-die6.c: Likewise. * gcc.dg/debug/dwarf2/const-2b.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-die5.c: Likewise. From-SVN: r201734
2013-08-14Implement -mno-default, option documentation and code refactoringXinliang David Li6-399/+337
From-SVN: r201732
2013-08-14* gcc.target/arm/pr19599.c: Skip for -mthumb.Janis Johnson2-1/+3
From-SVN: r201731
2013-08-14atomic-comp-swap-release-acquire.c: Move dg-do to be the first test directive.Janis Johnson11-10/+24
* gcc.target/arm/atomic-comp-swap-release-acquire.c: Move dg-do to be the first test directive. * gcc.target/arm/atomic-op-acq_rel.c: Likewise. * gcc.target/arm/atomic-op-acquire.c: Likewise. * gcc.target/arm/atomic-op-char.c: Likewise. * gcc.target/arm/atomic-op-consume.c: Likewise. * gcc.target/arm/atomic-op-int.c: Likewise. * gcc.target/arm/atomic-op-relaxed.c: Likewise. * gcc.target/arm/atomic-op-release.c: Likewise. * gcc.target/arm/atomic-op-seq_cst.c: Likewise. * gcc.target/arm/atomic-op-short.c: Likewise. From-SVN: r201730
2013-08-14compatibility.cc (_ZTIe): Use reinterpret_cast<const cast *> to avoid ↵Uros Bizjak2-10/+15
-Wcast-qual warnings. * src/c++98/compatibility.cc (_ZTIe): Use reinterpret_cast<const cast *> to avoid -Wcast-qual warnings. (_ZTIPe): Ditto. (ZTIPKe): Ditto. From-SVN: r201729
2013-08-14re PR rtl-optimization/57662 (ICE: SIGSEGV in code_motion_process_successors ↵Andrey Belevantsev4-1/+73
with -fschedule-insns2 -fselective-scheduling2) PR rtl-optimization/57662 gcc/ * sel-sched.c (code_motion_process_successors): When the current insn is removed after the recursive traversal, break from the loop. Add comments and debug printouts. testsuite/ * gcc.dg/pr57662.c: New test. From-SVN: r201728
2013-08-14compatibility.cc (_ZTIe): Use (const cast *) to avoid -Wcast-qual warnings.Uros Bizjak2-10/+10
* src/c++98/compatibility.cc (_ZTIe): Use (const cast *) to avoid -Wcast-qual warnings. (_ZTIPe): Ditto. (ZTIPKe): Ditto. From-SVN: r201727
2013-08-14compatibility.cc (_ZTIe): Use const_cast to avoid warning.Uros Bizjak2-5/+13
* src/c++98/compatibility.cc (_ZTIe): Use const_cast to avoid warning. (_ZTIPe): Ditto. (ZTIPKe): Ditto. From-SVN: r201723
2013-08-14re PR target/58067 (ICE in GFortran recog.c:2158)Jakub Jelinek2-15/+33
PR target/58067 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle there also UNSPEC_PLTOFF. Co-Authored-By: Alexandre Oliva <aoliva@redhat.com> From-SVN: r201720
2013-08-14ipa-inline-analysis.c (add_clause): Avoid shifting integer NUM_CONDITIONS ↵Marek Polacek2-1/+6
bit positions. * ipa-inline-analysis.c (add_clause): Avoid shifting integer NUM_CONDITIONS bit positions. From-SVN: r201719
2013-08-14Daily bump.GCC Administrator1-1/+1
From-SVN: r201717
2013-08-13dwarf2out.c (CHECKSUM_BLOCK): New macro.Cary Coutant2-3/+17
gcc/ * dwarf2out.c (CHECKSUM_BLOCK): New macro. (attr_checksum): Hash vector contents instead of pointer. (attr_checksum_ordered): Likewise. From-SVN: r201712
2013-08-13nan-legacy.c: Accept 4294967295 as an alternative to -1.Maciej W. Rozycki3-2/+8
* gcc.target/mips/nan-legacy.c: Accept 4294967295 as an alternative to -1. * gcc.target/mips/nans-legacy.c: Likewise. From-SVN: r201711
2013-08-13fabs-2008.c: Correct scan-assembler pattern escapes.Maciej W. Rozycki17-24/+44
* gcc.target/mips/fabs-2008.c: Correct scan-assembler pattern escapes. * gcc.target/mips/fabs-legacy.c: Likewise. * gcc.target/mips/fabsf-2008.c: Likewise. * gcc.target/mips/fabsf-legacy.c: Likewise. * gcc.target/mips/fneg-2008.c: Likewise. * gcc.target/mips/fneg-legacy.c: Likewise. * gcc.target/mips/fnegf-2008.c: Likewise. * gcc.target/mips/fnegf-legacy.c: Likewise. * gcc.target/mips/nan-2008.c: Likewise. * gcc.target/mips/nan-legacy.c: Likewise. * gcc.target/mips/nanf-2008.c: Likewise. * gcc.target/mips/nanf-legacy.c: Likewise. * gcc.target/mips/nans-2008.c: Likewise. * gcc.target/mips/nans-legacy.c: Likewise. * gcc.target/mips/nansf-2008.c: Likewise. * gcc.target/mips/nansf-legacy.c: Likewise. From-SVN: r201710
2013-08-13sse.md (*sse2_maskmovdqu): Emit addr32 prefix when Pmode != word_mode.Uros Bizjak3-21/+28
* config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix when Pmode != word_mode. Add length_address attribute. (sse3_monitor_<mode>): Merge from sse3_monitor and sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when Pmode != word_mode. Update insn length attribute. * config/i386/i386.c (ix86_option_override_internal): Update ix86_gen_monitor selection for merged sse3_monitor insn. From-SVN: r201708
2013-08-13decl.c (gnat_to_gnu_entity): Do not bother about alias sets of derived types ↵Eric Botcazou2-1/+6
in ASIS mode. * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias sets of derived types in ASIS mode. From-SVN: r201705
2013-08-13decl.c (gnat_to_gnu_entity): Replace True with true.Eric Botcazou5-19/+33
* gcc-interface/decl.c (gnat_to_gnu_entity): Replace True with true. (is_cplusplus_method): Likewise, and False with false. (components_need_strict_alignment): Likewise. * gcc-interface/misc.c (gnat_init_gcc_fp): Likewise. * gcc-interface/trans.c (Loop_Statement_to_gnu): Likewise. (Handled_Sequence_Of_Statements_to_gnu): Likewise. (add_cleanup): Likewise. (Sloc_to_locus1): Likewise. (Sloc_to_locus): Likewise. (set_expr_location_from_node): Likewise. * gcc-interface/utils.c (potential_alignment_gap): Likewise. From-SVN: r201704
2013-08-13trans.c (set_end_locus_from_node): Clear column info for the end_locus of a ↵Thomas Quinot2-2/+11
block if... * gcc-interface/trans.c (set_end_locus_from_node): Clear column info for the end_locus of a block if it does not come from an End_Label. From-SVN: r201703
2013-08-13trans.c (Handled_Sequence_Of_Statements_to_gnu): If there is no End_Label...Thomas Quinot4-16/+59
* gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If there is no End_Label, attach cleanup actions to the sloc of the HSS node instead. (Exception_Handler_to_gnu_zcx): Associate cleanup actions with the sloc of the handler itself. (add_cleanup): Clear column information in sloc of cleanup actions. (Sloc_to_locus1): New static function. (Sloc_to_locus): Call it. (set_expr_location_from_node1): New static function. (set_expr_location_from_node): Call it. From-SVN: r201702
2013-08-13rs6000.c (rs6000_legitimize_reload_address): Don't perform invalid ↵Julian Brown2-3/+7
legitimization on greater-than-word-size modes for... * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't perform invalid legitimization on greater-than-word-size modes for TARGET_E500_DOUBLE. From-SVN: r201701
2013-08-13trans.c (Call_to_gnu): Deal with specific conditional expressions for ↵Eric Botcazou5-2/+49
misaligned actual parameters. * gcc-interface/trans.c (Call_to_gnu): Deal with specific conditional expressions for misaligned actual parameters. From-SVN: r201700
2013-08-13ira.c (setup_class_translate_array): Use aclass instead of cl for classes ↵Vladimir Makarov2-2/+7
not fully covered by allocno classes. 2013-08-13 Vladimir Makarov <vmakarov@redhat.com> * ira.c (setup_class_translate_array): Use aclass instead of cl for classes not fully covered by allocno classes. From-SVN: r201699
2013-08-13re PR middle-end/57661 (ICE: SIGSEGV in verify_ssa)Jakub Jelinek5-0/+108
PR tree-optimization/57661 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field. * tree-inline.c (tree_function_versioning): Initialize it. (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block that is not being copied. * g++.dg/opt/pr57661.C: New test. From-SVN: r201698
2013-08-13re PR middle-end/56417 (internal compiler error: verify_gimple failed)Jakub Jelinek4-5/+24
PR sanitizer/56417 * asan.c (instrument_strlen_call): Fix typo in comment. Use char * type even for the lhs of POINTER_PLUS_EXPR. * gcc.dg/asan/pr56417.c: New test. From-SVN: r201696
2013-08-13trans.c (can_equal_min_or_max_val_p): Be prepared for values outside of the ↵Eric Botcazou6-1/+53
range of the type. * gcc-interface/trans.c (can_equal_min_or_max_val_p): Be prepared for values outside of the range of the type. From-SVN: r201692