aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1999-09-25cp-tree.h (check_return_expr): New function.Mark Mitchell5-184/+266
* cp-tree.h (check_return_expr): New function. * decl.c (finish_constructor_body): New function. (pushdecl): Put global friend functions in namespace binding level, not the class binding level. (finish_destructor_body): Make sure the dtor_label is always defined. Fix typo in comment. (finish_function): Move generation of constructor-termination code to semantic-analysis time. Move generation of implicit `main' return value to semantic-analysis time. * semantics.c (finish_return_stmt): Generate goto's to ctor_label/dtor_label here. Use check_return_expr to do semantic analysis on the returned expression. * typeck.c (maybe_warn_about_returning_address_of_local): New function split out from c_expand_return. (check_return_expr): Likewise. (c_expand_return): Just generate the RTL for the return. From-SVN: r29663
1999-09-25libiberty.h (make_temp_file): Add a prototype.Kaveh R. Ghazi8-11/+25
include: * libiberty.h (make_temp_file): Add a prototype. libiberty: * choose-temp.c: Remove obsolete comment about gcc. (make_temp_file): Constify a char*. gcc: * collect2.c (make_temp_file): Don't prototype. * gcc.c (make_temp_file): Likewise. * mips.c (mips_make_temp_file): Renamed from `make_temp_file'. From-SVN: r29662
1999-09-25Tidy up assemble_variable()'s handling of uninitialised varaibles.Nick Clifton2-65/+121
From-SVN: r29661
1999-09-25Daily bump.Jeff Law5-5/+5
From-SVN: r29660
1999-09-24cp-tree.h (CPTI_CLEANUP_TYPE): New macro.Mark Mitchell11-36/+137
* cp-tree.h (CPTI_CLEANUP_TYPE): New macro. (cleanup_type): Likewise. (search_tree): Change prototype. * decl.c (local_variable_p): Adjust for new interface to search_tree. (check_default_argument): Likewise. * error.c (dump_expr): Handle INIT_EXPR. * except.c (expand_throw): Don't make cleanup_type a local static. * expr.c (cplus_expand_expr): Don't handle NEW_EXPR. * init.c (build_new): Call build_new_1 directly, rather than building a NEW_EXPR. (build_new_1): Tidy. Don't build a VEC_INIT_EXPR except when processing file-scope initializers. * lex.c (init_parse): Add an opname_tab entry for INIT_EXPR. * tree.c: Include splay-tree.h (no_linkage_helper): Adjust for new interface to search_tree. (search_tree): Pass around pointers to tree nodes, rather than the nodes themselves. Handle VEC_INIT_EXPR. (no_linkage_check): Adjust for new interface to search_tree. (mapcar): Handle VEC_INIT_EXPR. (target_remap): New variable. (bot_manip): Use it. (bot_replace): New function. (break_out_target_exprs): Use it to remap all variables used in a default argument expression. * typeck.c (build_modify_expr): Don't crash when outside a function and presented with an INIT_EXPR assignment * Makefile.in (tree.o): Depend on splay-tree.h. From-SVN: r29659
1999-09-24Changed credit to the right person.Glenn Chambers1-2/+2
From-SVN: r29658
1999-09-24decl.c (insert_block): Removed unconditional `abort'.Glenn Chambers2-1/+4
Fri Sep 24 12:23:05 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * decl.c (insert_block): Removed unconditional `abort'. From-SVN: r29657
1999-09-24re GNATS java.util/47 (Date.toString() returns embedded newline)Tom Tromey10-372/+343
Fix for PR java.util/47: * configure, include/config.h: Rebuilt. * configure.in: Don't look for ctime or ctime_r. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Don't mention natDate.cc. * java/util/natDate.cc: Removed. * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New static fields. (getAvailableIDs): Rewrote. (getTimeZone): Rewrote. * java/util/Date.java (toGMTString): New method. (toLocaleString): New method. (toString): Rewrote. From-SVN: r29656
1999-09-24Cope with down shifting a 32 bit constant on a 64 bit host.Nick Clifton2-2/+8
From-SVN: r29655
1999-09-24Make Pmode be defined in terms of word_mode again now that emit-rtl.cJeff Law1-1/+1
has been fixed. From-SVN: r29654
1999-09-24Allow to distinguish between three classes of builtin functionsBernd Schmidt20-336/+420
From-SVN: r29653
1999-09-24* optabs.c (init_traps): Fix typo in last change.Mark Mitchell2-1/+5
From-SVN: r29652
1999-09-24* toplev.c (rest_of_decl_compilation): Update comment.Mark Mitchell2-3/+9
From-SVN: r29651
1999-09-24decl.c (pushdecl): Don't make local declarations of extern variables give ↵Mark Mitchell3-20/+48
the variable a... * decl.c (pushdecl): Don't make local declarations of extern variables give the variable a DECL_CONTEXT for the function. (make_rtl_for_nonlocal_decl): Don't fuss with obstacks. Simplify. Don't accidentally make RTL for local declarations. (emit_local_var): Handle declarations with asm-specifiers here. From-SVN: r29650
1999-09-24Daily bump.Jeff Law5-5/+5
From-SVN: r29649
1999-09-24elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol in .sbss if appropriate.Geoff Keating4-3/+28
* config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol in .sbss if appropriate. (EXTRA_SECTION_FUNCTIONS): Add sbss. (SBSS_SECTION_ASM_OP): New macro. * config/mips/linux.h (EXTRA_SECTION_FUNCTIONS): Add sbss. (EXTRA_SECTIONS): Add in_sbss. * config/mips/mips.h: Prototype sbss_section. From-SVN: r29648
1999-09-24ir.texi: Improve documentation for TARGET_EXPRs.Mark Mitchell2-3/+26
* ir.texi: Improve documentation for TARGET_EXPRs. Discuss STMT_IS_FULL_EXPR_P. From-SVN: r29647
1999-09-24cp-tree.h (language_function): Add cannot_inline.Mark Mitchell4-19/+42
* cp-tree.h (language_function): Add cannot_inline. * decl.c (start_function): Restore current_function_cannot_inline from the saved value. (save_function_data): Save current_function_cannot_inline. * decl2.c (start_objects): Change prototype. Build the function in function-at-a-time mode. (finish_objects): Likewise. (generate_ctor_or_dtor_function): Adjust accordingly. From-SVN: r29646
1999-09-24cp-tree.h (DECL_ANON_UNION_ELEMS): New macro.Mark Mitchell6-10/+62
* cp-tree.h (DECL_ANON_UNION_ELEMS): New macro. * decl2.c (finish_anon_union): Set DECL_ANON_UNION_ELEMS. Don't call expand_anon_union_decl here * semantics.c (exapnd_stmt): Call it here, instead. * typeck.c (mark_addressable): Addressed variables are implicitly used. From-SVN: r29645
1999-09-24stmt.c (expand_start_bindings): Don't allow cleanup isntructions to disappear.Mark Mitchell2-0/+12
* stmt.c (expand_start_bindings): Don't allow cleanup isntructions to disappear. From-SVN: r29644
1999-09-24* optabs.c (init_traps): Register trap_rtx as a GC root.Mark Mitchell2-4/+9
From-SVN: r29643
1999-09-23cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): New macro.Martin v. Löwis3-93/+145
* cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): New macro. (RECORD_OR_UNION_TYPE_CHECK, LANG_IDENTIFIER_CAST): Likewise. (DEFARG_NODE_CHECK): Remove; replace with DEFAULT_ARG_CHECK. * cp-tree.h: Add tree checking macros to various tree access macros. * ptree.c (print_lang_decl): Test for function or variable before accessing template info. From-SVN: r29642
1999-09-23mips.c (function_arg_pass_by_reference): Define unconditionally, since it's ↵Alexandre Oliva2-1/+6
called unconditionally. * config/mips/mips.c (function_arg_pass_by_reference): Define unconditionally, since it's called unconditionally. From-SVN: r29641
1999-09-23document -fshort-wcharJason Merrill1-0/+4
From-SVN: r29640
1999-09-23lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.Jason Merrill6-9/+27
* lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node. * lang-specs.h: If -fshort-wchar, override __WCHAR_TYPE__. * decl2.c (lang_f_options): Add -fshort-wchar. * cp-tree.h: Declare flag_short_wchar. * decl.c (init_decl_processing): If -fshort-wchar, use 'short unsigned int' for wchar_t. From-SVN: r29639
1999-09-23toplev.c (documented_lang_options): Add -fshort-wchar.Jason Merrill6-16/+35
* toplev.c (documented_lang_options): Add -fshort-wchar. * c-decl.c (c_decode_option): Likewise. (init_decl_processing): If -fshort-wchar, use 'short unsigned int' for wchar_t. * c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node. * gcc.c (default_compilers): If -fshort-wchar, override __WCHAR_TYPE__. * tm.texi (C Dialect Options): Add -fshort-wchar. From-SVN: r29638
1999-09-23dwarf2out.c (output_aranges): Use DW_AT_location to find the symbol for a ↵Jason Merrill2-12/+27
variable. * dwarf2out.c (output_aranges): Use DW_AT_location to find the symbol for a variable. From-SVN: r29637
1999-09-23* cpplib.h (CPP_PREPROCESSED): New macro.Jason Merrill2-5/+7
From-SVN: r29636
1999-09-23Fix PA problem in order of initializations.Alex Samuel2-32/+55
* emit-rtl.c (init_emit_once): Initialize modes first. Also add missing ChangeLog entry. From-SVN: r29635
1999-09-23cpplib.c (handle_directive): Don't complain about `# NUMBER' if we're seeing ↵Jason Merrill2-2/+11
this input for a second time. * cpplib.c (handle_directive): Don't complain about `# NUMBER' if we're seeing this input for a second time. From-SVN: r29634
1999-09-23Revert unintended GGC change.Richard Henderson1-1/+1
From-SVN: r29633
1999-09-23ggc-page.c: New file.Alex Samuel3-1/+1093
* ggc-page.c: New file. * Makefile.in (ggc-page.o): New. Co-Authored-By: Richard Henderson <rth@cygnus.com> From-SVN: r29632
1999-09-23invoke.texi: Document -fdelete-null-pointer-checksJeffrey A Law3-3/+28
* invoke.texi: Document -fdelete-null-pointer-checks * toplev.c (flag_delete_null_pointer_checks): New. (f_options): Add entry for -fdelete-null-pointer-checks. (rest_of_compilation): Conditionalize null pointer check elimination on flag_delete_null_pointer_checks. (main): If -O2 or greater, enable -fdelete-null-pointer-checks From-SVN: r29631
1999-09-23jvspec.c (lang_specific_driver): Don't read spec file if -fsyntax-only given.Tom Tromey2-0/+6
* jvspec.c (lang_specific_driver): Don't read spec file if -fsyntax-only given. From-SVN: r29630
1999-09-23Should have been checked in with Kingdon's change.Jeff Law1-1/+2
From-SVN: r29629
1999-09-23configure: Rebuilt.Tom Tromey3-48/+57
* configure: Rebuilt. * configure.in: Print message when checking to see if gcj can handle -fuse-divide-subroutine. From-SVN: r29628
1999-09-23Fix typo in yesterday's massive change.Jeff Law1-1/+1
From-SVN: r29627
1999-09-23natFirstThread.cc (run): Renamed from `run0'.Tom Tromey3-20/+7
* java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed dead code. * java/lang/FirstThread.java (run0): Renamed to `run'. (run): Removed. From-SVN: r29626
1999-09-23re GNATS gcj/51 (Writing on OutputStream of bad Socket kills app with ↵Tom Tromey2-15/+25
"Broken pipe") * prims.cc (main_init): New function. (JvRunMain): Call it. (_Jv_RunMain): Likewise. Include <signal.h>. (main_init): Ignore SIGPIPE. Fixes PR 51. From-SVN: r29625
1999-09-23iso646.h, [...]: Add copyright notice and special exception to GPL.Zack Weinberg6-9/+157
1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com> * iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add copyright notice and special exception to GPL. From-SVN: r29624
1999-09-23abi64.h (mips_function_value): Add prototype arguments.Kaveh R. Ghazi8-181/+239
* abi64.h (mips_function_value): Add prototype arguments. * mips-protos.h: New file with mips prototypes. * mips.c: Include "tm_p.h". (mktemp, lookup_name): Add prototype arguments. (extern_list, string_constant, mips_fill_delay_slot, mips_output_external, mips_output_external_libcall, mips_output_filename, mips_declare_object, function_prologue, mips_expand_prologue, function_epilogue, mips16_constant, build_mips16_function_stub, mips_output_conditional_branch): Constify a char*. (mips_va_start): Remove unused variable `u'. (mips_va_arg): Cast value to unsigned when comparing against one. (trace): Delete. (save_restore_insns, mips_expand_prologue): Add missing arg in call to `large_int'. * mips.h: Move prototypes to mips-protos.h. (data_section, memory_address_p, rdata_section, readonly_data_section, simple_epilogue_p, text_section): Delete prototypes delcared elsewhere. (mips_epilogue_delay_slots, print_options): Delete unused decls. (trace): Delete. (GO_PRINTF, GO_PRINTF2): Call fprintf, not trace. * mips.md: Delete extra args in call to `mips_move_2words'. * xm-iris6.h (alloca): Add prototype argument. * genpeep.c: Include "tm_p.h" in generated output file. From-SVN: r29623
1999-09-23basic-block.h (find_edge_index): Change parameters.Andrew MacLeod3-21/+31
Thu Sep 23 10:36:55 EDT 1999 Andrew MacLeod <amacleod@cygnus.com> * basic-block.h (find_edge_index): Change parameters. * flow.c (verify_edge_list): Pass basic_block parameters to find_edge_index instead of integers. From-SVN: r29622
1999-09-23Use unsigned shift instead of signed shift.Nick Clifton2-2/+11
From-SVN: r29621
1999-09-23Add test case for this patch to combine.c:Nick Clifton2-0/+23
* combine.c (simplify_comparison): Use an unsigned shift to adjust the constant. From-SVN: r29620
1999-09-23* gcc.1: Fix a formatting error.Guy Harris2-1/+6
From-SVN: r29619
1999-09-23install.texi (Configurations): Remove pyramid.Martin v. Löwis2-5/+11
* install.texi (Configurations): Remove pyramid. Add fr30, i686, i786, mn10200, mn10300, pdp11, v850. From-SVN: r29618
1999-09-23* ir.texi: Fix formatting errors and typos.Martin v. Löwis2-11/+15
From-SVN: r29617
1999-09-23libgcc2.c (num_digits): Add prototype with __attribute__((const)).Dan Nicolaescu2-0/+10
* libgcc2.c (num_digits): Add prototype with __attribute__((const)). (__terminate): Add prototype. From-SVN: r29616
1999-09-23regclass.c: Include ggc.h.Jeff Law2-1/+2
* regclass.c: Include ggc.h. * Makefile.in (regclass.o): Add ggc.h to dependency list. From-SVN: r29615
1999-09-23builtins.c, [...]: Include tm_p.h.Richard Henderson8-89/+155
* builtins.c, dbxout.c, varasm.c: Include tm_p.h. * alpha/alpha.c (print_operand): Fix type of `code'. (alpha_output_filename): Constify. * alpha/alpha.h: Move all function declarations ... * alpha/alpha-protos.h: ... here. New file. * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function. (SECTION_FUNCTION_TEMPLATE): Likewise. From-SVN: r29614