summaryrefslogtreecommitdiffstats
path: root/gcc
Commit message (Collapse)AuthorAgeFilesLines
* PR target/28924jakub2006-10-064-0/+43
| | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117508 138bc75d-0d04-0410-961f-82ee72b054a4
* * print-tree.c (print_node_brief, print_node): Print sign of Inf.amylaar2006-10-062-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117506 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Defineamylaar2006-10-062-0/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117505 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>",uros2006-10-062-5/+11
| | | | | | | | | "sync_ior<mode>", "sync_and<mode>", "sync_xor<mode>"): Use <modeconstraint> instead of "r" as operand 1 constraint. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117499 138bc75d-0d04-0410-961f-82ee72b054a4
* * gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:hainque2006-10-066-1/+96
| | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117493 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.dannysmith2006-10-062-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117492 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/29290jakub2006-10-064-2/+18
| | | | | | | | | | * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has multiple exits. * gfortran.dg/loop_nest_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117484 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/29198jakub2006-10-065-1/+61
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117483 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/28415jakub2006-10-064-1/+38
| | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117482 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c/29091jakub2006-10-064-1/+60
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117481 138bc75d-0d04-0410-961f-82ee72b054a4
* * scanner.c (skip_free_comments): Return bool instead of void.jakub2006-10-062-6/+22
| | | | | | | | | (gfc_next_char_literal): Don't return ' ' if & is missing after !$omp or !$. Use skip_{free,fixed}_comments directly instead of gfc_skip_comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117480 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/target-supports.expjsm282006-10-062-3/+24
| | | | | | | | (check_effective_target_vect_cmdline_needed): Handle i?86-*-* the same as x86_64-*-*; check for LP64. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117477 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-10-061-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117475 138bc75d-0d04-0410-961f-82ee72b054a4
* Update commentmrs2006-10-051-1/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117470 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/rsandifo2006-10-052-2/+8
| | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117468 138bc75d-0d04-0410-961f-82ee72b054a4
* * sv.po: Update.jsm282006-10-052-771/+785
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117463 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/bfin/bfin.md (subsi3): Lose expander, change previouslybernds2006-10-054-10/+20
| | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117455 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/loop.texi: Add data references analysis description.irar2006-10-052-0/+61
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117453 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-04 Brooks Moses <bmoses@stanford.edu>brooks2006-10-052-73/+49
| | | | | | | | | * gfortran.texi: (Current Status): update and rewrite to reflect actual status more accurately. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117449 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-10-051-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117446 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-04 Brooks Moses <bmoses@stanford.edu>brooks2006-10-044-135/+143
| | | | | | | | | | | * gfortran.texi: Consistently refer to the compiler as "GNU Fortran". * intrinsic.texi: Ditto. * invoke.texi: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117442 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-04 Brooks Moses <bmoses@stanford.edu>brooks2006-10-042-1/+5
| | | | | | | | * doc/gcov.texi: Add formatting to "Invoking gcov" section head. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117441 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/rth2006-10-0447-85/+671
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117440 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-04 Paul Thomas <pault@gcc.gnu.org>pault2006-10-044-1/+38
| | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117435 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix bug in constraint-check generator, reported by Rask Ingemannzack2006-10-042-11/+25
| | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117433 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.dg/bounds_check_fail_1.f90: New test.fxcoudert2006-10-042-0/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117431 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-02 Ryan Mansfield <rmansfield@qnx.com>rsandifo2006-10-042-3/+8
| | | | | | | | PR c++/28448 * doc/invoke.texi (fdiagnostics-show-option): Fix typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117429 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/29020mmitchel2006-10-045-13/+41
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117425 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-04 Paul Thomas <pault@gcc.gnu.org>pault2006-10-044-4/+48
| | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117424 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/i386/darwin-libgcc.10.5.ver: Update to symbol list forgeoffk2006-10-043-0/+14
| | | | | | | | current Leopard versions. * config/rs6000/darwin-libgcc.10.5.ver: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117423 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-10-041-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117421 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-03 Paul Thomas <pault@gcc.gnu.org>pault2006-10-034-18/+171
| | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117415 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-03 Steven G. Kargl <kargl@gcc.gnu.org>kargl2006-10-032-2/+9
| | | | | | | | | * arith.c (gfc_check_real_range): Use correct exponent range for subnormal numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117414 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-03 Paul Thomas <pault@gcc.gnu.org>pault2006-10-037-29/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR fortran/29284 PR fortran/29321 PR fortran/29322 * trans-expr.c (gfc_conv_function_call): Check the expression and the formal symbol are present when testing the actual argument. PR fortran/25091 PR fortran/25092 * resolve.c (resolve_entries): It is an error if the entries of an array-valued function do not have the same shape. 2006-10-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/29284 * gfortran.dg/optional_assumed_charlen_1.f90: New test. PR fortran/29321 PR fortran/29322 * gfortran.dg/missing_optional_dummy_2.f90: New test. PR fortran/25091 PR fortran/25092 * gfortran.dg/entry_array_specs_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117413 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-03 Steven G. Kargl <kargl@gcc.gnu.org>kargl2006-10-032-2/+11
| | | | | | | | | | * gfortran.dg/nearest_1.f90: Add -O0 because -ffloat-store is insufficient to inhibit some test failures at -O3. Do testing on integers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117412 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/29138mmitchel2006-10-031-0/+4
| | | | | | | | | | | | | | | | * decl2.c (grokfield): Don't handle access declarations here. * parser.c (cp_parser_using_declaration): Handle access declarations too. (cp_parser_block_declaration): Adjust calls to cp_parser_using_declaration. (cp_parser_member_declaration): Likewise. Use cp_parser_using_declaration to look for access_declarations. PR c++/29138 * g++.dg/inherit/access8.C: New test. * g++.dg/template/dtor4.C: Tweak error messages. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117411 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/29138mmitchel2006-10-036-31/+89
| | | | | | | | | | | | | | | | * decl2.c (grokfield): Don't handle access declarations here. * parser.c (cp_parser_using_declaration): Handle access declarations too. (cp_parser_block_declaration): Adjust calls to cp_parser_using_declaration. (cp_parser_member_declaration): Likewise. Use cp_parser_using_declaration to look for access_declarations. PR c++/29138 * g++.dg/inherit/access8.C: New test. * g++.dg/template/dtor4.C: Tweak error messages. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117409 138bc75d-0d04-0410-961f-82ee72b054a4
* * utils.c: Fix a typo.kazu2006-10-032-1/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117407 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c, utils.c: Fix comment typos.kazu2006-10-033-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117405 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/install.texi: Fix typos.kazu2006-10-032-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117404 138bc75d-0d04-0410-961f-82ee72b054a4
* * builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.ebotcazou2006-10-034-5/+27
| | | | | | | | | * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX. * config/sparc/sparc.h (FRAME_ADDR_RTX): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117403 138bc75d-0d04-0410-961f-82ee72b054a4
* Add PR numbers for previously installed fix.ghazi2006-10-031-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117399 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/27478fxcoudert2006-10-034-11/+37
| | | | | | | | | | * trans-decl.c (gfc_get_fake_result_decl): Mark var as TREE_ADDRESSABLE. * gfortran.dg/entry_8.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117396 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/29291reichelt2006-10-034-1/+19
| | | | | | | | | * init.c (build_new): Check for invalid init. * g++.dg/parse/new4.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117393 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc-dg/pthread-init-common.h: Define _GNU_SOURCE. Add tests foruros2006-10-032-0/+23
| | | | | | | | | | | PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP, PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP and PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP mutex initializers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117387 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-10-037-0/+677
| | | | | | | | | | | | | | | PR fortran/19260 * gfortran.dg/continuation.f90: Rename to continuation_1.f90. * gfortran.dg/continuation_2.f90: New test. PR fortran/19262 * gfortran.dg/continuation_3.f90: New test. * gfortran.dg/continuation_4.f90: New test. * gfortran.dg/continuation_5.f: New test. * gfortran.dg/continuation_6.f: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117385 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2006-10-034-7/+79
| | | | | | | | | | | | | | | | | | | | PR fortran/19262 * gfortran.h (gfc_option_t): Add max_continue_fixed and max_continue_free. * options.c (gfc_init_options): Initialize fixed form and free form consecutive continuation line limits. * scanner.c (gfc_scanner_init_1): Initialize continue_line and continue_count. (gfc_next_char_literal): Count the number of continuation lines in the current statement and warn if limit is exceeded. 2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/19260 * scanner.c (gfc_next_char_literal): Add check for missing '&' and warn if in_string, otherwise return ' '. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117384 138bc75d-0d04-0410-961f-82ee72b054a4
* * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix firstmrs2006-10-032-3/+8
| | | | | | | arg to be struct mach_header_64* instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117383 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-10-031-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117381 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/29226mmitchel2006-10-024-20/+41
| | | | | | | | | | * typeck.c (cxx_sizeof_or_alignof_type): Tidy. In templates, do not try to actually evaluate sizeof for a VLA type. PR c++/29226 * g++.dg/template/vla1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117375 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud