aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/intrinsic.texi
AgeCommit message (Collapse)AuthorFilesLines
2007-09-20re PR fortran/33325 (Document intrinsic Fortran modules)Tobias Burnus1-0/+147
2007-09-20 Tobias Burnus <burnus@net-b.de> PR fortran/33325 * intrinsic.text: Add documentation of the intrinsic modules. * gfortran.texi: Link to intrinsic-modules section and to the GOMP manual. From-SVN: r128619
2007-09-10re PR fortran/31547 (Document when CPP is called and document the ↵Tobias Burnus1-2/+2
f95-cpp-input option) 2007-09-10 Tobias Burnus <burnus@net-b.de> PR fortran/31547 * gfortran.texi: Document when CPP is called. * intrinsic.texi (IOR): Fix typos. From-SVN: r128331
2007-08-31* intrinsic.texi (LGAMMA): Remove empty @cindex line.Joseph Myers1-1/+0
From-SVN: r127964
2007-08-29re PR libfortran/32989 (GETARG intrinsic)Francois-Xavier Coudert1-9/+10
PR fortran/32989 * iresolve.c (gfc_resolve_getarg): Handle non-default integer kinds. * check.c (gfc_check_getarg): New function * intrinsic.h: Add prototype for gfc_check_getarg. * intrinsic.c (add_subroutines): Add reference to gfc_check_getarg. * intrinsic.texi (GETARG): Adjust documentation. * gfortran.fortran-torture/execute/getarg_1.f90: Add check for non-default integer kind arguments. From-SVN: r127905
2007-08-29re PR fortran/33105 (F2003: Support is_iostat_end & is_iostat_eor intrinsics)François-Xavier Coudert1-0/+92
PR fortran/33105 * intrinsic.c (add_functions): Add IS_IOSTAT_END and IS_IOSTAT_EOR intrinsics. * gfortran.h (gfc_isym_id): Add GFC_ISYM_IS_IOSTAT_END and GFC_ISYM_IS_IOSTAT_EOR. * trans-intrinsic.c (gfc_conv_has_intvalue): New function. (gfc_conv_intrinsic_function): Call gfc_conv_has_intvalue for GFC_ISYM_IS_IOSTAT_END and GFC_ISYM_IS_IOSTAT_EOR. * intrinsic.texi: Add IS_IOSTAT_END and IS_IOSTAT_EOR. * gfortran.dg/is_iostat_end_eor_1.f90: New test. From-SVN: r127903
2007-08-26re PR fortran/32980 (Vendor extension: Intrinsic functions (D)GAMMA, LGAMMA ↵Tobias Burnus1-0/+115
(ALGAMA/DLGAMA)) 2007-08-26 Tobias Burnus <burnus@net-b.de> PR fortran/32980 * intrinsic.h (gfc_simplify_gamma,gfc_simplify_lgamma, gfc_resolve_gamma,gfc_resolve_lgamma): New function declations. * mathbuiltins.def: Define GAMMA and LGAMMA. * intrinsic.c (add_functions): Add GAMMA, DGAMMA, LGAMMA, ALGAMA and DLGAMA. * simplify.c (gfc_simplify_gamma,gfc_simplify_lgamma): New functions. * iresolve.c (gfc_resolve_gamma,gfc_resolve_lgamma): New functions. * intrinsic.texi: Add documentation for GAMMA and LGAMMA. 2007-08-26 Tobias Burnus <burnus@net-b.de> PR fortran/32980 * gfortran.dg/gamma_1.f90: New. * gfortran.dg/gamma_2.f90: New. * gfortran.dg/gamma_3.f90: New. From-SVN: r127809
2007-08-12re PR fortran/29600 ([F03] MINLOC and MAXLOC take an optional KIND argument)Francois-Xavier Coudert1-34/+76
PR fortran/29600 * intrinsic.c (add_functions): Add KIND arguments to COUNT, IACHAR, ICHAR, INDEX, LBOUND, LEN, LEN_TRIM, SCAN, SIZE, UBOUND and VERIFY. * iresolve.c (gfc_resolve_count): Add kind argument. (gfc_resolve_iachar): New function. (gfc_resolve_ichar): Add kind argument. (gfc_resolve_index_func): Likewise. (gfc_resolve_lbound): Likewise. (gfc_resolve_len): Likewise. (gfc_resolve_len_trim): Likewise. (gfc_resolve_scan): Likewise. (gfc_resolve_size): New function. (gfc_resolve_ubound): Add kind argument. (gfc_resolve_verify): Likewise. * trans-decl.c (gfc_get_extern_function_decl): Allow specific intrinsics to have 4 arguments. * check.c (gfc_check_count): Add kind argument. (gfc_check_ichar_iachar): Likewise. (gfc_check_index): Likewise. (gfc_check_lbound): Likewise. (gfc_check_len_lentrim): New function. (gfc_check_scan): Add kind argument. (gfc_check_size): Likewise. (gfc_check_ubound): Likewise. (gfc_check_verify): Likewise. * intrinsic.texi: Update documentation for COUNT, IACHAR, ICHAR, INDEX, LBOUND, LEN, LEN_TRIM, SCAN, SIZE, UBOUND and VERIFY. * simplify.c (get_kind): Whitespace fix. (int_expr_with_kind): New function. (gfc_simplify_iachar): Add kind argument. (gfc_simplify_iachar): Likewise. (gfc_simplify_ichar): Likewise. (gfc_simplify_index): Likewise. (simplify_bound_dim): Likewise. (simplify_bound): Likewise. (gfc_simplify_lbound): Likewise. (gfc_simplify_len): Likewise. (gfc_simplify_len_trim): Likewise. (gfc_simplify_scan): Likewise. (gfc_simplify_shape): Pass NULL as kind argument to gfc_simplify_size. (gfc_simplify_size): Add kind argument. (gfc_simplify_ubound): Likewise. (gfc_simplify_verify): Likewise. * intrinsic.h: Update prototypes and add new ones. * trans-intrinsic.c (gfc_conv_intrinsic_index): Rename into gfc_conv_intrinsic_index_scan_verify. (gfc_conv_intrinsic_scan, gfc_conv_intrinsic_verify): Remove. (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_index_scan_verify to translate the INDEX, SCAN and VERIFY intrinsics. * gfortran.dg/intrinsics_kind_argument_1.f90: New test. * gfortran.dg/pure_dummy_length_1.f90: Adapt to new error wording. From-SVN: r127380
2007-08-08re PR fortran/32902 (Document integer KIND of SIZEOF())Francois-Xavier Coudert1-5/+6
PR fortran/32902 * intrinsic.texi (SIZEOF): Add mention to C_SIZE_T. From-SVN: r127307
2007-08-05re PR fortran/32979 (Implement vendor-specific ISNAN() intrinsic function)Francois-Xavier Coudert1-0/+43
PR fortran/32979 * intrinsic.h (gfc_check_isnan): Add prototype. * gfortran.h (gfc_isym_id): Add GFC_ISYM_ISNAN. * intrinsic.c (add_functions): Add ISNAN intrinsic. * check.c (gfc_check_isnan): New function. * trans-intrinsic.c (gfc_conv_intrinsic_isnan): New function. (gfc_conv_intrinsic_function): Call gfc_conv_intrinsic_isnan to translate ISNAN. * intrinsic.texi: Document ISNAN. * gfortran.dg/isnan_1.f90: New test. Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org> From-SVN: r127224
2007-07-29re PR fortran/32879 (Document algorithm used for random generator)Daniel Franke1-9/+28
2007-07-29 Daniel Franke <franke.daniel@gmail.com> PR fortran/32879 * intrinsic.texi (IRAND, RAND, RANDOM_NUMBER): Document algorithm used for random number generator. From-SVN: r127037
2007-07-28gfortran.h, [...]: Fix comment typos.Kazu Hirata1-1/+1
* gfortran.h, interface.c, resolve.c, symbol.c: Fix comment typos. * intrinsic.texi, invoke.texi: Fix typos. From-SVN: r127029
2007-07-13invoke.texi: Unified upper- and lower-case in menus.Daniel Franke1-61/+87
2007-07-13 Daniel Franke <franke.daniel@gmail.com> * invoke.texi: Unified upper- and lower-case in menus. (-w, -W): Removed, documented by gcc. * intrinsic.texi: Unified Class-section entries, added subroutine/function warning where appropiate. From-SVN: r126614
2007-07-07decl.c, [...]: Fix comment typos.Kazu Hirata1-10/+10
* decl.c, gfortran.h, interface.c, module.c, resolve.c, trans-array.c, trans-decl.c: Fix comment typos. Follow spelling conventions. * intrinsic.texi: Fix typos. Follow spelling conventions. From-SVN: r126440
2007-07-02gfortran.texi (Fortran 2003): Add ISO Bind C.Tobias Burnus1-0/+270
2007-07-02 Tobias Burnus <burnus@net-b.de> * gfortran.texi (Fortran 2003): Add ISO Bind C. * intrinsic.texi (C_ASSOCIATED,C_F_POINTER,C_F_PROCPOINTER, C_FUNLOC,C_LOC): Document new ISO Bind C intrinsics. From-SVN: r126192
2007-05-29gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIZEOF.Tobias Schlüter1-0/+44
2007-05-28 Tobias Schlter <tobi@gcc.gnu.org> fortran/ * gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIZEOF. * intrinsic.c (add_functions): Add stuff for SIZEOF intrinsic. * intrinsic.h (gfc_check_sizeof): Add prototype of ... * check.c (gfc_check_sizeof): .. new function. * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): New function. (gfc_conv_intrinsic_strcmp): Whitespace fix. (gfc_conv_intrinsic_array_transfer): Remove double initialization, use fold_build. where appropriate. (gfc_conv_intrinsic_function): Add case for SIZEOF. * intrinsic.texi: Add documentation for SIZEOF. testsuite/ * gfortran.dg/sizeof.f90: New. From-SVN: r125161
2007-05-25* intrinsic.texi: Fix typos.Kazu Hirata1-3/+3
From-SVN: r125079
2007-05-17re PR fortran/31919 ([4.1/4.2 only] min/max do not check array conformance)Daniel Franke1-9/+13
gcc/fortran: 2007-05-15 Daniel Franke <franke.daniel@gmail.com> PR fortran/31919 PR fortran/31929 PR fortran/31930 * intrinsic.c (check_specific): Check elemental intrinsics for rank and shape. (add_functions): Fixed dummy argument names of BESJN and BESYN. Fixed elemental status of MCLOCK and MCLOCK8. * check.c (check_rest): Added check for array conformance. (gfc_check_merge): Removed check for array conformance. (gfc_check_besn): Removed check for scalarity. * intrinsic.texi (CSHIFT, EOSHIFT): Fixed typos. (BESJN, BESYN): Clarified documentation. gcc/testsuite: 2007-05-17 Daniel Franke <franke.daniel@gmail.com> PR fortran/31919 * gfortran.dg/min_max_conformance.f90: New test. From-SVN: r124794
2007-05-04intrinsic.texi (CMPLX): Document result kind.Brooks Moses1-1/+59
* intrinsic.texi (CMPLX): Document result kind. (COMPLEX): Add documentation. From-SVN: r124448
2007-05-04re PR target/22539 (Internal compiler error with maximum sized array)Daniel Franke1-6/+58
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-01intrinsic.c (add_functions): Fixed ELEMENTAL specifications.Daniel Franke1-10/+5
2007-05-01 Daniel Franke <franke.daniel@gmail.com> * intrinsic.c (add_functions): Fixed ELEMENTAL specifications. (add_subroutines): Replaced magic numbers in function calls by ELEMENTAL and NOT_ELEMENTAL respectively. * intrinsic.texi (MVBITS): Changed class to elemental subroutine. (RANDOM_NUMBER): Changed class to subroutine. (HUGE, TINY): Changed class to inquiry function. From-SVN: r124320
2007-04-30intrinsic.texi (IERRNO): Changed class to non-elemental function.Daniel Franke1-7/+6
2007-04-30 Daniel Franke <franke.daniel@gmail.com> * intrinsic.texi (IERRNO): Changed class to non-elemental function. (LOG10): Removed COMPLEX as accepted argument type. (NEW_LINE): Changed class from elemental to inquiry function. (SIGN): Removed requirement of scalar arguments. (SNGL): Changed class to elemental function. From-SVN: r124297
2007-04-29gfortran.texi: Cleaned up keyword index.Daniel Franke1-450/+594
2007-04-29 Daniel Franke <franke.daniel@gmail.com> * gfortran.texi: Cleaned up keyword index. * invoke.texi: Likewise. * intrinsic.texi: Likewise. From-SVN: r124275
2007-04-27* intrinsic.texi (Transfer): Improve documentation.Brooks Moses1-6/+24
From-SVN: r124234
2007-04-27intrinsic.texi (AND, [...]): Fixed examples.Daniel Franke1-11/+11
2007-04-27 Daniel Franke <franke.daniel@gmail.com> * intrinsic.texi (AND, FPUT, FPUTC, MODULO, OR, SET_EXPONENT, XOR): Fixed examples. From-SVN: r124223
2007-04-27intrinsic.texi (PRODUCT, [...]): New.Daniel Franke1-26/+232
2007-04-27 Daniel Franke <franke.daniel@gmail.com> * intrinsic.texi (PRODUCT, RESHAPE, SPACING, SPREAD, SUM, SYSTEM_CLOCK, TRANSFER, UNPACK): New. (DATE_AND_TIME, CPU_TIME, RRSPACING): Added cross references. From-SVN: r124222
2007-04-26intrinsic.texi (NULL, [...]): New.Daniel Franke1-41/+260
2007-04-26 Daniel Franke <franke.daniel@gmail.com> * intrinsic.texi (NULL, PACK, PRESENT, REPEAT, SCAN, SHAPE, SIZE, TRANSPOSE, TRIM, VERIFY): New. (ADJUSTL, ADJUSTR, INDEX): Added cross references. (INT, INT2, INT8, LONG): Enabled section header. From-SVN: r124200
2007-04-25re PR libfortran/31299 (Use getpwuid(geteuid()) instead of getlogin() for ↵Francois-Xavier Coudert1-2/+3
GETLOG()) PR libfortran/31299 * intrinsic.texi (GETLOG): Update documentation to reflect library changes. From-SVN: r124144
2007-04-12re PR fortran/31234 (Thread-safety of random_number should be documented.)Daniel Franke1-6/+66
2007-04-12 Daniel Franke <franke.daniel@gmail.com> PR fortran/31234 * intrinsic.texi (RANDOM_SEED, RANDOM_NUMBER): New. From-SVN: r123760
2007-03-13re PR fortran/30922 (IMPORT fails for same symbol in multiple interface ↵Brooks Moses1-19/+22
bodies of same interface block) PR fortran/30922 PR fortran/30948 PR fortran/30953 * intrinsics.texi (CHDIR): Fix argument names, note that STATUS must be a default integer. (CTIME): Fix argument names, note that RESULT must be a default integer. (EXIT): Note that STATUS must be a default integer. From-SVN: r122905
2007-03-13re PR fortran/28068 (Non-standard intrinsics should be documented)Brooks Moses1-39/+316
PR fortran/28068 * intrinsic.texi: General whitespace cleanup, remove comment about missing intrinsics. (menu): Add lines for new entries listed below. (ACOSH): Mention specific function DACOSH, correct description phrasing. (ASINH): Mention specific function DASINH, correct description phrasing. (ATANH): Mention specific function DATANH, correct description phrasing. (COS): Add index entry for CCOS. (CPU_TIME): Correct "REAL" to "REAL(*)". (EXP): Add index entry for CEXP. (INT): Correct argument name to "A". (INT2): New entry. (INT8): New entry. (LONG): New entry. (MAX): Add index entries for specific variants. (MCLOCK): New entry. (MCLOCK8): New entry. (SECNDS): Adjust to a more standard form. (SECOND): New entry. (TIME): Add cross-reference to MCLOCK. (TIME8): Add cross-reference to MCLOCK8. From-SVN: r122902
2007-03-08intrinsic.texi: (ICHAR) Improve internal I/O note.Brooks Moses1-8/+24
* intrinsic.texi: (ICHAR) Improve internal I/O note. (ACHAR): Reference it. (CHAR): Reference it. (IACHAR): Reference it. From-SVN: r122729
2007-03-08intrinsic.texi: (LINK) Document function form.Brooks Moses1-10/+40
* intrinsic.texi: (LINK) Document function form. (RENAME): Likewise. (SYMLNK): Likewise. (SYSTEM): Likewise. (UNLINK): Likewise. From-SVN: r122728
2007-03-08intrinsic.texi: minor typo fixes, removed prologue.Brooks Moses1-65/+56
* intrinsic.texi: minor typo fixes, removed prologue. (FSEEK): moved to correct place in alphabetical order. From-SVN: r122726
2007-03-08re PR fortran/30947 (intrinsic: ALARM)Daniel Franke1-4/+5
2007-03-08 Daniel Franke <franke.daniel@gmail.com> PR fortran/30947 * check.c (gfc_check_alarm_sub): Added check for default integer kind of status argument. * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of status argument. * intrinsic.texi (ALARM): Extended documentation. From-SVN: r122715
2007-03-08intrinsic.texi (GERROR, [...]): New.Daniel Franke1-7/+136
2007-03-08 Daniel Franke <franke.daniel@gmail.com> * intrinsic.texi (GERROR, ISATTY, TTYNAM): New. (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo. * intrinsic.c (add_subroutines): Adjusted dummy argument names of GERROR and TTYNAM. From-SVN: r122712
2007-03-06re PR fortran/30950 (intrinsic: CPU_TIME)Daniel Franke1-6/+6
2007-03-06 Daniel Franke <franke.daniel@gmail.com> PR documentation/30950 * intrinsic.texi (AND, CPU_TIME): Fix dummy argument names. (FREE): Fix call syntax. From-SVN: r122640
2007-03-06* intrinsic.texi: Limit column widths to a total of .85.Brooks Moses1-207/+207
From-SVN: r122615
2007-02-11intrinsic.texi (HOSTNM): Fix typographical error in syntax.Daniel Franke1-1/+34
2007-02-11 Daniel Franke <franke.daniel@gmail.com> * intrinsic.texi (HOSTNM): Fix typographical error in syntax. (SLEEP): Added section and documentation. From-SVN: r121831
2007-01-30invoke.texi (Code Gen Options): Fix abbreviation typo.Ralf Wildenhues1-3/+3
2007-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * invoke.texi (Code Gen Options): Fix abbreviation typo. * intrinsic.texi (ACCESS, LSHIFT, RSHIFT): Fix typos. From-SVN: r121359
2007-01-21intrinsic.texi (ACHAR): Added cross-references.Brooks Moses1-2/+12
* intrinsic.texi (ACHAR): Added cross-references. (CHAR): Put cross-references in alphabetical order. (IACHAR): Added cross-references. (ICHAR): Added cross-references. From-SVN: r121049
2007-01-20intrinsic.texi: Edited all "Syntax" examples to a consistent form.Brooks Moses1-147/+138
* intrinsic.texi: Edited all "Syntax" examples to a consistent form. (MAXVAL): Corrected description of result characteristics. (MINVAL): Same. (UMASK): Added documentation. From-SVN: r121020
2007-01-19intrinsic.texi (MATMUL): Corrected a typo.Brooks Moses1-3/+3
* intrinsic.texi (MATMUL): Corrected a typo. (MAX): Separated @var arguments. (MIN): Separated @var arguments. From-SVN: r120982
2007-01-19intrinsic.texi: general whitespace cleanup.Brooks Moses1-256/+642
* intrinsic.texi: general whitespace cleanup. (menu): Added TIME8, removed UNMASK. (AINT): Clarified argument requirement. (ANINT): Clarified argument requirement. (CEILING): Clarified argument requirement. (CHAR): Clarified argument requirement. (CMPLX): Clarified argument requirement. (DCMPLX): Clarified argument requirement. (FGET): Line rewrapping. (FLOOR): Clarified argument requirement. (GMTIME): Added documentation. (IAND): Added cross-reference. (IBCLR): Added cross-reference. (IBSET): Added cross-reference. (IEOR): Added cross-reference. (INT): Collapsed examples, clarified argument requirement. (IOR): Added cross-references. (LEN_TRIM): Corrected result kind. (LINK): Added cross-reference. (LLT): Removed "documentation pending". (LOGICAL): Added documentation. (LSHIFT): Added documentation. (LTIME): Added documentation. (MATMUL): Added documentation. (MAX): Added documentation. (MAXLOC): Added documentation. (MAXVAL): Added documentation. (MERGE): Added documentation. (MIN): Added documentation. (MINLOC): Added documentation. (MINVAL): Added documentation. (MVBITS): Moved to correct place, added documentation. (NOT): Added documentation. (PERROR): Added documentation. (RAN): Moved to correct place, added documentation. (REAL): Clarified argument requirement. (RENAME): Added documentation. (RSHIFT): Clarified argument requirement. (SIGN): Corrected table specification. (SYMLNK): Added documentation. (SYSTEM): Added documentation. (TIME): Added documentation. (TIME8): Added section and documentation. (UNMASK): Removed erroneous section. From-SVN: r120980
2007-01-04intrinsic.texi: Minor cleanup, reflowing overlong paragraphs, and correcting ↵Brooks Moses1-26/+46
whitespace. * intrinsic.texi: Minor cleanup, reflowing overlong paragraphs, and correcting whitespace. From-SVN: r120467
2007-01-04intrinsic.texi (LBOUND): Add documentation.Brooks Moses1-46/+161
* intrinsic.texi (LBOUND): Add documentation. (LGE): Add documentation. (LGT): Add documentation. (LINK): Add documentation. (LLE): Add documentation. (LLT): Add documentation. (LNBLNK): Add documentation. (UBOUND): Add documentation. (UNLINK): Add documentation. From-SVN: r120466
2007-01-04intrinsic.texi (IAND): Clarify argument specifications.Brooks Moses1-67/+185
* intrinsic.texi (IAND): Clarify argument specifications. (IBCLR): Add documentation. (IBITS): Add documentation. (IBSET): Add documentation. (IEOR): Add documentation. (IERRNO): Add documentation. (INDEX): Add documentation. (IOR): Add documentation. (ISHFT): Add documentation. (ISHFTC): Add documentation. (KILL): Add documentation. (LEN_TRIM): Add documentation. From-SVN: r120452
2007-01-04gfortran.texi: Update copyright to include 2007.Brooks Moses1-1/+1
* gfortran.texi: Update copyright to include 2007. * intrinsic.texi: Update copyright to include 2007. * invoke.texi: Update copyright to include 2007. From-SVN: r120444
2007-01-03gfortran.texi (Introduction): Lower "Part I...Brooks Moses1-2/+2
* gfortran.texi (Introduction): Lower "Part I: Introduction" to a chapter, renumber Parts II and III to Parts I and II. * intrinsic.texi (Introduction): Rename to "Introduction to Intrinsics" to avoid conflict with the new chapter. From-SVN: r120427
2007-01-03* intrinsic.texi (Introduction): Rewrite first paragraph.Brooks Moses1-7/+7
From-SVN: r120426
2007-01-03intrinsic.texi: Improvements to index entries; change @findex entries to ↵Brooks Moses1-322/+332
@cindex entries. * intrinsic.texi: Improvements to index entries; change @findex entries to @cindex entries. * invoke.texi: Standardize and improve index entries. * gfortran.texi: Fix @code in one index entry. From-SVN: r120421