aboutsummaryrefslogtreecommitdiff
path: root/gcc/f
AgeCommit message (Collapse)AuthorFilesLines
2003-06-13com.c (ffecom_sym_transform_): Install FFEINFO_whereGLOBAL symbols in the ↵Richard Henderson2-2/+7
global binding level. * com.c (ffecom_sym_transform_): Install FFEINFO_whereGLOBAL symbols in the global binding level. From-SVN: r67920
2003-06-08Make-lang.in (F77_OBJS, [...]): Update.Neil Booth7-388/+802
* Make-lang.in (F77_OBJS, f77.mostlyclean, f/com.o): Update. (f/f-options.c, f/f-options.h): New. * com.c: Include opts.h and f-options.h. (ffecom_decode_include_option_): Remove. (LANG_HOOKS_HANDLE_OPTION): New. (LANG_HOOKS_DECODE_OPTION): Drop. (struct file_name_list, ffecom_decode_include_option, ffecom_open_include_): Constify. * com.h (ffecom_decode_include_option): Update. * lang.opt: New. * top.c: Include f-options.h, opts.h. (ffe_is_digit_string_): Constify. (ffe_decode_option): Transform to ffe_handle_option. * top.h (ffe_decode_option): Replace with ffe_handle_option. From-SVN: r67628
2003-06-08std.c: Remove #if 0'ed functions.Andreas Jaeger11-13240/+31
* std.c: Remove #if 0'ed functions. * sta.c: Remove usage of HARD_F90, FFESTR_F90 and FFESTR_VXT. * stb.c: Likewise. * stb.h: Likewise. * stc.c: Likewise. * stc.h: Likewise. * std.c: Likewise. * std.h: Likewise. * ste.c: Likewise. * ste.h: Likewise. * str.h (FFESTR_F90): Remove macro. (FFESTR_VXT): Remove macro. From-SVN: r67625
2003-06-08bld.c: Remove usage of FFETARGET_okCHARACTER2...Andreas Jaeger6-3040/+19
* bld.c: Remove usage of FFETARGET_okCHARACTER2, FFETARGET_okCHARACTER3, FFETARGET_okCHARACTER4, FFETARGET_okCHARACTER5, FFETARGET_okCHARACTER6, FFETARGET_okCHARACTER7, FFETARGET_okCHARACTER8, FFETARGET_okCOMPLEX4, FFETARGET_okCOMPLEX5, FFETARGET_okCOMPLEX6, FFETARGET_okCOMPLEX7, FFETARGET_okCOMPLEX8, FFETARGET_okINTEGER5, FFETARGET_okINTEGER6, FFETARGET_okINTEGER7, FFETARGET_okINTEGER8, FFETARGET_okLOGICAL5, FFETARGET_okLOGICAL6, FFETARGET_okLOGICAL7, FFETARGET_okLOGICAL8, FFETARGET_okREAL4, FFETARGET_okREAL5, FFETARGET_okREAL6, FFETARGET_okREAL7 and FFETARGET_okREAL8. * bld.h: Likewise. * expr.c: Likewise. * target.h: Likewise. * com.c: Likewise. From-SVN: r67622
2003-06-08Make-lang.in: Update.Neil Booth3-1/+10
f: * Make-lang.in: Update. * top.c: Include opts.h. Define cl_options_count and cl_options. java: * Make-lang.in: Update. * lang.c: Include opts.h. Define cl_options_count and cl_options. From-SVN: r67621
2003-06-07symbol.c (ffesymbol_new_): Remove tests for macro FFECOM_symbolHOOK.Andreas Jaeger13-123/+57
* symbol.c (ffesymbol_new_): Remove tests for macro FFECOM_symbolHOOK. * symbol.h: Likewise. * storag.c (ffestorag_new): Remove tests for macro FFECOM_storageHOOK. * storag.h: Likewise. * lab.c (ffelab_new): Remove tests for macro FFECOM_labelHOOK. * lab.h: Likewise. * global.c: Remove tests for macro FFECOM_globalHOOK. * global.h (struct _ffeglobal_): Likewise. * bld.h: Remove tests for macros FFECOM_constantHOOK, FFECOM_nonterHOOK, FFECOM_globalHOOK, FFECOM_labelHOOK, FFECOM_storageHOOK, FFECOM_symbolHOOK. Remove code dependend on FFECOM_itemHOOK. * bld.c: Likewise. * com.h (FFECOM_constantHOOK): Remove define. (FFECOM_nonterHOOK): Remove. (FFECOM_globalHOOK): Remove. (FFECOM_labelHOOK): Remove. (FFECOM_storageHOOK): Remove. (FFECOM_symbolHOOK): Remove. * com.c (ffecom_get_external_identifier_): Remove usage of FFETARGET_isENFORCED_MAIN_NAME. * bld.c: Remove code dependend on FFEBLD_BLANK_, FFECOM_itemHOOK. (ffebld_new_accter): Likewise. (ffebld_new_arrter): Likewise. (ffebld_new_conter_with_orig): Likewise. (ffebld_new_item): Likewise. (ffebld_new_labter): Likewise. (ffebld_new_labtok): Likewise. (ffebld_new_none): Likewise. (ffebld_new_one): Likewise. (ffebld_new_symter): Likewise. (ffebld_new_two): Likewise. From-SVN: r67594
2003-06-07Makefile.in (OJBS, c-opts.o): Update.Neil Booth2-2/+8
* Makefile.in (OJBS, c-opts.o): Update. (c-options.c, c-options.h): Rename options.h and options.c. (options.h): Rename options_.h. (opts.o): New. * c-common.h (c_common_handle_option): Replace c_common_decode_option. (c_common_init_options): Update prototype. * c-lang.c (c_init_options): Update prototype. (LANG_HOOKS_HANDLE_OPTION): Override. (LANG_HOOKS_DECODE_OPTION): Drop. * c-opts.c: Include opts.h and options.h instead of c-options.h and c-options.c. (lang_flags): Move to file scope. (find_opt, c_common_decode_option): Remove. (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE): Move to opts.h. (missing_arg): Update prototype. (c_common_init_options): Update for new prototype. (c_common_handle_options): Filenames are passed as N_OPTS. * hooks.c (hook_int_void_0): New. * hooks.h (hook_int_void_0): New. * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default. (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now. (LANG_HOOKS_INITIALIZER): Update. * langhooks.h (init_options): Update. (handle_option): New. * opts.c, opts.h: New files. * opts.sh: Update c file to include opts.h and options.h. * toplev.c: Include opts.h; change options.h to options_.h. (parse_options_and_default_flags): Get lang_mask, use handle_option for language-specific handling. * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop. (LANG_HOOKS_HANDLE_OPTION): Override. (objc_init_options): Update. ada: * misc.c (gnat_init_options): Update. cp: * cp-lang.c (LANG_HOOKS_DECODE_OPTON): Drop. (LANG_HOOKS_HANDLE_OPTION): Override. * cp-tree.h (cxx_init_options): Update. * lex.c (cxx_init_options): Update. f: * com.c (ffe_init_options): Update. java: * lang.c (java_init_options): Update. From-SVN: r67584
2003-06-05install.tex: Document profiledbootstrap.Jan Hubicka2-1/+11
* install.tex: Document profiledbootstrap. * Makefile.tpl (profiledbootstrap): New target. * Makefile.in (profiledbootstrap): New target. * Makefile.in (clean, distclean): Kill new stages (POSTSTAGE1_FLAGS_TO_PASS): Break from ... (STAGE2_FLAGS_TO_PASS): ... this one. (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New. (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS. (stageprofile_build, stageprofile_copy, stagefeedback_build, stagefeedback_copy): New. (restageprofile, restagefeedback, stageprofile-start, stageprofile, stagefeedback-start): Likewise. * Make-lang.in: Add support for stageprofile and stagefeedback From-SVN: r67498
2003-06-04g77spec.c (lang_specific_driver): Remove ALT_LIBM usage.Andreas Jaeger2-5/+5
* g77spec.c (lang_specific_driver): Remove ALT_LIBM usage. * g++spec.c (lang_specific_driver): Remove ALT_LIBM usage. From-SVN: r67419
2003-06-01ste.c (ffeste_R838): Handle ERROR_MARK.Bud Davis2-10/+22
2003-06-01 Bud Davis <bdavis9659@comcast.net> * ste.c (ffeste_R838): Handle ERROR_MARK. (ffeste_R839): Ditto. From-SVN: r67295
2003-06-01lex.c (ffelex_file_fixed): Remove usage of REDUCE_CARD_SIZE_AFTER_BIGGY.Andreas Jaeger4-68/+23
* lex.c (ffelex_file_fixed): Remove usage of REDUCE_CARD_SIZE_AFTER_BIGGY. * expr.c (ffeexpr_exprstack_push_operand_): Remove code depenend on WEIRD_NONFORTRAN_RULES. * com.c (ffecom_arg_ptr_to_expr): Remove PASS_HOLLERITH_BY_DESCRIPTOR dependend code. (ffecom_const_expr): Remove usage of NEWCOMMON. (ffecom_expand_let_stmt): Remove MOVE_EXPR. From-SVN: r67287
2003-05-31re PR fortran/10843 (g77 -ffree-form rejects "GO TO".)Bud Davis2-1/+23
2003-05-31 Bud Davis <bdavis9659@comcast.net> PR fortran/10843 * sta.c (ffesta_second_): Parse GO TO correctly, even in free source format. From-SVN: r67276
2003-05-31function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE usage.Andreas Jaeger2-53/+8
* function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE usage. * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE. * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE. * system.h: Poison ALLOCATE_TRAMPOLINE. * doc/tm.texi (Misc): Remove HANDLE_PRAGMA. * system.h: Poison HANDLE_PRAGMA. In f/ * lex.c (ffelex_hash_): Remove HANDLE_PRAGMA and HANDLE_GENERIC_PRAGMA dependend code, remove #if 0 code. (pragma_getc): Removed. (pragma_ungetc): Removed. From-SVN: r67274
2003-05-31com.c (ffecom_init_0): Define built-in functions for tan and atan.Roger Sayle3-2/+21
* com.c (ffecom_init_0): Define built-in functions for tan and atan. * com-rt.def: Use then to implement g77's tan and atan intrinsics. From-SVN: r67260
2003-05-22com.c (ffecom_sym_transform_): Error out on unallocatable storage after type ↵Bud Davis2-5/+10
is set. 2003-05-22 Bud Davis <bdavis9659@comcast.net> * com.c (ffecom_sym_transform_): Error out on unallocatable storage after type is set. From-SVN: r67097
2003-05-18intdoc.in: Fix documentation of IDATE.Toon Moene4-12/+20
2003-05-18 Toon Moene <toon@moene.indiv.nluug.nl> * intdoc.in: Fix documentation of IDATE. * intdoc.texi: Regenerate. * news.texi: Update due to also fixing it in 3.3.1. From-SVN: r66931
2003-05-16* doc/bugreport.texi, f/g77.texi: Remove most of the preface of the bug ↵Wolfgang Bangerth2-20/+7
reporting section. From-SVN: r66863
2003-05-15bugreport.texi: Remove most of the bug reporting instructions and merge them ↵Wolfgang Bangerth2-340/+11
into bugs.html. * doc/bugreport.texi: Remove most of the bug reporting instructions and merge them into bugs.html. From-SVN: r66825
2003-05-13diagnostic.c (output_format): Add support for %m.Zack Weinberg2-1/+7
* diagnostic.c (output_format): Add support for %m. (output_printf, output_verbatim, diagnostic_set_info, verbatim): Set err_no field of the text_info structure being initialized. (fatal_io_error): Delete function. * diagnostic.h (text_info): Add err_no field. * toplev.h (fatal_io_error): Delete prototype. * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c * f/com.c, java/jcf-parse.c, java/jcf-write.c, java/lex.c * objc/objc-act.c: Replace all calls to fatal_io_error with calls to fatal_error; add ": %m" to the end of all the affected error messages. From-SVN: r66769
2003-05-12diagnostic.c (diagnostic_for_decl): Take a diagnostic_context argument.Zack Weinberg2-3/+8
* diagnostic.c (diagnostic_for_decl): Take a diagnostic_context argument. Restructure to be consistent with diagnostic_report_diagnostic. (diagnostic_count_diagnostic): Now static. Take a diagnostic_info argument, not just a diagnostic_t. Some code moved here from internal_error. Move a case label for clarity. (diagnostic_action_after_output): New function. Code moved here from internal_error and fatal_error. (bug_report_request): New #define so that this text appears in only one place. (diagnostic_report_diagnostic): Update to match changes to diagnostic_count_diagnostic. Call diagnostic_action_after_output. (diagnostic_set_info): Call gettext here. (pedwarn): Update comment. Don't call gettext here. (sorry): Use report_diagnostic. Don't call gettext here. (fatal_error): Remove final fnotice and exit, but call real_abort to prevent warnings about noreturn function returning. (internal_error): Likewise. Don't do ICE suppression here nor call context->internal_error. (warning_with_decl): Suppress for decls in system headers. Adjust call to diagnostic_for_decl. (pedwarn_with_decl): Likewise. (error_with_decl): Adjust call to diagnostic_for_decl. (error_recursion): Use bug_report_request. * diagnostic.h: Remove prototype of diagnostic_count_diagnostic. * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call diagnostic_count_diagnostic. f: * bad.c: Don't call diagnostic_count_diagnostic. From-SVN: r66728
2003-05-12com.c (ffecom_init_0): Define built-in functions for atan2, exp, floor, ↵Roger Sayle3-32/+92
fmod, log and pow. * com.c (ffecom_init_0): Define built-in functions for atan2, exp, floor, fmod, log and pow. (duplicate_decls): Preserve assembler name when redeclaring a built-in. * com-rt.def: Implement using the built-in forms of the above functions rather than calling the standard C library directly. Correct some of the run-time prototype "codes". From-SVN: r66714
2003-05-11re PR fortran/10726 (Documentation for function "IDate Intrinsic (Unix)" is ↵Toon Moene5-10/+30
wrong) 2003-05-11 Toon Moene <toon@moene.indiv.nluug.nl> PR fortran/10726 * intdoc.in: Fix documentation of IDATE. * intdoc.texi: Regenerate. * g77.texi: Document completion of INTEGER*n support. * news.texi: Update due to the above. From-SVN: r66685
2003-05-08re PR fortran/8485 (g77 doesn't accept INTEGER*8 constant in PARAMETER ↵Roger Sayle3-16/+118
multiplication) PR fortran/8485 * target.h (FFETARGET_REAL_VALUE_FROM_INT_): Cast to HOST_WIDE_INT instead of long. (FFETARGET_REAL_VALUE_FROM_LONGLONG_): New macro. (FFETARGET_LONGLONG_FROM_INTS_): New macro. (ffetarget_convert_complex1_integer4): Implement. (ffetarget_convert_complex2_integer4): Implement. (ffetarget_convert_integer4_complex1): Implement. (ffetarget_convert_integer4_complex2): Implement. (ffetarget_convert_integer4_real1): Implement. (ffetarget_convert_integer4_real2): Implement. (ffetarget_convert_real1_integer4): Implement. (ffetarget_convert_real2_integer4): Implement. * com.c (ffecom_constantunion): Handle INTEGER*8. (ffecom_constantunion_with_type): Likewise. * g77.f-torture/compile/8485.f: New test case. From-SVN: r66596
2003-05-03com.c (ffecom_do_entry_): Use location_t and input_location directly.Nathan Sidwell5-43/+42
* com.c (ffecom_do_entry_): Use location_t and input_location directly. (ffecom_gen_sfuncdef_): Likewise. (ffecom_start_progunit_): Likewise. (ffecom_sym_transform_): Likewise. (ffecom_sym_transform_assign_): Likewise. * lex.c (ffelex_hash_): Likewise. (ffelex_include_): Likewise. * std.c (ffestd_exec_begin): Likewise. (ffestd_exec_end): Likewise. * ste.c (struct gbe_block): Likewise. (ffeste_start_block_): Likewise. (ffeste_start_stmt_): Likewise. From-SVN: r66432
2003-05-03* ansify.c (die_unless): Revert lineno change here.Nathan Sidwell2-1/+5
From-SVN: r66422
2003-05-02Makefile.in (TREE_H): Replace location.h with input.h.Nathan Sidwell2-6/+12
* Makefile.in (TREE_H): Replace location.h with input.h. (GTFILES) Remove location.h (gt-lists.h): Replace gt-location.h with gt-input.h * input.h (input_filename, input_line): Remove variables. (location_s, location_t): Move from location.h. (input_location): New. (input_filename, input_line): New #defines. * location.h: Remove. * tree.h: Replace location.h with input.h. (input_filename, input_line): Remove. * diagnostic.h: Replace location.h with input.h. * gcc.h (input_filename, input_filename_length): Remove declarations. * toplev.c (input_filename, input_line): Remove. (input_location): Define. (push_srcloc, pop_srcloc): Adjust. * diagnostic.c (diagnostic_report_current_module): Adjust. f: * lex.c (ffelex_file_pop_): Adjust file_stack member use. (ffelex_file_push_): Likewise. (ffelex_hash_): Likewise. java: * lex.h (input_lineno): Remove declaration. * parse-scan.y: #include input.h. (input_filename): Remove declaration. (input_location): Add definition. (input_line): Remove definition. From-SVN: r66378
2003-05-01input.h (lineno): Rename to ...Nathan Sidwell8-48/+63
* input.h (lineno): Rename to ... (input_line): ... here. * tree.h (lineno): Rename to ... (input_line): ... here. * scan.h (lineno): Rename to ... (input_line): ... here. * toplev.c (lineno): Rename to ... (input_line): ... here. (push_srcloc, pop_srcloc): Rename lineno to input_line. * c-common.c (c_expand_start_cond, fname_decl): Likewise. * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag, store_parm_decls, c_expand_body_1): Likewise. * c-errors.c (pedwarn_c99): Likewise. * c-format.c (status_warning): Likewise. * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise. * c-opts.c (c_common_post_options, c_common_parse_file): Likewise. * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise. * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var, gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt, genrtl_for_stmt, build_break_stmt, build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt, prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise. * coverage.c (create_coverage): Likewise. * diagnostic.c (pedwarn, sorry, error, fatal_error, internal_error, warning, diagnostic_report_current_module, inform): Likewise. * expr.c (expand_expr): Likewise. * integrate.c (expand_inline_function, output_inline_function): Likewise. * rtl-error.c (file_and_line_for_asm): Likewise. * tree-inline.c (find_alloca_call, find_builtin_longjmp_call, walk_tree): Likewise. * tree.c (make_node): Likewise. * ada, cp, f, java, objc, treelang: Likewise. ada * trans.c (build_unit_elab, set_lineno): Rename lineno to input_line. * utils.c (pushdecl, create_label_decl, begin_subprog_body, end_subprog_body): Likewise. * utils2.c (build_call_raise): Likewise. cp * class.c (finish_struct): Rename lineno to input_line. * decl.c (push_binding_level, pop_binding_level, suspend_binding_level, resume_binding_level, make_label_decl, use_label, start_function): Likewise. * decl2.c (warn_if_unknown_interface, start_static_initialization_or_destruction, generate_ctor_or_dtor_function, finish_file): Likewise. * error.c (cp_line_of, print_instantiation_full_context, print_instantiation_context): Likewise. * except.c (check_handlers_1, check_handlers): Likewise. * init.c (create_temporary_var): Likewise. * method.c (use_thunk, synthesize_method): Likewise. * parser.c (cp_lexer_set_source_position_from_token, cp_lexer_get_preprocessor_token): Likewise. * pt.c (push_tinst_level, pop_tinst_level, tsubst_friend_function, instantiate_class_template, tsubst_decl, tsubst, tsubst_expr, instantiate_decl): Likewise. * semantics.c (genrtl_try_block, finish_label_stmt, begin_class_definition, expand_body, genrtl_finish_function): Likewise. * tree.c (build_min_nt, build_min): Likewise. f * ansify.c (die_unless): Rename lineno to input_line. * com.c (ffecom_subscript_check_, ffecom_do_entry_, ffecom_gen_sfuncdef_, ffecom_start_progunit_, ffecom_sym_transform_, ffecom_sym_transform_assign_, bison_rule_pushlevel_, bison_rule_compstmt_, finish_function, store_parm_decls): Likewise. * intrin.c (ffeintrin_fulfill_generic): Likewise. * lex.c (ffelex_hash_, ffelex_include_, ffelex_next_line_, ffelex_file_fixed, ffelex_file_free): Likewise. * std.c (ffestd_exec_end): Likewise. * ste.c (ffeste_emit_line_note_, ffeste_start_block_, ffeste_start_stmt_): Likewise. * ste.h (ffeste_filelinenum, ffeste_set_line): Likewise. java * lex.h (lineno): Rename to ... (input_line): ... here * parse-scan.y (lineno): Rename to ... (input_line): ... here. (reset_report): Rename lineno to input_line. * check-init.c (check_init): Likewise. * class.c (push_class): Likewise. * decl.c (complete_start_java_method, end_java_method): Likewise. * expr.c (expand_byte_code): Likewise. * jcf-parse.c (give_name_to_class, parse_class_file): Likewise. * jcf-write.c (generate_bytecode_insns): Likewise. * lex.c (java_init_lex, java_allocate_new_line, do_java_lex): Likewise. * parse.h (YYNOT_TWICE): Likewise. * parse.y (empty_statement, expression_statement, java_pop_parser_context, java_parser_context_save_global, yyerror, register_fields, method_header, safe_layout_class, find_in_imports_on_demand, create_artificial_method, source_end_java_method, start_complete_expand_method, build_thisn_assign, java_complete_lhs, maybe_absorb_scoping_block): Likewise. objc * objc-act.c (objc_init): Rename lineno to input_line. (build_module_descriptor, build_selector_translation_table, build_protocol_template, build_method_prototype_list_template, build_category_template, build_selector_table, build_class_template, build_super_template, build_ivar_template, build_ivar_list_template, build_method_list_template, build_method_template, add_instance_variable): Likewise. treelang * tree1.c (treelang_init): Rename lineno to input_line. From-SVN: r66333
2003-05-01lex.c (ffelex_file_pop_): Rename parameter from input_filename.Nathan Sidwell2-6/+9
* lex.c (ffelex_file_pop_): Rename parameter from input_filename. (ffelex_file_push_): Likewise. From-SVN: r66330
2003-05-01dwarf2out.c (dwarf2out_init, [...]): Change parameter name from input_filename.Nathan Sidwell2-3/+8
* dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter name from input_filename. f: * ste.c (struct gbe_block): Rename field from input_filename. (ffeste_start_block_, ffeste_start_stmt_): Likewise. From-SVN: r66326
2003-04-17re PR c/10375 (Function-local external decls of builtins don't get attributes)Roger Sayle2-0/+8
2003-04-17 Roger Sayle <roger@eyesopen.com> PR c/10375 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn" function attributes. * cp/decl.c (duplicate_decls): Preserve "const", "noreturn" and "nothrow" function attributes. * f/com.c (duplicate_decls): Preserve "const" and "noreturn" function attributes. From-SVN: r65753
2003-04-14builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.Roger Sayle2-0/+6
* builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type. (BT_FN_PTR_SIZE_SIZE): Likewise. * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP): New built-in functions for malloc, calloc and strdup respectively. * calls.c (special_function_p): No need to handle malloc-like functions any longer. ECF_MALLOC is set via built-in attributes. * c-decl.c (duplicate_decls): Preserve pure and malloc attributes. * cp/decl.c (duplicate_decls): Preserve pure and malloc attributes. * f/com.c (duplicate_decls): Preserve pure and malloc attributes. * doc/extend.texi: Document these new built-in functions. * gcc.dg/builtins-13.c: New test case. * gcc.dg/builtins-14.c: New test case. From-SVN: r65560
2003-04-13tree.c (build_constructor): New function.Zack Weinberg3-15/+24
* tree.c (build_constructor): New function. * tree.h: Prototype it. * c-typeck.c (build_c_cast, pop_init_level) * profile.c (build_function_info_value, build_gcov_info_value) (create_profiler): Use build_constructor. * builtins.c (expand_builtin_args_info): Remove #if 0 blocks. * objc/objc-act.c (build_constructor): Rename objc_build_constructor. Use build_constructor. (build_objc_string_object, objc_add_static_instance) (init_def_list, init_objc_symtab, init_module_descriptor) (generate_static_references, build_selector_translation_table) (build_descriptor_table_initializer, generate_descriptor_table) (build_protocol_initializer, build_ivar_list_initializer) (generate_ivars_list, build_dispatch_table_initializer) (generate_dispatch_table, generate_protocol_list) (build_category_initializer, build_shared_structure_initializer): Update to match. ada: * gigi.h, utils2.c (build_constructor): Rename gnat_build_constructor. Use build_constructor. * decl.c (gnat_to_gnu_entity) * trans.c (tree_transform, pos_to_constructor, extract_values) * ada/utils.c (build_template, convert_to_fat_pointer, convert) (unchecked_convert) * ada/utils2.c (build_binary_op, build_call_raise, build_allocator) (fill_vms_descriptor): Update to match. cp: * class.c (initialize_array) * decl.c (reshape_init) * decl2.c (build_expr_from_tree) * init.c (build_zero_init) * pt.c (tsubst_copy, tsubst_copy_and_build) * rtti.c (tinfo_base_init, generic_initializer, ptr_initializer) (ptm_initializer, class_initializer, get_pseudo_ti_init) * semantics.c (finish_compound_literal) * typeck.c (build_ptrmemfunc1) * typeck2.c (store_init_value, process_init_constructor) (build_functional_cast): Use build_constructor. f: * com.c (ffecom_build_complex_constant_, ffecom_expr_) (ffecom_init_zero_, ffecom_transform_namelist_, ffecom_vardesc_) (ffecom_vardesc_array_, ffecom_vardesc_dims_, ffecom_2) * ste.c (ffeste_io_ialist_, ffeste_io_cilist_, ffeste_io_cllist_) (ffeste_io_icilist_, ffeste_io_inlist_, ffeste_io_olist_): Use build_constructor. java: * class.c (make_field_value, make_method_value, get_dispatch_table) (make_class_data, emit_offset_symbol_table) * constants.c (build_constants_constructor) * java-tree.h (START_RECORD_CONSTRUCTOR) * parse.y (maybe_build_array_element_wfl): Use build_constructor. From-SVN: r65539
2003-04-11re PR fortran/9263 (ICE caused by invalid PARAMETER in implied DO loop)Bud Davis3-4/+40
2003-04-11 Bud Davis <bdavis9659@comcast.net> PR Fortran/9263 * gcc/f/data.c (ffedata_advance_): Check initial, final and increment values for INTEGER typeness. PR Fortran/1832 * libf2c/libI77/iio.c (z_putc): Check for overflowing length of output string. * gcc/f/news.texi: Document these fixes. PR Fortran/9263 * g77.f-torture/noncompile/9263.f: New test PR Fortran/1832 * g77.f-torture/execute/1832.f: New test From-SVN: r65481
2003-03-27* ffe.texi: Don't mention dead file proj.c.Steven Bosscher2-2/+5
From-SVN: r64919
2003-03-27re PR fortran/9793 (Internal compiler error in `float_signal', at toplev.c:2442)Roger Sayle2-1/+8
PR fortran/9793 * target.h (ffetarget_divide_integer1): Perform division by -1 using negation to prevent possible overflow trap on the host. * g77.f-torture/compile/20030326.f: New test case. From-SVN: r64909
2003-03-26re PR fortran/10204 (ffe.texi: contribute URL is outdated)Marcelo Abreu2-1/+6
2003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br> PR fortran/10204 * ffe.texi: Reference the GCC web site in the URL. From-SVN: r64884
2003-03-24re PR fortran/10197 (direct acces files not unformatted by default)Toon Moene2-1/+8
2003-03-24 Bud Davis <bdavis9659@comcast.net> PR fortran/10197 * libI77/open.c (f_open): A DIRECT ACCESS file is UNFORMATTED by default. From-SVN: r64821
2003-03-24re PR c++/7086 (compile time regression)Mark Mitchell2-2/+9
PR c++/7086 * c-typeck.c (c_mark_addressable): Adjust calls to put_var_into_stack. * expr.c (expand_expr): Likewise. * function.c (put_var_into_stack): Add rescan parameter. Do not call fixup_var_refs when rescan is false. (gen_mem_addressof): Likewise. (assign_parms): Adjust calls to put_var_into_stack. (setjmp_protect): Likewise. (setjmp_protect_args): Likewise. * rtl.h (gen_mem_addressof): Change prototype. * stmt.c (expand_decl): Adjust calls to put_var_into_stack. * tree.h (put_var_into_stack): Change prototype. PR c++/7086 * utils2.c: Adjust calls to put_var_into_stack. PR c++/7086 * semantics.c (genrtl_named_return_value): Adjust calls to put_var_into_stack. * typeck.c (cxx_mark_addressable): Likewise. PR c++/7086 * com.c (ffecom_sym_transform_): Adjust calls to put_var_into_stack. (ffe_mark_addressable): Likewise. From-SVN: r64781
2003-03-22com.c (ffecom_constantunion_with_type): New function.Bud Davis5-9/+96
2003-03-22 Bud Davis <bdavis9659@comcast.net> * com.c (ffecom_constantunion_with_type): New function. * com.h (ffecom_constantunion_with_type): Declare. * stc.c (ffestc_R810): Check for kind type. * ste.c (ffeste_R810): Use ffecom_constantunion_with_type to discern SELECT CASE variables. From-SVN: r64709
2003-03-20Makefile.in (STRICT2_WARN): Add @WERROR@.Loren J. Rittle1-1/+1
* Makefile.in (STRICT2_WARN): Add @WERROR@. (GCC_WARN_CFLAGS): Remove $(WERROR). (fixinc.sh-warn): New. * ada/Make-lang.in (ada-warn): Add $(WERROR). * cp/Make-lang.in (cp-warn): Add $(WERROR). * f/Make-lang.in (f-warn): Add $(WERROR). * java/Make-lang.in (java-warn): Add $(WERROR). * treelang/Make-lang.in (treelang-warn): Add $(WERROR). From-SVN: r64606
2003-03-15stb.c (ffestb_R100110_): Allow the number before the X format to be optional ↵Roger Sayle3-24/+10
when not -fpedantic. * stb.c (ffestb_R100110_): Allow the number before the X format to be optional when not -fpedantic. * std.c (ffestd_R1001dump_1010_3_): Delete unused static function. (ffestd_R1001dump_): For the FFESTP_formattypeX case, call ffestd_R1001dump_1010_2_ instead of ffestd_R1001dump_1010_3_. * g77.f-torture/compile/xformat.f: New test case. From-SVN: r64415
2003-03-15c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.Roger Sayle2-2/+6
* c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace. * c-typeck.c (c_tree_expr_nonnegative_p): Likewise. * cfgbuild.c (find_many_sub_basic_blocks): Likewise. (find_sub_basic_blocks): Likewise. * cgraphunit.c (cgraph_expand_functions): Likewise. * dwarf2out.c (prune_unused_types): Likewise. * expr.c (store_field): Likewise. * genextract.c (print_path): Likewise. * haifa-sched.c (schedule_insn): Likewise. * lcm.c (compute_antinout_edge): Likewise. * loop-unroll.c (decide_peel_once_rolling): Likewise. * ra-colorize.c (ra_colorize_free_all): Likewise. * ra-debug.c (dump_igraph): Likewise. (debug_hard_reg_set): Likewise. * reg-stack.c (reg_to_stack): Likewise. * rtlanal.c (refers_to_regno_p): Likewise. * tracer.c (layout_superblocks): Likewise. * cp/tree.c (count_functions): Fix whitespace. * f/ste.c (ffeste_R810): Fix whitespace. From-SVN: r64402
2003-03-15Fix date in last ChangeLog entry.Andreas Jaeger1-1/+1
From-SVN: r64393
2003-03-15g77spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.Andreas Jaeger2-23/+7
* g77spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove. (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove. From-SVN: r64392
2003-03-13g77.texi, [...]: GCC, not GNU CC.Nathanael Nerode5-11/+16
* g77.texi, invoke.texi, g77spec.c, lang-specs.h: GCC, not GNU CC. Especially here. From-SVN: r64289
2003-03-10* com.c (duplicate_decls): Synchronize with C's duplicate_decls.Roger Sayle2-4/+5
From-SVN: r64142
2003-03-08c-common.h (c_common_init, [...]): Update.Neil Booth2-8/+24
* c-common.h (c_common_init, c_common_post_options): Update. * c-objc-common.c (c_objc_common_init): Update for new prototype. * c-opts.c (saved_lineno): New. (c_common_post_options, c_common_init): Update prototypes, move call to cpp_read_main_file from latter to former. * c-tree.h (c_ojbc_common_init): Update. * langhooks-def.h (lhd_post_options): New. (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update. * langhooks.c (lhd_post_options): New. * langhooks.h (struct lang_hooks): Update post_options and init hooks. * toplev.c (no_backend): New. (process_options): Call post_options hook and set main_input_filename and input_filename here. (lang_dependent_init, do_compile): post_options hook moved to process_options. * objc/objc-act.c (objc_init): Update prototype. * objc/objc-act.h (objc_init): Update prototype. ada: * misc.c (gnat_init): Update for new prototype. cp: * cp-tree.h (cxx_init): Update prototype. * lex.c (cxx_init): Similarly. f: * com.c (ffe_init): Update prototype; move code to ffe_post_options. (ffe_post_options): New. java: * lang.c (java_init): Update prototype, move code to java_post_options. (java_post_options): Similarly. treelang: * tree1.c (in_fname): Fix type. (treelang_init): Update prototype and use of in_fname. * treelang.h (in_fname): Fix type. * treetree.c (tree_code_if_start, tree_code_if_else, tree_code_if_end, tree_code_create_function_prototype, tree_code_create_function_initial, tree_code_create_funciton_wrapup, tree_code_create_variable, tree_code_output_expression_statement) : Fix prototypes and use of filenames. * treetree.h: Similarly. From-SVN: r64001
2003-03-04* Make-lang.in (f77.tags): New target.Tom Tromey2-0/+7
From-SVN: r63804
2003-02-20re PR fortran/9038 (-ffixed-line-length-none -x f77-cpp-input gives: ↵Toon Moene2-1/+7
Warning: unknown register name line-length-none) 2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl> PR fortran/9038 * c-opts.c (sanitize_cpp_opts): Add Fortran front end options to be ignored. (c_common_decode_option): Ignore them when preprocessing. From-SVN: r63184
2003-02-04fastjar.texi: Update to GFDL 1.2.Joseph Myers3-2/+6
fastjar: * fastjar.texi: Update to GFDL 1.2. gcc: * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi, doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2. * doc/install.texi: Update copyright dates. Update to GFDL 1.2. gcc/ada: * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2. * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, gnat_ug_wnt.texi: Regenerate. gcc/f: * g77.texi, invoke.texi: Update to GFDL 1.2. gcc/java: * gcj.texi: Update to GFDL 1.2. gcc/treelang: * treelang.texi: Update to GFDL 1.2. libiberty: * libiberty.texi: Update to GFDL 1.2. libstdc++-v3: * docs/html/17_intro/porting.texi: Update to GFDL 1.2. * docs/html/17_intro/porting.html: Regenerate. From-SVN: r62365