aboutsummaryrefslogtreecommitdiff
path: root/gcc/f
AgeCommit message (Collapse)AuthorFilesLines
2003-09-21g77.texi: Remove ancient part about debugging COMMON and EQUIVALENCE not ↵George Helffrich2-7/+5
correctly. 2003-09-21 George Helffrich <bugzilla@w170.uklinux.net> * g77.texi: Remove ancient part about debugging COMMON and EQUIVALENCE not correctly. From-SVN: r71623
2003-09-18tree.def (FFS_EXPR, [...]): Delete unused tree codes.Roger Sayle2-3/+6
* tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): Delete unused tree codes. * c-common.c (c_common_truthvalue_conversion): Delete references to FFS_EXPR and POPCOUNT_EXPR. * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR. (pp_c_expression): Likewise. * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long and long long variants. * cp/lex.c (init_operators): Remove operator_name_info for FFS_EXPR. * cp/class.c (instantiate_type): Remove FFS_EXPR case. * f/com.c (ffecom_overlap_): Remove FFS_EXPR case. (ffecom_tree_canonize_ref_): Likewise. (ffe_truthvalue_conversion): Likewise. * java/expr.c (java_truthvalue_conversion): Remove FFS_EXPR case. * java/check-init.c (check_init): Likewise. From-SVN: r71525
2003-09-01c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.Josef Zlomek2-2/+5
* c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR. * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR. * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR. (fold): Kill BIT_ANDTC_EXPR and label bit_and. * tree.def (BIT_ANDTC_EXPR): Kill. * error.c (dump_expr): Kill BIT_ANDTC_EXPR. * lex.c (init_operators): Kill BIT_ANDTC_EXPR. * pt.c (tsubst_copy): Kill BIT_ANDTC_EXPR. * typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR. (tsubst_copy_and_build): Kill BIT_ANDTC_EXPR. * com.c (ffecom_overlap_): Kill BIT_ANDTC_EXPR. (ffecom_tree_canonize_ref_): Kill BIT_ANDTC_EXPR. From-SVN: r70972
2003-07-31* com.c (ffecom_init_0): Use `dconsthalf'.Kaveh R. Ghazi2-7/+6
From-SVN: r69991
2003-07-19fixfixes.c [...]: Remove unnecessary casts.Kaveh R. Ghazi19-113/+86
gcc: * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c fixinc/server.c objc/objc-act.c: Remove unnecessary casts. f: * com.c data.c expr.c fini.c g77spec.c global.c lab.c lex.c name.c sta.c stc.c std.c storag.c stt.c stw.c symbol.c target.c type.c: Remove unnecessary casts. cp: * call.c class.c decl.c decl2.c g++spec.c lex.c parser.c pt.c rtti.c semantics.c typeck.c: Remove unnecessary casts. java: * class.c java-tree.h jcf-write.c jvspec.c: Remove unnecessary casts. treelang: * treetree.c: Remove unnecessary casts. From-SVN: r69593
2003-07-17c.opt: Document Uncodumented; use it.Neil Booth3-239/+91
* c.opt: Document Uncodumented; use it. Document ObjC options. * opts.c (print_filtered_help): Skip undocumented switches. * opts.h (CL_UNDOCUMENTED): New. * opts.sh: Handle Undocumented. * toplev.c (documented_lang_options): Prevent its becoming empty. f: * lang-options.h: Remove. * lang.opt: Document most options. objc: * lang-options.h: Remove. From-SVN: r69494
2003-07-14* lang-specs.h (f77-cpp-input): Use -o to specify the CPP output file.Geoffrey Keating2-1/+5
From-SVN: r69344
2003-07-10ffe.texi: Correctly use @var{srcdir}.Toon Moene2-7/+11
2003-07-10 Toon Moene <toon@moene.indiv.nluug.nl> * ffe.texi: Correctly use @var{srcdir}. From-SVN: r69201
2003-07-09re PR fortran/11301 (ICE with -fno-globals)Toon Moene2-1/+7
2003-07-09 Toon Moene <toon@moene.indiv.nluug.nl> PR Fortran/11301 * com.c (ffecom_sym_transform_): finish_decl should have the same last argument as start_decl. From-SVN: r69155
2003-07-08Make-lang.in (f/g77.dvi): Use PWD_COMMAND.Rainer Orth2-1/+5
f: * Make-lang.in (f/g77.dvi): Use PWD_COMMAND. java: * Make-lang.in (java/gcj.dvi): Use PWD_COMMAND. From-SVN: r69089
2003-07-08system.h: Poison MAP_CHARACTER.Zack Weinberg2-5/+4
* system.h: Poison MAP_CHARACTER. * config/i370/i370-protos.h (mvs_map_char): Delete. * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete. * config/i370/i370.h (MAP_CHARACTER): Delete definition. (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER. f: * lex.c: Remove error block #ifdef MAP_CHARACTER. From-SVN: r69086
2003-07-07rtl.h (emit_line_note): Take a location_t.Nathan Sidwell3-3/+9
* rtl.h (emit_line_note): Take a location_t. (emit_line_note_force): Remove. (set_file_and_line_for_statement): Take a location_t. * tree.g (emit_line_note): Take a location_t. * emit-rtl.c (emit_line_note): Take a location_t. (emit_line_note_force): Remove. * function.c (init_function_start): Adjust emit_line_note call. (expand_function_end): Use force_next_line_note, not emit_line_note_force. * c-parse.in (maybe_type_qual): Adjust emit_line_note calls. * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt, genrtl_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt): Likewise. * expr.c (expand_expr): Likewise. * integrate.c (expand_inline_function): Likewise. * stmt.c (set_file_and_line_for_stmt): Take a location_t. (expand_decl_init): Adjust emit_line_note call. * ada/trans.c (build_unit_elab, set_lineno): Adjust emit_line_note calls. * cp/semantics.c: (genrtl_try_block) Adjust emit_line_note calls. * f/com.c (bison_rule_pushlevel_, bison_rule_compstmt_): Adjust emit_line_note calls. * f/ste.c (ffeste_emit_line_note_): Likewise. * java/expr.c (expand_byte_code): * treelang/treetree.c (tree_code_if_start, tree_code_if_else, tree_code_if_end, tree_code_create_function_initial, tree_code_create_function_wrapup, tree_code_generate_return, tree_code_output_expression_statement): Adjust emit_line_note calls. From-SVN: r69047
2003-07-06Patch from Art HaasArt Haas1-8/+8
* f/global.c (ffeglobal_type_string_): Fix obsolete GCC array initializer syntax. From-SVN: r69028
2003-07-06bad.c: Convert () to (void) in function definitions.Andreas Jaeger30-374/+386
* bad.c: Convert () to (void) in function definitions. * bld.c: Likewise. * data.c: Likewise. * equiv.c: Likewise. * expr.c: Likewise. * global.c: Likewise. * implic.c: Likewise. * info.c: Likewise. * intdoc.c: Likewise. * intrin.c: Likewise. * lab.c: Likewise. * lex.c: Likewise. * malloc.c: Likewise. * src.c: Likewise. * st.c: Likewise. * sta.c: Likewise. * stb.c: Likewise. * stc.c: Likewise. * std.c: Likewise. * ste.c: Likewise. * storag.c: Likewise. * stt.c: Likewise. * stw.c: Likewise. * symbol.c: Likewise. * top.c: Likewise. * where.c: Likewise. * com.c: Convert prototypes to ISO C90. * com.h: Likewise. * g77spec.c: Likewise. From-SVN: r69014
2003-07-06c-common.h (c_comon_handle_filename, [...]): New.Neil Booth2-4/+4
* c-common.h (c_comon_handle_filename, c_common_missing_arguement): New. * c-lang.c (LANG_HOOKS_HANDLE_FILENAME, LANG_HOOKS_MISSING_ARGUMENT): New. * c-opts.c (missing_arg): Rename c_common_missing_argument, update to be an appropriate langhook. (c_common_handle_option): Don't handle filenames. (c_common_handle_filename): New. * hooks.c (hook_void_constcharptr, hook_bool_constcharptr_size_t_false): New. * hooks.h (hook_void_constcharptr, hook_bool_constcharptr_size_t_false): New. * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME, LANG_HOOKS_MISSING_ARGUMENT): New. (LANG_HOOKS_INITIALIZER): Update. * langhooks.h (struct lang_hooks): Add handle_filename and missing_argument. * opts.c (handle_option): Don't handle filenames here, but ... (handle_options): ... here. (common_handle_option): Don't handle missing arguments here. * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME, LANG_HOOKS_MISSING_ARGUMENT): New. ada: * misc.c (gnat_handle_option): Don't handle filenames. cp: * cp-lang.c (LANG_HOOKS_HANDLE_FILENAME, LANG_HOOKS_MISSING_ARGUMENT): Override. f: * top.c (ffe_handle_option): Don't handle filenames. java: * lang.c (java_handle_option): Don't handle filenames. From-SVN: r69011
2003-07-05re PR fortran/11301 (ICE with -fno-globals)Toon Moene2-1/+8
2003-07-05 Toon Moene <toon@moene.indiv.nluug.nl> PR Fortran/11301 * com.c (ffecom_sym_transform_): Only install FFEINFO_whereGLOBAL symbols in the global binding level if not -fno-globals. From-SVN: r68972
2003-07-02c-common.h (c_common_init_options): New prototype.Neil Booth3-3/+9
* c-common.h (c_common_init_options): New prototype. * c-opts.c (deferred_size): Remove. (defer_opt): Array is now pre-allocated. (c_common_init_options): Pre-allocate deferred_opts. Make lang_flags unsigned. (push_command_line_options): Free deferred_opts. * hooks.c (hook_uint_uint_constcharptrptr_0): New. * hooks.h (hook_uint_uint_constcharptrptr_0): New. * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update. * langhooks.h (struct lang_hooks): New prototype for init_options. * main.c (main): Cast argv. * opts.c (handle_option, handle_options): Update prototypes. (decode_options): save_argc, save_argv are not global. Constify. * opts.h (decode_options): New prototype. * toplev.c (general_init): New protoype. (save_argv): Make static. (save_argc): Remove. (print_switch_values, general_init): Constify. (toplev_main): Save argv. * toplev.h (toplev_main): Update prototype. (save_argc, save_argv): Remove. ada: * misc.c (save_argc, save_argv): Make static. (gnat_init_options): New prototype. (gnat_init_options): Update. f: * top.c (ffe_init_options): Update prototype. * top.h (ffe_init_options): Update prototype. java: * lang.c (java_init_options): Update prototype. treelang: * tree1.c (treelang_init_options): Update prototype. * treelang.h (treelang_init_options): Update prototype. From-SVN: r68850
2003-06-28dbxout.c (flag_debug_only_used_symbols): Delete redundant declaration.Zack Weinberg2-3/+6
* dbxout.c (flag_debug_only_used_symbols): Delete redundant declaration. f: * com.c (input_file_stack_tick): Delete redundant declaration. java: * gjavah.c (flag_jni): Make non-static. * parse-scan.y (ctxp): Make non-static. From-SVN: r68624
2003-06-26c-opts.c (missing_arg): Make non-static.Neil Booth2-7/+4
* c-opts.c (missing_arg): Make non-static. (c_common_handle_option): Don't check for missing arguments. * opts.c (handle_option): Check for missing arguments. ada: * misc.c (gnat_handle_option): Don't check for missing arguments. f: * top.c (ffe_handle_option): Don't check for missing arguments. java: * lang.c (java_handle_option): Don't check for missing arguments. testsuite: * const-str-2.m: Update. From-SVN: r68517
2003-06-25opts.c (common_handle_option): Add missing break;s.Neil Booth2-0/+5
* opts.c (common_handle_option): Add missing break;s. f: * top.c (ffe_handle_option): Add missing break;. From-SVN: r68457
2003-06-24re PR fortran/11299 (f771 ICE on line directive)Scott Snyder2-0/+8
2003-06-24 Scott Snyder <snyder@fnal.gov> PR fortran/11299 * com.c (ffe_init): Call push_srcloc() to ensure that input_file_stack is initialized. From-SVN: r68437
2003-06-21Makefile.in: Update.Neil Booth3-0/+9
* Makefile.in: Update. * common.opt: New switches. * opts.c: Include diagnostic.h. (common_handle_option): Handle new switches. * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion, flag_if_conversion2, flag_delete_null_pointer_checks, flag_rerun_cse_after_loop): Make extern. (flag_dummy): New. (f_options): Update to use flag_dummy for moved options. (decode_f_option): Some switches moved to opts.c. * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion, flag_if_conversion2, flag_delete_null_pointer_checks, flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops, flag_tracer, flag_thread_jumps, flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops): New. f: * lang.opt: Add -fpreprocessed. * top.c (ffe_handle_option): Handle it. From-SVN: r68315
2003-06-21Makefile.in: Update.Neil Booth1-11/+5
* Makefile.in: Update. * c-opts.c (c_common_handle_option): Don't return -1. * common.opt: New switches. * opts.c: Include rtl.h, ggc.h and output.h. (find_opt): Only stop searching when input switch compares less than the stored switch. Continue searching if greater. (handle_option): No need to handle negative return values. (common_handle_option): Handle new switches. (set_fast_math_flags, fast_math_flags_set_p): New. * toplev.c (set_fast_math_flags, fast_math_flags_set_p): Move to opts.c. (decode_f_option): Some switches moved to opts.c. (parse_options_and_default_flags): No need to cater for negative return values. f: * top.c (ffe_handle_option): No need to return -1 any more. From-SVN: r68307
2003-06-20tree.h (expand_function_end): Remove all parameters.Nathan Sidwell2-1/+5
* tree.h (expand_function_end): Remove all parameters. * function.c (expand_function_end): Remove all parameters. Use input_location. Never expand_end_bindings. * c-decl.c (c_expand_body_1): Adjust expand_function_end call. * coverage.c (create_coverage): Likewise. * ada/utils.c (end_subprog_body): Adjust expand_function_end call. * cp/semantics.c (genrtl_finish_function): Adjust expand_function_end call. * f/com.c (finish_function): Adjust expand_function_end call. * java/class.c (push_class): Use a location_t to save place. (emit_register_classes): Set input_location. Adjust expand_function_end call. * java/resource.c (write_resource_constructor): Likewise. * java/decl.c (end_java_method): Adjust expand_function_end call. * java/parse.y (source_end_java_method): Likewise. * treelang/treetree.c (tree_code_create_function_wrapup): Adjust expand_function_end call. From-SVN: r68255
2003-06-17Makefile.tpl: Remove BUILD_CC stuff.Nathanael Nerode2-4/+8
(toplev) * Makefile.tpl: Remove BUILD_CC stuff. * Makefile.in: Regenerate. (gcc) * configure.in: Replace BUILD_CC references with CC_FOR_BUILD. * configure: Regenerate. * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD. (gcc/f) * Make-lang.in: Replace BUILD_CC references with CC_FOR_BUILD. From-SVN: r68115
2003-06-15c-opts.c (lang_flags): Update for new spelling of flags.Neil Booth2-20/+8
* c-opts.c (lang_flags): Update for new spelling of flags. (write_langs): Similarly. * c.opt: Specify languages. * opts.h: Remove languages. * opts.sh: Recognise front-end defined languages. ada: * lang.opt: Declare Ada. * misc.c (gnat_init_options): Update. doc: * sourcebuild.texi: Update. f: * lang.opt: Declare F77. java: * lang.opt: Declare Java. * lang.c (java_init_options): Update. treelang: * lang.opt: Declare Treelang. Update. * tree1.c (treelang_init_options): Update. From-SVN: r67976
2003-06-14tree.h (init_function_start): Remove filename and line paramters.Nathan Sidwell2-3/+5
* tree.h (init_function_start): Remove filename and line paramters. * function.c (init_function_start): Remove filename and line parameters. Use DECL_SOURCE_LOCATION. * c-decl.c (store_parm_decls): Adjust init_function_start call. (c_expand_body_1): Likewise. * coverage.c (create_coverage): Likewise. * ada/utils.c (begin_subprog_body): Adjust init_function_start call. * cp/decl.c (start_function): Adjust init_function_start call. * cp/method.c (use_thunk): Likewise. * cp/semantics.c (genrtl_start_function): Likewise. * f/com.c (stor_parm_decls): Adjust init_function_start call. * java/class.c (emit_register_classes): Adjust init_function_start call. * java/decl.c (complete_start_java_method): Likewise. * java/resource.c (write_resource_constructor): Likewise. * objc/objc-act.c (build_tmp_function_decl): Set line number to zero. (hack_method_prototype): Adjust init_function_start call. * treelang/treetree.c (tree_code_create_function_initial): Adjust init_function_start call. From-SVN: r67953
2003-06-14Makefile.in: Update to use common.opt and lang_opt_files.Neil Booth5-26/+29
* Makefile.in: Update to use common.opt and lang_opt_files. (c-options.c, c-options.h): Remove. (options.c, options.h): Add. * c-opts.c: Include options.h not c-options.h. * common.opt: New file. * configure, configure.in: Add lang_opt_files. * opts.c: Include flags.h and diagnostic.h. (common_handle_option): New. (handle_option): Update to recognize common options and all language-dependent options. * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New. (struct cl_option): Make flags of type int. * opts.h: Flag option with front ends to which it applies. Handle duplicate options. * toplev.c (filename): Remove. (independent_decode_option): Don't handle filenames and -quiet. (process_options, do_compile): Update. ada: * Make-lang.in: Update to use options.c and options.h. * misc.c: Include options.h not aoptions.h. (gnat_handle_option): Abort on unrecognized switch. (gnat_init_options): Request Ada switches. cp: * Make-lang.in: Remove c-options.o. f: * Make-lang.in: Update to use options.c and options.h. * top.c: Include options.h not f-options.h. (gnat_handle_option): Abort on unrecognized switch. (ffe_init_options): From com.c. Request F77 options. (ffe_handle_options): Abort on unrecognized switch. * com.c (ffe_init_options): Move to top.c. * top.h (fee_init_options): New. java: * Make-lang.in: Update to use options.c and options.h. * lang.c: Include options.h not j-options.h. (java_handle_option): Abort on unrecognized option. (java_init_options): Request Java switches. treelang: * Make-lang.in: Update to use options.c and options.h. * tree1.c: Include options.h not t-options.h. (treelang_init_options): New. (treelang_handle_option): Abort on unrecognized switch. * treetree.c (LANG_HOOKS_INIT_OPTIONS): Override. * treetree.h (treelang_init_options): New. From-SVN: r67941
2003-06-13Mark PR last change.Richard Henderson1-0/+1
From-SVN: r67921
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