aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
AgeCommit message (Collapse)AuthorFilesLines
2006-12-08re PR fortran/27546 (IMPORT is broken)Tobias Burnus2-7/+6
fortran/ 2006-12-08 Tobias Burnus <burnus@net-b.de> PR fortran/27546 * trans-decl.f90 (gfc_create_module_variable): Allow imported symbols in interface bodys in modules. testsuite/ 2006-12-08 Tobias Burnus <burnus@net-b.de> PR fortran/27546 * gfortran.dg/import4.f90: New test for IMPORT in modules. From-SVN: r119651
2006-12-07re PR fortran/29711 ([4.2 only] error_print does not support %N$X)Tobias Burnus2-0/+7
2006-12-06 Tobias Burnus <burnus@net-b.de> PR fortran/29711 * error.c (error_print): Fix handling of printf-style position specifiers of the form "%3$d" From-SVN: r119609
2006-12-05re PR fortran/30003 ([4.1 only] Expressions with side effects in array ↵Paul Thomas3-1/+38
references) 2006-12-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/30003 * trans-array.c (gfc_trans_create_temp_array): Set the section ends to zero. (gfc_conv_array_transpose): Likewise. (gfc_conv_section_startstride): Declare an expression for end, set it from a the array reference and evaluate it for the info structure. Zero the ends in the ss structure and set end, used in the bounds check, from the info structure. trans.h: Add and end array to the gfc_ss_info structure. 2006-12-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/30003 * gfortran.dg/allocatable_function_1.f90: Increase the number of expected calls of free to 10; the lhs section reference is now evaluated so there is another call to bar. Change the comment appropriately. * gfortran.dg/array_section_1.f90: New test. From-SVN: r119556
2006-12-05re PR fortran/29912 ([4.1 only] Gfortran: string array functions behaving ↵Paul Thomas2-0/+24
incorrectly...) 2006-12-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/29912 * trans-expr.c (gfc_trans_arrayfunc_assign): Return NULL if the lhs and rhs character lengths are not constant and equal for character array valued functions. 2006-12-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/29912 * gfortran.dg/char_result_12.f90: New test. From-SVN: r119554
2006-12-05Revert accidental change.Aldy Hernandez1-13/+0
From-SVN: r119547
2006-12-05Merge gimple-tuples-branch into mainline.Aldy Hernandez7-19/+52
From-SVN: r119546
2006-12-04re PR fortran/29962 (Initialization expressions)Tobias Burnus2-3/+10
fortran/ 2006-12-04 Tobias Burnus <burnus@net-b.de> PR fortran/29962 * expr.c (check_intrinsic_op): Allow noninteger exponents for F2003. testsuite/ 2006-12-04 Tobias Burnus <burnus@net-b.de> PR fortran/29962 * initialization_4.f90: Test noninteger exponents (-std=f95). * initialization_5.f90: New test for noninteger exponents with -std=f2003 From-SVN: r119505
2006-12-04[multiple changes]Paul Thomas2-1/+14
2006-12-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29821 * resolve.c (resolve_operator): Only return result of gfc_simplify_expr if expression is constant. 2006-12-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29821 * gfortran.dg/parameter_array_section_1.f90: New test. From-SVN: r119504
2006-12-04re PR fortran/29916 ([4.1 only] Dimension of a function result as host ↵Paul Thomas3-2/+20
association does not work) fortran/ 2006-12-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29916 * resolve.c (resolve_symbol): Allow host-associated variables in the specification expression of an array-valued function. * expr.c (check_restricted): Accept host-associated dummy array indices. testsuite/ 2006-12-04 Paul Thomas <pault@gcc.gnu.org> PR fortran/29916 * gfortran.dg/host_dummy_index_1.f90: Added additional test. From-SVN: r119489
2006-12-03re PR fortran/29642 (Fortran 2003: VALUE Attribute (call by value not call ↵Paul Thomas11-24/+188
by reference for actual arguments)) 2006-12-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/29642 * trans-expr.c (gfc_conv_variable): A character expression with the VALUE attribute needs an address expression; otherwise all other expressions with this attribute must not be dereferenced. (gfc_conv_function_call): Pass expressions with the VALUE attribute by value, using gfc_conv_expr. * symbol.c (check_conflict): Add strings for INTENT OUT, INOUT and VALUE. Apply all the constraints associated with the VALUE attribute. (gfc_add_value): New function. (gfc_copy_attr): Call it for VALUE attribute. * decl.c (match_attr_spec): Include the VALUE attribute. (gfc_match_value): New function. * dump-parse-tree.c (gfc_show_attr): Include VALUE. * gfortran.h : Add value to the symbol_attribute structure and add a prototype for gfc_add_value * module.c (mio_internal_string): Include AB_VALUE in enum. (attr_bits): Provide the VALUE string for it. (mio_symbol_attribute): Read or apply the VLUE attribute. * trans-types.c (gfc_sym_type): Variables with the VLAUE attribute are not passed by reference! * resolve.c (was_declared): Add value to those that return 1. (resolve_symbol): Value attribute requires dummy attribute. * match.h : Add prototype for gfc_match_public. * parse.c (decode_statement): Try to match a VALUE statement. 2006-12-03 Paul Thomas <pault@gcc.gnu.org> PR fortran/29642 * gfortran.dg/value_1.f90 : New test. * gfortran.dg/value_2.f90 : New test. * gfortran.dg/value_3.f90 : New test. * gfortran.dg/value_4.f90 : New test. * gfortran.dg/value_4.c : Called from value_4.f90. From-SVN: r119461
2006-12-01re PR libfortran/29568 (implement unformatted files with subrecords (Intel ↵Thomas Koenig6-8/+62
style)) 2006-12-01 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/29568 * gfortran.dg/convert_implied_open.f90: Change to new default record length. * gfortran.dg/unf_short_record_1.f90: Adapt to new error message. * gfortran.dg/unformatted_subrecords_1.f90: New test. 2006-12-01 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/29568 * gfortran.h (gfc_option_t): Add max_subrecord_length. (top level): Define MAX_SUBRECORD_LENGTH. * lang.opt: Add option -fmax-subrecord-length=. * trans-decl.c: Add new function set_max_subrecord_length. (gfc_generate_function_code): If we are within the main program and max_subrecord_length has been set, call set_max_subrecord_length. * options.c (gfc_init_options): Add defaults for max_subrecord_lenght, convert and record_marker. (gfc_handle_option): Add handling for -fmax_subrecord_length. * invoke.texi: Document the new default for -frecord-marker=<n>. 2006-12-01 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/29568 * libgfortran/libgfortran.h (compile_options_t): Add record_marker. (top level): Define GFC_MAX_SUBRECORD_LENGTH. * runtime/compile_options.c (set_record_marker): Change default to four-byte record marker. (set_max_subrecord_length): New function. * runtime/error.c (translate_error): Change error message for short record on unformatted read. * io/io.h (gfc_unit): Add recl_subrecord, bytes_left_subrecord and continued. * io/file_pos.c (unformatted_backspace): Change default of record marker size to four bytes. Loop over subrecords. * io/open.c: Default recl is max_offset. If compile_options.max_subrecord_length has been set, set set u->recl_subrecord to its value, to the maximum value otherwise. * io/transfer.c (top level): Add prototypes for us_read, us_write, next_record_r_unf and next_record_w_unf. (read_block_direct): Separate codepaths for unformatted direct and unformatted sequential. If a recl has been set by the user, use the number of bytes left for the record if it is smaller than the read request. Loop over subrecords. Set an error if the user has set a recl and the read was short. (write_buf): Separate codepaths for unformatted direct and unformatted sequential. If a recl has been set by the user, use the number of bytes left for the record if it is smaller than the read request. Loop over subrecords. Set an error if the user has set a recl and the read was short. (us_read): Add parameter continued (to indicate that bytes_left should not be intialized). Change default of record marker size to four bytes. Use subrecord. If the subrecord length is smaller than zero, this indicates a continuation. (us_write): Add parameter continued (to indicate that the continued flag should be set). Use subrecord. (pre_position): Use 0 for continued on us_write and us_read calls. (skip_record): New function. (next_record_r_unf): New function. (next_record_r): Use next_record_r_unf. (write_us_marker): Default size for record markers is four bytes. (next_record_w_unf): New function. (next_record_w): Use next_record_w_unf. From-SVN: r119412
2006-11-28re PR fortran/29976 (ICE on optional arg)Paul Thomas2-1/+8
2006-11-28 Paul Thomas <pault@gcc.gnu.org> PR fortran/29976 * trans-expr.c (gfc_conv_missing_dummy): Remove build_int_const and replace with cast to type of se->expr of integer_zero_node. 2006-11-28 Paul Thomas <pault@gcc.gnu.org> PR fortran/29976 * gfortran.dg/missing_optional_dummy_3.f90 From-SVN: r119273
2006-11-28re PR fortran/20880 (USE association of procedure's own interface)Paul Thomas2-1/+9
2006-11-28 Paul Thomas <pault@gcc.gnu.org> PR fortran/20880 * resolve.c (resolve_fl_procedure): Error if procedure is ambiguous modified to require attr.referenced. 2006-11-28 Paul Thomas <pault@gcc.gnu.org> PR fortran/20880 * gfortran.dg/interface_3.f90: Modify errors. From-SVN: r119272
2006-11-26re PR fortran/29892 (substring out of bounds: Missing variable name for ↵Francois-Xavier Coudert3-6/+45
variables with parameter attribute) PR fortran/29892 * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use a locus in the call to gfc_trans_runtime_check. * trans-array.c (gfc_trans_array_bound_check): Try harder to find the variable or function name for the runtime error message. (gfc_trans_dummy_array_bias): Use a locus in the call to gfc_trans_runtime_check From-SVN: r119223
2006-11-26trans-decl.c (gfc_build_intrinsic_function_decls): Mark the pow functions as ↵Andrew Pinski2-0/+8
constant functions. 2006-11-26 Andrew Pinski <pinskia@gmail.com> * trans-decl.c (gfc_build_intrinsic_function_decls): Mark the pow functions as constant functions. From-SVN: r119219
2006-11-25re PR fortran/29982 ([4.1 only] ICE in write() with gfortran 4.1.2 (and 4.2 ↵Andrew Pinski2-2/+9
and 4.3...)) 2006-11-25 Andrew Pinski <pinskia@gmail.com> PR fortran/29982 * trans-expr.c (gfc_conv_expr_reference): Strip off NOP_EXPRs. 2006-11-25 Andrew Pinski <pinskia@gmail.com> PR fortran/29982 * gfortran.fortran-torture/compile/parameter_3.f90: New testcase. From-SVN: r119218
2006-11-25re PR fortran/29951 (incorrect conversion from string to integer by TRANSFER())Andrew Pinski2-3/+25
2006-11-25 Andrew Pinski <pinskia@gmail.com> PR fortran/29951 * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Change to call memcpy instead of creating a VIEW_CONVERT_EXRP. 2006-11-25 Andrew Pinski <pinskia@gmail.com> PR fortran/29951 * gfortran.fortran-torture/execute/transfer2.f90: New test From-SVN: r119211
2006-11-25re PR fortran/29711 ([4.2 only] error_print does not support %N$X)Francois-Xavier Coudert2-57/+145
PR fortran/29711 * error.c (error_print): Handle printf-style position specifiers, of the form "%3$d". From-SVN: r119203
2006-11-24re PR fortran/20880 (USE association of procedure's own interface)Paul Thomas4-3/+35
2006-11-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/20880 * parse.c (parse_interface): Error if procedure name is that of encompassing scope. * resolve.c (resolve_fl_procedure): Error if procedure is ambiguous. PR fortran/29387 * interface.c (compare_actual_formal): Add missing condition that 'where' be present for error that asserts that actual arguments be definable. 2006-11-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/20880 * gfortran.dg/interface_3.f90: New test. PR fortran/29387 * gfortran.dg/generic_8.f90: New test. From-SVN: r119173
2006-11-24resolve.c (resolve_actual_arglist): Remove the special case for CHAR.Francois-Xavier Coudert3-12/+9
* resolve.c (resolve_actual_arglist): Remove the special case for CHAR. * intrinsic.c (add_functions): Remove the special case for CHAR. * gfortran.dg/specifics_1.f90: Remove check for CHAR. * gfortran.dg/specifics_2.f90: Remove check for CHAR. * gfortran.dg/specifics_3.f90: Remove. From-SVN: r119170
2006-11-22re PR fortran/29441 ([4.1/4.2 only] non-constant parameter (constant) accepted)Tobias Schlüter2-5/+10
fortran/ PR fortran/29441 * intrinsic.c (gfc_intrinsic_func_interface): Always check if intrinsic is allowed in initialization expression. testsuite/ PR fortran/29441 * gfortran.dg/initialization_4.f90: New test. From-SVN: r119101
2006-11-22re PR fortran/25087 (Error for missing explicit interface needed.)Paul Thomas2-8/+21
2006-11-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/25087 * resolve.c (resolve_fl_procedure): Add an error if an external automatic character length function does not have an explicit interface. 2006-11-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/25087 * gfortran.dg/auto_char_len_4.f90: New test. From-SVN: r119077
2006-11-22re PR fortran/29652 (ambiguous interface declaration undetected)Paul Thomas2-3/+9
2006-11-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/29652 * interface.c (check_interface1): Use a local value, instead of the dummy, as the inner iterator over interface symbols. 2006-11-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/29652 * gfortran.dg/generic_7.f90: New test. * gfortran.dg/defined_operators_1.f90: Add new error. From-SVN: r119076
2006-11-21re PR fortran/29820 (ICE in fold_convert, at fold-const.c:2146)Paul Thomas2-5/+9
2006-11-21 Paul Thomas <pault@gcc.gnu.org> PR fortran/29820 * trans-array.c (gfc_get_derived_type): Once done, spread the backend_decl to all identical derived types in all sibling namespaces. 2006-11-21 Paul Thomas <pault@gcc.gnu.org> PR fortran/29820 * gfortran.dg/used_types_13.f90: New test. From-SVN: r119073
2006-11-20re PR fortran/27546 (IMPORT is broken)Tobias Burnus2-1/+7
fortran/ 2006-11-17 Tobias Burnus <burnus@net-b.de> PR fortran/27546 * primary.c (gfc_match_rvalue): Added IMPORT support. testsuite/ 2006-11-17 Tobias Burnus <burnus@net-b.de> PR fortran/27546 * gfortran.dg/import.f90: Extended test. * gfortran.dg/import2.f90: Extended test. From-SVN: r119028
2006-11-20symbol.c (check_conflict): Add conflict between VOLATILE attribute and ↵Tobias Burnus2-0/+6
program name. fortran/ 2006-11-20 Tobias Burnus <burnus@net-b.de> * symbol.c (check_conflict): Add conflict between VOLATILE attribute and program name. testsuite/ 2006-11-20 Tobias Burnus <burnus@net-b.de> * gfortran.dg/volatile3.f90: Add conflict test. From-SVN: r119025
2006-11-20re PR fortran/24783 ([4.1 and 4.2 only] Implicit none in module overwrite ↵Bernhard Fischer2-5/+10
explicit in procedure) fortran/ChangeLog 2006-11-20 Bernhard Fischer <aldot@gcc.gnu.org> PR fortran/24783 * resolve.c (resolve_variable): Get the implicit type from the symbols namespace rather than the default namespace. Fix whitespace. (resolve_formal_arglist, resolve_equivalence): Fix typo. testsuite/ChangeLog 2006-11-20 Bernhard Fischer <aldot@gcc.gnu.org> PR fortran/24783 * gfortran.dg/implicit_10.f90: New test. From-SVN: r119016
2006-11-19resolve.c (resolve_ref): Check for ALLOCATABLEs to the right of nonzero rank ↵Erik Edelmann2-7/+22
part references too. fortran/ 2006-11-19 Erik Edelmann <eedelman@gcc.gnu.org> * resolve.c (resolve_ref): Check for ALLOCATABLEs to the right of nonzero rank part references too. testsuite/ 2006-11-19 Erik Edelmann <eedelman@gcc.gnu.org> * gfortran.dg/alloc_comp_constraint_5.f90: New. * gfortran.dg/alloc_comp_assign_2.f90: Removed invalid code. From-SVN: r118999
2006-11-19module.c (gfc_use_module): Uncomment the ISO_FORTRAN_ENV code.Francois-Xavier Coudert6-28/+237
* module.c (gfc_use_module): Uncomment the ISO_FORTRAN_ENV code. Check that intrinsic and non-intrinsic modules don't conflict. (use_iso_fortran_env_module): New function. (create_int_parameter): New function. * trans-types.c (gfc_init_kinds): Choose values for gfc_numeric_storage_size and gfc_character_storage_size. (gfc_numeric_storage_size, gfc_character_storage_size): New variables. * resolve.c (resolve_symbol): Do no check intrinsic modules against the list of intrinsic symbols. * iso-fortran-env.def: New file. * gfortran.h (gfc_numeric_storage_size, gfc_character_storage_size): Add prototypes. * gfortran.dg/use_3.f90: Remove error message. * gfortran.dg/iso_fortran_env_1.f90: New test. * gfortran.dg/iso_fortran_env_2.f90: New test. * gfortran.dg/iso_fortran_env_3.f90: New test. * gfortran.dg/iso_fortran_env_4.f90: New test. From-SVN: r118998
2006-11-18re PR fortran/24285 ([4.2 only] format(1000(a,$)))Francois-Xavier Coudert2-3/+10
PR fortran/24285 * io.c (check_format): Allow dollars everywhere in format, and issue a warning. * gfortran.dg/dollar_edit_descriptor-3.f: New test. From-SVN: r118971
2006-11-17gfortran.h (gfc_add_intrinsic_modules_path, [...]): New prototypes.Francois-Xavier Coudert8-33/+194
* gfortran.h (gfc_add_intrinsic_modules_path, gfc_open_intrinsic_module): New prototypes. (gfc_add_include_path, gfc_open_included_file): Update prototypes. * lang.opt: Add -fintrinsic-modules-path option. * module.c (gfc_match_use): Match the Fortran 2003 form of USE statement. (gfc_use_module): Also handle intrinsic modules. * scanner.c (gfc_directorylist): Add use_for_modules for field. (intrinsic_modules_dirs): New static variable. (add_path_to_list, gfc_add_intrinsic_modules_path): New functions. (gfc_add_include_path): Use the new add_path_to_list helper function. (gfc_release_include_path): Free memory for intrinsic_modules_dirs. (open_included_file, gfc_open_intrinsic_module): New functions. (gfc_open_included_file): Use the new open_included_file helper function. * lang-specs.h: Use the new -fintrinsic-modules-path option. * parse.c (decode_statement): Do not match the required space after USE here. * options.c (gfc_handle_option): Handle the new option. Use new prototype for gfc_add_include_path. (gfc_post_options): Use new prototype for gfc_add_include_path. * gfortran.dg/use_1.f90: New test. * gfortran.dg/use_1.f90: New test. * gfortran.dg/use_1.f90: New test. From-SVN: r118930
2006-11-16re PR fortran/29391 ([4.2/4.1 only] LBOUND and UBOUND are broken)Francois-Xavier Coudert3-19/+67
PR fortran/29391 PR fortran/29489 * simplify.c (simplify_bound): Fix the simplification of LBOUND/UBOUND intrinsics. * trans-intrinsic.c (simplify_bound): Fix the logic, and remove an erroneous assert. * gcc/testsuite/gfortran.dg/bound_2.f90: Add more checks. * gcc/testsuite/gfortran.dg/bound_3.f90: New test. From-SVN: r118888
2006-11-16trans-decl.c (gfc_get_symbol_decl): Fix formatting.François-Xavier Coudert2-15/+17
* trans-decl.c (gfc_get_symbol_decl): Fix formatting. * io/open.c (new_unit): Format %d expects an int variable. * runtime/error.c (show_locus): Format %d expects an int variable. From-SVN: r118887
2006-11-15data.c: Remove trailing periods from error messages.Brooks Moses11-21/+34
* data.c: Remove trailing periods from error messages. * decl.c: Likewise. * expr.c: Likewise. * io.c: Likewise. * match.c: Likewise. * module.c: Likewise. * options.c: Likewise. * resolve.c: Likewise. * symbol.c: Likewise. * trans-io.c: Likewise. From-SVN: r118880
2006-11-15lang.opt: Rearrange entries back into ASCII order.Brooks Moses2-73/+77
* lang.opt: Rearrange entries back into ASCII order. From-SVN: r118879
2006-11-15parse.c (parse_contained): Fix indention of one line.Tobias Burnus2-1/+6
2006-11-15 Tobias Burnus <burnus@net-b.de> * parse.c (parse_contained): Fix indention of one line. From-SVN: r118858
2006-11-15re PR fortran/27546 (IMPORT is broken)Tobias Burnus6-6/+133
fortran/ 2006-11-15 Tobias Burnus <burnus@net-b.de> PR fortran/27546 * decl.c (gfc_match_import,variable_decl): Add IMPORT support. (gfc_match_kind_spec): Fix typo in gfc_error. * gfortran.h (gfc_namespace, gfc_statement): Add IMPORT support. * parse.c (decode_statement,gfc_ascii_statement, verify_st_order): Add IMPORT support. * match.h: Add gfc_match_import. * gfortran.texi: Add IMPORT to the supported Fortran 2003 features. testsuite/ 2006-11-15 Tobias Burnus <burnus@net-b.de> PR fortran/27546 * gfortran.dg/import.f90: New test. * gfortran.dg/import2.f90: New test. * gfortran.dg/import3.f90: New test. From-SVN: r118857
2006-11-15re PR fortran/27588 (-fbounds-check should catch substring out of range ↵Tobias Burnus2-3/+42
accesses) fortran/ 2006-11-15 Tobias Burnus <burnus@net-b.de> Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> PR fortran/27588 * trans-expr.c (gfc_conv_substring): Add bounds checking. (gfc_conv_variable, gfc_conv_substring_expr): Pass more arguments to gfc_conv_substring. testsuite/ 2006-11-15 Tobias Burnus <burnus@net-b.de> PR fortran/27588 * gfortran.dg/char_bounds_check_fail_1.f90: New test. Co-Authored-By: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> From-SVN: r118852
2006-11-15re PR fortran/29806 (Error if CONTAINS is present without SUBPROGRAM)Tobias Burnus2-0/+12
fortran/ 2006-11-15 Tobias Burnus <burnus@net-b.de> PR fortran/29806 * parse.c (parse_contained): Check for empty contains statement. testsuite/ 2006-11-15 Tobias Burnus <burnus@net-b.de> PR fortran/29806 * gfortran.dg/contains.f90: New test. * gfortran.dg/derived_function_interface_1.f90: Add a dg-warning. From-SVN: r118851
2006-11-15re PR fortran/28974 (Extremely slow compilation of enumerated DATA statements.)Bud Davis4-45/+119
2006-11-15 Bud Davis <bdavis9659@sbcglobal.net> PR fortran/28974 * gfortran.h (gfc_expr): Add element which holds a splay-tree for the exclusive purpose of quick access to a constructor by offset. * data.c (find_con_by_offset): Use the splay tree for the search. (gfc_assign_data_value): Use the splay tree. (gfc_assign_data_value_range): ditto. * expr.c (gfc_get_expr): Initialize new element to null. (gfc_free_expr): Delete splay tree when deleting gfc_expr. From-SVN: r118844
2006-11-14re PR fortran/29702 (RFE: Column number in error messages.)Brooks Moses2-114/+179
PR fortran/29702 * fortran/error.c (show_loci): Move column-offset calculation to show_locus. (show_locus): Remove blank lines before "Included in" lines, clean up code, calculate column-offsets, print column number is error-header lines as appropriate. (error_integer): (new function) Print integer to error buffer. (error_print): Use error_integer, avoid possible buffer overflows from buggy error formats. * testsuite/lib/gfortran-dg.exp (gfortran-dg-test): Ignore column numbers in error message headers. From-SVN: r118843
2006-11-14gfortran.h (GFC_MAX_LINE): Remove constant definition.Brooks Moses4-32/+28
* gfortran.h (GFC_MAX_LINE): Remove constant definition. (gfc_option_t): Clarify comments. * options.c: Set default line length limits to actual default values, rather than flag values. * scanner.c: Eliminate checking and handling of the fixed/free_line_length flag values. From-SVN: r118842
2006-11-14lang.opt: Remove -fno-backend option.Brooks Moses5-12/+11
* lang.opt: Remove -fno-backend option. * gfortran.h (gfc_option_t): Remove flag_no_backend. * options.c (gfc_init_options): Remove flag_no_backend. (gfc_handle_option): Remove -fno-backend option handler. * parse.c (gfc_parse_file): Remove references to gfc_option.flag_no_backend. From-SVN: r118841
2006-11-14match.c (gfc_match_namelist): Add missing space to error message.Tobias Burnus2-1/+6
2006-11-14 Tobias Burnus <burnus@net-b.de> * match.c (gfc_match_namelist): Add missing space to error message. From-SVN: r118820
2006-11-14re PR fortran/29657 (Don't allow SAVE for functions)Tobias Burnus2-1/+10
fortran/ 2006-11-14 Tobias Burnus <burnus@net-b.de> PR fortran/29657 * symbol.c (check_conflict): Add further conflicts. testsuite/ 2006-11-14 Tobias Burnus <burnus@net-b.de> PR fortran/29657 * gfortran.dg/conflicts.f90: Add. From-SVN: r118812
2006-11-13re PR fortran/29759 (ice on line continuation in OMP statements ↵Jakub Jelinek2-0/+7
(gfc_next_char_literal, at fortran/scanner.c:701)) PR fortran/29759 * fortran/scanner.c (skip_free_comments): Clear openmp_flag before returning true. * gfortran.dg/gomp/pr29759.f90: New test. From-SVN: r118773
2006-11-13re PR fortran/26994 (Scalar TRANSFER - error: invalid operand to unary operator)Andrew Pinski2-0/+7
2006-11-12 Andrew Pinski <andrew_pinski@playstation.sony.com> PR fortran/26994 * gfortran.fortran-torture/compile/transfer-1.f90: New testcase. 2006-11-12 Andrew Pinski <andrew_pinski@playstation.sony.com> PR fortran/26994 * trans-expr.c (gfc_conv_expr_reference): Set TREE_STATIC on the new CONST_DECL. From-SVN: r118761
2006-11-12Correcting ChangeLog errorsPaul Thomas1-2/+2
From-SVN: r118721
2006-11-11Fix entry missing from previously committed ChangeLogTobias Schlüter1-1/+2
From-SVN: r118703
2006-11-11Fix typo in previous check-inTobias Schlüter1-1/+1
From-SVN: r118702