aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2006-10-07struct-layout-encoding-1_generate.c: Xfail some tests for powerpc-darwin and ↵Andrew Pinski2-1/+24
powerpc-aix. 2006-10-07 Andrew Pinski <pinskia@gmail.com> * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c: Xfail some tests for powerpc-darwin and powerpc-aix. From-SVN: r117540
2006-10-07re PR c/29380 (FAIL: gcc.dg/pr29330.c (test for excess errors))Jakub Jelinek2-1/+6
PR c/29380 * gcc.dg/pr29330.c: Add -std=gnu99 to dg-options. From-SVN: r117539
2006-10-07re PR target/29300 (FAIL: gcc.dg/pthread-init-[12].c (test for excess errors))John David Anglin2-0/+7
PR target/29300 * gcc.dg/pthread-init-2.c (dg-options): Define _POSIX_C_SOURCE=199506L on hppa*-*-hpux*. From-SVN: r117538
2006-10-07intrinsic.c (add_functions): Add comments for gfc_check_access_func and ↵Francois-Xavier Coudert2-0/+5
gfc_resolve_index_func. * gcc/fortran/intrinsic.c (add_functions): Add comments for gfc_check_access_func and gfc_resolve_index_func. From-SVN: r117535
2006-10-07re PR fortran/16580 ([4.1 only] gfortran ICE on test ↵François-Xavier Coudert13-199/+592
g77.f-torture/execute/intrinsic77.f) PR fortran/16580 PR fortran/29288 * gcc/fortran/intrinsic.c (add_sym): Define the actual_ok when a gfc_intrinsic_sym structure is filled. (gfc_intrinsic_actual_ok): New function. (add_sym_0s, add_sym_1s, add_sym_2s, add_sym_3s, add_sym_4s, add_sym_5s): Intrinsic subroutines are not allowed as actual arguments, so we remove argument actual_ok. (add_functions): Correct the values for actual_ok of all intrinsics. (add_subroutines): Remove the actual_ok argument, which was never used. * gcc/fortran/intrinsic.h (gfc_intrinsic_actual_ok): New prototype. * gcc/fortran/gfortran.h (gfc_resolve_index_func): New prototype. * gcc/fortran/resolve.c (resolve_actual_arglist): Check whether an intrinsic used as an argument list is allowed there. * gcc/fortran/iresolve.c (gfc_resolve_index_func): New function. (gfc_resolve_len): Change intrinsic function name to agree with libgfortran. * gcc/fortran/trans-decl.c (gfc_get_extern_function_decl): Add new case, because some specific intrinsics take 3 arguments. * gcc/fortran/intrinsic.texi: DIMAG is a GNU extension. * libgfortran/Makefile.am: Add the new files to the build process, and rules to build them. * libgfortran/Makefile.in: Regenerate. * libgfortran/m4/misc_specifics.m4: New file. * libgfortran/m4/specific.m4: Add new special cases for function with complex argument and real result, like abs_c* and aimag_c*. * libgfortran/intrinsics/f2c_specifics.F90: Add specifics for AIMAG, ASINH, ACOSH and ATANH. * libgfortran/generated/_aimag_c4.F90: New file. * libgfortran/generated/_aimag_c8.F90: New file. * libgfortran/generated/_asinh_r10.F90: New file. * libgfortran/generated/_acosh_r16.F90: New file. * libgfortran/generated/_aimag_c10.F90: New file. * libgfortran/generated/_atanh_r16.F90: New file. * libgfortran/generated/_acosh_r4.F90: New file. * libgfortran/generated/_acosh_r8.F90: New file. * libgfortran/generated/_asinh_r4.F90: New file. * libgfortran/generated/_asinh_r8.F90: New file. * libgfortran/generated/_asinh_r16.F90: New file. * libgfortran/generated/_atanh_r4.F90: New file. * libgfortran/generated/_atanh_r8.F90: New file. * libgfortran/generated/_acosh_r10.F90: New file. * libgfortran/generated/misc_specifics.F90: New file. * libgfortran/generated/_aimag_c16.F90: New file. * libgfortran/generated/_atanh_r10.F90: New file. * gcc/testsuite/gfortran.fortran-torture/execute/specifics.f90: Add tests for using all possible intrinsics as actual arguments. * gcc/testsuite/gfortran.dg/specifics_1.f90: Add tests for using all possible intrinsics as actual arguments. * gcc/testsuite/gfortran.dg/specifics_2.f90: New file. * gcc/testsuite/gfortran.dg/specifics_3.f90: New file. From-SVN: r117534
2006-10-07* sched-int.h: Fix comment typos.Kazu Hirata2-2/+4
From-SVN: r117532
2006-10-07* gimplify.c, sched-int.h: Fix comment typos.Kazu Hirata3-5/+9
From-SVN: r117531
2006-10-07debug-1.c: Use -fno-if-conversion MIPS targets.Richard Sandiford3-0/+25
gcc/testsuite/ * gcc.dg/debug/debug-1.c: Use -fno-if-conversion MIPS targets. * gcc.dg/debug/debug-2.c: Likewise. From-SVN: r117530
2006-10-07Daily bump.GCC Administrator1-1/+1
From-SVN: r117525
2006-10-07sync-2.c: New test.Uros Bizjak2-0/+170
* gcc.c-torture/compile/sync-2.c: New test. From-SVN: r117519
2006-10-07actual_array_substr_2.f90: Remove '\r's from line endings.Tobias Schlüter2-18/+23
* gfortran.dg/actual_array_substr_2.f90: Remove '\r's from line endings. From-SVN: r117518
2006-10-06add missed aprt of patchTobias Schlüter1-2/+2
From-SVN: r117517
2006-10-06sched-int.h (IS_SPECULATION_CHECK_P, [...]): New macros.Maxim Kuvyrkov5-19/+34
2006-10-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru> * sched-int.h (IS_SPECULATION_CHECK_P, IS_SPECULATION_SIMPLE_CHECK_P): New macros. * sched-ebb.c (begin_schedule_ready): Use them. * haifa-sched.c (schedule_insn, move_insn, try_ready, add_to_speculative_block, create_check_block_twin, speculate_insn, fix_jump_move, move_block_after_check): Ditto. * sched-rgn.c (new_ready): Ditto. From-SVN: r117516
2006-10-06re PR rtl-optimization/29128 (ICE: in move_block_after_check, at ↵Maxim Kuvyrkov5-2/+53
haifa-sched.c:4337) 2006-10-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru> PR rtl-optimization/29128 * sched-int.h (IS_SPECULATION_BRANCHY_CHECK_P): New macro. * sched-ebb.c (advance_target_bb): Use it to fix condition to allow interblock movement of speculation checks. * gcc.c-torture/compile/pr29128.c: New test. From-SVN: r117515
2006-10-06actual_array_constructor_2.f90: Remove '\r's from line endings.Tobias Schlüter2-23/+28
* gfortran.dg/actual_array_constructor_2.f90: Remove '\r's from line endings. From-SVN: r117514
2006-10-06re PR target/29256 (loop performance regression)Zdenek Dvorak4-54/+160
PR middle-end/29256 * tree-ssa-loop-ivopts.c (determine_base_object): Handle pointers casted to integer type. (get_address_cost): Decrease cost of [symbol + index] addressing modes if they are significantly more expensive than [reg + index] ones. * gcc.dg/tree-ssa/loop-19.c: New test. From-SVN: r117513
2006-10-06re PR tree-optimization/29330 (-O -ftree-loop-linear --> virtual memory ↵Jakub Jelinek5-15/+55
exhausted) PR tree-optimization/29330 * tree-data-ref.c (free_data_ref): Use DR_FREE_ACCESS_FNS macro. (initialize_data_dependence_relation): Clear DDR_LOOP_NEST pointer on newly allocated ddrs. (find_loop_nest_1, find_loop_nest): Change LOOP_NEST to a pointer to VEC (loop_p, heap) pointer. (compute_data_dependences_for_loop): Adjust caller. (free_dependence_relations): Free DDR_LOOP_NEST. * tree-loop-linear.c (linear_transform_loops): Don't forget to free DEPENDENCE_RELATIONS and DATAREFS. * gcc.dg/pr29330.c: New test. From-SVN: r117509
2006-10-06re PR target/28924 (x86 sync builtins fail for char and short memory operands)Jakub Jelinek4-0/+43
PR target/28924 * builtins.c (expand_builtin_sync_operation, expand_builtin_compare_and_swap, expand_builtin_lock_test_and_set): Use convert_to_mode to handle promoted arguments. * gcc.c-torture/compile/20061005-1.c: New test. From-SVN: r117508
2006-10-06* print-tree.c (print_node_brief, print_node): Print sign of Inf.J"orn Rennecke2-2/+6
From-SVN: r117506
2006-10-06* config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): DefineJ"orn Rennecke2-0/+10
From-SVN: r117505
2006-10-06sync.md ("sync_add<mode>", [...]): Use <modeconstraint> instead of "r" as ↵Uros Bizjak2-5/+11
operand 1 constraint. * config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>", "sync_ior<mode>", "sync_and<mode>", "sync_xor<mode>"): Use <modeconstraint> instead of "r" as operand 1 constraint. From-SVN: r117499
2006-10-06gimplify.c (gimplify_type_sizes): Don't recurse on the pointed-to type.Olivier Hainque6-1/+96
* gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]: Don't recurse on the pointed-to type. * c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or DECL context, attach an artificial TYPE_DECL to anonymous pointed-to types with components of variable size. * testsuite/gcc.dg/typename-vla-1.c: New case. * testsuite/gnat.dg/forward_vla.adb: New case. From-SVN: r117493
2006-10-06* config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.Danny Smith2-2/+6
From-SVN: r117492
2006-10-06re PR tree-optimization/29290 (SPEC CPU2000 178.galgel ICE using -O3 ↵Jakub Jelinek4-2/+18
-ftree-loop-linear) PR tree-optimization/29290 * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has multiple exits. * gfortran.dg/loop_nest_1.f90: New test. From-SVN: r117484
2006-10-06re PR target/29198 (Incorrect reference to __thread array with -fPIC -O2 on x86)Jakub Jelinek5-1/+61
PR target/29198 * config/i386/i386.c (legitimize_pic_address): Reject TLS symbols. * config/i386/predicates.md (local_symbolic_operand): Likewise. * gcc.dg/tls/opt-12.c: New test. From-SVN: r117483
2006-10-06re PR fortran/28415 (4.2.0 ICE when using automatic array and -fno-automatic)Jakub Jelinek4-1/+38
PR fortran/28415 * trans-decl.c (gfc_finish_var_decl): With -fno-automatic, don't make artificial variables or pointer to variable automatic array TREE_STATIC. * gfortran.dg/save_2.f90: New test. From-SVN: r117482
2006-10-06re PR c/29091 (vector constant not fully outputed)Jakub Jelinek4-1/+60
PR c/29091 * varasm.c (output_constant): If TREE_VECTOR_CST_ELTS chain is shorter than the number of vector elements fill the rest with zeros. * gcc.dg/pr29091.c: New test. From-SVN: r117481
2006-10-06scanner.c (skip_free_comments): Return bool instead of void.Jakub Jelinek2-6/+22
* scanner.c (skip_free_comments): Return bool instead of void. (gfc_next_char_literal): Don't return ' ' if & is missing after !$omp or !$. Use skip_{free,fixed}_comments directly instead of gfc_skip_comments. From-SVN: r117480
2006-10-06* lib/target-supports.expJoseph Myers2-3/+24
(check_effective_target_vect_cmdline_needed): Handle i?86-*-* the same as x86_64-*-*; check for LP64. From-SVN: r117477
2006-10-06Daily bump.GCC Administrator1-1/+1
From-SVN: r117475
2006-10-05Update commentMike Stump1-1/+0
From-SVN: r117470
2006-10-05mips.c (mips_pass_by_reference): Do not return false for EABI if type is NULL.Richard Sandiford2-2/+8
gcc/ * config/mips/mips.c (mips_pass_by_reference): Do not return false for EABI if type is NULL. Use a size check based on GET_MODE_SIZE instead. From-SVN: r117468
2006-10-05* sv.po: Update.Joseph Myers2-771/+785
From-SVN: r117463
2006-10-05bfin.md (subsi3): Lose expander, change previously unnamed pattern into subsi3.Bernd Schmidt4-10/+20
* config/bfin/bfin.md (subsi3): Lose expander, change previously unnamed pattern into subsi3. Use correct constraints/predicates. * config/bfin/bfin.h (CONST_OK_FOR_K): Handle "KN7". * config/bfin/predicates.md (reg_or_neg7bit_operand_p): New. From-SVN: r117455
2006-10-05loop.texi: Add data references analysis description.Ira Rosen2-0/+61
* doc/loop.texi: Add data references analysis description. From-SVN: r117453
2006-10-04gfortran.texi: (Current Status): update and rewrite to reflect actual status ↵Brooks Moses2-73/+49
more accurately. 2006-10-04 Brooks Moses <bmoses@stanford.edu> * gfortran.texi: (Current Status): update and rewrite to reflect actual status more accurately. From-SVN: r117449
2006-10-05Daily bump.GCC Administrator1-1/+1
From-SVN: r117446
2006-10-04gfortran.texi: Consistently refer to the compiler as "GNU Fortran".Brooks Moses4-135/+143
2006-10-04 Brooks Moses <bmoses@stanford.edu> * gfortran.texi: Consistently refer to the compiler as "GNU Fortran". * intrinsic.texi: Ditto. * invoke.texi: Ditto. From-SVN: r117442
2006-10-04gcov.texi: Add formatting to "Invoking gcov" section head.Brooks Moses2-1/+5
2006-10-04 Brooks Moses <bmoses@stanford.edu> * doc/gcov.texi: Add formatting to "Invoking gcov" section head. From-SVN: r117441
2006-10-04Makefile.in (libgcc.mk, [...]): Add emutls.c.Richard Henderson47-85/+671
gcc/ * Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c. * builtin-types.def (BT_WORD): Make unsigned. (BT_FN_VOID_PTR_WORD_WORD_PTR): New. * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New. (BUILT_IN_EMUTLS_REGISTER_COMMON): New. * c-decl.c (grokdeclarator): Don't error if !have_tls. * c-parser.c (c_parser_omp_threadprivate): Likewise. * cgraph.c (decide_is_variable_needed): Look at force_output. Recurse for emulated tls. * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant with decide_is_variable_needed. (cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls. * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for emulated tls. * expr.c (emutls_var_address): New. (expand_expr_real_1): Expand emulated tls. (expand_expr_addr_expr_1): Likewise. * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common. * output.h (emutls_finish): Declare. * toplev.c (compile_file): Call it. * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the address before wrapping in CONST. * varasm.c (emutls_htab, emutls_object_type): New. (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New. (get_emutls_object_name, get_emutls_object_type): New. (get_emutls_init_templ_addr, emutls_decl): New. (emutls_common_1, emutls_finish): New. (assemble_variable): When emulating tls, swap decls; generate constructor for the emutls objects. (do_assemble_alias): When emulating tls, swap decl and target name. (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT for emulated tls. * emutls.c: New file. * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit tls_object for real tls. gcc/cp/ * decl.c (grokvardecl): Don't error if !have_tls. (grokdeclarator): Likewise. * parser.c (cp_parser_omp_threadprivate): Likewise. gcc/fortran/ * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address and __emutls_register_common. * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls. * trans-common.c (build_common_decl): Don't check have_tls. * trans-decl.c (gfc_finish_var_decl): Likewise. * types.def (BT_WORD, BT_FN_PTR_PTR): New. (BT_FN_VOID_PTR_WORD_WORD_PTR): New. gcc/testsuite/ * lib/target-supports.exp (check_effective_target_tls): Redefine to mean non-emulated tls. * gcc.dg/tls/alias-1.c: Remove tls requirement. * gcc.dg/tls/asm-1.c, gcc.dg/tls/debug-1.c, gcc.dg/tls/diag-1.c, gcc.dg/tls/diag-2.c, gcc.dg/tls/diag-3.c, gcc.dg/tls/diag-4.c, gcc.dg/tls/diag-5.c, gcc.dg/tls/init-1.c, gcc.dg/tls/nonpic-1.c, gcc.dg/tls/opt-10.c, gcc.dg/tls/opt-5.c, gcc.dg/tls/opt-6.c, gcc.dg/tls/opt-8.c, gcc.dg/tls/opt-9.c, gcc.dg/tls/pic-1.c, gcc.dg/tls/struct-1.c, gcc.dg/tls/trivial.c: Likewise. From-SVN: r117440
2006-10-04[multiple changes]Paul Thomas4-1/+38
2006-10-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29343 * resolve.c (resolve_allocate_expr): Exclude derived types from search for dependences between allocated variables and the specification expressions for other allocations in the same statement. 2006-10-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29343 * gfortran.dg/alloc_alloc_expr_2.f90: New test. From-SVN: r117435
2006-10-04Fix bug in constraint-check generator, reported by Rask Ingemann Lambertsen:Zack Weinberg2-11/+25
Fix bug in constraint-check generator, reported by Rask Ingemann Lambertsen: * genpreds.c (add_constraint): Don't remove anything from the expression here. (write_tm_constrs_h): Detect whether "op" argument is used, and mark it ARG_UNUSED if it isn't. (write_insn_const_int_ok_for_constraint): Skip the part of the expression that would test whether "op" (which is not available here) is a CONST_INT. From-SVN: r117433
2006-10-04* gfortran.dg/bounds_check_fail_1.f90: New test.Francois-Xavier Coudert2-0/+11
From-SVN: r117431
2006-10-04re PR c++/28448 (doc reference to -fdiagnostics-show-options looks like it ↵Ryan Mansfield2-3/+8
should be -fdiagnostics-show-option) 2006-10-02 Ryan Mansfield <rmansfield@qnx.com> PR c++/28448 * doc/invoke.texi (fdiagnostics-show-option): Fix typos. From-SVN: r117429
2006-10-04re PR c++/29020 (ICE using A<N>::A instead of A<N> in friend declaration)Mark Mitchell5-13/+41
PR c++/29020 * friend.c (do_friend): Improve comments; add assertion. * parser.c (cp_parser_nested_name_specifier_opt): Resolve typenames for qualified names used in declarations, even when caching qualified name lookup. PR c++/29020 * g++.dg/template/friend48.C: New test. From-SVN: r117425
2006-10-04re PR fortran/29098 (allocation of a pointer to a derived type crashes)Paul Thomas4-4/+48
2006-10-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29098 * resolve.c (resolve_structure_cons): Do not return FAILURE if component expression is NULL. 2006-10-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29098 * gfortran.dg/default_initialization_2.f90: New test. From-SVN: r117424
2006-10-04darwin-libgcc.10.5.ver: Update to symbol list for current Leopard versions.Geoffrey Keating3-0/+14
* config/i386/darwin-libgcc.10.5.ver: Update to symbol list for current Leopard versions. * config/rs6000/darwin-libgcc.10.5.ver: Likewise. From-SVN: r117423
2006-10-04Daily bump.GCC Administrator1-1/+1
From-SVN: r117421
2006-10-03re PR fortran/20779 (ALLOCATEing the STAT variable not detected)Paul Thomas4-18/+171
2006-10-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/20779 PR fortran/20891 * resolve.c (find_sym_in_expr): New function that returns true if a symbol is found in an expression. (resolve_allocate_expr): Check whether the STAT variable is itself allocated in the same statement. Use the call above to check whether any of the allocated arrays are used in array specifications in the same statement. 2006-10-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/20779 PR fortran/20891 * gfortran.dg/alloc_alloc_expr_1.f90: New test. From-SVN: r117415
2006-10-03arith.c (gfc_check_real_range): Use correct exponent range for subnormal ↵Steven G. Kargl2-2/+9
numbers. 2006-10-03 Steven G. Kargl <kargl@gcc.gnu.org> * arith.c (gfc_check_real_range): Use correct exponent range for subnormal numbers. From-SVN: r117414