aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
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
2006-10-03re PR fortran/29284 (ICE for optional subroutine argument)Paul Thomas7-29/+176
2006-10-03 Paul Thomas <pault@gcc.gnu.org> 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. From-SVN: r117413
2006-10-03nearest_1.f90: Add -O0 because -ffloat-store is insufficient to inhibit some ↵Steven G. Kargl2-2/+11
test failures at -O3. 2006-10-03 Steven G. Kargl <kargl@gcc.gnu.org> * gfortran.dg/nearest_1.f90: Add -O0 because -ffloat-store is insufficient to inhibit some test failures at -O3. Do testing on integers. From-SVN: r117412
2006-10-03re PR c++/29138 (access declarations don't work for classes)Mark Mitchell1-0/+4
PR c++/29138 * 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. From-SVN: r117411
2006-10-03re PR c++/29138 (access declarations don't work for classes)Mark Mitchell6-31/+89
PR c++/29138 * 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. From-SVN: r117409
2006-10-03* utils.c: Fix a typo.Kazu Hirata2-1/+3
From-SVN: r117407
2006-10-03* decl.c, utils.c: Fix comment typos.Kazu Hirata3-2/+6
From-SVN: r117405
2006-10-03* doc/install.texi: Fix typos.Kazu Hirata2-1/+5
From-SVN: r117404
2006-10-03builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.Eric Botcazou4-5/+27
* builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX. * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX. * config/sparc/sparc.h (FRAME_ADDR_RTX): Define. From-SVN: r117403
2006-10-03Add PR numbers for previously installed fix.Kaveh Ghazi1-0/+3
From-SVN: r117399
2006-10-03re PR middle-end/27478 (entry and addressable and value-expr: and the ↵François-Xavier Coudert4-11/+37
gimplifier) PR middle-end/27478 * trans-decl.c (gfc_get_fake_result_decl): Mark var as TREE_ADDRESSABLE. * gfortran.dg/entry_8.f90: New test. From-SVN: r117396
2006-10-03re PR c++/29291 (ICE on invalid use of new)Volker Reichelt4-1/+19
PR c++/29291 * init.c (build_new): Check for invalid init. * g++.dg/parse/new4.C: New test. From-SVN: r117393
2006-10-03pthread-init-common.h: Define _GNU_SOURCE.Uros Bizjak2-0/+23
* gcc-dg/pthread-init-common.h: Define _GNU_SOURCE. Add tests for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP, PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP and PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP mutex initializers. From-SVN: r117387
2006-10-03re PR fortran/19260 (& not required when splitting a token in continuation)Jerry DeLisle7-0/+677
2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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. From-SVN: r117385
2006-10-03re PR fortran/19262 (more than thirty-nine continuation lines should issue a ↵Jerry DeLisle4-7/+79
std-warn) 2006-10-02 Jerry DeLisle <jvdelisle@gcc.gnu.org> 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 ' '. From-SVN: r117384
2006-10-03unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first arg to be ↵Jack Howarth2-3/+8
struct mach_header_64* instead. * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first arg to be struct mach_header_64* instead. From-SVN: r117383
2006-10-03Daily bump.GCC Administrator1-1/+1
From-SVN: r117381
2006-10-02re PR c++/29226 (ICE in make_decl_rtl, at varasm.c:886)Mark Mitchell4-20/+41
PR c++/29226 * 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. From-SVN: r117375
2006-10-02re PR fortran/29210 ([4.1 only] Name parameter in complex constant not ↵Francois-Xavier Coudert4-0/+26
allowed in F95) PR fortran/29210 * primary.c (match_sym_complex_part): Named constants as real or imaginary part of complex a named constant are only allowed in Fortran 2003. * gfortran.dg/complex_parameter_1.f90: New test. From-SVN: r117368
2006-10-02re PR c/29154 (*(* ppointer++)++ = *pointer++ generates bad code)Jakub Jelinek4-2/+63
PR c/29154 * gimplify.c (gimplify_self_mod_expr): Run inner expression's post side effects after the outer expression's post side effects. * gcc.c-torture/execute/20060929-1.c: New test. From-SVN: r117366
2006-10-02re PR c++/29105 (segfault in add_candidates with a non template base class ↵Mark Mitchell4-10/+25
and a template member function) PR c++/29105 * pt.c (tsubst_baselink): Substituteinto the qualifying scope. * semantics.c (baselink_for_fns): Build a baselink, even when processing a template. PR c++/29105 * g++.dg/template/member6.C: New test. * g++.dg/parse/typename7.C: Adjust error markers. From-SVN: r117361