- 09 Nov, 2010 22 commits
-
-
* gcc-interface/utils.c (save_gnu_tree): Improve comments. (get_gnu_tree): Likewise. From-SVN: r166485
Eric Botcazou committed -
* tree.h (contains_placeholder_p): Fix comment. (type_contains_placeholder_p): Adjust comment. * tree.c (contains_placeholder_p): Fix comment. (type_contains_placeholder_1): Do not recurse on pointed-to types and adjust comment. (type_contains_placeholder_p): Add comment. ada/ * gcc-interface/decl.c (finish_fat_pointer_type): New function. (gnat_to_gnu_entity) <E_Array_Type>: Use it to build the fat pointer type. <E_Access_Type>: Likewise. From-SVN: r166484
Eric Botcazou committed -
* config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for output of byte values. From-SVN: r166483
Paul Koning committed -
PR middle-end/46360 * tree-ssa-propagate.c (update_call_from_tree): Fix for use not in SSA mode. * gcc.c-torture/compile/pr46360.c: New test. From-SVN: r166482
Jakub Jelinek committed -
PR c++/45894 * tree.c (lvalue_kind): Don't crash if ref has NULL type. * g++.dg/warn/Wsequence-point-2.C: New test. From-SVN: r166481
Jakub Jelinek committed -
2010-11-09 Janus Weil <janus@gcc.gnu.org> PR fortran/46313 * gfortran.h (gfc_add_data_component,gfc_add_vptr_component, gfc_add_hash_component,gfc_add_size_component, gfc_add_def_init_component): New macros. * class.c (gfc_add_component_ref): Renamed data component. (get_unique_type_string): New function. (gfc_build_class_symbol): Use 'get_unique_type_string' to construct uniques names for the class containers. Rename components. (gfc_find_derived_vtab): Use 'get_unique_type_string' to construct uniques names for the vtab symbols. Rename components. * decl.c (attr_decl1): Renamed class container components. * iresolve.c (gfc_resolve_extends_type_of): Ditto. * match.c (select_type_set_tmp): Renamed temporaries. * module.c (read_module): Renamed vtab and vtype symbols. * resolve.c (resolve_structure_cons,resolve_typebound_function, resolve_typebound_subroutine,resolve_deallocate_expr, resolve_select_type,resolve_fl_derived): Renamed class container and vtab components. * trans-array.c (structure_alloc_comps): Ditto. * trans-decl.c (gfc_trans_deferred_vars): Ditto. * trans-expr.c (gfc_conv_derived_to_class,gfc_conv_structure, gfc_trans_class_init_assign,gfc_trans_class_assign): Ditto. * trans-intrinsic.c (gfc_conv_intrinsic_sizeof, gfc_conv_intrinsic_storage_size,gfc_conv_allocated,gfc_conv_associated, gfc_conv_same_type_as): Ditto. * trans-stmt.c (gfc_trans_allocate): Ditto. 2010-11-09 Janus Weil <janus@gcc.gnu.org> PR fortran/46313 * gfortran.dg/class_29.f03: New. From-SVN: r166480
Janus Weil committed -
2010-11-09 Richard Guenther <rguenther@suse.de> PR middle-end/46221 * varasm.c (compute_visible_aliases): New function. (remove_unreachable_alias_pairs): Aliases make a target available even though we reclaimed the cgraph node. (finish_aliases_1): Likewise. * Makefile.in (varasm.o): Add pointer-set.h dependency. * gcc.target/i386/alias-1.c: New testcase. From-SVN: r166479
Richard Guenther committed -
* inclhack.def (irix_pthread_init): New fix. * fixincl.x: Regenerate. * tests/base/pthread.h [IRIX_PTHREAD_INIT_CHECK]: New test. From-SVN: r166478
Rainer Orth committed -
2010-11-09 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/46385 * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error line number. From-SVN: r166477
Paolo Carlini committed -
* testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_compile_cxx_to_o): Add -pthread on alpha*-dec-osf*. * testsuite/libjava.jvmti/jvmti-interp.exp (gcj_jni_compile_c_to_so): Likewise. From-SVN: r166476
Rainer Orth committed -
From-SVN: r166475
Nick Clifton committed -
From-SVN: r166474
Eric Botcazou committed -
2010-11-09 Basile Starynkevitch <basile@starynkevitch.net> Jeremie Salvucci <jeremie.salvucci@free.fr> * gengtype.c (get_output_file_name): Declaration moved to gengtype.h. (plugin_files, get_file_basename, get_file_realbasename) (get_file_langdir, error_at_line, gt_files, this_file) (system_h_file, read_input_list, create_field_all) (get_file_srcdir_relative_path, get_file_basename) (get_file_langdir, get_file_gtfilename) (get_output_file_with_visibility, get_output_file_name) (struct flist, put_mangled_filename, walk_type) (put_mangled_filename, finish_root_table, write_roots): Use input_file-s. (lang_dir_names, num_lang_dirs): Remove static. (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h. (main): Use input_file-s. * gengtype.h: (struct input_file_st, input_file): New type. (struct fileloc): Use it. (gt_files, num_gt_files, this_file, system_h_file) (input_file_by_name, get_file_srcdir_relative_path): Use input_file. (get_input_file_name): New function. (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and use input_file. (lang_dir_names, num_lang_dirs, get_output_file_with_visibility) (get_output_file_name): Ditto. * gengtype-lex.l (yybegin): Use input_file. * gengtype-parse.c (parse_error): Use input_file. Co-Authored-By: Jeremie Salvucci <jeremie.salvucci@free.fr> From-SVN: r166473
Basile Starynkevitch committed -
From-SVN: r166472
Xinliang David Li committed -
PR c++/46382 * semantics.c (check_constexpr_ctor_body): New fn. * parser.c (cp_parser_ctor_initializer_opt_and_function_body): Call it. * cp-tree.h: Declare it. From-SVN: r166471
Jason Merrill committed -
PR c++/46335 * tree.c (bot_manip): Check TREE_SIDE_EFFECTS as well. From-SVN: r166470
Jason Merrill committed -
From-SVN: r166469
Xinliang David Li committed -
From-SVN: r166468
Paul Koning committed -
From-SVN: r166467
Paul Koning committed -
* config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values to 8 bits. From-SVN: r166466
Paul Koning committed -
From-SVN: r166465
GCC Administrator committed -
2010-11-08 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/43899 * trans-decl.c (generate_local_decl): Do not generate unused warning for variables in namelists. From-SVN: r166461
Jerry DeLisle committed
-
- 08 Nov, 2010 18 commits
-
-
2010-11-08 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/unique_ptr.h: Move misplaced static_assert and use tuple's constexpr constructor in constexpr constructors. * testsuite/20_util/unique_ptr/cons/ptr_deleter.cc: New. * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: New. From-SVN: r166460
Jonathan Wakely committed -
2010-11-08 Benjamin Kosnik <bkoz@redhat.com> * doc/doxygen/user.cfg.in: Adjust scanned includes. * include/std/forward_list: Make doxygen file markup unambiguous. From-SVN: r166459
Benjamin Kosnik committed -
2010-11-08 Janus Weil <janus@gcc.gnu.org> PR fortran/46344 * decl.c (build_struct): Build vtab immediately if derived type has already been declared. 2010-11-08 Janus Weil <janus@gcc.gnu.org> PR fortran/46344 * gfortran.dg/class_28.f03: Extended. From-SVN: r166458
Janus Weil committed -
In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc-act.c (objc_add_dynamic_declaration_for_property): Do not search for the @property declation only in the current context, but also in inherited properties. Do not mark the original PROPERTY_DECL in the @interface or @protocol with PROPERTY_DYNAMIC. (check_methods): To check if a method is associated with a @dynamic property, search for the property in IMPL_PROPERTY_DECL. (check_accessible_methods): Same change. * objc-act.h: Updated comment. In gcc/testsuite/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/property/dynamic-4.m: New. * objc.dg/property/dynamic-5.m: New. * objc.dg/property/dynamic-6.m: New. * obj-c++.dg/property/dynamic-4.mm: New. * obj-c++.dg/property/dynamic-5.mm: New. * obj-c++.dg/property/dynamic-6.mm: New. 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/property/dotsyntax-13.m: New. * objc.dg/property/dotsyntax-14.m: New. * objc.dg/property/dotsyntax-15.m: New. * objc.dg/property/synthesize-7.m: New. * obj-c++.dg/property/dotsyntax-13.mm: New. * obj-c++.dg/property/dotsyntax-14.mm: New. * obj-c++.dg/property/dotsyntax-15.mm: New. * obj-c++.dg/property/synthesize-7.mm: New. From-SVN: r166457
Nicola Pero committed -
In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc-act.c (objc_add_synthesize_declaration_for_property): Iterate over IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when checking for an existing @synthesize or @dynamic declaration. Search for an inherited @property declaration if none is found in the local interface. If the required instance variable does not exist, return instead of trying to continue to prevent a compiler crash later. Check that the instance variable is not already being used by another @synthesize. (objc_add_dynamic_declaration_for_property): Iterate over IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when checking for an existing @synthesize or @dynamic declaration. (objc_synthesize_getter): Search for the getter declaration in protocols and superclasses as well. (objc_synthesize_setter): Search for the setter declaration in protocols and superclasses as well. In gcc/testsuite/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/property/synthesize-3.m: New. * objc.dg/property/synthesize-4.m: New. * objc.dg/property/synthesize-5.m: New. * objc.dg/property/synthesize-6.m: New. * obj-c++.dg/property/synthesize-3.mm: New. * obj-c++.dg/property/synthesize-4.mm: New. * obj-c++.dg/property/synthesize-5.mm: New. * obj-c++.dg/property/synthesize-6.mm: New. From-SVN: r166456
Nicola Pero committed -
In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc-act.c (lookup_property): When checking categories, also check the protocols attached to each. (objc_add_property_declaration): Determine the PROPERTY_SETTER_NAME and PROPERTY_GETTER_NAME here. Tidied up error message. Search for an existing property declaration with the same name which would be inherited from the class hiearchy, and produce an error if it has incompatible attributes. (check_methods): Changed second parameter. If the method is a getter or setter for a property, do not warn if it is inherited as opposed to implemented directly in the class. (check_protocol): Updated calls to check_methods. (finish_class): Do not determine the PROPERTY_SETTER_NAME and PROPERTY_GETTER_NAME here; this is now done earlier, in objc_add_property_declaration. * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Added comments. In gcc/testsuite/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/property/at-property-5.m: Updated test. * objc.dg/property/at-property-16.m: New. * objc.dg/property/at-property-17.m: New. * objc.dg/property/at-property-18.m: New. * objc.dg/property/at-property-19.m: New. * objc.dg/property/dotsyntax-12.m: New * objc.dg/protocol-inheritance-1.m: New. * objc.dg/protocol-inheritance-2.m: New. * obj-c++.dg/property/at-property-5.mm: Updated test. * obj-c++.dg/property/at-property-16.mm: New. * obj-c++.dg/property/at-property-17.mm: New. * obj-c++.dg/property/at-property-18.mm: New. * obj-c++.dg/property/at-property-19.mm: New. * obj-c++.dg/protocol-inheritance-1.mm: New. * obj-c++.dg/protocol-inheritance-2.mm: New. * obj-c++.dg/property/dotsyntax-12.mm: New. From-SVN: r166455
Nicola Pero committed -
* cvt.c (ignore_overflows): Move here from typeck.c. (ocp_convert): Use it. (cp_fold_convert): Use it. Don't call rvalue. * typeck.c (build_static_cast_1): Don't use it. Do call rvalue. * error.c (location_of): Handle expressions, too. * class.c (check_bitfield_decl): Set input_location around call to cxx_constant_value. * semantics.c (cxx_eval_outermost_constant_expr): Don't print the expression if it already had TREE_OVERFLOW set. (reduced_constant_expression_p): Check TREE_OVERFLOW_P for C++98, too. (verify_constant): Allow overflow with a permerror if we're enforcing. (cxx_eval_outermost_constant_expr): Use verify_constant. (adjust_temp_type): Use cp_fold_convert. * decl.c (build_enumerator): Don't call constant_expression_warning. * decl2.c (grokbitfield): Likewise. From-SVN: r166453
Jason Merrill committed -
From-SVN: r166452
Jason Merrill committed -
2010-11-08 Joern Rennecke <amylaar@spamcop.net> Richard Henderson <rth@redhat.com> PR target/44757 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call lm32_legitimate_constant_p. * config/lm32/lm32.md (ashlsi3): Remove unused variable. * config/lm32/lm32.c (gen_int_relational): Make new block for LE / LT / LEU / LTU case. Declare variables at start of block. (lm32_block_move_inline): Use XALLOCAVEC. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r166451
Joern Rennecke committed -
From-SVN: r166448
Michael Meissner committed -
2010-11-08 Joern Rennecke <amylaar@spamcop.net> Richard Henderson <rth@redhat.com> PR target/44758 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu. (attribute acc_group): Cast value to enum attr_acc_group. (*movdi_nodouble+6): Use gen_int_mode. * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter if RTX_CODE is defined or not. * config/frv/frv.c (enum frv_io_type): New enum, broken out of struct frv_io. (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED. (frv_frame_access, frv_expand_prologue): Remove unused variables. (frv_expand_block_clear): Likewise. (frv_trampoline_init): Use LCT_NORMAL. (struct frv_packet_group): New struct, broken out of type of frv_packet. (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I, use cast in loop counter increment. (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before assigning to io->type. (bdesc_set): Use rtx_code UNKNOWN in initializer. (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise. (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise. (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise. (frv_read_argument): Use expand_normal. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r166447
Joern Rennecke committed -
PR bootstrap/46358 * config/i386/i386.c (ix86_expand_split_stack_prologue): Avoid warnings when HOST_WIDE_INT is 32 bit. From-SVN: r166445
Joern Rennecke committed -
gcc: * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message. gcc/testsuite: * gcc.dg/pr35442.c: Adapt warning. PR target/46280 * g++.dg/eh/simd-2.C: Add -msse to dg-options, add dg-require-effective-target sse_runtime for for i?86-*-*, x86_64-*-*. * g++.dg/torture/pr36444.C: Add dg-options -msse for i?86-*-* x86_64-*-*. * g++.dg/torture/pr36445.C: Likewise. * gcc.c-torture/compile/pr34856.c: Likewise. * gcc.c-torture/compile/pr39928-1.c: Likewise. * gcc.c-torture/compile/vector-1.c: Likewise. * gcc.c-torture/compile/vector-2.c: Likewise. * gcc.dg/pr32912-1.c: Likewise. * gcc.c-torture/execute/va-arg-25.c: Move ... * gcc.dg/torture/va-arg-25.c: ... here. Add dg-do run. Add dg-options -msse, dg-require-effective-target sse_runtime for for i?86-*-*, x86_64-*-*. * gcc.c-torture/execute/vector-1.c: Likewise. * gcc.c-torture/execute/vector-2.c: Likewise. * gcc.dg/tree-ssa/forwprop-5.c: Add -msse to dg-options for i?86-*-*, x86_64-*-*. * gcc.dg/tree-ssa/fre-vce-1.c: Likewise. * gcc.dg/tree-ssa/sra-4.c: Likewise. * gcc.dg/tree-ssa/vector-1.c: Likewise. * gcc.dg/tree-ssa/vector-2.c: Likewise. * gcc.target/i386/vect-args.c: Add -Wno-psabi to dg-options. From-SVN: r166444
Rainer Orth committed -
2010-11-08 Basile Starynkevitch <basile@starynkevitch.net> * gengtype (get_output_file_for_structure): Ensure type is union or struct. (write_splay_tree_allocator_def): Use get_output_file_with_visibility. From-SVN: r166442
Basile Starynkevitch committed -
2010-11-08 Steve Ellcey <sje@cup.hp.com> * gcc.dg/torture/pr45982.c: Add -std=c99 * gcc.dg/torture/pr45623.c: Ditto. From-SVN: r166441
Steve Ellcey committed -
2010-11-08 Steve Ellcey <sje@cup.hp.com> * gcc/testsuite/g++.dg/abi/covariant1.C: Fix scan-assembler. * gcc/testsuite/g++.dg/abi/covariant6.C: Ditto. From-SVN: r166440
Steve Ellcey committed -
2010-11-08 Benjamin Kosnik <bkoz@redhat.com> * include/std/complex (operator==, !=): Mark constexpr. * testsuite/26_numerics/complex/comparison_operators/constexpr.cc: New. From-SVN: r166439
Benjamin Kosnik committed -
2010-11-08 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/stl_tree.h (_Rb_tree<>::_M_erase_aux): Add. (_Rb_tree<>::erase(iterator)): Fix in C++0x mode to take const_iterator; remove redundant overload in C++03 mode. (_Rb_tree<>::erase(iterator, iterator)): Likewise. * include/bits/stl_map.h (map<>::erase): Adjust. (map<>::insert): Fix signature in C++0x mode. * include/bits/stl_set.h (set<>::erase): Likewise. (set<>::insert): Likewise. * include/bits/stl_multimap.h (multimap<>::erase): Likewise. (multimap<>::insert): Likewise. * include/bits/stl_multiset.h (multiset<>::erase): Likewise. (multiset<>::insert): Fix signature in C++0x mode. * include/profile/set.h: Adjust. * include/profile/multiset.h: Likewise. * include/profile/map.h: Likewise. * include/profile/multimap.h: Likewise. * testsuite/util/exception/safety.h (erase_base, insert_base): Update. From-SVN: r166438
Paolo Carlini committed
-