- 06 Mar, 2014 12 commits
-
-
re PR fortran/51976 ([F2003] Support deferred-length character components of derived types (allocatable string length)) 2014-03-06 Paul Thomas <pault@gcc.gnu.org> Janus Weil <janus@gcc.gnu.org> PR fortran/51976 * gfortran.h (symbol_attribute): Add deferred_parameter attribute. * primary.c (build_actual_constructor): It is not an error if a missing component has the deferred_parameter attribute; equally, if one is given a value, it is an error. * resolve.c (resolve_fl_derived0): Remove error for deferred character length components. Add the hidden string length field to the structure. Give it the deferred_parameter attribute. * trans-array.c (duplicate_allocatable): Add a strlen field which is used as the element size if it is non-null. (gfc_duplicate_allocatable, gfc_copy_allocatable_data): Pass a NULL to the new argument in duplicate_allocatable. (structure_alloc_comps): Set the hidden string length as appropriate. Use it in calls to duplicate_allocatable. (gfc_alloc_allocatable_for_assignment): When a deferred length backend declaration is variable, use that; otherwise use the string length from the expression evaluation. * trans-expr.c (gfc_conv_component_ref): If this is a deferred character length component, the string length should have the value of the hidden string length field. (gfc_trans_subcomponent_assign): Set the hidden string length field for deferred character length components. Allocate the necessary memory for the string. (alloc_scalar_allocatable_for_assignment): Same change as in gfc_alloc_allocatable_for_assignment above. * trans-stmt.c (gfc_trans_allocate): Likewise. * trans-intrinsic (size_of_string_in_bytes): Make non-static. * trans-types.c (gfc_get_derived_type): Set the tree type for a deferred character length component. * trans.c (gfc_deferred_strlen): New function. * trans.h (size_of_string_in_bytes,gfc_deferred_strlen): New prototypes. 2014-03-06 Paul Thomas <pault@gcc.gnu.org> Janus Weil <janus@gcc.gnu.org> PR fortran/51976 * gfortran.dg/deferred_type_component_1.f90 : New test. * gfortran.dg/deferred_type_component_2.f90 : New test. Co-Authored-By: Janus Weil <janus@gcc.gnu.org> From-SVN: r208386
Paul Thomas committed -
2014-03-06 Matthias Klose <doko@ubuntu.com> * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if MULTILIB_OSDIRNAMES is not defined. From-SVN: r208383
Matthias Klose committed -
PR c/60197 c-family/ * cilk.c (contains_cilk_spawn_stmt): New function. (contains_cilk_spawn_stmt_walker): Likewise. (recognize_spawn): Give error on invalid use of _Cilk_spawn. * c-common.h (contains_cilk_spawn_stmt): Add declaration. c/ * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead of checking tree code. cp/ * typeck.c (check_return_expr): Call contains_cilk_spawn_stmt instead of checking tree code. testsuite/ * c-c++-common/cilk-plus/CK/pr60197.c: New test. * c-c++-common/cilk-plus/CK/pr60197-2.c: New test. From-SVN: r208382
Marek Polacek committed -
PR libgcc/59339 * config.host (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu) (*-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Only add vtv_*.o to extra_parts if enable_vtable_verify. From-SVN: r208381
Rainer Orth committed -
re PR target/58595 (internal compiler error: in gen_movsi when compiling on arm some files of lttng-tools with -fPIE) PR target/58595 * config/arm/arm.c (arm_tls_symbol_p): Remove. (arm_legitimize_address): Call legitimize_tls_address for any arm_tls_referenced_p expression, handle constant addend. Call it before testing for !TARGET_ARM. (thumb_legitimize_address): Don't handle arm_tls_symbol_p here. * gcc.dg/tls/pr58595.c: New test. Co-Authored-By: Meador Inge <meadori@codesourcery.com> From-SVN: r208380
Jakub Jelinek committed -
2014-03-06 Richard Biener <rguenther@suse.de> PR middle-end/60445 PR lto/60424 PR lto/60427 Revert 2014-03-04 Paulo Matos <paulo@matos-sorge.com> * tree-streamer.c (record_common_node): Assert we don't record nodes with type double. (preload_common_node): Skip type double, complex double and double pointer since it is now frontend dependent due to fshort-double option. * gcc.dg/lto/pr55113_0.c: New testcase. From-SVN: r208379
Richard Biener committed -
2014-03-06 Paolo Carlini <paolo.carlini@oracle.com> * parser.c (cp_lexer_set_source_position): New. (cp_parser_mem_initializer): Use it. (cp_parser_postfix_open_square_expression): Likewise. (cp_parser_parenthesized_expression_list): Likewise. (cp_parser_new_initializer): Likewise. (cp_parser_jump_statement): Likewise. (cp_parser_initializer): Likewise. (cp_parser_functional_cast): Likewise. From-SVN: r208378
Paolo Carlini committed -
gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin or -fno-lto is specified and the... 2014-03-06 Richard Biener <rguenther@suse.de> * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin or -fno-lto is specified and the linker has full plugin support. * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled. (main): Remove -flto processing, adjust lto_mode using use_plugin late. * lto-wrapper.c (merge_and_complain): Merge compile-time optimization levels. (run_gcc): And pass it through to the link options. From-SVN: r208375
Richard Biener committed -
* config/msp430/t-msp430 (LIB2ADD): Add lib2hw_mul.S * config/msp430/lib2hw_mul.S: New: Hardware multiply routines. From-SVN: r208374
Nick Clifton committed -
PR debug/60381 Revert: 2014-02-28 Alexandre Oliva <aoliva@redhat.com> PR debug/59992 * cselib.c (remove_useless_values): Skip to avoid quadratic behavior if the condition moved from... (cselib_process_insn): ... here holds. From-SVN: r208361
Alexandre Oliva committed -
From-SVN: r208358
Ed Smith-Rowland committed -
From-SVN: r208357
GCC Administrator committed
-
- 05 Mar, 2014 9 commits
-
-
PR testsuite/59308 * gcc.dg/pr46309.c: Don't compile on logical_op_short_circuit targets other than mips/avr. Use -mbranch-cost=2 even for i?86/x86_64. * gcc.dg/tree-ssa/reassoc-32.c: Use -mbranch-cost=2 even for s390*/i?86/x86_64. * gcc.dg/tree-ssa/reassoc-33.c: Likewise. * gcc.dg/tree-ssa/reassoc-34.c: Likewise. * gcc.dg/tree-ssa/reassoc-35.c: Likewise. * gcc.dg/tree-ssa/reassoc-36.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-1.c: Don't compile on logical_op_short_circuit targets other than avr. Use -mbranch-cost=2 even for mips*/s390*/i?86/x86_64. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-2.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-3.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-4.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-5.c: Likewise. * gcc.dg/tree-ssa/ssa-ifcombine-ccmp-6.c: Likewise. From-SVN: r208354
Jakub Jelinek committed -
PR c++/60409 * semantics.c (force_paren_expr): Only add a PAREN_EXPR to a dependent expression. From-SVN: r208352
Jason Merrill committed -
PR c++/60361 * parser.c (cp_parser_template_id): Don't set up a CPP_TEMPLATE_ID if re-parsing might succeed. * semantics.c (finish_id_expression): Use of a parameter outside the function body is a parse error. From-SVN: r208351
Jason Merrill committed -
* parser.c (cp_parser_mem_initializer): Set input_location properly for init-list warning. (cp_parser_postfix_open_square_expression): Likewise. (cp_parser_parenthesized_expression_list): Likewise. (cp_parser_new_initializer): Likewise. (cp_parser_jump_statement): Likewise. (cp_parser_initializer): Likewise. (cp_parser_functional_cast): Likewise. From-SVN: r208350
Jason Merrill committed -
PR plugins/59335 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h, ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h. From-SVN: r208346
Jakub Jelinek committed -
PR plugins/59335 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def. (TM_H): Add x86-tune.def. From-SVN: r208344
Jakub Jelinek committed -
* config/aarch64/aarch64.c (generic_tunings): Use cortexa57_extra_costs. From-SVN: r208343
Kyrylo Tkachov committed -
PR lto/60404 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p. * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1 cost for in_lto_p. * gcc.dg/lto/pr60404_0.c: New test. * gcc.dg/lto/pr60404_1.c: New file. * gcc.dg/lto/pr60404_2.c: New file. From-SVN: r208340
Jakub Jelinek committed -
From-SVN: r208338
GCC Administrator committed
-
- 04 Mar, 2014 16 commits
-
-
PR c++/60417 * typeck2.c (process_init_constructor_record): Set CONSTRUCTOR_IS_DIRECT_INIT on {} for omitted initializers. From-SVN: r208333
Jason Merrill committed -
PR c++/60415 PR c++/54359 * parser.c (cp_parser_direct_declarator): Set declarator to cp_error_declarator on invalid qualified-id. From-SVN: r208332
Jason Merrill committed -
gcc/ 2014-03-04 Heiher <r@hev.cc> * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor. * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly. From-SVN: r208330
Heiher committed -
* config/i386/predicates.md (const2356_operand): Change to ... (const2367_operand): ... this. * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use const2367_operand. (*avx512pf_scatterpf<mode>sf_mask): Ditto. (*avx512pf_scatterpf<mode>sf): Ditto. (avx512pf_scatterpf<mode>df): Ditto. (*avx512pf_scatterpf<mode>df_mask): Ditto. (*avx512pf_scatterpf<mode>df): Ditto. * config/i386/i386.c (ix86_expand_builtin): Update incorrect hint operand error message. From-SVN: r208324
Uros Bizjak committed -
2014-03-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * gcc.dg/vmx/extract-vsx.c: Replace "vector long" with "vector long long" throughout. * gcc.dg/vmx/extract-vsx-be-order.c: Likewise. * gcc.dg/vmx/insert-vsx.c: Likewise. * gcc.dg/vmx/insert-vsx-be-order.c: Likewise. * gcc.dg/vmx/ld-vsx.c: Likewise. * gcc.dg/vmx/ld-vsx-be-order.c: Likewise. * gcc.dg/vmx/ldl-vsx.c: Likewise. * gcc.dg/vmx/ldl-vsx-be-order.c: Likewise. * gcc.dg/vmx/merge-vsx.c: Likewise. * gcc.dg/vmx/merge-vsx-be-order.c: Likewise. * gcc.dg/vmx/st-vsx.c: Likewise. * gcc.dg/vmx/st-vsx-be-order.c: Likewise. * gcc.dg/vmx/stl-vsx.c: Likewise. * gcc.dg/vmx/stl-vsx-be-order.c: Likewise. From-SVN: r208321
Bill Schmidt committed -
From-SVN: r208316
Jonathan Wakely committed -
2014-03-04 Richard Biener <rguenther@suse.de> * lto-section-in.c (lto_get_section_data): Fix const cast. From-SVN: r208315
Richard Biener committed -
2014-03-04 Paulo Matos <paulo@matos-sorge.com> * tree-streamer.c (record_common_node): Assert we don't record nodes with type double. (preload_common_node): Skip type double, complex double and double pointer since it is now frontend dependent due to fshort-double option. 2014-03-04 Paulo Matos <paulo@matos-sorge.com> * gcc.dg/lto/pr55113_0.c: New testcase. From-SVN: r208312
Paulo Matos committed -
2014-03-04 Richard Biener <rguenther@suse.de> PR lto/60405 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check. (lto_input_toplevel_asms): Likewise. * lto-section-in.c (lto_get_section_data): Instead do it here for every section. From-SVN: r208311
Richard Biener committed -
/gcc/cp 2014-03-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60376 * parser.c (cp_parser_using_declaration): Early return when cp_parser_nested_name_specifier errors out. /gcc/testsuite 2014-03-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60376 * g++.dg/cpp1y/pr60376.C: New. /libstdc++-v3 2014-03-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60376 * testsuite/29_atomics/headers/atomic/types_std_c++0x_neg.cc: Adjust dg-error directives. From-SVN: r208309
Paolo Carlini committed -
* g++.dg/abi/anon2.C: Don't scan assembler for c++98. From-SVN: r208307
Rainer Orth committed -
re PR tree-optimization/60382 (ICE on valid code at -O3 on x86_64-linux-gnu (in vect_create_epilog_for_reduction, at tree-vect-loop.c:4352)) 2014-03-04 Richard Biener <rguenther@suse.de> PR tree-optimization/60382 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider dead PHIs a reduction. * gcc.dg/vect/pr60382.c: New testcase. From-SVN: r208305
Richard Biener committed -
2014-03-03 Jerry DeLisle <jvdelisle@gcc.gnu> PR libfortran/60148 * gfortran.dg/namelist_84.f90: New test. From-SVN: r208303
Jerry DeLisle committed -
2014-03-03 Jerry DeLisle <jvdelisle@gcc.gnu> PR libfortran/60148 * io/inquire.c (inquire_via_unit): In the case of DELIM_UNSPECIFIED set inquire return string to "NONE". * io/list_read.c (read_character): In the case of DELIM_NONE and namelists, complete the character read using the namelist variable length. * io/open.c (new_unit): Don't set delim status to none if not specified so that DELIM_UNSPECIFIED can be used later. * io/transfer.c (data_transfer_init): For namelist I/O, if the unit delim status is unspecified set the current status to quote. Otherwise, set current status to the unit status. * io/unit.c (get_internel_unit, init_unit): Remember to set flags_delim initially to DELIM_UNSPECIFIED so defaults come out correctly. * io/write.c (write_character): Add a new function argument "mode" to signify that raw output is to be used vs output with delimiters. If the mode is set to DELIM (1) proceed with delimiters. (list_formatted_write_scalar): Write the separator only if a delimiter was previously specified. Update the call to write_character with the mode argument given. (namelist_write_newline): Use the mode argument. (nml_write_obj): Use the mode argument. Remove use of tmp_delim. Write the semi-colon or comma correctly only when needed with using delimiters. Cleanup whitespace. (namelist_write): If delim is not specified in namelist I/O, default to using quotes. Get rid of the tmp_delim variable and use the new mode argument in write_character. From-SVN: r208302
Jerry DeLisle committed -
* go-gcc.cc (Gcc_backend::immutable_struct): If IS_COMMON, set DECL_WEAK. (GCC_backend::immutable_struct_set_init): If IS_COMMON, clear DECL_WEAK. From-SVN: r208301
Ian Lance Taylor committed -
From-SVN: r208299
GCC Administrator committed
-
- 03 Mar, 2014 3 commits
-
-
* config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct hint value. (_mm_prefetch): Move out of GCC target("sse") pragma. * config/i386/prfchwintrin.h (_m_prefetchw): Move out of GCC target("prfchw") pragma. * config/i386/i386.md (prefetch): Emit prefetchwt1 only for locality <= 2. * config/i386/i386.c (ix86_option_override_internal): Enable -mprfchw with -mprefetchwt1. From-SVN: r208296
Uros Bizjak committed -
* config/arc/arc.md (casesi_load) <length attribute alternative 0>: Mark as varying. From-SVN: r208294
Joern Rennecke committed -
From-SVN: r208293
Joern Rennecke committed
-