aboutsummaryrefslogtreecommitdiff
path: root/gcc/f/parse.c
AgeCommit message (Collapse)AuthorFilesLines
2003-01-12com.c (ffecom_convert_narrow_, [...]): Convert to ISO C style function ↵Kaveh R. Ghazi1-2/+1
definitions. * com.c (ffecom_convert_narrow_, ffecom_convert_widen_, pushdecl_top_level, storedecls, convert, delete_block, insert_block, ffe_init, ffe_mark_addressable, poplevel, ffe_print_identifier, pushdecl, pushlevel, set_block, ffe_signed_or_unsigned_type, ffe_signed_type, ffe_truthvalue_conversion, ffe_type_for_mode, ffe_type_for_size, ffe_unsigned_type, append_include_chain, open_include_file, read_filename_string, read_name_map): Convert to ISO C style function definitions. * parse.c (ffe_parse_file): Likewise. * top.c (ffe_is_digit_string_): Likewise. From-SVN: r61219
2002-09-24update_version: Do not check in files which are unchanged.Zack Weinberg1-1/+1
maintainer-scripts: * update_version: Do not check in files which are unchanged. * gcc_release: Only update the version in gcc/version.c. gcc: * version.c (version_string): Now const char[]. * version.h: Update to match. gcc/ada: * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o. * Makefile.in (TOOLS_LIBS): Add ../../version.o. * gnatvsn.ads: Gnat_Version_String is now a function. * gnatvsn.adb: New file. When asked for Gnat_Version_String, copy the C version_string into a String and return it. * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb, gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb: Remove pragma Ident (Gnat_Version_String). If this was the sole use of package Gnatvsn, remove the with statement too. * gnat1drv.adb: Tweak -gnatv output. gcc/f: * Make-lang.in (g77spec.o): Don't depend on f/version.h. (f/parse.o): Depend on version.h not f/version.h. (g77version.o, f/version.o): Delete all references. * com.c (ffecom_init_0): Fix transposed array indices in bsearch test. * g77spec.c: Don't include f/version.h or refer to ffe_version_string. * parse.c: Use version_string, not ffe_version_string. * version.c, version.h: Delete files. libf2c: * libF77/Version.c: Rename junk to __LIBF77_VERSION__. Add external decls for __LIBI77_VERSION__ and __LIBU77_VERSION__. Delete __G77_LIBF77_VERSION__ (g77__fvers__): Print all three __LIB*77_VERSION__ strings, and __VERSION__ if we have it; nothing else. * libI77/Version.c: Provide only __LIBI77_VERSION__ (formerly junk). * libU77/Version.c: Provide only __LIBU77_VERSION__ (formerly junk). From-SVN: r57461
2002-04-25c-common.h (c_common_parse_file): Update.Neil Booth1-1/+2
* c-common.h (c_common_parse_file): Update. * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. * c-lex.c (YYDEBUG): Get from c-lex.h. (c_common_parse_file): Update. * c-lex.h (YYDEBUG, yydebug): New. * c-parse.in (YYDEBUG): Get from c-lex.h. (c_set_yydebug): Remove. * c-tree.h (c_set_yydebug): Remove. * langhooks-def.h (lhd_do_nothing_i): New. (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove. (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update. * langhooks.c (lhd_do_nothing_i): New. (lhd_set_yydebug): Remove. * langhooks.h (struct lang_hooks): Update. * toplev.c (set_yydebug): New. (compile_file): Update call to parse_file hook. (decode_d_option): Update. ada: * misc.c (gnat_parse_file): Update. cp: * cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. * cp-tree.h (cxx_set_yydebug): Die. * lex.c (YYDEBUG): Get from c-lex.h. (cxx_set_yydebug): Remove. * parse.y: Include c-lex.h. (YYDEBUG): Get from c-lex.h. f: * com.h (ffe_parse_file): Update. * lex.c (ffe_parse_file): Update. java: * java-tree.h (java_parse_file): Update. (java_set_yydebug): Remove. * jcf-parse.c (yydebug): Remove. (java_set_yydebug): Die. (java_parse_file): Update. * lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. objc: * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. From-SVN: r52753
2002-03-17c-common.h (yyparse, [...]): New.Neil Booth1-6/+2
* c-common.h (yyparse, c_common_parse_file): New. * c-lang.c: Include c-common.h. (LANG_HOOKS_PARSE_FILE): Redefine. * c-lex.c: Include c-common.h. (yyparse): Rename c_common_parse_file. Call yyparse. * c-parse.in (yyparse): Remove macro. * c-tree.h (yyparse_1): Remove. * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New. (LANG_HOOKS_INITIALIZER): Update. * langhooks.h (struct lang_hoooks): New hook parse_file. * toplev.c (compile_file): Use parse_file hook. * tree.h (yyparse): Remove. ada: * misc.c (LANG_HOOKS_PARSE_FILE): Redefine. (yyparse): Rename gnat_parse_file. cp: * cp-lang.c (LANG_HOOKS_PARSE_FILE): Redefine. * parse.y (yyparse): Remove macro. f: * com.c (LANG_HOOKS_PARSE_FILE): Redefine. * com.h (ffe_parse_file): New. * parse.c (NAME_OF_STDIN): Remove. (yyparse): Rename ffe_parse_file. java: * java-tree.h (java_parse_file): New. * jcf-parse.c (yyparse): Rename java_parse_file. * lang.c (LANG_HOOKS_PARSE_FILE): Redefine. objc: * objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine. From-SVN: r50926
2001-10-17com.h: Remove FFECOM_targetCURRENT...Richard Henderson1-44/+0
* com.h: Remove FFECOM_targetCURRENT, FFECOM_ONEPASS, BUILT_FOR_270, BUILT_FOR_280, FFECOM_GCC_INCLUDE, all derivitive defines, and all related conditional compilation directives. * bad.c, bld.c, bld.h, com.c, equiv.c, equiv.h, global.h, intdoc.c, intrin.c, intrin.h, lex.c, parse.c, sta.c, std.c, ste.c, ste.h, stt.c, stt.h, stw.h, symbol.c, symbol.h, target.h, top.c: Likewise. From-SVN: r46324
2001-09-11* parse.c (finput): Mark extern.Richard Henderson1-1/+1
From-SVN: r45551
2000-06-21Make-lang.in (F77_SRCS): Remove all .j files.Zack Weinberg1-1/+1
* Make-lang.in (F77_SRCS): Remove all .j files. * Makefile.in (ASSERT_H, CONFIG_H, CONVERT_H, FLAGS_H, GGC_H, GLIMITS_H, HCONFIG_H, INPUT_H, OUTPUT_H, RTL_H, SYSTEM_H, TOPLEV_H, TREE_H): Remove references to .j files. (TCONFIG_H, TM_H): Remove entirely. (deps-kinda): Delete rule. Correct commentary. * assert.j, config.j, convert.j. flags.j, ggc.j, glimits.j, hconfig.j, input.j, output.j, rtl.j, system.j, toplev.j, tree.j, tconfig.j, tree.j: Delete. * ansify.c, bad.c, bit.c, com.c, com.h, intdoc.c, lex.c, parse.c, proj.c, proj.h, ste.c, target.c, target.h, top.c, where.c, where.h: Include parent-directory headers directly. * lex.c: Don't include tree.h twice. From-SVN: r34638
1999-02-15delete/change my email addressCraig Burley1-1/+1
From-SVN: r25221
1998-06-16Cutover to system.h:Craig Burley1-2/+0
Mon Jun 15 22:21:57 1998 Craig Burley <burley@gnu.org> Cutover to system.h: * Make-lang.in: * Makefile.in: * ansify.c: * bad.c: * bld.c: * com.c: * com.h: * expr.c: * fini.c: * g77spec.c: * implic.c: * intdoc.c: * intrin.c: * lex.c: * lex.h: * parse.c: * proj.c: * proj.h: * src.c: * src.h: * stb.c: * ste.c: * target.c: * top.c: * system.j: New file. Use toplev.h where appropriate: * Make-lang.in: * Makefile.in: * bad.c: * bld.c: * com.c: * lex.c: * ste.c: * top.c: * toplev.j: New file. Conditionalize all dumping/reporting routines so they don't get built for gcc/egcs: * bld.c: * bld.h: * com.c: * equiv.c: * equiv.h: * sta.c: * stt.c: * stt.h: * symbol.c: * symbol.h: Use hconfig.h instead of config.h where appropriate: * Makefile.in (proj-h.o): Compile with -DUSE_HCONFIG. * fini.c: Define USE_HCONFIG before including proj.h. * Makefile.in (deps-kinda): Redirect stderr to stdout, to eliminate diagnostics vis-a-vis g77spec.c. * Makefile.in: Regenerate dependencies via deps-kinda. * lex.c (ffelex_file_fixed, ffelex_file_free): Eliminate apparently spurious warnings about uninitialized variables `c', `column', and so on. From-SVN: r20520
1998-06-10New interface for lang_decode_option.Dave Brolley1-5/+12
Wed Jun 10 13:17:32 1998 Dave Brolley <brolley@cygnus.com> * top.h (ffe_decode_option): New argc/argv interface. * top.c (ffe_decode_option): New argc/argv interface. * parse.c (yyparse): New argc/argv interface for ffe_decode_option. * com.c (lang_decode_option): New argc/argv interface. From-SVN: r20409
1998-05-19JCB: update email in header.Dave Love1-1/+1
From-SVN: r19876
1997-08-17INSTALL: Rebuilt.Jeffrey A Law1-5/+2
* INSTALL: Rebuilt. * install.texi: Remove "Object File Differences" section. Remove all references to zzz.o failing comparison tests. * version.c, version.h: Renamed from zzz.c and zzz.h. Remove date and time stamps so a 3 stage build reports no differences. * Make-lang.in: Corresponding changes. * Makefile.in: Likewise. * g77.c, parse.c: Likewise. So 3-stage build compares OK. Rename zzz.[ch] files to version.[ch]. From-SVN: r14824
1997-08-12Initial revisionJeff Law1-0/+93
From-SVN: r14772