aboutsummaryrefslogtreecommitdiff
path: root/gcc/f
AgeCommit message (Collapse)AuthorFilesLines
2003-11-16Makefile.in, [...]: Create TAGS.sub files in each directory and TAGS files ↵Jason Merrill2-3/+9
that include them for... * Makefile.in, objc/Make-lang.in, ada/Make-lang.in, cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in: Create TAGS.sub files in each directory and TAGS files that include them for each front end. From-SVN: r73643
2003-11-12intdoc.in (Signal Intrinsic (subroutine)): Fix texinfo warning using @code.Andreas Jaeger2-3/+4
2003-11-12 Andreas Jaeger <aj@suse.de> * intdoc.in (Signal Intrinsic (subroutine)): Fix texinfo warning using @code. * intdoc.texi: Regenerated. From-SVN: r73491
2003-11-12intdoc.texi (Signal Intrinsic (subroutine)): Fix texinfo warning using @code.Andreas Jaeger2-2/+7
* intdoc.texi (Signal Intrinsic (subroutine)): Fix texinfo warning using @code. From-SVN: r73489
2003-11-04Makefile.in (cpp.dvi): New target split from cpp.info.Kelley Cook2-13/+18
2003-11-03 Kelley Cook <kcook@gcc.gnu.org> * Makefile.in (cpp.dvi): New target split from cpp.info. (gcc.dvi): New target split from gcc.info. (gccint.dvi): New target split from gccint.info. (cppinternals.dvi): New target split from cppinternals.info (gccinstall.info): New specific rule. (gccinstall.dvi): Likewise. (dvi): Move targets to $(docobjdir). ($(docobjdir)/%.dvi): New implicit rule. ada/ 2003-11-03 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (dvi): Move targets to $(docobjdir). (gnat_ug_vms.dvi): Simplify rule and adjust target. (gnat_ug_wnt.dvi): Likewise. (gnat_ug_unx.dvi): Likewise. (gnat_ug_vxw.dvi): Likewise. (gnat_rm.dvi): Likewise. (gnat-style.dvi): Likewise. f/ 2003-11-03 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (dvi): Move targets to $(docobjdir). (g77.dvi): Simplify rule. (g77.info): Sinplify rule. (g77.1): Delete. (g77.pod): New intermediate rule. java/ 2003-11-03 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (dvi): Move targets to $(docobjdir). (gcj.dvi): Simplify rule and adjust target. (gcj.info): Simplify rule. (gcj.pod): New intermediate rule. (gcjh.pod): Likewise. (jv-scan.pod): Likewise. (jcf-dump.pod): Likewise. (gij.pod): Likewise. (jv-convert.pod): Likewise. (rmic.pod): Likewise. (rmiregistry.pod): Likewise. (gcj.1): Delete. (gcjh.1): Delete. (jv-scan.1): Delete. (jcf-dump.1): Delete. (gij.1): Delete. (jv-convert.1): Delete. (rmic.1): Delete. (rmiregistry.1): Delete. treelang/ 2003-11-03 Kelley Cook <kcook@gcc.gnu.org> * Make-lang.in (dvi): Move targets to $(docobjdir). (treelang.dvi): Simplify rule and adjust target. (treelang.info): Simplify rule. (parse.o): Correct dependencies. (TREE_EXE): Delete doubled suffix append. From-SVN: r73238
2003-10-31com.c (ffecom_sym_transform_): Set tree type of offset to ssizetype.Jakub Jelinek2-2/+9
* com.c (ffecom_sym_transform_): Set tree type of offset to ssizetype. From-SVN: r73127
2003-10-21Make-lang.in (f/g77.1): Honor $(docobjdir).Kelley Cook2-13/+19
* Make-lang.in (f/g77.1): Honor $(docobjdir). ($(docobjdir)/g77.info): Replace $(srcdir)/doc with $(docdir). (f/g77.dvi): Likewise. From-SVN: r72776
2003-10-21* haifa-sched.c (choose_ready): Initialize index.Jan Hubicka2-1/+5
From-SVN: r72756
2003-10-21Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.Mark Mitchell2-1/+7
* Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir. (gnat_ug_vmx.info): Likewise. (gnat_ug_vxw.info): Likewise. (gnat_ug_wnt.info): Likewise. (gnat_rm.info): Likewise. (gnat-style.info): Likewise. * Make-lang.in ($(docobjdir)/g77.info): Add dependency on stmp-docobjdir. * Make-lang.in ($(docobjdir)/treelang/treelang.info): Depend on stmp-docobjdir. From-SVN: r72742
2003-10-20Makefile.in (install-info): Simplify.Mark Mitchell2-24/+17
* Makefile.in (install-info): Simplify. ($(DESTDIR)$(infodir)/%.info): New rule. * configure.in (target_list): Remove install-info. * doc/.cvsignore (gcc.info*): Remove. (gccint.info*): Likewise. (gccinstall.info*): Likewise. (cpp.info*): Likewise. (cppinternals.info*): Likewise. (*.info*): Add it. * doc/sourcebuild.texi: Update description of install-info. * objc/Make-lang.in (objc.install-info): Remove. 2003-10-20 Mark Mitchell <mark@codesourcery.com> * Make-lang.in (ada.install-info): Remove target. (info): New target. (install-info): Likewise. (gnat_ug_unx.info): Simplify rule. (gnat_ug_vmx.info): Likewise. (gnat_ug_vxw.info): Likewise. (gnat_ug_wnt.info): Likewise. (gnat_rm.info): Likewise. (gnat-style.info): Likewise. 2003-10-20 Mark Mitchell <mark@codesourcery.com> * Make-lang.in (c++.install-info): Remove. Mon Oct 20 13:49:43 2003 Mark Mitchell <mark@codesourcery.com> * Make-lang.in (.PHONY): Remove f77.info, f77.install-info. (info): Update dependencies. ($(srcdir)/f/g77.info): Replace with ... ($(docobjdir)/g77.info): ... this. (f77.install-info): Remove. (install-info): New target. 2003-10-20 Mark Mitchell <mark@codesourcery.com> * Make-lang.in (info): Update dependencies. (java.install-info): Remove. ($(srcdir)/java/gcj.info): Replace with ... ($(docobjdir)/gcj.info): ... this. 2003-10-20 Mark Mitchell <mark@codesourcery.com> * Make-lang.in (info): Use docobjdir. ($(srcdir)/treelang/treelang.info): Replace with ... ($(docobjdir)/treelang/treelang.info): ... this. (install-info): New target. From-SVN: r72718
2003-10-06re PR bootstrap/12512 (Pattern rule for %.dvi breaks make dvi in objc)Mark Mitchell2-4/+12
PR bootstrap/12512 * Makefile.in (info): Use double-colon rules. (dvi): Likewise. (generated-manpages): Likewise. * configure.in: Do not create lang.info, lang.dvi, or lang.generated-manpages hooks. * configure: Regenerated. * objc/Make-lang.in (objc.info): Remove. (objc.dvi): Remove. (objc.generated-manpages): Remove. * doc/sourcebuild.texi: Update description of info, dvi, and generated-manpages hooks. * Make-lang.in (ada.info): Replace with ... (info): ... this. (ada.dvi): Replace with ... (dvi): ... this. * Make-lang.in (c++.info): Remove. (c++.dvi): Remove. (c++.generated-manpages): Replace with ... (generated-manpages): ... this. * Make-lang.in (f77.info): Replace with ... (info): ... this. (f77.dvi): Replace with ... (dvi): ... this. (f77.generated-manpages): Replace with ... (generated-manpages): ... this. * Make-lang.in (java.info): Replace with ... (info): ... this. (java.dvi): Replace with ... (dvi): ... this. (java.generated-manpages): Replace with ... * Make-lang.in (treelang.info): Replace with ... (info): ... this. * Make-lang.in (treelang.dvi): Replace with ... (dvi): ... this. From-SVN: r72135
2003-09-29target.c (FFETARGET_ATOF_): Delete.Zack Weinberg3-9/+12
f: * target.c (FFETARGET_ATOF_): Delete. (ffetarget_real1, ffetarget_real2): Use real_from_string directly. * target.h (FFETARGET_REAL_VALUE_FROM_INT_, FFETARGET_REAL_VALUE_FROM_LONGLONG_): Use mode_for_size, don't refer to SFmode or DFmode directly. From-SVN: r71922
2003-09-28c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not file and line ↵Richard Henderson2-2/+6
separately. * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not file and line separately. f/ * com.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not file and line separately. java/ * check-init.c (check_init): Save and restore input_location instead of file and line separately. * decl.c (java_expand_body): Likewise. * jcf-write.c (generate_bytecode_insns): Likewise. * parse.y (safe_layout_class): Likewise. * jcf-parse.c (read_class, parse_class_file): Likewise. (java_parse_file): Use %H for warning locator. From-SVN: r71886
2003-09-21Revert DECL_SOURCE_LOCATION -> TREE_LOCUS change.Richard Henderson3-5/+10
From-SVN: r71641
2003-09-21tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.Richard Henderson3-6/+10
* tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const. (TREE_FILENAME, TREE_LINENO): Likewise. (set_tree_locus, copy_tree_locus, set_tree_file_line): New. (TREE_LOCUS_SET_P): New. * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c, diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c, print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c, tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c, config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match. ada/ * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and change to const. cp/ * class.c, cp-tree.h, decl.c, decl2.c, error.c, init.c, method.c, optimize.c, pt.c, semantics.c, tree.c: Update for DECL_SOURCE_LOCATION rename and change to const. f/ * com.c, ste.c: Update for DECL_SOURCE_LOCATION rename and change to const. java/ * class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y, resource.c: Update for DECL_SOURCE_LOCATION rename and change to const. treelang/ * treetree.c: Update for DECL_SOURCE_LOCATION rename and change to const. From-SVN: r71636
2003-09-21news.texi: Update with fixed PR's.Toon Moene2-1/+9
2003-09-21 Toon Moene <toon@moene.indiv.nluug.nl> * news.texi: Update with fixed PR's. From-SVN: r71629
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