- 08 Nov, 2010 18 commits
-
-
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 -
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
Andreas Krebbel committed -
* 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
Joern Rennecke committed -
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 committed -
* make_sunver.pl: Ignore entries without symbol name first. Then do not ignore symbols marked as 'R'. From-SVN: r166432
Eric Botcazou committed -
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
Kai Tietz committed -
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
Janus Weil committed -
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
Andrey Belevantsev committed -
2010-11-08 Basile Starynkevitch <basile@starynkevitch.net> * gengtype (main): Get here's position using POS_HERE macro for do*typedef calls. From-SVN: r166428
Basile Starynkevitch committed -
gcc/: PR target/46089 * config/i386/i386.c (split_stack_fn_large): New static variable. (ix86_expand_split_stack_prologue): Handle large model. libgcc/: * config/i386/morestack.S (__morestack_large_model): New function. From-SVN: r166427
Ian Lance Taylor committed -
From-SVN: r166426
GCC Administrator committed
-
- 07 Nov, 2010 11 commits
-
-
* config/m68k/m68k.c (m68k_delegitimize_address): Update to handle all possible addressing modes. From-SVN: r166422
Andreas Schwab committed -
gcc/testsuite: PR libobjc/36610 * objc.dg/torture/forward-1.m: Re-enable for gnu-runtime, XFAIL the run for all but m32 x86. From-SVN: r166421
Iain Sandoe committed -
2010-11-07 Paolo Carlini <paolo.carlini@oracle.com> * include/profile/unordered_map (unordered_map<>::operator[](_Key&&)): Add. From-SVN: r166420
Paolo Carlini committed -
PR tree-optimization/46346 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS. From-SVN: r166419
Uros Bizjak committed -
* g++.dg/debug/dwarf2/nested-2.C: Adjust pattern to also match "|" as comment character. From-SVN: r166418
Andreas Schwab committed -
2010-11-07 Paolo Carlini <paolo.carlini@oracle.com> * include/profile/bitset (bitset<>::bitset(), bitset<>:: bitset(unsigned long long)): Add constexpr specifier. From-SVN: r166417
Paolo Carlini committed -
2010-11-07 Paolo Carlini <paolo.carlini@oracle.com> * include/debug/bitset: Do not derive from _Safe_sequence_base in C++0x mode, otherwise std::bitset isn't a literal type anymore; adjust everywhere. * include/debug/bitset (bitset<>::bitset(), bitset<>:: bitset(unsigned long long)): Add missing constexpr specifier. From-SVN: r166416
Paolo Carlini committed -
gcc/ * config/mips/mips.c: Revert previous patch. * config/mips/mips.md: Likewise. gcc/testsuite/ * gcc.target/mips/mips.exp: Revert previous patch. * gcc.target/mips/fma-1.c: Delete. * gcc.target/mips/fma-2.c: Likewise. * gcc.target/mips/fma-3.c: Likewise. * gcc.target/mips/fma-4.c: Likewise. * gcc.target/mips/fma-5.c: Likewise. * gcc.target/mips/fma-6.c: Likewise. * gcc.target/mips/fma-7.c: Likewise. * gcc.target/mips/fma-8.c: Likewise. * gcc.target/mips/fma-9.c: Likewise. * gcc.target/mips/fma-10.c: Likewise. * gcc.target/mips/fma-11.c: Likewise. * gcc.target/mips/fma-12.c: Likewise. * gcc.target/mips/fma-13.c: Likewise. * gcc.target/mips/fma-14.c: Likewise. * gcc.target/mips/fma-15.c: Likewise. * gcc.target/mips/fma-16.c: Likewise. * gcc.target/mips/fma-17.c: Likewise. * gcc.target/mips/fma-18.c: Likewise. * gcc.target/mips/fma-19.c: Likewise. * gcc.target/mips/fma-20.c: Likewise. From-SVN: r166415
Richard Sandiford committed -
gcc/ * config/mips/mips.c (mips_rtx_costs): Handle FMA. * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>) (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath) (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete. (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine to use FMA. (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns. (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise. (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise. (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise. gcc/testsuite/ * gcc.target/mips/mips.exp: Add support for -ffp-contract. * gcc.target/mips/fma-1.c: New test. * gcc.target/mips/fma-2.c: Likewise. * gcc.target/mips/fma-3.c: Likewise. * gcc.target/mips/fma-4.c: Likewise. * gcc.target/mips/fma-5.c: Likewise. * gcc.target/mips/fma-6.c: Likewise. * gcc.target/mips/fma-7.c: Likewise. * gcc.target/mips/fma-8.c: Likewise. * gcc.target/mips/fma-9.c: Likewise. * gcc.target/mips/fma-10.c: Likewise. * gcc.target/mips/fma-11.c: Likewise. * gcc.target/mips/fma-12.c: Likewise. * gcc.target/mips/fma-13.c: Likewise. * gcc.target/mips/fma-14.c: Likewise. * gcc.target/mips/fma-15.c: Likewise. * gcc.target/mips/fma-16.c: Likewise. * gcc.target/mips/fma-17.c: Likewise. * gcc.target/mips/fma-18.c: Likewise. * gcc.target/mips/fma-19.c: Likewise. * gcc.target/mips/fma-20.c: Likewise. From-SVN: r166414
Richard Sandiford committed -
* init.c (perform_member_init): Use build_vec_init_expr for value-init of arrays, too. * cp-gimplify.c (cp_gimplify_expr): Use VEC_INIT_EXPR_VALUE_INIT. * cp-tree.h (VEC_INIT_EXPR_IS_CONSTEXPR): New macro. (VEC_INIT_EXPR_VALUE_INIT): New macro. * semantics.c (potential_constant_expression): No longer static. Check VEC_INIT_EXPR_IS_CONSTEXPR. * tree.c (build_vec_init_expr): Handle value-init. Set VEC_INIT_EXPR_IS_CONSTEXPR and VEC_INIT_EXPR_VALUE_INIT. From-SVN: r166413
Jason Merrill committed -
From-SVN: r166412
GCC Administrator committed
-
- 06 Nov, 2010 11 commits
-
-
gcc/ 2010-11-16 Simon Martin <simartin@users.sourceforge.net> PR c/43384 * c-decl.c (lookup_label): Labels can only be referenced in a function's scope. (store_parm_decls_oldstyle): Skip erroneous parameters. gcc/testsuite/ 2010-11-16 Simon Martin <simartin@users.sourceforge.net> PR c/43384 * gcc.dg/parser-error-3.c: New test. From-SVN: r166408
Simon Martin committed -
* config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE, LIBCALL_VALUE): Remove macros. * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define. (fr30_function_value_regno_p, fr30_function_value, fr30_libcall_value): New functions. From-SVN: r166407
Anatoly Sokolov committed -
re PR c++/45332 (Generate clear diagnostics when a terminating semicolon is missing from a class member declaration.) gcc/cp/ PR c++/45332 * parser.c (cp_lexer_previous_token): New function. (cp_parser_member_declaration): Use previous token for error messages. Assume semicolon presence rather than grovelling for the next one. gcc/testsuite/ PR c++/45332 * g++.dg/parse/semicolon2.C: New testcase. * g++.dg/ext/asmspec1.C: Adjust. * g++.dg/init/new13.C: Adjust. * g++.dg/parse/ctor5.C: Adjust. From-SVN: r166406
Nathan Froyd committed -
2010-11-06 Janus Weil <janus@gcc.gnu.org> PR fortran/46330 * trans-expr.c (gfc_trans_class_assign): Find 'vtab' symbol in correct namespace. 2010-11-06 Janus Weil <janus@gcc.gnu.org> PR fortran/46330 * gfortran.dg/class_27.f03: New. From-SVN: r166405
Janus Weil committed -
PR middle-end/46314 gcc: * target.def (generate_internal_label): New asm_out hook. * output.h (default_generate_internal_label): Declare. * varasm.c (default_generate_internal_label): Define. gcc/cp: * method.c (make_alias_for_thunk): Use targetm.asm_out.generate_internal_label. gcc/java: * class.c: Include target.h. (make_local_function_alias): Use targetm.asm_out.generate_internal_label. * expr.c (lookup_label, generate_name): Likewise. From-SVN: r166404
Joern Rennecke committed -
In gcc/objc/: 2010-11-05 Nicola Pero <nicola.pero@meta-innovation.com> Fixed using the Objective-C 2.0 syntax with self and super. * objc-act.c (OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS): New. (maybe_make_artificial_property_decl): Added 'implementation' argument. Use OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS when looking up getters or setters for a class. If an implementation is specified, search it as well for a getter or setter. (objc_maybe_build_component_ref): Updated calls to maybe_make_artificial_property_decl; added code to deal with 'self' and 'super' and with methods declared locally in the implementation. Store the getter call expression in the PROPERTY_REF instead of throwing it away. (objc_build_class_component_ref): Updated calls to maybe_make_artificial_property_decl, and store the getter call expression in PROPERTY_REF instead of throwing it away. (lookup_method_static): Implemented OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS option. (objc_gimplify_property_ref): Do not build the getter method call here; instead use the one stored in the PROPERTY_REF. If it's not there, produce helpful error messages. * objc-tree.def (PROPERTY_REF): Increased the number of operands from 2 to 3. Updated comments. * objc-act.h (PROPERTY_REF_GETTER_CALL): New. In gcc/testsuite/: 2010-11-05 Nicola Pero <nicola.pero@meta-innovation.com> Fixed using the Objective-C 2.0 dot-syntax with self and super. * objc.dg/property/dotsyntax-5.m: New. * objc.dg/property/dotsyntax-6.m: New. * objc.dg/property/dotsyntax-7.m: New. * objc.dg/property/dotsyntax-8.m: New. * objc.dg/property/dotsyntax-9.m: New. * objc.dg/property/dotsyntax-10.m: New. * objc.dg/property/dotsyntax-11.m: New. * obj-c++.dg/property/dotsyntax-5.mm: New. * obj-c++.dg/property/dotsyntax-6.mm: New. * obj-c++.dg/property/dotsyntax-7.mm: New. * obj-c++.dg/property/dotsyntax-8.mm: New. * obj-c++.dg/property/dotsyntax-9.mm: New. * obj-c++.dg/property/dotsyntax-10.mm: New. * obj-c++.dg/property/dotsyntax-11.mm: New. From-SVN: r166402
Nicola Pero committed -
gcc/testsuite: * obj-c++.dg/encode-3.mm: Provide a different string check for the NeXT runtime when the type is READONLY. From-SVN: r166401
Iain Sandoe committed -
* gcc.target/i386/387-2.c: Skip if -march= is specified. * gcc.target/i386/387-6.c: Ditto. * gcc.target/i386/387-2.c: Add -mfancy-math-387 to dg-options. * gcc.target/i386/387-4.c: Ditto. * gcc.target/i386/387-7.c: Ditto. * gcc.target/i386/387-8.c: Ditto. * gcc.target/i386/387-9.c: Ditto. * gcc.target/i386/387-10.c: Ditto. * gcc.target/i386/387-11.c: Ditto. * gcc.target/i386/387-12.c: Ditto. * gcc.target/i386/387-2.c: Add -mno-sse3 to dg-options. From-SVN: r166400
Uros Bizjak committed -
From-SVN: r166399
Iain Sandoe committed -
gcc: PR target/44981 * doc/extend.tex (format): Document NSString extension. (format_arg): Likewise. (Darwin Format Checks): New section. * doc/tm.texi: Document string object hooks (generated). * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename. (TARGET_STRING_OBJECT_REF_TYPE_P): New. (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New. * target.def (objc_construct_string_object): Rename, amend documentation. (string_object_ref_type_p): New hook. (check_string_object_format_arg): New hook. * c-parser.c (c_parser_attributes): Allow objective-c class names as attribute identifiers. * config/darwin-c.c (darwin_cfstring_ref_p): New. (darwin_check_cfstring_format_arg): New. (darwin_additional_format_types): New. * config/darwin-protos.h (darwin_cfstring_ref_p) New. (darwin_check_cfstring_format_arg): New. * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed. (TARGET_STRING_OBJECT_REF_TYPE_P): New. (TARGET_N_FORMAT_TYPES): New. (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New. gcc/c-family: PR target/44981 * c-format.c (format_type): New type gcc_objc_string_format_type. (valid_stringptr_type_p): New. (handle_format_arg_attribute): Use valid_stringptr_type_p (). (check_format_string): Pass expected type, use valid_stringptr_type_p (), check that the format string types are consistent with the format specification. (decode_format_attr): Warn if NSString is used outside objective-c. (format_types_orig): Add NSString. (format_name): New. (format_flags): New. (check_format_arg): Handle format strings requiring an external parser. first_target_format_type: New variable. (handle_format_attribute): Set up first_target_format_type, pass the expected format arg string type to check_format_string(). * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag. * stub-objc.c (objc_string_ref_type_p): New. (objc_check_format_arg): New. gcc/objc: PR target/44981 * objc-act.c (objc_build_string_object): Amend for renamed hook. (objc_string_ref_type_p): New. (objc_check_format_arg): New. gcc/testsuite: PR target/44981 * gcc.dg/darwin-cfstring-format-1.c: New. * gcc.dg/warn-nsstring.c: New. * objc.dg/fsf-nsstring-format-1.m: New. * obj-c++.dg/fsf-nsstring-format-1.mm: New. * obj-c++.dg/torture/strings/const-cfstring-1.mm: Update for darwin10 linker warning. From-SVN: r166398
Iain Sandoe committed -
* config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33 in 64-bit mode and 17 otherwise. Co-Authored-By: Pascal Obry <obry@adacore.com> From-SVN: r166397
Eric Botcazou committed
-