aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
1998-05-23toplev.h (tree_node): Provide global declaration to avoid `limited scope' ↵Manfred Hollstein2-0/+9
warnings. * toplev.h (tree_node): Provide global declaration to avoid `limited scope' warnings. From-SVN: r19986
1998-05-23* gcc.dg/980523-1.c: New test.Jeffrey A Law2-0/+55
From-SVN: r19985
1998-05-23test_summary: Display section breaks for each entry in a multilibbed ↵Robert Lipe2-1/+7
target's output. * test_summary: Display section breaks for each entry in a multilibbed target's output. From-SVN: r19980
1998-05-23970915-0.f: New test.Dave Love1-0/+4
1998-05-23 Dave Love <d.love@dl.ac.uk> * g77.f-torture/compile/970915-0.f: New test. From-SVN: r19973
1998-05-23New test.Dave Love1-0/+19
From-SVN: r19972
1998-05-23More commentary.Dave Love1-1/+3
From-SVN: r19971
1998-05-23com.c (ffecom_finish_symbol_transform_): Don't transform statement (nested) ↵Craig Burley2-9/+43
functions... Sat May 23 06:32:52 1998 Craig Burley <burley@gnu.org> * com.c (ffecom_finish_symbol_transform_): Don't transform statement (nested) functions, to avoid gcc compiling them and thus producing linker errors if they refer to undefined exteral functions. But warn if they're unused and -Wunused. From-SVN: r19970
1998-05-22tweakJason Merrill1-1/+1
From-SVN: r19969
1998-05-22* lib/old-dejagnu.exp: Ignore C++ "instantiated from" mesages.Jason Merrill2-0/+6
From-SVN: r19968
1998-05-22cp-tree.def: Add SRCLOC.Jason Merrill6-3/+55
* cp-tree.def: Add SRCLOC. * cp-tree.h: Add struct tree_srcloc and accessor macros. * tree.c (build_srcloc, build_srcloc_here): New fns. * pt.c (add_pending_template): Use build_srcloc_here. (push_tinst_level): Update last_template_error_tick before erroring. (instantiate_decl): Restore lineno and input_filename before calling add_pending_template. * decl2.c (finish_file): Set up lineno and input_filename for pending templates. From-SVN: r19967
1998-05-22decl.c (lang_print_error_function): New fn.Jason Merrill5-8/+34
* decl.c (lang_print_error_function): New fn. (init_decl_processing): Set print_error_function to use it. * errfn.c (cp_thing): Don't call maybe_print_template_context here. * call.c (maybe_handle_ref_bind): Propagate ICS_USER_FLAG and ICS_BAD_FLAG. * cvt.c (ocp_convert): Don't set LOOKUP_NO_CONVERSION for copy-initialization. From-SVN: r19966
1998-05-22expr.c (expand_expr): For {BITFIELD,COMPONENT,ARRAY}_REF...Richard Henderson2-3/+29
* expr.c (expand_expr): For {BITFIELD,COMPONENT,ARRAY}_REF, if the offset's mode is not ptr_mode, convert it. From-SVN: r19965
1998-05-22class.c (build_vtable_entry): Use int_fits_type_p.Jason Merrill2-17/+21
* class.c (build_vtable_entry): Use int_fits_type_p. (build_vtable): Pass a signed offset to build_vtable_entry. (prepare_fresh_vtable, modify_one_vtable, fixup_vtable_deltas1, set_rtti_entry): Likewise. From-SVN: r19964
1998-05-22fold-const.c (ssize_binop): New fn.Jason Merrill3-0/+40
* fold-const.c (ssize_binop): New fn. * tree.h: Declare it. From-SVN: r19963
1998-05-22cp-tree.h: Add comments documenting which LANG_FLAGS are used.Per Bothner2-7/+59
� * cp-tree.h: Add comments documenting which LANG_FLAGS are used. (C_TYPE_VARIABLE_SIZE, C_DECL_VARIABLE_SIZE): Removed, not used. From-SVN: r19960
1998-05-22[multiple changes]Craig Burley1-0/+20
Tue May 19 14:52:41 1998 Craig Burley <burley@gnu.org> * bad.def (FFEBAD_OPEN_UNSUPPORTED, FFEBAD_INQUIRE_UNSUPPORTED, FFEBAD_READ_UNSUPPORTED, FFEBAD_WRITE_UNSUPPORTED, FFEBAD_QUAD_UNSUPPORTED, FFEBAD_BLOCKDATA_STMT, FFEBAD_TRUNCATING_CHARACTER, FFEBAD_TRUNCATING_HOLLERITH, FFEBAD_TRUNCATING_NUMERIC, FFEBAD_TRUNCATING_TYPELESS, FFEBAD_TYPELESS_OVERFLOW): Change these from warnings to errors. Tue May 19 14:51:59 1998 Craig Burley <burley@gnu.org> * Make-lang.in (f77.install-info, f77.uninstall): Use install-info as appropriate. Tue May 19 12:56:54 1998 Craig Burley <burley@gnu.org> * com.c (ffecom_init_0): Rename xargc to f__xargc, in accord with same-dated change to f/runtime. From-SVN: r19959
1998-05-22JCB update.Dave Love2-27/+199
From-SVN: r19958
1998-05-22JCB patch.Dave Love1-6/+6
From-SVN: r19955
1998-05-22bad.def (FFEBAD_OPEN_UNSUPPORTED, [...]): Change these from warnings to errors.Craig Burley1-11/+11
Tue May 19 14:52:41 1998 Craig Burley <burley@gnu.org> * bad.def (FFEBAD_OPEN_UNSUPPORTED, FFEBAD_INQUIRE_UNSUPPORTED, FFEBAD_READ_UNSUPPORTED, FFEBAD_WRITE_UNSUPPORTED, FFEBAD_QUAD_UNSUPPORTED, FFEBAD_BLOCKDATA_STMT, FFEBAD_TRUNCATING_CHARACTER, FFEBAD_TRUNCATING_HOLLERITH, FFEBAD_TRUNCATING_NUMERIC, FFEBAD_TRUNCATING_TYPELESS, FFEBAD_TYPELESS_OVERFLOW): Change these from warnings to errors. From-SVN: r19954
1998-05-22Make-lang.in (f77.install-info, [...]): Use install-info as appropriate.Craig Burley1-0/+12
Tue May 19 14:51:59 1998 Craig Burley <burley@gnu.org> * Make-lang.in (f77.install-info, f77.uninstall): Use install-info as appropriate. From-SVN: r19953
1998-05-22com.c (ffecom_init_0): Rename xargc to f__xargc, in accord with same-dated ↵Craig Burley1-1/+1
change to f/runtime. Tue May 19 12:56:54 1998 Craig Burley <burley@gnu.org> * com.c (ffecom_init_0): Rename xargc to f__xargc, in accord with same-dated change to f/runtime. From-SVN: r19952
1998-05-22JCB updateDave Love1-5/+11
From-SVN: r19951
1998-05-22* pt.c (print_template_context): Use fprintf instead of cp_error.Jason Merrill2-10/+11
From-SVN: r19950
1998-05-22(check_explicit_specialization): Don't mess with a returnedJason Merrill2-1/+3
error_mark_node. From-SVN: r19949
1998-05-21commentJason Merrill1-0/+2
From-SVN: r19948
1998-05-22genextract.c (print_path): Handle zero-length path as a special case.Richard Earnshaw2-0/+13
From-SVN: r19947
1998-05-21pt.c (determine_specialization): Just return an error_mark_node.Jason Merrill4-18/+94
* pt.c (determine_specialization): Just return an error_mark_node. Also print the decl we want in error messages. If we complain, return error_mark_node. (tsubst_friend_function): Set lineno and input_filename so error messages will be useful. (instantiate_template): Just return an error_mark_node. * pt.c (print_template_context): Add new argument. (maybe_print_template_context): New fn. (push_tinst_level): Increment tinst_level_tick. (pop_tinst_level): Likewise. * errfn.c (cp_thing): Call maybe_print_template_context. Use xrealloc instead of xmalloc. * typeck.c (build_unary_op, CONVERT_EXPR): Propagate TREE_CONSTANT. From-SVN: r19946
1998-05-21cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.Hans-Peter Nilsson1-0/+4
� * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767. From-SVN: r19945
1998-05-21cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.Hans-Peter Nilsson1-1/+1
8 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767. From-SVN: r19943
1998-05-21Fix minor ChangeLog typo.Jeff Law1-1/+1
From-SVN: r19941
1998-05-21final.c (JUMP_TABLES_IN_TEXT_SECTION): Provide a default value.Bernd Schmidt19-53/+99
* final.c (JUMP_TABLES_IN_TEXT_SECTION): Provide a default value. (shorten_branches, final_scan_insn): Test value of JUMP_TABLES_IN_TEXT_SECTION instead of just testing whether it is defined. * tm.texi (JUMP_TABLES_IN_TEXT_SECTION): Corresponding changes. * arm/coff.h: Define JUMP_TABLES_IN_TEXT_SECTION to 1. coff.h: Likewise. * i386/386bsd.h: Likewise. * i386/freebsd-elf.h: Likewise. * i386/freebsd.h: Likewise. * i386/netbsd.h: Likewise. * i386/ptx4-i.h: Likewise. * i386/sysv4.h: Likewise. * pa/pa.h: Likewise. * rs6000/linux.h: Likewise. * rs6000/rs6000.h: Likewise. * sh/sh.h: Likewise. * sparc/sp64-elf.h: Likewise. * v850/v850.h: Likewise. * rs6000/sysv4.h: Define JUMP_TABLES_IN_TEXT_SECTION to 0. * i386/linux.h: Define JUMP_TABLES_IN_TEXT_SECTION to (flag_pic). From-SVN: r19940
1998-05-21* Makefile.in (gencheck): Depend on HOST_LIBDEPS.Jeffrey A Law2-1/+3
From-SVN: r19939
1998-05-21regmove.c (gen_add3_insn): New function.J"orn Rennecke2-2/+26
* regmove.c (gen_add3_insn): New function. (fixup_match_2): Use it instead of calling gen_addsi3. From-SVN: r19938
1998-05-21* gcc.dg/980520-1.c: New test.Jeffrey A Law2-0/+21
From-SVN: r19937
1998-05-21alias.c (rtx_equal_for_memref_p): Handle SCRATCH as a memory address.Jeffrey A Law2-0/+9
* alias.c (rtx_equal_for_memref_p): Handle SCRATCH as a memory address. From-SVN: r19936
1998-05-21pt.c (tsubst_friend_class): Don't call redeclare_class_template if the ↵Jason Merrill2-6/+12
template we looked up is the same as... * pt.c (tsubst_friend_class): Don't call redeclare_class_template if the template we looked up is the same as the one we already have. From-SVN: r19935
1998-05-21Makefile.in (TREE_H): Add tree-check.h.Martin v. Löwis5-143/+334
* Makefile.in (TREE_H): Add tree-check.h. (tree-check.h, gencheck): New targets. * gencheck.c: New file. * tree.c (tree_check, tree_class_check): New functions. * tree.h (TREE_CHECK, TREE_CLASS_CHECK): Define. (TYPE_CHECK, DECL_CHECK): Define. Modify all access macros to use generated checking macros. From-SVN: r19934
1998-05-21acconfig.h (HAVE_GAS_MAX_SKIP_P2ALIGN): New tag.John Wehle10-15/+203
* acconfig.h (HAVE_GAS_MAX_SKIP_P2ALIGN): New tag. * configure.in: Check for it. * i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Use it. * final.c (uid_align, uid_shuid, label_align): Make static. (label_align): Change type to struct label_alignment pointer. (LABEL_TO_ALIGNMENT, shorten_branches): Update due to type change. (LABEL_TO_MAX_SKIP): Define. (LABEL_ALIGN_MAX_SKIP, LOOP_ALIGN_MAX_SKIP, LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Provide defaults. (shorten_branches): Record the maximum bytes to skip when aligning a label. (final_scan_insn): Use the maximum bytes to skip when aligning a label if ASM_OUTPUT_MAX_SKIP_ALIGN is available. * i386.h (LOOP_ALIGN_MAX_SKIP, LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define. * i386.c (override_options): i386_align_jumps and i386_align_loops default to 4 if ASM_OUTPUT_MAX_SKIP_ALIGN is available. * invoke.texi: Document new i386 align-loops and align-jumps behavior. From-SVN: r19933
1998-05-21* cplus-dem.c (do_type): Handle volatile qualification.Mark Mitchell2-2/+8
From-SVN: r19932
1998-05-21function.c (init_function_start): Don't call emit_line_note if lineno is 0.Per Bothner1-0/+5
� * function.c (init_function_start): Don't call emit_line_note if lineno is 0. (Can happen when compiling Java .class files.) From-SVN: r19931
1998-05-21function.c (init_function_start): Don't call emit_line_note if lineno is 0.Per Bothner1-2/+4
8 * function.c (init_function_start): Don't call emit_line_note if lineno is 0. (Can happen when compiling Java .class files.) From-SVN: r19930
1998-05-21reload1.c (reload_reg_free_for_value_p): Fix RELOAD_FOR_INPUT end of ↵J"orn Rennecke2-6/+23
lifetime and RELOAD_FOR_OUTPUT start of lifetime. * reload1.c (reload_reg_free_for_value_p): Fix RELOAD_FOR_INPUT end of lifetime and RELOAD_FOR_OUTPUT start of lifetime. From-SVN: r19929
1998-05-21combine.c (nonzero_bits): For paradoxical subregs, take LOAD_EXTENDED_OP ↵J"orn Rennecke2-8/+21
into account. * combine.c (nonzero_bits): For paradoxical subregs, take LOAD_EXTENDED_OP into account. From-SVN: r19928
1998-05-21lex.c: (handle_sysv_pragma): FILE* parameter not used.Dave Brolley5-14/+48
Thu May 21 11:54:44 1998 Dave Brolley <brolley@cygnus.com> * lex.c: (handle_sysv_pragma): FILE* parameter not used. (cpp_reader,parse_in): Add for cpplib. (check_newline): Call handle_sysv_pragma with new interface. (check_newline): Call GET_DIRECTIVE_LINE, not get_directive_line. * input.c: (yy_cur,yy_lim,yy_get_token,GETC): Add for cpplib. (sub_getch): Call GETC for cpplib. * cp-tree.h: (get_directive_line): Different prototype for cpplib. (GET_DIRECTIVE_LINE): Macro wrapper for get_directive_line. * Makefile.in (CXX_OBJS): add @extra_cxx_objs@ for cpplib. From-SVN: r19927
1998-05-21configure.in (extra_c_objs): add prefix.o.Dave Brolley7-179/+218
Thu May 21 11:51:15 1998 Dave Brolley <brolley@cygnus.com> * configure.in (extra_c_objs): add prefix.o. (extra_cxx_objs): extra objects for C++ with cpplib. * configure: Regenerate. * c-tree.h: (get_directive_line): Different prototype for cpplib. (GET_DIRECTIVE_LINE): Macro wrapper for get_directive_line. * c-lex.h: (get_directive_line): Not needed here for cpplib. * c-lex.c: (yy_cur,yy_lim,yy_get_token): Move to c-common.c. (GET_DIRECTIVE_LINE): Move to c-common.c and rename to get_directive_line. * c-common.c (parse_in,parse_options,cpp_token): Declare for cpplib. (yy_cur,yy_lim,yy_get_token,get_directive,line): Moved here from c-lex.c From-SVN: r19926
1998-05-21ANSI does not allow a prototype to specify an item smaller than an int if ↵Kaveh R. Ghazi2-4/+9
the function uses an old-style definition. ANSI does not allow a prototype to specify an item smaller than an int if the function uses an old-style definition. This only worked as a GNUC extension, so stop doing it. * gengenrtl.c (type_from_format, accessor_from_format): Change type of parameter `c' from `char' to `int'. From-SVN: r19922
1998-05-21decl2.c (maybe_make_one_only): New fn.Jason Merrill3-8/+37
* decl2.c (maybe_make_one_only): New fn. (import_export_vtable): Use it. (import_export_decl): Likewise. * pt.c (mark_decl_instantiated): Likewise. From-SVN: r19921
1998-05-21decl2.c (find_representative_member): Rename to ...Mark Mitchell3-55/+92
* decl2.c (find_representative_member): Rename to ... (build_anon_union_vars): New function. (finish_anon_union): Fix stupidity of previous change. From-SVN: r19920
1998-05-20decl.c (grokfndecl): Handle definition of specialization in friend declaration.Jason Merrill3-11/+25
* decl.c (grokfndecl): Handle definition of specialization in friend declaration. * error.c (dump_decl): Fix LOOKUP_EXPR handling. From-SVN: r19919
1998-05-20class.c (delete_duplicate_fields_1): Use DECL_DECLARES_TYPE_P to look for ↵Mark Mitchell10-809/+901
type declarations. * class.c (delete_duplicate_fields_1): Use DECL_DECLARES_TYPE_P to look for type declarations. (finish_struct): Deal with templates on the CLASSTYPE_TAGS list. * cp-tree.h (DECL_DECLARES_TYPE_P): New macro. (finish_member_class_template): Declare. * decl.c (pushtag): Put member class templates on the CLASSTYPE_TAGS list, just as for ordinary member classes. (pushdecl_class_level): Use DECL_DECLARES_TYPE_P. (lookup_tag): Look for IDENTIFIER_CLASS_VALUEs, just as with IDENTIFIER_NAMESPACE_VALUEs. * parse.y (component_decl): Move code to ... * semantics.c (finish_member_class_template): New function. Don't put member class templates on the list of components for a class. * pt.c (classtype_mangled_name): Don't try DECL_CONTEXT on types. In fact, don't use DECL_CONTEXT at all here. From-SVN: r19918