- Nov 09, 2010
-
-
Rainer Orth authored
* inclhack.def (irix_pthread_init): New fix. * fixincl.x: Regenerate. * tests/base/pthread.h [IRIX_PTHREAD_INIT_CHECK]: New test. From-SVN: r166478
-
Paolo Carlini authored
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
-
Rainer Orth authored
* 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
-
Nick Clifton authored
From-SVN: r166475
-
Eric Botcazou authored
From-SVN: r166474
-
Basile Starynkevitch authored
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
-
Xinliang David Li authored
From-SVN: r166472
-
Jason Merrill authored
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 authored
PR c++/46335 * tree.c (bot_manip): Check TREE_SIDE_EFFECTS as well. From-SVN: r166470
-
Xinliang David Li authored
From-SVN: r166469
-
Paul Koning authored
From-SVN: r166468
-
Paul Koning authored
From-SVN: r166467
-
Paul Koning authored
* config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values to 8 bits. From-SVN: r166466
-
GCC Administrator authored
From-SVN: r166465
-
Jerry DeLisle authored
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
-
- Nov 08, 2010
-
-
Jonathan Wakely authored
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
-
Benjamin Kosnik authored
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
-
Janus Weil authored
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
-
Nicola Pero authored
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 authored
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 authored
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
-
Jason Merrill authored
* 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 authored
From-SVN: r166452
-
Joern Rennecke authored
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
-
Michael Meissner authored
From-SVN: r166448
-
Joern Rennecke authored
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 authored
PR bootstrap/46358 * config/i386/i386.c (ix86_expand_split_stack_prologue): Avoid warnings when HOST_WIDE_INT is 32 bit. From-SVN: r166445
-
Rainer Orth authored
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
-
Basile Starynkevitch authored
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
-
Steve Ellcey authored
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 authored
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
-
Benjamin Kosnik authored
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
-
Paolo Carlini authored
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
-
Andreas Krebbel authored
2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * config/s390/s390.c (s390_handle_arch_option): Set type and flags to defined values in case of an error. (s390_option_override): Skip further processing if the -march parameter wasn't recognized. From-SVN: r166435
-
Joern Rennecke authored
* caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails, assert that REG is a hard register number before using it as an index. From-SVN: r166434
-
Eric Botcazou authored
PR target/46208 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete. (sparc_promote_prototypes): Likewise. (sparc_promote_function_mode): Promote in 32-bit mode as well. (sparc_return_in_memory): Remove superfluous parentheses. (sparc_struct_value_rtx): Fix long lines. (sparc_function_value_1): Promote in 32-bit mode as well. From-SVN: r166433
-
Eric Botcazou authored
* make_sunver.pl: Ignore entries without symbol name first. Then do not ignore symbols marked as 'R'. From-SVN: r166432
-
Kai Tietz authored
2010-11-08 Kai Tietz <kai.tietz@onevision.com> PR target/28627 * g++.dg/ext/dllimport7.C: Adjust second error check and allow test for x86_64 mingw, too. From-SVN: r166431
-
Janus Weil authored
2010-11-08 Janus Weil <janus@gcc.gnu.org> PR fortran/46344 * trans-types.c (gfc_copy_dt_decls_ifequal): Handle CLASS components. 2010-11-08 Janus Weil <janus@gcc.gnu.org> PR fortran/46344 * gfortran.dg/class_28.f03: New. From-SVN: r166430
-
Andrey Belevantsev authored
PR rtl-optimization/45352 * sel-sched.c (find_best_expr): Do not set pneed_stall when the variable_issue hook is not implemented. (fill_insns): Remove dead variable stall_iterations. (init_seqno_1): Force EBB start for resetting sched cycles on any successor blocks of the rescheduled region. (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit. (reset_sched_cycles_in_current_ebb): Add debug printing. New variable issued_insns. Advance state when we have issued issue_rate insns. gcc.dg/pr45352.c, gcc.dg/pr45352-1.c, gcc.dg/pr45352-2.c: New tests. gcc.target/i386/pr45352.c, gcc.target/i386/pr45352-1.c, gcc.target/i386/pr45352-2.c: New tests. From-SVN: r166429
-