aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-03-14expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE when expanding ↵Martin Jambor2-61/+18
MEM_REFs... 2012-03-14 Martin Jambor <mjambor@suse.cz> * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases. (expand_expr_real_1): Do not handle misalignment if modifier is EXPAND_WRITE. From-SVN: r185389
2012-03-14re PR middle-end/52584 (Fails to constant fold vector upper/lower half ↵Richard Guenther2-13/+14
BIT_FIELD_REFs) 2012-03-14 Richard Guenther <rguenther@suse.de> PR middle-end/52584 * tree-vect-generic.c (type_for_widest_vector_mode): Take element type instead of mode, use build_vector_type_for_mode instead of the langhook, build a vector of proper signedness. (expand_vector_operations_1): Adjust. From-SVN: r185385
2012-03-14re PR c++/52582 (g++ ICE when compiling qt-4.8.0 with -O2 on PPC (32bit))Jakub Jelinek2-0/+33
PR c++/52582 * config/rs6000/rs6000.c (call_ABI_of_interest): Return true if c_node is NULL. * g++.dg/opt/pr52582.C: New test. From-SVN: r185384
2012-03-14forward_list.h: Fix comments.Paolo Carlini2-21/+27
2012-03-14 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/forward_list.h: Fix comments. From-SVN: r185382
2012-03-14re PR c++/52582 (g++ ICE when compiling qt-4.8.0 with -O2 on PPC (32bit))Richard Guenther2-4/+25
2012-03-14 Richard Guenther <rguenther@suse.de> PR middle-end/52582 * gimple-fold.c (canonicalize_constructor_val): Make sure we have a cgraph node for a FUNCTION_DECL that comes from a constructor. (gimple_get_virt_method_for_binfo): Likewise. From-SVN: r185381
2012-03-14re PR tree-optimization/52571 (vectorizer changes alignment of common symbols)Richard Guenther7-9/+32
2012-03-14 Richard Guenther <rguenther@suse.de> PR tree-optimization/52571 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move flag_section_anchors check ... (vect_can_force_dr_alignment_p): ... here. Do not re-align DECL_COMMON variables. * gcc.dg/vect/vect-2.c: Initialize arrays. * gcc.dg/vect/no-section-anchors-vect-34.c: Likewise. * gcc.target/i386/recip-vec-divf.c: Use -fno-common. * gcc.target/i386/recip-vec-sqrtf.c: Likewise. From-SVN: r185380
2012-03-14re PR target/52080 (Stores to bitfields introduce a store-data-race on ↵Richard Guenther12-98/+370
adjacent data) 2012-03-14 Richard Guenther <rguenther@suse.de> * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define. * stor-layout.c (start_bitfield_representative): New function. (finish_bitfield_representative): Likewise. (finish_bitfield_layout): Likewise. (finish_record_layout): Call finish_bitfield_layout. * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER for QUAL_UNION_TYPE fields. * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers): Stream DECL_BIT_FIELD_REPRESENTATIVE. * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise. PR middle-end/52080 PR middle-end/52097 PR middle-end/48124 * expr.c (get_bit_range): Unconditionally extract bitrange from DECL_BIT_FIELD_REPRESENTATIVE. (expand_assignment): Adjust call to get_bit_range. * gcc.dg/torture/pr48124-1.c: New testcase. * gcc.dg/torture/pr48124-2.c: Likewise. * gcc.dg/torture/pr48124-3.c: Likewise. * gcc.dg/torture/pr48124-4.c: Likewise. From-SVN: r185379
2012-03-14re PR middle-end/52578 (Fails to fold another size difference)Richard Guenther5-7/+54
2012-03-14 Richard Guenther <rguenther@suse.de> PR middle-end/52578 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if the outermost conversion is a sign-change only. (fold_binary_loc): Disregard widening and sign-changing conversions when we determine if two variables are equal for reassociation. * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to (T1)x if the outermost conversion is a sign-change only. * gcc.dg/pr52578.c: New testcase. From-SVN: r185378
2012-03-14Revert:Uros Bizjak2-3/+13
2012-03-14 Uros Bizjak <ubizjak@gmail.com> * config/i386/predicates.md (constant_call_address_operand): Declare as special predicate. Update all uses. From-SVN: r185376
2012-03-14re PR c++/52521 ([C++11] user defined literals and order of declaration)Jakub Jelinek4-2/+35
PR c++/52521 * parser.c (lookup_literal_operator): Return fn only if processed all arguments from args vector and argtypes is void_list_node. * g++.dg/cpp0x/udlit-args2.C: New test. From-SVN: r185375
2012-03-14Makefile.in (TEST_GCC_EXEC_PREFIX): New.Terry Guo2-0/+5
libstdc++-v3: * testsuite/Makefile.in (TEST_GCC_EXEC_PREFIX): New. From-SVN: r185374
2012-03-14Daily bump.GCC Administrator1-1/+1
From-SVN: r185371
2012-03-13* gennews (files): Add files for GCC 4.7.Joseph Myers2-2/+7
From-SVN: r185365
2012-03-13libgo: Export {enter,exit}syscall and use it for getaddrinfo.Ian Lance Taylor6-13/+18
From-SVN: r185363
2012-03-13re PR rtl-optimization/48596 ([SH] unable to find a register to spill in ↵Oleg Endo2-4/+7
class 'FPUL_REGS') PR target/48596 * gcc.target/sh/pr48596.c: Move accidentally added new test case to ... * gcc.c-torture/compile/pr48596.c: ... here. From-SVN: r185362
2012-03-13ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test, just return FFI_BAD_ABI ↵Kaz Kojima3-4/+12
when things are wrong. * src/sh/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test, just return FFI_BAD_ABI when things are wrong. * src/sh64/ffi.c (ffi_prep_closure_loc): Ditto. From-SVN: r185361
2012-03-13libitm: Fix lost wake-up in serial lock.Torvald Riegel2-0/+32
PR libitm/52526 * config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost wake-up. From-SVN: r185358
2012-03-13PR c++/51641 - Lookup finds enclosing class member instead of template parameterDodji Seketeli6-37/+75
gcc/cp/ PR c++/51641 * cp-tree.h (template_type_parameter_p): Declare new function. (parameter_of_template_p): Remove * pt.c (template_type_parameter_p): Define new function. (parameter_of_template_p): Remove. * name-lookup.c (binding_to_template_parms_of_scope_p): Don't rely on parameter_of_template_p anymore. Compare the level of the template parameter to the depth of the template. gcc/testsuite/ PR c++/51641 * g++.dg/lookup/hidden-class17.C: New test. Conflicts: gcc/cp/pt.c From-SVN: r185357
2012-03-13Use next_conversion for better safetyDodji Seketeli2-25/+33
gcc/cp/ * call.c (standard_conversion, build_integral_nontype_arg_conv) (build_new_op_1, convert_like_real, is_subseq) (maybe_handle_implicit_object, maybe_handle_ref_bind, compare_ics) (joust): Use next_conversion instead of accessing fields of struct conversion directly. From-SVN: r185356
2012-03-13re PR c/52577 (__builtin_shuffle -Wunused-but-set-* false positives)Jakub Jelinek4-2/+50
PR c/52577 * c-parser.c (c_parser_postfix_expression) <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values. * gcc.dg/Wunused-var-3.c: New test. From-SVN: r185355
2012-03-13re PR go/52557 (Timex undefined on arm-linux-gnueabi)Ian Lance Taylor1-1/+10
PR go/52557 mksysinfo: Fix handling of timex for ARM GNU/Linux. From-SVN: r185354
2012-03-13i386.c (x86_decompose_address): Fix commit.Uros Bizjak1-4/+4
* config/i386/i386.c (x86_decompose_address): Fix commit. From-SVN: r185353
2012-03-13smmintrin.h: Avoid /* within a comment.Jakub Jelinek3-5/+9
* config/i386/smmintrin.h: Avoid /* within a comment. * config/i386/nmmintrin.h: Likewise. From-SVN: r185352
2012-03-13i386.md (xbegin): Remove constraint from expander.Uros Bizjak2-3/+7
* config/i386/i386.md (xbegin): Remove constraint from expander. From-SVN: r185351
2012-03-13predicates.md (constant_call_address_operand): Declare as special predicate.Uros Bizjak4-18/+25
* config/i386/predicates.md (constant_call_address_operand): Declare as special predicate. Update all uses. * config/i386/i386.md: Remove mode from constant_call_address_operand predicates. * config/i386/i386.c (ix86_output_call_insn): Call constant_call_address_operand with VOIDmode. From-SVN: r185350
2012-03-13Assert DWARF register size <= saved reg sizeH.J. Lu2-1/+7
2012-03-13 H.J. Lu <hongjiu.lu@intel.com> * unwind-dw2.c (_Unwind_SetGRValue): Assert DWARF register size <= saved reg size. From-SVN: r185346
2012-03-13i386.c (ix86_decompose_address): Handle subregs of AND zero extended address ↵Uros Bizjak2-3/+12
correctly. * config/i386/i386.c (ix86_decompose_address): Handle subregs of AND zero extended address correctly. From-SVN: r185343
2012-03-13predicates.md (tls_symbolic_operand): Declare as special predicate.Uros Bizjak3-13/+21
* config/i386/predicates.md (tls_symbolic_operand): Declare as special predicate. (tls_modbase_operand): Ditto. * config/i386/i386.md: Remove mode from tls_symbolic_operand and tls_modbase_operand predicates. From-SVN: r185341
2012-03-13gigi.h (flag_vms_malloc64): Refine condition.Tristan Gingold2-1/+7
2012-03-13 Tristan Gingold <gingold@adacore.com> * gcc-interface/gigi.h (flag_vms_malloc64): Refine condition. From-SVN: r185337
2012-03-13expr.c (expand_assignment): Handle misaligned scalar writes to memory ↵Martin Jambor4-7/+66
through top-level MEM_REFs by calling... 2012-03-13 Martin Jambor <mjambor@suse.cz> * expr.c (expand_assignment): Handle misaligned scalar writes to memory through top-level MEM_REFs by calling store_bit_field. * testsuite/gcc.dg/misaligned-expand-2.c: New test. From-SVN: r185336
2012-03-13sysdep.c: Adjust condition after removal of __osf__.Tristan Gingold2-13/+16
2012-03-13 Tristan Gingold <gingold@adacore.com> * sysdep.c: Adjust condition after removal of __osf__. From-SVN: r185335
2012-03-13re PR middle-end/52134 (Does not fold (x * 4) & -4)Richard Guenther4-0/+39
2012-03-13 Richard Guenther <rguenther@suse.de> PR middle-end/52134 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y if Y is a constant multiple of 1 << CST. * gcc.dg/pr52134.c: New testcase. From-SVN: r185334
2012-03-13crontab: Remove 4.4 branch from the list of snapshots to make.Jakub Jelinek3-2/+6
* crontab: Remove 4.4 branch from the list of snapshots to make. * update_version_svn (IGNORE_BRANCHES): Add gcc-4_4-branch. From-SVN: r185330
2012-03-13re PR target/52488 (avr-*: internal compiler error: in extract_insn, at ↵Georg-Johann Lay2-4/+45
recog.c:2123) PR target/52488 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack offset (size) to a value the insns can deal with. (expand_epilogue): Ditto. From-SVN: r185329
2012-03-13neon.ml (ops): Fixup expected instructions for unsigned vector compares.Matthew Gretton-Dann2-6/+21
* gcc/config/arm/neon.ml (ops): Fixup expected instructions for unsigned vector compares. From-SVN: r185328
2012-03-13i386.c (ix86_decompose_address): Prevent %fs:(%reg) addresses only when %reg ↵Uros Bizjak2-2/+9
is not in word mode. * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg) addresses only when %reg is not in word mode. From-SVN: r185327
2012-03-13Fix sgi typosRainer Orth8-8/+22
libgcc: * config/arm/crtn.S: Fix typo. gcc/testsuite: * ada/acats/tests/cd/cdd1001.a (CDD1001): Fix typo. gcc: * config/microblaze/microblaze.md: Fix typo. * tree-if-conv.c: Likewise. * tree-vect-patterns.c: Likewise. From-SVN: r185325
2012-03-13libgcov.c: Remove stdio.h include and NULL un-define.Richard Guenther2-2/+4
2012-03-13 Richard Guenther <rguenther@suse.de> * libgcov.c: Remove stdio.h include and NULL un-define. From-SVN: r185324
2012-03-13Remove extra_passesRainer Orth5-18/+20
* config.gcc (extra_passes): Remove. * configure.ac (extra_passes): Don't substitute. * configure: Regenerate. * Makefile.in (EXTRA_PASSES): Remove. (GCC_PASSES): Remove $(EXTRA_PASSES). (MOSTLYCLEANFILES): Likewise. (native): Likewise. (install-common): Likewise. From-SVN: r185323
2012-03-13re PR bootstrap/52569 (bootstrap fails on x86_64-apple-darwin10 at revision ↵Richard Guenther2-0/+12
185261) 2012-03-13 Richard Guenther <rguenther@suse.de> PR target/52569 * unwind-dw2-fde.c: Make avoid-include-gthr.h hacks work again. From-SVN: r185322
2012-03-13gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Fix definition.Richard Guenther2-1/+5
2012-03-13 Richard Guenther <rguenther@suse.de> * gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Fix definition. From-SVN: r185321
2012-03-13gthr-posix.h: Remove duplicate __GTHREAD_MUTEX_INIT_FUNCTION and...Richard Guenther2-11/+5
2012-03-13 Richard Guenther <rguenther@suse.de> * gthr-posix.h: Remove duplicate __GTHREAD_MUTEX_INIT_FUNCTION and __gthread_mutex_init_function definitions. From-SVN: r185320
2012-03-13i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.Uros Bizjak3-8/+23
* config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New. * config/i386/i386.c (ix86_decompose_address): Use TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses. (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load thread pointer to a register. From-SVN: r185278
2012-03-13Daily bump.GCC Administrator1-1/+1
From-SVN: r185276
2012-03-12gigi.h (shift_unc_components_for_thin_pointers): Kill.Eric Botcazou6-44/+55
* gcc-interface/gigi.h (shift_unc_components_for_thin_pointers): Kill. * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Remove call to above function. * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Adjust handling of thin pointers. <Attr_Descriptor_Size>: Likewise. (gnat_to_gnu) <N_Free_Statement>: Likewise. * gcc-interface/utils.c (shift_unc_components_for_thin_pointers): Kill. (convert_to_fat_pointer): Adjust handling of thin pointers. (convert) <POINTER_TYPE>: Likewise. * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Likewise. From-SVN: r185268
2012-03-12re PR tree-optimization/46728 (GCC does not generate fmadd for pow (x, ↵Bill Schmidt9-16/+28
0.75)+y on powerpc) 2012-03-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR tree-optimization/46728 * gcc.target/powerpc/pr46728-4.c: Use preferred syntax. * gcc.target/powerpc/pr46728-5.c: Likewise. * gcc.target/powerpc/pr46728-8.c: Likewise. * gcc.target/powerpc/pr46728-10.c: Likewise. * gcc.target/powerpc/pr46728-11.c: Likewise. * gcc.target/powerpc/pr46728-13.c: Likewise. * gcc.target/powerpc/pr46728-14.c: Likewise. * gcc.target/powerpc/pr46728-15.c: Likewise. From-SVN: r185265
2012-03-12re PR c++/52299 (GCC warns on compile time division by zero erroneously)Paolo Carlini4-6/+71
/cp 2012-03-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52299 * pt.c (tsubst_copy_and_build, case COND_EXPR): Avoid bogus division by zero warnings. /testsuite 2012-03-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52299 * g++.dg/warn/Wdiv-by-zero-bogus.C: New. From-SVN: r185264
2012-03-12Remove :P on tls_symbolic_operandH.J. Lu2-2/+8
2012-03-12 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P on tls_symbolic_operand. (tls_global_dynamic_64_<mode>): Likewise. From-SVN: r185261
2012-03-12re PR tree-optimization/46728 (GCC does not generate fmadd for pow (x, ↵Bill Schmidt9-8/+28
0.75)+y on powerpc) 2012-03-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR tree-optimization/46728 * gcc.target/powerpc/pr46728-4.c: Skip for powerpc*-*-darwin*. * gcc.target/powerpc/pr46728-5.c: Likewise. * gcc.target/powerpc/pr46728-8.c: Likewise. * gcc.target/powerpc/pr46728-10.c: Likewise. * gcc.target/powerpc/pr46728-11.c: Likewise. * gcc.target/powerpc/pr46728-13.c: Likewise. * gcc.target/powerpc/pr46728-14.c: Likewise. * gcc.target/powerpc/pr46728-15.c: Likewise. From-SVN: r185260
2012-03-12re PR other/52545 (output.h: SECTION_EXCLUDE flag clobbers SECTION_MACH_DEP)Georg-Johann Lay2-2/+8
PR other/52545 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE. From-SVN: r185259