aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
AgeCommit message (Collapse)Author
2004-02-07 * Makefile.am: Add m4/dotprodc.m4. And fix spelling.pbrook
* Makefile.in: Regenerate. * m4/dotprodc.m4: New file. Implement complex dot_product. * m4/dotprod.m4: Delete the complex implementation. * generated/dotprod_*: Update. testsuite/ * gfortran.fortran-torture/execute/intrinsic_dotprod.f90: Add complex test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77463 138bc75d-0d04-0410-961f-82ee72b054a4
2004-02-07 * transfer.c (write_constant_string): Do not delete H's in hollerithpbrook
formats. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@77452 138bc75d-0d04-0410-961f-82ee72b054a4
2004-01-062004-01-05 Andrew Pinski <apinski@apple.com>pinskia
* configure.in: Check for csin in -lmx also. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@75456 138bc75d-0d04-0410-961f-82ee72b054a4
2004-01-01 * io/list_read.c (find_nml_node): Make static.pbrook
(match_namelist_name): Ditto. * io/read.c (convert_precision_real): Make static, fix spelling. * io/transfer.c (extract_real): Remove unused prototype. (st_set_nml_var): Make static. * io/write.c (extract_real): Make static. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@75302 138bc75d-0d04-0410-961f-82ee72b054a4
2003-12-122003-12-12 Huang Chun <chunhuang73@hotmal.com>steven
* intrinsics/string_intrinsics.c (string_index): Fix logics thinko. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@74565 138bc75d-0d04-0410-961f-82ee72b054a4
2003-12-052003-12-05 Melvin Hadasht <melvin.hadasht@free.fr>steven
* io/transfer.c (data_transfer_init): Give a runtime error for list formatted reads and writes from/to files opened for unformatted IO git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@74330 138bc75d-0d04-0410-961f-82ee72b054a4
2003-11-30 * trans-array.c (gfc_trans_g77_array): Make non-static.pbrook
(gfc_trans_assumed_size): Remove. (gfc_trans_dummy_array_bias): Explicitly free temporary. * trans-array.h (gfc_trans_g77_array): Add prototype. (gfc_trans_assumed_size): Remove. * trans-decls.c (gfor_fndecl_push_context): Remove. (gfor_fndecl_pop_context): Remove. (gfc_build_function)decls): Don't create them. (gfc_trans_deferred_vars): Update to match. Remove dead code. * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Free temp. libgfortran * runtime/memory.c (push_context): Remove. (pop_context): Remove. * libgfortran.h: Remove prototypes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@74068 138bc75d-0d04-0410-961f-82ee72b054a4
2003-11-29 * runtime/memory.c (deallocate): Nullify pointer after freeing.pbrook
testsuite * gfortran.fortran-torture/execute/allocate.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@74033 138bc75d-0d04-0410-961f-82ee72b054a4
2003-11-27 * trans-array.c (gfc_tran_allocate_array_storage): Use new memorypbrook
allocation interface. (gfc_conv_ array_parameter): Ditto. (gfc_trans_auto_array_allocation): Ditto. Also free the memory. * trans-array.c: Update prototype. * trans-decl.c (gfc_build_builtin_function_decls): Update prototypes. (gfc_trans_auto_character_variable): Use new memory alloc interface. * trans-expr.c (gfc_conv_string_tmp): Ditto. (gfc_conv_function_call): Use gfc_conv_string_tmp. * trans-stmt.c (gfc_do_allocate): Use new memory alloc interface. * trans-intrinsic.c (gfc_conv_intrinsic_trim): Ditto. * trans.h (gfc_ss_info): Remove unused pdata field. * trans.c (gfc_create_var_np): Change T to V. libgfortran * intrinsics/string_intrinsics.c: Use new memory allocation interface. * libgfortran.h: Ditto. * m4/in_pack.m4: Ditto. * runtime/in_pack_generic.c: Ditto. * runtime/memory.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@74003 138bc75d-0d04-0410-961f-82ee72b054a4
2003-11-26 * m4/exponent.m4, m4/fraction.m4: New.rth
* m4/nearest.m4, m4/set_exponent.m4: New. * generated/*: Update. * Makefile.am: Add them. (AM_CFLAGS): New. Use -std=gnu99. * Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@73957 138bc75d-0d04-0410-961f-82ee72b054a4
2003-11-08 PR fortran/12704pbrook
* trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Handle zero-size arrays. libgfortran * m4/maxloc0.m4: Use default value of 1. Handle zero sized arrays. * m4/maxloc1.m4: Ditto. * m4/minloc0.m4: Ditto. * m4/minloc1.m4: Ditto. * m4/ifunction.m4: Set return value for zero sized arrays. * m4/iforeach.m4: Ditto. * m4/all.m4, m4/any.m4, m4/count.m4, m4/maxloc1.m4, m4/minloc1.m4, m4/mxaval.m4, m4/minval.m4, m4/product.m4, m4/sum.m4: Ditto. * generated/*: Update. testsuite * gfortran.fortran-toriture/execute/intrinsic_mmloc_3.f90: Extra test. * gfortran.fortran-toriture/execute/intrinsic_mmloc_4.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@73366 138bc75d-0d04-0410-961f-82ee72b054a4
2003-10-302003-10-30 Toon Moene <toon@moene.indiv.nluug.nl>toon
PR fortran/12702 * io/list_read.c (eat_spaces): Treat tab as space. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@73104 138bc75d-0d04-0410-961f-82ee72b054a4
2003-10-30 * intrinsics/random.c: Add reference to paper containing algorithm.pbrook
(random_seed): Extra error checking and proper handling of arrays. (arandom_r4, arandom_r8): Implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@73100 138bc75d-0d04-0410-961f-82ee72b054a4
2003-10-292003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>toon
PR fortran/12703 * runtime/memory.c (allocate_size): Allow allocation of zero-sized objects. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@73067 138bc75d-0d04-0410-961f-82ee72b054a4
2003-10-292003-10-29 Toon Moene <toon@moene.indiv.nluug.nl>toon
PR fortran/12701 * open.c (new_unit): Open without a file name opens a file with name fort.<unit>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@73029 138bc75d-0d04-0410-961f-82ee72b054a4
2003-10-12 * iresolve.c (gfc_resolve_cshift): Change to match implementation.pbrook
* trans-intrinsic.c (gfc_conv_intrinsic_function): Remove CSHIFT. (gfc_is_intrinsic_libcall): Add CSHIFT. libgfortran * intrinsics/cshift0.c: New file. * m4/cshift1.m4: New file * generated/cshift*.c: New files. * Makefile.am: Add them. * Makefile.in: Regenerate. testsuite * gfortran.fortran-torture/execute/intrinsic_cshift.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@72408 138bc75d-0d04-0410-961f-82ee72b054a4
2003-10-12 * io/list_read.c (read_character): Remove unwanted call to free_saved.pbrook
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@72399 138bc75d-0d04-0410-961f-82ee72b054a4
2003-10-12Fix botched checkin of wrong files.pbrook
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@72398 138bc75d-0d04-0410-961f-82ee72b054a4
2003-10-11 * check.c (gfc_check_repeat): Check arguments are scalar.pbrook
(gfc_check_trim): New function. * intrinsic.h (gfc_check_trim): Add prototype. * intrinsic.c (add_functions): Use it. * trans.h (gfor_fndecl_string_trim, gfor_fndecl_string_repeat): Decalare. * trans-decl.c: Ditto. (gfc_build_intrinsic_fucntion_decls): Set them. * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle result vars. (gfc_conv_intrinsic_trim): New function. (gfc_conv_intrinsic_repeat): New function. (gfc_conv_intrinsic_function): Use them. libgfortran * intrinsics/string_intrinsics.c (string_trim): New function. (string_repeat): New function. testsuite * gfortran.fortran-torture/execute/intrinsic_len.f90: New test. * gfortran.fortran-torture/execute/intrinsic_trim.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@72384 138bc75d-0d04-0410-961f-82ee72b054a4
2003-10-11 * iresolve.c (gfc_resolve_dint, gfc_resolve_dnint): New functions.pbrook
(gfc_resolve_dprod): New function. (gfc_resolve_aint, gfc_resolve_anint): Only base name on arg type. * intrinsic.h (gfc_resolve_dint, gfc_resolve_dnint): Declare. (gfc_resolve_dprod): Declare. * intrinsic.c (add_functions): Use them. * trans-decl.c (gfc_get_extern_function_decl): Only pass one arg. testsuite * gfortran.fortran-torture/execute/specifics.f90: New test. libgfortran * intrinsics/dprod_r8.f90: New file. * Makefile.am (gfor_specific_src): Add it. (gfor_built_specific_src): Rename from gfor_build_specific_c. Add new intrinsics. (gfor_specific2_src): Rename from gfor_built_specific2_c. Add new intrinsics. * Makefile.in: Regenerate. * generated/_aint_*.f90: New files. * generated/_anint*.f90: New files. * generated/_atan2*.f90: New files. * generated/_mod*.f90: New files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@72370 138bc75d-0d04-0410-961f-82ee72b054a4
2003-09-20 * trans.h: Add declarations for gfor_fndecl_si_kind andpbrook
gfor_fndecl_sr_kind. * trans-decl.c (g95_build_intrinsic_function_decls): Build them. * trans-intrinsic.c (g95_conv_intrinsic_si_kind): New function. (g95_conv_intrinsic_sr_kind): New function. (g95_conv_intrinsic_function): Add SELECTED_INT_KIND and SELECTED_REAL_KIND. * intrinsics/selected_kind.f90: New file. * Makefile.am: Add it. * Makefile.in: regenerate. * gfortran.fortran-torture/execute/intrisic_si_kind.f90: New test. * gfortran.fortran-torture/execute/intrisic_sr_kind.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@71604 138bc75d-0d04-0410-961f-82ee72b054a4
2003-09-20File missing from last commit.pbrook
* intrinsics/random.c: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@71599 138bc75d-0d04-0410-961f-82ee72b054a4
2003-09-19 * intrinsics/random.c: New file.pbrook
* Makefile.am (gfor_hemper_src): Add it. (gfor_specific_c): Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@71586 138bc75d-0d04-0410-961f-82ee72b054a4
2003-09-19 * All: rename g95->gfc.pbrook
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@71583 138bc75d-0d04-0410-961f-82ee72b054a4
2003-09-18 * io/write.c (output_float): Fix bug of FMT_E, Add comments.pbrook
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@71538 138bc75d-0d04-0410-961f-82ee72b054a4
2003-09-09 * io/write.c (write_float): Dectection of positive infinite number,pbrook
Not a Number(NaN) and negative infinite number. (ioutput_float): Bug fix for FMT_E and FMT_D processing to output a very_very small number ( < 0.1e-100 ). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@71239 138bc75d-0d04-0410-961f-82ee72b054a4
2003-09-07libgfortran:pbrook
2003-09-07 XiaoQiang Zhang (zhangapache@yahoo.com> * libgfortran.h (xtoa, itoa): Parameter modified. * io/io.h (namelist_info): Declaration to support namelist I/O (st_parameter): Add namelist related component (ionml, empty_internal_buffer, st_set_nml_var_int, st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex, st_set_nml_var_log): Declaration (set_integer, set_integer): Parameter changed * io/format.c (free_nodes): Fix annoying bug of lefting "deallocated" fnodes (parse_format_list): Fix bug about FMT_SLASH * io/list_read.c (push_char): Totally clear old saved_string, zeroize newly allocated saved_string (next_char): Add detection of End_Of_Line support (convert_integer): Now can process 64 bits interger (read_real): Bug fixed (init_at_eol, find_nml_node, match_namelist_name): Add new functions (match_namelist_name): New implemention * io/lock.c (ionml): New global variable (library_end): Free memory in ionml * io/open.c (st_open): Variable initializtion * io/read.c (max_value): 64 bits interger support (convert_precsion_real): New procedure to replace "strtod" with more features (read_f, read_radix): Input bug fix * io/transfer.c: (sf_seen_eor): New static variable (read_sf): Zeroize base buffer; fix bugs: single read statement can not get input in mutli line when read from stdin (formatted_transfer): Fix bug of FMT_O, FMT_B, FMT_Z for INTEGER type request (data_transfer_init): Clear internal buffer for Internel File I/O. Internal File now worked. Detect some error condition for namelist. Some minor bug fix (next_record_w): Internal file and Namelist I/O support. (st_set_nml_var, st_set_nml_var_float, st_set_nml_var_char, st_set_nml_var_complex, st_set_nml_var_log): Implemention. * io/unit.c (implicit_unit): Deletion (get_unit): Now cannot open a unit implicitly. * io/unix.c (mmap_alloc): Fix fatal error in calculating the length of mapped buffer. (mem_alloc_r_at): Internal file I/O support added (empty_internal_buffer): New function * io/write.c (extract_int): Support 64 bits interger processing (output_float): Varibale initialization (write_float): Infinite real number detection. (write_int): 64 bits integer I/O support (write_decimal): New function to output decimal number (otoa, btoa): Better implemention and 64 bits interger support (namelist_write): New function * runtime/error.c (itoa, xtoa): Better implemention and 64 bits interger support gfortran: 2003-09-07 XiaoQiang Zhang (zhangapache@yahoo.com> * trans-const.c (gfc_conv_mpz_to_tree): Fix bug, parameter for build_int_2 changed from (high, low) to (low, high) * trans-io.c (ioparm_namelist_name, ioparm_namelist_name_len, ioparm_namelist_read_mode, iocall_set_nml_val_int, iocall_set_nml_val_float, iocall_set_nml_val_char, iocall_set_nml_val_complex, iocall_set_nml_val_log): New declaration (gfc_build_io_library_fndecls): Add variable initialization (gfc_new_nml_name_expr, get_new_var_expr): New function (build_dt): Add namelist support * io.c (value): New variable (check_format): Support FMT_H now git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@71174 138bc75d-0d04-0410-961f-82ee72b054a4
2003-08-152003-08-15 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>pbrook
* libgfortran.h (os_error, runtime_error,internal_error, sys_exit, get_mem ): Add attribute. * intrinsics/spread_generic.c (__spread): Fix spelling. * io/inquire.c (inquire_via_filename): Add const. * io/io.h (sys_exit): Add attribute. * io/io.h (move_pos_offset): Add move_pos_offset. * io/io.h (compare_file_filename, inquire_sequential, inquire_direct, inquire_formatted, inquire_unformatted, inquire_read, inquire_write, inquire_readwrite, convert_real, write_a, write_b, write_d, write_e, write_en, write_es, write_f, write_i, write_l, write_o, write_x, write_z): Add const. * io/read.c (convert_real): Add const. * io/transfer.c (type_name): Add const. * io/unix.c (unpack_filename, compare_file_filename,inquire_sequential, inquire_direct, inquire_formatted, inquire_unformatted, inquire_access, inquire_read, inquire_write, inquire_readwrite): Add const. * io/write.c (output_float): Remove unused variable. * io/write.c (write_a, extract_int, extract_real, output_float, write_float, write_int, write_i, write_b, write_o, write_z, write_d, write_e, write_f, write_en, write_es, write_logical, write_integer, write_character, write_real, write_complex): Add const. * runtime/error.c (rtoa): Remove unused variable. * runtime/select.c (select_string): Add const. * runtime/stop.c (stop_string): Add const. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@70493 138bc75d-0d04-0410-961f-82ee72b054a4
2003-08-11Fix commentsteven
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@70321 138bc75d-0d04-0410-961f-82ee72b054a4
2003-08-10 * gfortran.h: Introduce options to control the mangling.pbrook
* lang.opt: Likewise. * options.c (gfc_init_options): Handle the options. * trans-common.c (gfc_sym_mangled_common_id): New function. (gfc_build_common_decl): Call it. * trans-decl.c (gfc_sym_mangled_function_id): New function. (gfc_get_extern_function_decl, gfc_build_function_decl): Call it. * intrinsic.c (add_sym): Prefix names with correct string. (add_sym_0s): New function. (add_subroutines): Register abort. libgfor * Makefile.am (gfor_helper_src): Add intrinsics/abort.c. (FFLAGS): Add -fno-underscoring. * Makefile.in: Regenerate. * intrinsics/abort.c: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@70292 138bc75d-0d04-0410-961f-82ee72b054a4
2003-08-10 * fmain.c (main): Do not call init and cleanup; call set_args instead.pbrook
* libgfortran.h (init, cleanup): Remove declarations. (set_args): Add declaration. * runtime/main.c (init, cleanup): Make them static, and give them the constructor and destructor attributes. (set_args): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@70291 138bc75d-0d04-0410-961f-82ee72b054a4
2003-08-10 * intrinsics/strinf_intrinsics.c (compare_string): Return value basedpbrook
on which string is longest. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@70289 138bc75d-0d04-0410-961f-82ee72b054a4
2003-08-10 * Makefile.am (EXTRA_DIST): Remove old files.pbrook
* Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@70288 138bc75d-0d04-0410-961f-82ee72b054a4
2003-07-26 * Makefile.def: Add libgfortran and GFORTRAN_FOR_TARGET.pbrook
* Makefile.tmp: Ditto. * configure.in: Ditto. * depcomp: New file. * gcc/Makefile.in: Rename check-g95 check-gfortran. * gcc/gcc.c (default_compilers): Add entries for .f90 and .f95. * gcc/doc/frontends.texi: Document new F95 front end. * gcc/doc/install.texi: Ditto. * gcc/doc/invoke.texi: Ditto. * gcc/doc/sourcebuild.texi: Ditto. * maintainer-scripts/gcc_release: Add gcc-fortran. * maintainer-scripts/snapshot-README: Ditto. * maintainer-scripts/snapshot-index.html: Ditto. * libgfortran: New target library. * gcc/fortran: New front end. * gcc/testsuite/gfortran.fortran-torture: New testsuite. * gcc/testsuite/lib/fortran-torture.exp: New file. * gcc/testsuite/lib/gfortran.exp: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@69825 138bc75d-0d04-0410-961f-82ee72b054a4