aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2007-05-06Daily bump.GCC Administrator1-1/+1
From-SVN: r124485
2007-05-06re PR fortran/31764 (NEW_LINE with array argument)Francois-Xavier Coudert4-7/+26
PR fortran/31764 * simplify.c (gfc_simplify_new_line): NEW_LINE can be simplified even for non constant arguments. * gfortran.dg/new_line.f90: Add new checks. From-SVN: r124482
2007-05-06re PR fortran/31201 (Too large unit number generates wrong code)Jerry DeLisle5-1/+48
2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/31201 * gfortran.dg/large_unit_1.f90: New. * gfortran.dg/large_unit_2.f90: New. * gfortran.dg/iostat_4.f90: New * gfortran.dg/bounds_check_fail_1.f90: Updated. From-SVN: r124481
2007-05-06re PR fortran/31201 (Too large unit number generates wrong code)Jerry DeLisle6-81/+270
2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org> Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> PR fortran/31201 * gfortran.h: Add runtime error codes from libgfortran.h. Define MAX_UNIT_NUMBER. * trans.c (gfc_trans_runtime_check): Update the format of runtime error messages to match library runtime errors. Use call to new library function runtime_error_at(). * trans.h: Add prototype for new function gfc_trans_io_runtime_check. Add declaration for library functions runtime_error_at and generate_error. * trans_io.c (gfc_trans_io_runtime_check): New function. (set_parameter_value): Add error checking for UNIT numbers. (set_parameter_ref): Initialize the users variable to zero. (gfc_trans_open): Move setting of unit number to after setting of common flags so that runtime error trapping can be detected. (gfc_trans_close): Likewise. (build_filepos): Likewise. (gfc_trans_inquire): Likewise. (build_dt): Likewise. * trans-decl.c: Add declarations for runtime_error_at and generate_error. (gfc_build_builtin_function_decls): Build function declarations for runtime_error_at and generate_error. Co-Authored-By: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> From-SVN: r124480
2007-05-06timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead of ↵Eric Botcazou2-5/+9
ASSERT_CHECKING. * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead of ASSERT_CHECKING. Tweak message. From-SVN: r124478
2007-05-06re PR fortran/31540 ([Regression 4.2 only] character((constant expression)) ↵Paul Thomas1-0/+13
for external function) 2007-05-06 Paul Thomas <pault@gcc.gnu.org> PR fortran/31540 * resolve.c (resolve_fl_procedure): Resolve constant character lengths. 2007-05-06 Paul Thomas <pault@gcc.gnu.org> PR fortran/31540 * gfortran.dg/char_result_4.f90: New test. From-SVN: r124476
2007-05-06re PR fortran/31540 ([Regression 4.2 only] character((constant expression)) ↵Paul Thomas3-0/+16
for external function) 2007-05-06 Paul Thomas <pault@gcc.gnu.org> PR fortran/31540 * resolve.c (resolve_fl_procedure): Resolve constant character lengths. 2007-05-06 Paul Thomas <pault@gcc.gnu.org> PR fortran/31540 * gfortran.dg/char_result_4.f90: New test. From-SVN: r124475
2007-05-06Fix PR30957Revital Eres4-3/+73
From-SVN: r124471
2007-05-06re PR fortran/31251 (Non-integer character length leads to segfault)Jerry DeLisle4-1/+28
2007-05-05 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/31251 * decl.c (match_char_spec): Add check for invalid character lengths. 2007-05-05 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/31251 * gfortran.dg/char_type_len_2.f90: New test. From-SVN: r124469
2007-05-06pa.md: Split tgd_load, tld_load and tie_load into pic and non-pic versions.Aurelien Jarno3-18/+73
* config/pa/pa.md: Split tgd_load, tld_load and tie_load into pic and non-pic versions. Mark r19 as used for tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used for tgd_load, tld_load and tie_load . * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic version of tgd_load, tld_load and tie_load depending on the value of flag_pic. From-SVN: r124468
2007-05-06Index: libiberty/ChangeLogGeoffrey Keating6-2/+66
2007-05-04 Geoffrey Keating <geoffk@apple.com> * cp-demangle.c (d_name): Detect local-source-name. (d_prefix): Likewise. (d_unqualified_name): Implement local-source-name. Index: gcc/cp/ChangeLog 2007-05-04 Geoffrey Keating <geoffk@apple.com> PR 31775 * mangle.c (write_mangled_name): Mangle static variable names. (write_unqualified_name): Use local-source-name for namespace-scope static variables. Index: gcc/testsuite/ChangeLog 2007-05-04 Geoffrey Keating <geoffk@apple.com> PR 31775 * g++.dg/other/nested-extern.cc: New. * g++.dg/other/nested-extern-1.C: New. * g++.dg/other/nested-extern-2.C: New. From-SVN: r124467
2007-05-05Daily bump.GCC Administrator1-1/+1
From-SVN: r124465
2007-05-04Daily bump.GCC Administrator1-1/+1
From-SVN: r124454
2007-05-04intrinsic.texi (CMPLX): Document result kind.Brooks Moses2-1/+64
* intrinsic.texi (CMPLX): Document result kind. (COMPLEX): Add documentation. From-SVN: r124448
2007-05-04re PR libfortran/31760 (missing elemental applicability)Daniel Franke6-32/+55
gcc/fortran: 2007-05-04 Daniel Franke <franke.daniel@gmail.com> PR fortran/31760 * intrinsic.c (add_functions): Replaced calls to gfc_check_g77_math1 by gfc_check_fn_r to avoid checks for scalarity. * check.c (gfc_check_besn): Removed check for scalarity. (gfc_check_g77_math1): Removed. * intrinsic.h (gfc_check_g77_math1): Removed. gcc/testsuite: 2007-05-04 Daniel Franke <franke.daniel@gmail.com> PR fortran/31760 * gfortran.dg/erf.f90: New test. * gfortran.dg/besxy.f90: New test. [gcc/fortran/ChangeLog was already committed in r124441 by accident] From-SVN: r124446
2007-05-04crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.Ulrich Drepper2-9/+49
* crtstuff.c (HIDDEN_DTOR_LIST_END): New macro. (__do_global_dtors_aux): Use more paranoid loop to run destructors if HIDDEN_DTOR_LIST_END. (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r124444
2007-05-04varasm.c (align_variable): Don't increase alignment for DECL_THREAD_LOCAL_P ↵Jakub Jelinek2-2/+19
variables above BITS_PER_WORD... * varasm.c (align_variable): Don't increase alignment for DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through DATA_ALIGNMENT or CONSTANT_ALIGNMENT. From-SVN: r124442
2007-05-04Fix typo in PR numbers 22539 <> 22359.Daniel Franke2-2/+11
From-SVN: r124441
2007-05-04check.c (gfc_check_fseek_sub): Fixed typo.Daniel Franke2-1/+5
2007-05-04 Daniel Franke <franke.daniel@gmail.com> * check.c (gfc_check_fseek_sub): Fixed typo. From-SVN: r124440
2007-05-04basic-block.h (cdi_direction): Assign values to all enumeration constants.Josh Conner10-89/+206
2007-05-04 Josh Conner <jconner@apple.com> * basic-block.h (cdi_direction): Assign values to all enumeration constants. (dom_computed): Remove. (dom_info_state): New. (set_dom_info_availability): New. * tree-ssa-loop-im.c (determine_invariantness): Initialize walk_data.dom_direction. * cfghooks.c (delete_basic_block): Use dom_info_available_p() instead of dom_computed[]. (split_edge): Likewise. (create_basic_block): Likewise. (merge_blocks): Likewise. * ifcvt.c (find_if_header): Likewise. * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise. * tree-ssa-dce.c (remove_dead_stmt): Likewise. * tree-ssa.c (verify_ssa): Likewise. * tree-cfg.c (tree_verify_flow_info): Likewise. (remove_edge_and_dominated_blocks): Likewise. * dominance.c (dom_computed): Make static. (calc_dfs_tree_nonrec): Change third param to a bool. (calc_dfs_tree): Change second param to a bool. (calc_idioms): Change second param to a bool. Use dom_convert_dir_to_idx. (init_dom_info): Validate dir before using. (dom_convert_dir_to_idx): New. (calculate_dominance_info): Use dom_convert_dir_to_idx. New variable 'reverse' used for calling calc_dfs_tree and calc_idoms. (free_dominance_info): Use dom_convert_dir_to_idx. (get_immediate_dominator): Likewise. (set_immediate_dominator): Likewise. (get_dominated_by): Likewise. (redirect_immediate_dominators): Likewise. (nearest_common_denominator): Likewise. (dominated_by_p): Likewise. (bb_dom_dfs_in): Likewise. (bb_dom_dfs_out): Likewise. (recount_dominator): Likewise. (iterate_fix_dominators): Likewise. (add_to_dominance_info): Likewise. (delete_from_dominance_info): Likewise. (first_dom_son): Likewise. (next_dom_son): Likewise. (dom_info_available_p): Likewise. (dom_info_state): New. (set_dom_info_availability): New. From-SVN: r124439
2007-05-04re PR target/22539 (Internal compiler error with maximum sized array)Daniel Franke8-7/+206
gcc/fortran: 2007-05-04 Daniel Franke <franke.daniel@gmail.com> PR fortran/22539 * intrinsic.c (add_subroutines): Added FSEEK. * intrinsic.h (gfc_resolve_fseek_sub, gfc_check_fseek_sub): New. * iresolve.c (gfc_resolve_fseek_sub): New. * check.c (gfc_check_fseek_sub): New. * intrinsic.texi (FSEEK): Updated. gcc/testsuite: 2007-05-01 Daniel Franke <franke.daniel@gmail.com> PR fortran/22539 * gfortran.dg/fseek.f90: New test. libgfortran: 2007-05-04 Daniel Franke <franke.daniel@gmail.com> PR fortran/22539 * io/intrinsics.c (fseek_sub): New. * io/unix.c (fd_fseek): Change logical and physical offsets only if seek succeeds. * gfortran.map (fseek_sub): New. From-SVN: r124437
2007-05-04* g++.old-deja/g++.pt/static11.C: Remove xtensa-*-elf* xfail.Bob Wilson2-1/+5
From-SVN: r124434
2007-05-04s390.md ("fix_trunc<mode>di2", [...]): Expander removed.Andreas Krebbel2-20/+12
2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com> * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"): Expander removed. ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added. From-SVN: r124433
2007-05-04xtensa.md (adddi3, [...]): Delete.Bob Wilson2-81/+6
* config/xtensa/xtensa.md (adddi3, adddi_carry): Delete. (subdi3, subdi_carry): Delete. From-SVN: r124432
2007-05-04opts.c (decode_options): Do not fiddle with inlining parameters in case of ↵Jan Hubicka3-5/+18
optimizing for size. * opts.c (decode_options): Do not fiddle with inlining parameters in case of optimizing for size. * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing for size do nothing. (cgraph_decide_inlining_of_small_function): When optimizing for size never inline functions increasing caller size. (cgraph_early_inlining): Inline for size when optimizing for size. Co-Authored-By: Richard Guenther <rguenther@suse.de> From-SVN: r124431
2007-05-04re PR libfortran/31210 (I/O of string with (non-constant) zero length)Francois-Xavier Coudert2-0/+23
PR libfortran/31210 * gfortran.dg/zero_length_1.f90: New test. From-SVN: r124429
2007-05-04re PR fortran/31803 (ICE for character pointer => target(range))Tobias Burnus5-2/+32
2007-05-04 Tobias Burnus <burnus@net-b.de> PR fortran/31803 * expr.c (gfc_check_pointer_assign): Check for NULL pointer. 2007-05-04 Tobias Burnus <burnus@net-b.de> PR fortran/31803 * gfortran.dg/char_pointer_assign_3.f90: New test. * gfortran.dg/char_result_2.f90: Re-enable test. From-SVN: r124419
2007-05-04re PR fortran/31251 (Non-integer character length leads to segfault)Jerry DeLisle2-2/+8
PR fortran/31251 * simplify.c (gfc_simplify_len): Only simplify integer lengths. From-SVN: r124415
2007-05-04bfin.md (<optab>di3): Now a define_expand which expands logical operations ↵Bernd Schmidt2-131/+105
piecewise. * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands logical operations piecewise. (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2, zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi, subdi_sesidi_di): Delete. (add_with_carry): Produce carry in CC instead of a DREG to shorten the generated sequence. Allow three-reg add in constraints. Rewrite the rtl expression for carry to avoid zero_extend of a constant. (sub_with_carry): New pattern. (adddi3, subdi3): Change into define_expand. For subtract, generate a different sequence not involving jumps. (notbi): Now a named pattern. From-SVN: r124414
2007-05-04invoke.texi (i386 and x86-64 Options): Add the note about a significant loss ↵Brad Lucier2-6/+21
of accuracy of some mathematical routines... * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]: Add the note about a significant loss of accuracy of some mathematical routines when these options are used. From-SVN: r124413
2007-05-04re PR fortran/31781 (fortran regressions on trunk if you --disable-checking)Francois-Xavier Coudert2-1/+10
PR fortran/31781 * simplify.c (gfc_simplify_repeat): Don't put function call with side effect in a gcc_assert(). From-SVN: r124412
2007-05-04re PR fortran/25071 (dummy argument larger than actual argument)Tobias Burnus5-4/+93
2007-05-04 Tobias Burnus <burnus@net-b.de> PR fortran/25071 * interface.c (compare_actual_formal): Check character length. 2007-05-04 Tobias Burnus <burnus@net-b.de> PR fortran/25071 * gfortran.dg/char_length_3.f90: New test. * gfortran.dg/char_result_2.f90: Fix test. From-SVN: r124411
2007-05-04haifa-sched.c (rtx_vec_t): New typedef.Maxim Kuvyrkov3-49/+102
* haifa-sched.c (rtx_vec_t): New typedef. (contributes_to_priority_p): Extract piece of priority () into new static function. (priority): Use the function. Add assertion. (rank_for_schedule, set_priorities): Add assertion to check that insn's priority is initialized. (clear_priorities, calc_priorities): Change signature. Make it update all relevant insns. Update all callers ('add_to_speculative_block ()' and 'create_block_check_twin ()'). * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'. Add new field 'priority_status'. (INSN_PRIORITY_STATUS): New macro. (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS. From-SVN: r124410
2007-05-04sched-ebb.c (debug_ebb_dependencies): New static function.Maxim Kuvyrkov4-52/+90
* sched-ebb.c (debug_ebb_dependencies): New static function. (init_ready_list): Use it. * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()' with changed signature and 'debug_rgn_dependencies ()'. (debug_rgn_dependencies): New static function. (init_ready_list): Use it. * sched-int.h (debug_dependencies): Declare. From-SVN: r124409
2007-05-04libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.Andreas Krebbel2-0/+5
2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com> * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section. From-SVN: r124408
2007-05-04c.opt (Wmain,ffreestanding): Enable for C++,ObjC++.Dirk Mueller4-3/+13
2007-05-04 Dirk Mueller <dmueller@suse.de> * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++. * cp-tree.h (DECL_MAIN_P): only if -ffreestanding is not in effect. From-SVN: r124404
2007-05-04fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y)...Jan Hubicka4-17/+40
* fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y), for pointer type in more cases than before. * gimplify.c (gimplify_expr): Fold (void *)&a + 4. * tree-object-size.c (plus_expr_object_size): When operand size is unknown, return unknown. From-SVN: r124403
2007-05-04ChangeLog: split old changelogs by yearIan Lance Taylor3-7017/+7017
2007-05-04 Dirk Mueller <dmueller@suse.de> * ChangeLog: split old changelogs by year From-SVN: r124401
2007-05-04invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.Dirk Mueller4-38/+10
2007-05-03 Dirk Mueller <dmueller@suse.de> * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove. * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated options. * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove. From-SVN: r124400
2007-05-03Daily bump.GCC Administrator1-1/+1
From-SVN: r124395
2007-05-03* doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.Janis Johnson2-1/+6
From-SVN: r124392
2007-05-03double.h, [...]: Update from glibc CVS.Joseph Myers11-75/+88
* config/soft-fp/double.h, config/soft-fp/extended.h, config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c, config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c, config/soft-fp/op-2.h, config/soft-fp/op-4.h, config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from glibc CVS. From-SVN: r124388
2007-05-03rs6000.c (rs6000_override_options): Don't se MASK_PPC_GFXOPT for 8540 or 8548.Ian Lance Taylor2-4/+7
* config/rs6000/rs6000.c (rs6000_override_options): Don't se MASK_PPC_GFXOPT for 8540 or 8548. From-SVN: r124381
2007-05-03tree-vect-transform.c (vect_update_inits_of_drs): Use vect_print_dump_info() ↵Uros Bizjak2-3/+8
to output debug information. * tree-vect-transform.c (vect_update_inits_of_drs): Use vect_print_dump_info() to output debug information. From-SVN: r124380
2007-05-03re PR target/31768 (Invalid code or ICE for %z constraint)Uros Bizjak2-1/+13
PR target/31768 * config/i386/i386.c (print_operand) ['z']: Output 'w' for operands of size 2 when operand is not MEM_P. From-SVN: r124379
2007-05-03re PR tree-optimization/30565 (ICE with -O1 -ftree-pre -ftree-loop-linear)Zdenek Dvorak4-1/+26
PR tree-optimization/30565 * lambda-code.c (perfect_nestify): Fix updating of dominators. * gcc.dg/tree-ssa/loop-27.c: New test. From-SVN: r124378
2007-05-03frmul.c (__v2hi): Use short as base type, not itn.Bernd Schmidt5-4/+11
* gcc.target/bfin/frmul.c (__v2hi): Use short as base type, not itn. * gcc.target/bfin/arith.c (__v2hi): Likewise. * gcc.target/bfin/mul-combine.c (__v2hi): Likewise. * gcc.target/bfin/shift.c (__v2hi): Likewise. From-SVN: r124377
2007-05-03bfin.md (addpdi3, [...]): New patterns.Bernd Schmidt3-2/+26
* config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns. (umulsi3_highpart): Use them. * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move for final accumulator to D regisster tranfser. From-SVN: r124376
2007-05-03re PR middle-end/31699 (-march=opteron -ftree-vectorize generates wrong code)Dorit Nuzman12-45/+196
PR tree-optimization/31699 * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove wrong code. (vect_enhance_data_refs_alignment): Compute peel amount using TYPE_VECTOR_SUBPARTS instead of vf. * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise. From-SVN: r124375
2007-05-02re PR bootstrap/31776 (Bootstrap fails with "error: conflicting types for ↵Brooks Moses6-7/+17
strsignal") PR bootstrap/31776 * system.h: Remove inclusion of double-int.h * tree.h: Include double-int.h * gengtype.c: Likewise * cfgloop.h: Likewise * Makefile.in: Adjust dependencies on double-int.h From-SVN: r124373