aboutsummaryrefslogtreecommitdiff
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-06re PR fortran/31201 (Too large unit number generates wrong code)Jerry DeLisle6-10/+50
2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/31201 * runtime/error.c (runtime_error_at): New function. (generate_error): Export this function. * gfortran.map: Add _gfortran_generate_error and _gfortran_runtime_error_at. * libgfortran.h: Add comment to reference error codes in front end. (library_start): Locate prototype with library_end macro and add a new comment. Add prototype for runtime_error_at. Export prototype for generate_error. * io/lock.c (library_start): Fix check for error condition. * io/transfer.c (data_transfer_init): Add library check. From-SVN: r124479
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-06complex: Add missing extern template declarations.Paolo Carlini4-5/+170
2007-05-06 Paolo Carlini <pcarlini@suse.de> * include/std/complex: Add missing extern template declarations. * testsuite/26_numerics/complex/complex_inserters_extractors.cc: Move... * testsuite/26_numerics/complex/inserters_extractors/char/1.cc: ... here. * testsuite/26_numerics/complex/inserters_extractors/wchar_t/1.cc: New. From-SVN: r124477
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-062007-05-06 Paolo Carlini <pcarlini@suse.de>Paolo Carlini1-1/+1
* Fix PR number in last ChangeLog entry. From-SVN: r124473
2007-05-06re PR libstdc++/31836 (FAIL: ↵Paolo Carlini3-0/+44
27_io/basic_istream/extractors_arithmetic/char/12.cc execution test) 2007-05-06 Paolo Carlini <pcarlini@suse.de> PR libstdc++/31836 * testsuite/17_intro/headers/c++200x/all.cc: Protect inclusion of C99 headers. * testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Likewise. From-SVN: r124472
2007-05-06Fix PR30957Revital Eres4-3/+73
From-SVN: r124471
2007-05-06c_locale.cc: Don't use __builtin_huge_val* when __*_HAS_INFINITY__ is false.Paolo Carlini2-12/+57
2007-05-06 Paolo Carlini <pcarlini@suse.de> * config/locale/generic/c_locale.cc: Don't use __builtin_huge_val* when __*_HAS_INFINITY__ is false. From-SVN: r124470
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 Keating9-3/+109
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-05stl_raw_storage_iter.h (class raw_storage_iterator): Adjust template ↵Paolo Carlini2-7/+13
parameter name. 2007-05-04 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_raw_storage_iter.h (class raw_storage_iterator): Adjust template parameter name. From-SVN: r124459
2007-05-05cxxabi.h (__cxa_atexit): Conditionalize exception specification on #ifdef ↵Mark Mitchell2-1/+11
__cplusplus. * libsupc++/cxxabi.h (__cxa_atexit): Conditionalize exception specification on #ifdef __cplusplus. From-SVN: r124456
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-04natVMVirtualMachine.cc (getClassMethod): Change to use JVMTI.Kyle Galloway2-5/+23
2007-05-04 Kyle Galloway <kgallowa@redhat.com> * gnu/classpath/jdwp/natVMVirtualMachine.cc (getClassMethod): Change to use JVMTI. From-SVN: r124447
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-04re PR libgomp/28482 (Cannot use libgomp in shared library)Jakub Jelinek2-3/+3
PR libgomp/28482 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux. From-SVN: r124445
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-04* config/linux/proc.c: New file.Jakub Jelinek2-0/+183
From-SVN: r124443
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 Franke3-3/+12
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-04stl_memory.h: Rename to stl_auto_ptr.h.Paolo Carlini10-86/+109
2007-05-04 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_memory.h: Rename to stl_auto_ptr.h. (__get_temporary_buffer, get_temporary_buffer, return_temporary_buffer): Move... * include/bits/stl_tempbuf.h: ... here. * include/std/memory: Adjust includes. * testsuite/20_util/auto_ptr/assign_neg.cc: Adjust dg-error line numbers. * include/Makefile.am: Adjust. * include/Makefile.in: Regenerate. * testsuite/util/testsuite_iterators.h: Do not include the entire <iterator>. * include/bits/stl_iterator_base_types.h: Adjust includes. * testsuite/25_algorithms/unique_copy/2.cc: Include <functional>. From-SVN: r124438
2007-05-04re PR target/22539 (Internal compiler error with maximum sized array)Daniel Franke12-10/+250
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-04atexit_arm.cc: New file.Mark Mitchell6-22/+68
* libsupc++/atexit_arm.cc: New file. * libsupc++/vec.cc (__aeabi_atexit): Remove. * libsupc++/cxxabi.h (__cxa_atexit): Add exception specification. * libsupc++/Makefile.am: Add atexit_arm.cc. * libsupc++/Makefile.in: Regenerated. From-SVN: r124436
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 libfortran/31210 (I/O of string with (non-constant) zero length)Francois-Xavier Coudert2-0/+16
PR libfortran/31210 * io/transfer.c (transfer_character): Avoid passing a NULL pointer as source to the transfer routines, if the string length is zero. From-SVN: r124428
2007-05-04stl_construct.h (_Destroy(_ForwardIterator, _ForwardIterator __last, ↵Paolo Carlini5-65/+106
_Allocator)): Change the last parameter to _Allocator&. 2007-05-04 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_construct.h (_Destroy(_ForwardIterator, _ForwardIterator __last, _Allocator)): Change the last parameter to _Allocator&. * include/bits/stl_uninitialized.h (__uninitialized_copy_a, __uninitialized_fill_a, __uninitialized_fill_n_a, __uninitialized_fill_copy, __uninitialized_copy_fill, __uninitialized_copy_copy): Likewise. * include/ext/rope: Adjust everywhere. * include/ext/ropeimpl.h: Likewise. From-SVN: r124427
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-04interpret.cc: Don't include ExceptionEvent.h.Keith Seitz5-69/+7
* interpret.cc: Don't include ExceptionEvent.h. * gnu/gcj/jvmti/natExceptionEvent.cc: Remove. * Makefile.am (nat_source_files): Remove natExceptionEvent.cc. * Makefile.in: Regenerated. From-SVN: r124407