- 08 Feb, 2015 2 commits
-
-
utils.c (begin_subprog_body): Assert that the body is present in the same context as the declaration. * gcc-interface/utils.c (begin_subprog_body): Assert that the body is present in the same context as the declaration. From-SVN: r220510
Eric Botcazou committed -
From-SVN: r220509
GCC Administrator committed
-
- 07 Feb, 2015 9 commits
-
-
2015-02-07 Sandra Loosemore <sandra@codesourcery.com> gcc/ * doc/extend.texi (Function Attributes [naked]): Copy-edit. (Using Assembly Language with C): Expand introduction. (Basic Asm): Copy-edit. Add more information about uses of basic asm. (Extended Asm): Copy-edit. Document new escape syntax and %l[label] syntax. (Global Reg Vars): Copy-edit. (Local Reg Vars): Likewise. From-SVN: r220506
Sandra Loosemore committed -
2015-02-07 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/60956 * io/fbuf.c (fbuf_flush_list): New function that only flushes if current fbuf position exceeds a limit. * io/fbuf.h: Declare the new function. * io/io.h (enum unit_mode): Add two new modes. * io/list_read.c (list_formatted_read_scalar): Call new function. * io/write.c: Include fbuf.h. (list_formatted_write_scalar): Call new function. From-SVN: r220505
Jerry DeLisle committed -
PR middle-end/64340 * gcc-interface/trans.c (gigi): Recreate optimization_default_node and optimization_current_node after tweaking global_options. From-SVN: r220504
Jakub Jelinek committed -
From-SVN: r220503
Eric Botcazou committed -
re PR bootstrap/53348 (Conflicting fast-integer types on AIX: <sys/inttypes.h> vs. gcc/config/rs6000/aix-stdint.h) PR bootstrap/53348 * inclhack.def (aix_pthread): Accept tab after define. * fixincl.x: Regenerate. From-SVN: r220502
David Edelsohn committed -
PR debug/2714 PR bootstrap/64256 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384. (DBX_CONTIN_CHAR): Define. From-SVN: r220501
David Edelsohn committed -
From-SVN: r220500
Diego Novillo committed -
From-SVN: r220499
GCC Administrator committed -
From-SVN: r220496
David Malcolm committed
-
- 06 Feb, 2015 21 commits
-
-
gcc/testsuite/ChangeLog: PR jit/64752 * jit.dg/create-code-for-hello-world-executable.h: New file, taken from jit.dg/test-compile-to-executable.c's create_code, with a clarification of the output message. * jit.dg/harness.h (CHECK_NO_ERRORS): Add test and __func__ to the pass/fail message. (test_jit): Use CHECK_NO_ERRORS when calling gcc_jit_context_compile_to_file. * jit.dg/jit.exp (jit-dg-test): Update grep for rename of jit-verify-compile-to-file to jit-verify-output-file-was-created. (jit-setup-compile-to-file): Likewise. Add a verbose comment about deletions that are attempted. (jit-verify-compile-to-file): Rename to... (jit-verify-output-file-was-created): ...this, and drop the attempt to run "file" and verify the output. (jit-verify-assembler): New function. (jit-verify-object): New function. (jit-verify-dynamic-library): New function. * jit.dg/test-compile-to-assembler.c (create_code): Eliminate in favor of an implementation from new file create-code-for-hello-world-executable.h, which also adds a "main". (dg-final): Replace jit-verify-compile-to-file with jit-verify-output-file-was-created, and invoke new function jit-verify-assembler. * jit.dg/test-compile-to-dynamic-library.c (create_code): Clarify the output message. (dg-final): Replace jit-verify-compile-to-file with jit-verify-output-file-was-created, and invoke new function jit-verify-dynamic-library. * jit.dg/test-compile-to-executable.c (create_code): Eliminate in favor of an implementation from new file create-code-for-hello-world-executable.h, which also adds a "main". (dg-final): Replace jit-verify-compile-to-file with jit-verify-output-file-was-created. Strengthen the expected stdout from the built executable. * jit.dg/test-compile-to-object.c (create_code): Eliminate in favor of an implementation from new file create-code-for-hello-world-executable.h, which also adds a "main". (dg-final): Replace jit-verify-compile-to-file with jit-verify-output-file-was-created, and invoke new function jit-verify-object. * jit.dg/verify-dynamic-library.c: New source file. From-SVN: r220494
David Malcolm committed -
2015-02-04 Sebastian Pop <s.pop@samsung.com> Brian Rzycki <b.rzycki@samsung.com> PR tree-optimization/64878 * tree-ssa-threadedge.c: Include tree-ssa-loop.h. (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi. Stop recursion at loop phi nodes after having visited a loop phi node. * testsuite/gcc.dg/tree-ssa/ssa-dom-thread-8.c: New. Co-Authored-By: Brian Rzycki <b.rzycki@samsung.com> From-SVN: r220491
Sebastian Pop committed -
* toplev.c (process_options): Change flag_ipa_ra before creating optimization_{default,current}_node. From-SVN: r220490
Jakub Jelinek committed -
PR ipa/64896 * cgraphunit.c (cgraph_node::expand_thunk): If restype is not is_gimple_reg_type nor the thunk_fndecl returns aggregate_value_p, set restmp to a temporary variable instead of resdecl. * g++.dg/ipa/pr64896.C: New test. From-SVN: r220489
Jakub Jelinek committed -
2015-02-06 Vladimir Makarov <vmakarov@redhat.com> * lra.c (lra_emit_add): Fix a typo in using disp instead of base. From-SVN: r220488
Vladimir Makarov committed -
[gcc] 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/64205 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not add a general secondary reload handler for SDmode, unless we have both read/write support for SDmode. [gcc/testsuite] 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/64205 * gcc.target/powerpc/pr64205.c: New file. From-SVN: r220485
Michael Meissner committed -
* gcc.target/i386/pr64317.c: Compile for 32bit *-*-linux* targets. (dg-options): Use -fpie instead of -fPIE -pie. From-SVN: r220484
Uros Bizjak committed -
PR middle-end/64937 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags): Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't 1 before, push it to abstract_vec. (dwarf2out_abstract_function): Adjust caller. Don't call set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or DECL_ABSTRACT_P flags for all abstract_vec elts. * g++.dg/asan/pr64937.C: New test. From-SVN: r220483
Jakub Jelinek committed -
2015-02-06 Paul Thomas <pault@gcc.gnu.org> PR fortran/63205 * gfortran.h: Add 'must finalize' field to gfc_expr and prototypes for gfc_is_alloc_class_scalar_function and for gfc_is_alloc_class_array_function. * expr.c (gfc_is_alloc_class_scalar_function, gfc_is_alloc_class_array_function): New functions. * trans-array.c (gfc_add_loop_ss_code): Do not move the expression for allocatable class scalar functions outside the loop. (conv_array_index_offset): Cope with deltas being NULL_TREE. (build_class_array_ref): Do not return with allocatable class array functions. Add code to pick out the returned class array. Dereference if necessary and return if not a class object. (gfc_conv_scalarized_array_ref): Cope with offsets being NULL. (gfc_walk_function_expr): Return an array ss for the result of an allocatable class array function. * trans-expr.c (gfc_conv_subref_array_arg): Remove the assert that the argument should be a variable. If an allocatable class array function, set the offset to zero and skip the write-out loop in this case. (gfc_conv_procedure_call): Add allocatable class array function to the assert. Call gfc_conv_subref_array_arg for allocatable class array function arguments with derived type formal arg.. Add the code for handling allocatable class functions, including finalization calls to prevent memory leaks. (arrayfunc_assign_needs_temporary): Return if an allocatable class array function. (gfc_trans_assignment_1): Set must_finalize to rhs expression for allocatable class functions. Set scalar_to_array as needed for scalar class allocatable functions assigned to an array. Nullify the allocatable components corresponding the the lhs derived type so that the finalization does not free them. 2015-02-06 Paul Thomas <pault@gcc.gnu.org> PR fortran/63205 * gfortran.dg/class_to_type_4.f90: New test From-SVN: r220482
Paul Thomas committed -
From Rainer Orth. The recent godump changes broke Solaris 11.1+ bootstrap in libgo: before, gen-sysinfo.so had type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16; zna_addru struct { znau_addr6 _in6_addr; }; } which was filtered out by mksysinfo.sh due to the use of _in6_addr. After the change, there's now type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16; zna_addru struct { znau_addr6 [16]byte; Godump_0_align [0]uint32; }; } instead, not filtered, but added a second time by the _zone_net_addr_t code in mksysinfo.sh, which leads to redefinition warnings/errors. Simply removing the old _zone_net_addr_t fragment fixes this and restores bootstrap. From-SVN: r220481
Ian Lance Taylor committed -
gcc/ * tree-ssa-forwprop.c (execute): Keep location info while rewrite complex gimple. * tree-ssa.c (execute_update_addresses_taken): Likewise. From-SVN: r220480
Renlin Li committed -
maintainer-scripts/ChangeLog: PR jit/64257 * update_web_docs_svn: When copying up files for the built jit documentation, also copy up .txt files. From-SVN: r220479
David Malcolm committed -
PR target/64889 * config/h8300/h8300.c (push): New argument "in_prologue". Pass "in_prologue" along to "F". (h8300_push_pop): Corresponding changes. (h8300_expand_prologue): Likewise. (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P. From-SVN: r220478
Jeff Law committed -
It breaks gold: % echo "int main () {}" | gcc -fuse-ld=gold -flto -x c++ - ld.gold: internal error in remove_writer, at token.h:132 collect2: error: ld returned 1 exit status * lto-plugin.c (release_input_file): Removed. (claim_file_handler): Don't call release_input_file. (onload): Don't set release_input_file. From-SVN: r220477
H.J. Lu committed -
PR rtl-optimization/64957 PR debug/64817 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for IOR rather than for AND. * gcc.c-torture/execute/pr64957.c: New test. From-SVN: r220475
Jakub Jelinek committed -
re PR fortran/60289 (allocating class(*) pointer as character gives type-spec requires the same character-length parameter) PR fortran/60289 Initial patch by Janus Weil * resolve.c (resolve_allocate_expr): Add check for comp. only when target is not unlimited polymorphic. * trans-stmt.c (gfc_trans_allocate): Assign correct value to _len component of unlimited polymorphic entities. * gfortran.dg/unlimited_polymorphic_22.f90: New test. From-SVN: r220474
Andre Vehreschild committed -
PR target/62631 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs of shift-add and (add + shift) operations. Rename local variable. From-SVN: r220473
Eric Botcazou committed -
PR target/17306 * config/h8300/constraints.md (U): Correctly dectect "eightbit_data" memory addresses. * config/h8300/h8300.c (eightbit_constant_address_p): Also handle (const (plus (symbol_ref (x)))) where x is declared as an 8-bit data memory address. * config/h8300/h8300.md (call, call_value): Correctly detect "funcvec" functions. PR target/17306 * gcc.target/h8300/pr17306-1.c: New test. * gcc.target/h8300/pr17306-2.c: New test. From-SVN: r220472
Jeff Law committed -
PR target/43264 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by 24 to 28 bits for the H8/300. From-SVN: r220471
Jeff Law committed -
Add memprofilerate as a value recognized in the GODEBUG env var. The value provided is used as the new setting for runtime.MemProfileRate, allowing the user to adjust memory profiling. From-SVN: r220470
Ian Lance Taylor committed -
From-SVN: r220467
GCC Administrator committed
-
- 05 Feb, 2015 8 commits
-
-
re PR target/64876 (Regressions in gcc-testresults for powerpc64 gccgo in 5.0 due to change for static chain for closures (219776)) PR target/64876 * config/rs6000/rs6000.c (chain_already_loaded): New function. (rs6000_call_aix): Use it. From-SVN: r220463
Alan Modra committed -
2015-02-05 Tobias Burnus <burnus@net-b.de> PR fortran/64943 * resolve.c (resolve_transfer): Also check structure constructors. 2015-02-05 Tobias Burnus <burnus@net-b.de> PR fortran/64943 * gfortran.dg/structure_constructor_12.f90: New. From-SVN: r220462
Tobias Burnus committed -
* lto-plugin.c (claim_file_handler): Pass handle to release_input_file. From-SVN: r220461
H.J. Lu committed -
* ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds check. From-SVN: r220458
Jan Hubicka committed -
re PR target/58400 (gcc for h8300 internal compiler error: insn does not satisfy its constraints at fs/ext4/mballoc.c: In function 'mb_free_blocks':) * config/h8300/constraints.md ("U" constraint): Use strict variant of REG_OK_FOR_BASE_P after reload has started. PR target/58400 gcc.target/h8300/pr58400.c: New test. From-SVN: r220457
Jeff Law committed -
gcc/: * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition, define to zero if !TARGET_NEON. (TARGET_CPU_CPP_BUILTINS): Added second condition before defining __ARM_FP macro. gcc/testsuite/: * gcc.target/arm/macro_defs0.c: New test. * gcc.target/arm/macro_defs1.c: New test. * gcc.target/arm/macro_defs2.c: New test. From-SVN: r220456
Mantas Mikaitis committed -
* lto-plugin.c (claim_file_handler): Call release_input_file only if file is claimed. From-SVN: r220455
H.J. Lu committed -
2015-02-05 Robert Dewar <dewar@adacore.com> * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb, prj-nmsc.adb: Minor reformatting. 2015-02-05 Ed Schonberg <schonberg@adacore.com> * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record of a protected type may not be available, so to check conformance with an interface type, examine the interface list in the type declaration directly. (Write_Overloads): Improve information for indirect calls, for debugger use. 2015-02-05 Ed Schonberg <schonberg@adacore.com> * exp_ch3.adb (Make_Tag_Assignment): Do not perform this expansion activity in ASIS mode. From-SVN: r220452
Arnaud Charlet committed
-