aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2000-11-19Warning fixes:Kaveh R. Ghazi11-27/+46
* builtins.c (c_getstr): Constify variable. * gmon-sol2.c (_mcleanup): Comment out #endif labels. * conflict.c (const_conflict_graph_arc): New typedef. (arc_hash, arc_eq): Avoid needlessly casting away const-ness. * cppmacro.c (builtin_macro): Likewise. * dwarf2out.c (output_comp_unit): Constify variable. * fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF. * protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper. * ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting away const-ness. * tradcpp.c (rescan, do_line, macroexpand, macarg): Use ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint. * varasm.c (const_str_htab_hash, const_str_htab_eq, compare_constant_1, record_constant_1): Constify. From-SVN: r37565
2000-11-19java-tree.h (cyclic_inheritance_report): Constify.Kaveh R. Ghazi3-2/+7
* java-tree.h (cyclic_inheritance_report): Constify. * parse.y (cyclic_inheritance_report): Likewise. From-SVN: r37564
2000-11-19* gcc.c-torture/execute/nestfunc-3.c (main): Mask result to 32 bits.Richard Henderson2-1/+5
From-SVN: r37562
2000-11-19c-torture.exp (TORTURE_OPTIONS): Remove -fssa.Richard Henderson4-3/+6
* lib/c-torture.exp (TORTURE_OPTIONS): Remove -fssa. * lib/f-torture.exp (TORTURE_OPTIONS): Likewise. * lib/gcc-dg.exp (TORTURE_OPTIONS): Likewise. From-SVN: r37561
2000-11-1920001009-2.c (foo): Rename from main.Richard Henderson2-1/+11
* gcc.c-torture/execute/20001009-2.c (foo): Rename from main. (main): New. Exit cleanly. From-SVN: r37560
2000-11-19Daily bump.Jeff Law2-2/+2
From-SVN: r37559
2000-11-19c-decl.c (grokdeclarator): Special case the creation of an index for a ↵Richard Henderson3-36/+41
zero-length array. * c-decl.c (grokdeclarator): Special case the creation of an index for a zero-length array. * tree.c (build_index_type): Revert Oct 20 change. From-SVN: r37558
2000-11-19avr-protos.h (avr_output_addr_vec_elt): Prototype.Marek Michalkiewicz5-11/+32
* config/avr/avr-protos.h (avr_output_addr_vec_elt): Prototype. * config/avr/avr.c (jump_tables_size): New variable. (function_prologue): Initialize it as 0. (function_epilogue): Add it to function_size. (avr_output_addr_vec_elt): New function. Count words in jump tables in jump_tables_size. Move code ... * config/avr/avr.h (ASM_OUTPUT_ADDR_VEC_ELT): ... from here. Call avr_output_addr_vec_elt instead. * config/avr/avr.md (tablejump): Remove disabled define_expand. From-SVN: r37557
2000-11-19configure.in: Make --enable-new-gxx-abi the default.Mark Mitchell3-262/+267
* configure.in: Make --enable-new-gxx-abi the default. * configure: Likewise. From-SVN: r37556
2000-11-19decl.c (grokparms): Don't even function types of `void' type, either.Mark Mitchell3-42/+54
* decl.c (grokparms): Don't even function types of `void' type, either. * mangle.c (write_type): Don't crash when confronted with the error_mark_node. From-SVN: r37555
2000-11-19* decl.c (grokparms): Don't create parameters of `void' type.Mark Mitchell2-4/+10
From-SVN: r37553
2000-11-19Remove testMark Mitchell1-17/+0
From-SVN: r37552
2000-11-19Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.Kaveh R. Ghazi5-217/+270
* Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h. * tradcif.y: Include tradcpp.h. Constify. Make functions static. Move extern function declarations to tradcpp.h. * tradcpp.c: Likewise. * tradcpp.h: New file. From-SVN: r37550
2000-11-18c-decl.c (check_for_loop_decls): New function.Joseph Myers8-9/+153
* c-decl.c (check_for_loop_decls): New function. * c-parse.in (for_init_stmt): New. (select_or_iter_stmt): Use for_init_stmt. * c-tree.h (check_for_loop_decls): New declaration. testsuite: * gcc.dg/c90-fordecl-1.c, gcc.dg/c99-fordecl-1.c, gcc.dg/c99-fordecl-2.c: New tests. From-SVN: r37549
2000-11-18zerolen-1.c: Rename from 20001115-1.c.Richard Henderson3-0/+23
* gcc.c-torture/execute/zerolen-1.c: Rename from 20001115-1.c. * gcc.c-torture/execute/zerolen-2.c: New. From-SVN: r37548
2000-11-1820001115-1.c: Don't write to nonexistant memory.Franz Sirl2-6/+15
* gcc.c-torture/execute/20001115-1.c: Don't write to nonexistant memory. From-SVN: r37544
2000-11-18Make-lang.in (INTDOC_DEPS): New macro.Alexandre Oliva2-3/+20
* Make-lang.in (INTDOC_DEPS): New macro. (f/intdoc.texi): Depend on $(INTDOC_DEPS). Build f/intdoc. (f/intdoc): Likewise. Add $(build_exeext). From-SVN: r37543
2000-11-18cppinit.c: Update comments.Neil Booth2-58/+73
* cppinit.c: Update comments. (cpp_reader_init): Make -imacro and -include use the standard #include "" search path. (do_includes): New function. From-SVN: r37542
2000-11-18Daily bump.Jeff Law2-2/+2
From-SVN: r37541
2000-11-18crt1.asm (start_l): Move PC-relative move instruction out of a branch delay ↵Ben Elliston2-1/+7
slot. 2000-11-18 Ben Elliston <bje@redhat.com> * config/sh/crt1.asm (start_l): Move PC-relative move instruction out of a branch delay slot. From-SVN: r37536
2000-11-17elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.Richard Henderson2-3/+10
* config/alpha/elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG. (ASM_SPEC): Disable and enable .mdebug based on -gstabs. (ASM_FILE_START): Only write out ecoff .file directive if emitting mdebug debugging. From-SVN: r37535
2000-11-17configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New.Richard Henderson5-10/+110
* configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New. Detect whether as accepts .file/.loc and produces dwarf2 line info. * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Default on if the assembler supports it. * config.in, configure: Regenerate. From-SVN: r37534
2000-11-17* fixinc/mkfixinc.sh: Don't disable fixincludes for any linux*.Richard Henderson2-3/+5
From-SVN: r37533
2000-11-17Fix miscompilation of linux kernel ia64_do_signal routine.Jim Wilson2-2/+29
* config/ia64/ia64.c (emit_insn_group_barriers, case CALL_INSN): Don't clear need_barrier is next_insn is a CALL_INSN, or has instruction type B or UNKNOWN. From-SVN: r37528
2000-11-17cpperror.c (print_file_and_line): Don't display line number if 0.Neil Booth2-6/+11
* cpperror.c (print_file_and_line): Don't display line number if 0. From-SVN: r37523
2000-11-17ggc.h: Delete ggc_add_string_root and ggc_mark_string.Zack Weinberg26-299/+219
* ggc.h: Delete ggc_add_string_root and ggc_mark_string. Add digit_vector and digit_string. * stringpool.c (digit_vector): New. (ggc_alloc_string): Use digit_string. * stmt.c (digit_strings): Delete. (init_stmt): Do not initialize digit_strings. (expand_asm_operands): Use ggc.h's digit_string macro. * toplev.c (mark_file_stack): Delete. (compile_file): Don't call init_tree_codes. (main): No need to make the file stack a GC root. * tree.c (init_tree_codes): Delete. * tree.h (init_tree_codes): Delete. * c-lex.c: Don't include ggc.h. (mark_splay_tree_node, mark_splay_tree): Delete. (init_c_lex): No need to ggc_strdup string constant. Don't add file_info_tree to GGC roots. (cb_enter_file, cb_rename_file): No need to ggc_strdup ip->nominal_fname. * Makefile.in (c-lex.o): No longer depends on $(GGC_H). * dbxout.c (dbxout_init), dwarf2out.c (dwarf2out_line), ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees), varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once), xcoffout.c (xcoffout_source_file), i386.c (load_pic_register): Delete call(s) to ggc_add_string_root and/or ggc_mark_string. * except.c (create_rethrow_ref), profile.c (init_edge_profiler), toplev.c (compile_file), varasm.c (named_section, assemble_static_space, assemble_trampoline_template, output_constant_def, force_const_mem), i386.c (load_pic_register), ia64.c (ia64_encode_section_info), rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference, rs6000_emit_prologue, rs6000_emit_epilogue), rs6000.md (load_toc_aix_si, load_toc_aix_di): Change ggc_alloc_string (var, -1) to ggc_strdup (var). * profile.c (output_func_start_profiler), tree.c (make_node), i386.c (load_pic_register): No need to ggc_strdup string constant. cp: * lex.c (mark_impl_file_chain): Delete. (init_parse): Remove call to ggc_add_string_root. No need to ggc_strdup a string constant. Do not add impl_file_chain to GC roots. (handle_pragma_implementation): No need to ggc_strdup main_filename. f: * lex.c (ffelex_hash_): Change ggc_alloc_string (var, -1) to ggc_strdup (var). java: * parse.y (goal): Remove call to ggc_add_string_root. From-SVN: r37522
2000-11-17New test - regression of ICEZack Weinberg1-0/+11
From-SVN: r37521
2000-11-17fix thinko in last changeNathan Sidwell1-1/+1
From-SVN: r37520
2000-11-17Makefile.in (config.status): Depend on config.gcc.Hans-Peter Nilsson5-6874/+3674
* Makefile.in (config.status): Depend on config.gcc. * configure.in <for machine in $build $host $target>: Move contents of loop into config.gcc, removing autoconf quoting. Fix changequote bug for alpha*-*-vxworks*. * configure: Regenerate. * config.gcc: New. From-SVN: r37519
2000-11-17pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type.Nathan Sidwell4-0/+51
cp: * pt.c (tsubst_expr, DECL_STMT): Instantiate decl's type. testsuite: * g++.old-deja/g++.pt/instantiate8.C: New test. From-SVN: r37518
2000-11-17cp-tree.h (PARMLIST_ELLIPSIS_P): New macro.Nathan Sidwell7-219/+144
cp: * cp-tree.h (PARMLIST_ELLIPSIS_P): New macro. * decl.c (grokdeclarator): Don't reject void parms here. (require_complete_types_for_parms): Simplify, use complete_type_or_else. (grokparms): Remove bitrot. Remove funcdef parm. Deal with ellipsis parm lists here. * semantics.c (finish_parmlist): Don't append void_list_node here. Set PARMLIST_ELLIPSIS_P. testsuite: * g++.old-deja/g++.other/incomplete.C: Add more tests. * g++.old-deja/g++.pt/crash9.C: Mark new expected error. From-SVN: r37517
2000-11-17typeck2.c (incomplete_type_error): Reorganise to avoid excessive diagnostics.Nathan Sidwell2-6/+16
* typeck2.c (incomplete_type_error): Reorganise to avoid excessive diagnostics. From-SVN: r37516
2000-11-17Daily bump.Jeff Law2-2/+2
From-SVN: r37515
2000-11-17stringpool.c: New file.Zack Weinberg37-334/+643
* stringpool.c: New file. * ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete. (ggc_alloc_string): Now in stringpool.o. * ggc-page.c, ggc-simple.c: Do not define or allocate empty_string. * ggc.h: Delete prototype of ggc_add_string_root. #define ggc_add_string_root and ggc_mark_string to nothing. Prototype init_stringpool and stringpool_statistics. (ggc_alloc_string): Returns a const char *. * tree.c (hash_table, do_identifier_warnings): Delete. (init_obstacks): Don't initialize the identifier hash table. (get_identifier, maybe_get_identifier, start_identifier_warnings, set_identifier_size): Now in stringpool.c. * tree.h (struct tree_string): Constify pointer field. (approx_sqrt): Prototype. * Makefile.in (stringpool.o): Add rule, mention in OBJS. * toplev.c (approx_sqrt): New function. (compile_file): Call stringpool_statistics if mem_report is on. (main): Call init_stringpool. * builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c (process_directive), c-typeck.c (constructor_asmspec, struct initializer_stack, start_init), except.c (create_rethrow_ref), stmt.c (digit_strings), toplev.c (decode_f_option), tree.c (built_in_filename), varasm,c (in_named_name, assemble_static_space, struct constant_descriptor, struct deferred_string, struct pool_constant, force_const_mem), i386.c (pic_label_name, global_offset_table_name), rs6000.c (rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *. * c-common.c (combine_strings): Combine strings in scratch buffer, then pass to build_string. * optabs.c (init_libfuncs), profile.c (init_edge_profiler, output_func_start_profiler), stmt.c (init_stmt), alpha.c (alpha_need_linkage), arm.c (arm_encode_call_attribute), i386.c (load_pic_register), ia64.c (ia64_encode_section_info), rs6000.c (rs6000_encode_section_info): Create string in scratch buffer, then pass to ggc_alloc_string. * stmt.c (expand_asm_operands): If we must adjust the constraint strings, do so by creating a new one, not by modifying the old one in place. Constify some char *s. * config/pa/pa.c (hppa_encode_label): Drop unnecessary second argument. Create string in scratch buffer, then pass to ggc_alloc_string. * config/pa/pa-protos.h: Update prototype. * config/pa/elf.h, config/pa/pa.h, config/pa/som.h: hppa_encode_label takes only one argument. * c-parse.in (if_prefix): Find the filename and line number at $-2 and $-1 respectively. * diagnostic.c (error_recursion): Add missing newline, use fputs, translate string. cp: * lex.c (struct impl_files, internal_filename): Constify a char *. java: * jcf-parse.c (get_constant), parse.y (do_merge_string_cste): Create string in scratch buffer, then pass to build_string. From-SVN: r37514
2000-11-17mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not malloc/realloc.Kaveh R. Ghazi8-26/+27
* mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not malloc/realloc. * cpplib.c (glue_header_name): Likewise. * fixincl.c (run_compiles, start_fixer): Likewise. * fixlib.c (load_file_data): Likewise. * mkdeps.c (munge): Likewise. f: * malloc.c (malloc_init): Call xmalloc, not malloc. From-SVN: r37511
2000-11-17defaults.h [...] (EH_FRAME_SECTION): Remove trailing ';'.Hans-Peter Nilsson2-1/+6
* defaults.h [EH_FRAME_SECTION_ASM_OP] (EH_FRAME_SECTION): Remove trailing ';'. Fix formatting. From-SVN: r37510
2000-11-16mangle.c (write_special_name_constructor): Don't generate assembler junk ↵Mark Mitchell2-6/+29
when confronted with an old-style constructor. * mangle.c (write_special_name_constructor): Don't generate assembler junk when confronted with an old-style constructor. (write_special_name_destructor): Likewise. (mangle_decl_string): Do it here instead. From-SVN: r37508
2000-11-16Fix ia64 mask bit conflict from parallel development.Jim Wilson2-2/+5
* config/ia64/ia64.h (MASK_INLINE_DIV_LAT, MASK_INLINE_DIV_THR): Shift masks left by one to avoid conflict. From-SVN: r37507
2000-11-16Fix ia64 C++ gprel link errors.Jim Wilson2-1/+10
* config/ia64/ia64.c (ia64_encode_section_info): Disallow decls with DECL_EXTERNAL set. From-SVN: r37505
2000-11-16Add a couple of new test cases for nested function support.Nick Clifton3-0/+114
From-SVN: r37504
2000-11-16Fix nested function support for the ARMNick Clifton3-8/+97
From-SVN: r37503
2000-11-16New testcaseBernd Schmidt2-0/+7
From-SVN: r37501
2000-11-16oops, forgot a constDJ Delorie1-1/+1
From-SVN: r37500
2000-11-16rtl.c (read_rtx): Provide suitable names for unnamed define_insn and ↵DJ Delorie2-0/+29
define_insn_and_split... * rtl.c (read_rtx): Provide suitable names for unnamed define_insn and define_insn_and_split patterns, based on file and line numbers. From-SVN: r37499
2000-11-16* call.c (op_error): Make error messages clearer.Nathan Sidwell2-6/+10
From-SVN: r37498
2000-11-1620001115-1.c: New test.Franz Sirl2-0/+32
2000-11-15 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * gcc.c-torture/execute/20001115-1.c: New test. From-SVN: r37497
2000-11-16Daily bump.Jeff Law2-2/+2
From-SVN: r37493
2000-11-16arraynew.C: Use `std' where necessary.Mark Mitchell5-14/+21
* g++.old-deja/g++.abi/arraynew.C: Use `std' where necessary. * g++.old-deja/g++.abi/cxa_vec.C: Likewise. * g++.old-deja/g++.abi/ptrflags.C: Likewise. * g++.old-deja/g++.abi/vmihint.C: Likewise. From-SVN: r37492
2000-11-15cpplib.c (start_directive, [...]): New functions.Neil Booth4-59/+92
* cpplib.c (start_directive, end_directive): New functions. (_cpp_handle_directive, run_directive): Use them. (_cpp_handle_directive): Don't -Wtraditional on indented null directives. (_cpp_push_buffer): Don't re-clear was_skipping. * cpplib.h (struct cpp_reader): New member la_saved. * cppmacro.c (cpp_get_token): Don't interpret _Pragma in directives. From-SVN: r37487
2000-11-15_Pragma1.c: Update.Neil Booth3-9/+25
* gcc.dg/cpp/_Pragma1.c: Update. * gcc.dg/cpp/_Pragma2.c: New test. From-SVN: r37486