aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-03-02Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.Kaveh R. Ghazi8-2/+89
* Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss. * doc/invoke.texi (-fno-zero-initialized-in-bss): Document. * flags.h (flag_zero_initialized_in_bss): Declare. * toplev.c (flag_zero_initialized_in_bss): New flag. (lang_independent_options): Add flag_zero_initialized_in_bss. * tree.c (initializer_zerop): New function. * tree.h (initializer_zerop): Declare. * varasm.c (assemble_variable): If we can emit bss, put zero initializers in the bss section. From-SVN: r50218
2002-03-02rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't like more than one symbol ↵Alan Modra2-1/+6
per .weak directive. * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't like more than one symbol per .weak directive. From-SVN: r50217
2002-03-01ia64.c (ia64_initial_elimination_offset): Do not adjust argument_pointer by ↵Richard Henderson2-4/+9
pretend_args_size. * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not adjust argument_pointer by pretend_args_size. (ia64_va_start): Adjust va_start address by -pretend_args_size. From-SVN: r50212
2002-03-01* config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.Kazu Hirata2-27/+35
From-SVN: r50207
2002-03-01toplev.c (rest_of_compilation): Delete dead jumptables before loop.Jan Hubicka4-2/+11
* toplev.c (rest_of_compilation): Delete dead jumptables before loop. * flow.c (delete_dead_jumptables): Make global. * rtl.h (delete_dead_jumptables): Declare. From-SVN: r50205
2002-03-01Reduced testcase of a 252.eon (SPEC2000) problem.Michael Matz1-0/+27
From-SVN: r50204
2002-03-01981223-1.x: New.Richard Henderson3-0/+50
* gcc.c-torture/compile/981223-1.x: New. * gcc.c-torture/compile/920625-1.x: New. From-SVN: r50202
2002-03-01rs6000.h (HANDLE_PRAGMA_PACK): Delete.David Edelsohn4-7/+10
* config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete. * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define. * config/rs6000/xcoff.h (COLLET_EXPORT_LIST): Delete. From-SVN: r50200
2002-03-01typeck.c (cp_pointer_int_sum): Complete inner type which is used later by ↵Michael Matz2-2/+13
size_in_bytes(). 2002-03-01 Michael Matz <matz@suse.de> * typeck.c (cp_pointer_int_sum): Complete inner type which is used later by size_in_bytes(). From-SVN: r50197
2002-03-01Oops. A ChangeLog entry got committed prematurely with my last change.Anthony Green1-7/+0
This fixes is. From-SVN: r50196
2002-03-01h8300-protos.h: Fix formatting.Kazu Hirata4-21/+27
* config/h8300/h8300-protos.h: Fix formatting. * config/h8300/h8300.c: Likewise. * config/h8300/h8300.h: Likewise. From-SVN: r50192
2002-03-01h8300.c (print_operand): Support 16-bit constant addresses.Kazu Hirata3-13/+46
* config/h8300/h8300.c (print_operand): Support 16-bit constant addresses. * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New. From-SVN: r50191
2002-03-01Daily bump.GCC Administrator6-12/+12
From-SVN: r50190
2002-03-01expmed.c (store_bit_field): Prevent generation of CONCATs...Richard Henderson2-11/+19
* expmed.c (store_bit_field): Prevent generation of CONCATs; pun complex values as integers; use gen_lowpart instead of gen_rtx_SUBREG. (extract_bit_field): Likewise. From-SVN: r50185
2002-03-01cp-tree.h: Require __GNUC__ to be #defined.Phil Edwards2-0/+10
2002-03-01 Phil Edwards <pme@gcc.gnu.org> * cp-tree.h: Require __GNUC__ to be #defined. (build_init): Add missing prototype. From-SVN: r50183
2002-03-01tm.texi (ASM_WEAKEN_DECL): Document.Alan Modra11-104/+211
* doc/tm.texi (ASM_WEAKEN_DECL): Document. (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL. (SUPPORTS_WEAK): Likewise. * output.h (add_weak): Add tree param. * varasm.c (add_weak): Likewise. Save decl. (struct weak_syms): Add decl field. (mark_weak_decls): New function. (init_varasm_once): ggc_add_root mark_weak_decls. (assemble_start_function): Use ASM_WEAKEN_DECL. (assemble_variable): Likewise. (assemble_alias): Likewise. (declare_weak): Pass decl to add_weak. (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl. (remove_from_pending_weak_list): Declare and define for ASM_WEAKEN_DECL. * c-pragma.c (handle_pragma_weak): Adjust add_weak call. * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too. * defaults.h (SUPPORTS_WEAK): Likewise. * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit .weak for code sym. Do emit .size for descriptor sym. (ASM_DECLARE_FUNCTION_SIZE): Define. * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define. (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output .lglobl unless TARGET_XCOFF. Formatting fixes. * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit .weak for code sym. (HANDLE_PRAGMA_WEAK): Remove. (ASM_WEAKEN_LABEL): Remove. * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define. Co-Authored-By: David Edelsohn <edelsohn@gnu.org> From-SVN: r50181
2002-03-01Add pointer support to the reflection code.Anthony Green2-29/+49
From-SVN: r50180
2002-02-28* g++.dg/opt/vtgc1.C: Adjust patterns for ia64.Richard Henderson2-20/+27
From-SVN: r50179
2002-02-28tree.h (TARGET_EXPR_SLOT, [...]): New macros.Jason Merrill7-38/+197
* tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros. (TARGET_EXPR_CLEANUP): New macro. cp/ * except.c: Don't include decl.h or obstack.h. Do include tree-inline.h. (build_throw): Destroy temporaries from the thrown expression before calling __cxa_throw. Construct a thrown temporary directly into the exception object. (stabilize_throw_expr): New function. (wrap_cleanups_r): New function. * tree.c (stabilize_expr): New function. * init.c (build_init): New function. * Make-lang.in (cp/except.o): Adjust .h deps. From-SVN: r50177
2002-02-28linker-map.gnu: Export operator new with unsigned long, and with std::nothrow_t.Richard Henderson2-28/+50
* config/linker-map.gnu: Export operator new with unsigned long, and with std::nothrow_t. Likewise operator delete. From-SVN: r50176
2002-02-28rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition to take ptr_extend ↵Steve Ellcey7-17/+58
into account as third type of extension. * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition to take ptr_extend into account as third type of extension. (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit fields used by SUBREG_PROMOTED_UNSIGNED_P. * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro. (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1. * calls.c (precompute_arguments): Use new macro. (expand_call): Ditto. * combine.c (nonzero_bits): Ditto. (record_promoted_value): Ditto. * expr.c (store_expr): Ditto. (expand_expr): Ditto. * function.c (assign_parms): Ditto. From-SVN: r50174
2002-03-01gcc.c (init_gcc_specs): Get -static and -static-libgcc to override -shared ↵Alexandre Oliva2-5/+10
and -shared-libgcc. * gcc.c (init_gcc_specs): Get -static and -static-libgcc to override -shared and -shared-libgcc. From-SVN: r50171
2002-03-01configure.in (libstdcxx_flags): Don't add libstdc++-v3 flags for libjava.Alexandre Oliva2-1/+10
* configure.in (libstdcxx_flags): Don't add libstdc++-v3 flags for libjava. (CXX_FOR_TARGET): Explain why -shared-libgcc here. From-SVN: r50169
2002-02-28* expr.c (build_java_arraystore_check): Fix formatting.Bryce McKinlay2-3/+7
From-SVN: r50167
2002-02-28config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification of ↵David O'Brien3-1/+9
"ultrasparc". 2002-02-28 David O'Brien <obrien@FreeBSD.org> * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification of "ultrasparc". * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears to be broken. Approved by: Richard Henderson <rth@redhat.com> Message-ID: <20020228100723.A30279@redhat.com> From-SVN: r50165
2002-02-28locale_facets.tcc (num_get::_M_extract_int): Admit grouping for octals and ↵Paolo Carlini6-6/+147
hexadecimals too. 2002-02-28 Paolo Carlini <pcarlini@unitus.it> * include/bits/locale_facets.tcc (num_get::_M_extract_int): Admit grouping for octals and hexadecimals too. * testsuite/22_locale/num_get_members_char.cc: Add test04. (test01): Tweak "." -> "," in void* test. * testsuite/22_locale/num_get_members_wchar_t.cc: Ditto. * testsuite/27_io/ios_manip_basefield.cc: Remove static keyword. * testsuite/27_io/ios_manip_fmtflags.cc: Remove two of them. From-SVN: r50162
2002-02-28ia64.c (ia64_adjust_cost): All non-MM consumers have 4 cycle latency from MM ↵Richard Henderson2-23/+36
producers. * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have 4 cycle latency from MM producers. (ia64_internal_sched_reorder): Likewise with pipeline flush. From-SVN: r50160
2002-02-28* mklibgcc.in: Don't use GNU make extension.Jakub Jelinek2-8/+12
From-SVN: r50156
2002-02-28c-parse.in (STATIC): New terminal.Neil Booth2-45/+47
* c-parse.in (STATIC): New terminal. (scspec): New non-terminal. Update productions accordingly. (program): Remove bogus ifc / end ifc. (array_declarator): Simplify production using STATIC. From-SVN: r50155
2002-02-28cpplex.c (cpp_parse_escape): Restore mistakenly-removed code: \a still means ↵Jim Meyering2-0/+6
TARGET_BELL. * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code: \a still means TARGET_BELL. From-SVN: r50154
2002-02-28haifa-sched.c (sched_emit_insn): New.Richard Henderson4-46/+42
* haifa-sched.c (sched_emit_insn): New. (schedule_block): Use last_scheduled_insn to track last insn. * sched-int.h (sched_emit_insn): Prototype. * config/ia64/ia64.c (last_issued): Remove. (ia64_variable_issue): Don't set it. (nop_cycles_until): Use sched_emit_insn. From-SVN: r50153
2002-02-28sparc.c (sparc64_initialize_trampoline): Generate sign extended constants.Andrew MacLeod2-4/+9
* config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign extended constants. From-SVN: r50152
2002-02-28h8300.c: Fix formatting.Kazu Hirata3-8/+13
* config/h8300/h8300.c: Fix formatting. * config/h8300/h8300.h: Likewise. From-SVN: r50150
2002-02-28search.c (lookup_base_r): Don't clear is_non_public just because we found a ↵Jason Merrill1-0/+14
friendly scope. * search.c (lookup_base_r): Don't clear is_non_public just because we found a friendly scope. From-SVN: r50143
2002-02-28search.c (lookup_base_r): Don't clear is_non_public just because we found a ↵Jason Merrill2-2/+6
friendly scope. * search.c (lookup_base_r): Don't clear is_non_public just because we found a friendly scope. From-SVN: r50140
2002-02-28avr.c (avr_hard_regno_mode_ok): Do not allow r29 which may overwrite the ↵Marek Michalkiewicz2-0/+12
high byte of the frame pointer. * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29 which may overwrite the high byte of the frame pointer. From-SVN: r50138
2002-02-28linux64.h (LINK_SPEC): Fix 32/64 bit compilation.Bo Thorsen2-3/+28
2002-02-28 Bo Thorsen <bo@suse.de> * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation. (STARTFILE_SPEC): Add 64 bit files. (ENDFILE_SPEC): Likewise. From-SVN: r50137
2002-02-28c-decl.c (finish_function): Only warn about missing return statement with ↵Jason Merrill5-8/+20
-Wreturn-type. * c-decl.c (finish_function): Only warn about missing return statement with -Wreturn-type. * cp/decl.c (finish_function): Only warn about missing return statement with -Wreturn-type. From-SVN: r50132
2002-02-28expr.c (java_array_data_offset): Removed function.Bryce McKinlay9-130/+163
* expr.c (java_array_data_offset): Removed function. (JAVA_ARRAY_LENGTH_OFFSET): Removed macro. (build_java_array_length_access): Obtain "length" value using a COMPONENT_REF, instead of INDIRECT_REF and arithmetic. (build_java_arrayaccess): Correct comment. Access "data" using a COMPONENT_REF, and return an ARRAY_REF instead of an INDIRECT_REF. (build_java_arraystore_check): New function. (expand_java_arraystore): Use build_java_arraystore_check. * parse.y (patch_assignment): Simplify code to insert a store check when lvalue is an ARRAY_REF. Use build_java_arraystore_check. * check-init.c (check_init): Update to reflect that an array length access is now a COMPONENT_REF. * gcj.texi (Code Generation): Improve documentation of -fno-bounds-check. Add documentation for -fno-store-check. * java-tree.h (flag_store_check): Declare. (build_java_arraystore_check): Declare. * lang.c (flag_store_check): Initialize to 1. (lang_f_options): Add store-check option. * jvspec.c: Don't pass store-check option to jvgenmain. * lang-options.h: Add help string for -fno-store-check. From-SVN: r50129
2002-02-28cfgrtl.c (purge_dead_edges): Fix handling of EH edges.Jan Hubicka3-29/+32
* cfgrtl.c (purge_dead_edges): Fix handling of EH edges. * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM From-SVN: r50128
2002-02-28basic-block.h (BB_REACHABLE): Renumber.Jan Hubicka14-226/+272
* basic-block.h (BB_REACHABLE): Renumber. (BB_DIRTY, BB_NEW): New flags. (clear_bb_flags): Declare. (update_life_info_in_dirty_blocks): Declare. * cfg.c (clear_bb_flags): New function. * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW. * emit-rtl.c (add_insn_after, add_insn_before, remove_insn, reorder_insns, emit_insn_after): Mark block as dirty. * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS. (update_life_info_in_dirty_blocks): New function. * recog.c (apply_change_group): Dirtify block. * cse.c (cse_insn): Reorder emitting of jump insn to keep cfg consistent. * gcse.c (delete_null_pointer_checks): Likewise. * toplev.c (dump_file_index): Move cse2 after bp, add DFI_null (dump_file_info): Similary. (rest_of_compilation): Avoid most of CFG rebuilds; do first if converision after null pointer checks, do cse2 after branch prediction; avoid full liveness rebuild after initializing subregs. * invoke.texi (-d options): Document -du, renumber. * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE. (notice_new_block): Do not set BB_UPDATE_LIFE. (try_forward_edges, merge_blocks_move_predecessor_nojumps, merge_blocks_move_successor_nojumps, merge_blocks, try_crossjump_to_edge): Likewise. (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks. * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a. * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill. (merge_of_block): Do not use life_data_ok. (find_if_case_1): Do not use SET_UPDATE_LIFE. (if_convert): Use BB_DIRTY mechanizm to update life. * lcm.c (optimize_mode_switching): Update update_life_info_in_dirty_blocks From-SVN: r50127
2002-02-28Daily bump.GCC Administrator6-12/+12
From-SVN: r50126
2002-02-28Makefile.in (integrate.o): Update.Neil Booth25-36/+87
* Makefile.in (integrate.o): Update. * c-decl.c (copy_lang_decl): Rename. * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine. * integrate.c: Include langhooks.h. (copy_decl_for_inlining): Update to use langhook. * langhooks-def.h (lhd_do_nothing_t, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New. (LANG_HOOKS_INITIALIZER): Update. * langhooks.c (lhd_do_nothing_t): New. * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl. * tree.h (copy_lang_decl): Remove. ada: * misc.c (copy_lang_decl): Remove. cp: * class.c (build_clone): Update. * cp-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine. * cp-tree.h (cxx_dup_lang_specific_decl): New. * lex.c (copy_lang_decl): Rename cxx_dup_lang_specific_decl. (copy_decl): Update. * method.c (make_thunk): Update. f: * com.c (copy_lang_decl): Delete. java: * decl.c (copy_lang_decl): Rename java_dup_lang_specific_decl. * java-tree.h (java_dup_lang_specific_decl): New. * lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine. objc: * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine. From-SVN: r50122
2002-02-28dwarf2out.c (stack_adjust_offset): Add support for POST_INC, POST_DEC, and ↵Andrew MacLeod2-16/+40
POST_MODIFY. * dwarf2out.c (stack_adjust_offset): Add support for POST_INC, POST_DEC, and POST_MODIFY. From-SVN: r50121
2002-02-28natInetAddress.cc: Changed USE_WINSOCK to WIN32, added '#undef STRICT'.Adam Megacz2-3/+9
2002-02-27 Adam Megacz <adam@xwt.org> * java/net/natInetAddress.cc: Changed USE_WINSOCK to WIN32, added '#undef STRICT'. From-SVN: r50120
2002-02-27c-typeck.c (digest_init): Remove unused parameter; all callers changed.Zack Weinberg2-12/+13
* c-typeck.c (digest_init): Remove unused parameter; all callers changed. From-SVN: r50118
2002-02-27* gcc.c-torture/execute/20020227-1.c: New test.Hans-Peter Nilsson1-0/+30
From-SVN: r50117
2002-02-27* gcc.c-torture/execute/20020227-1.c: New test.Hans-Peter Nilsson1-0/+4
From-SVN: r50116
2002-02-27visibility13.C: Remove "instantiated from here" ERROR lines.Mark Mitchell16-17/+36
* g++.old-deja/g++.law/visibility13.C: Remove "instantiated from here" ERROR lines. * g++.old-deja/g++.oliva/partord1.C: Likewise. * g++.old-deja.g++.other/defarg1.C: Likewise. * g++.old-deja/g++.pt/calls2.C: Likewise. * g++.old-deja/g++.pt/crash20.C: Likewise. * g++.old-deja/g++.pt/crash30.C: Likewise. * g++.old-deja/g++.pt/crash36.C: Likewise. * g++.old-deja/g++.pt/crash6.C: Likewise. * g++.old-deja/g++.pt/defarg13.C: Likewise. * g++.old-deja/g++.pt/derived3.C: Likewise. * g++.old-deja/g++.pt/error1.C: Likewise. * g++.old-deja/g++.pt/friend21.C: Likewise. * g++.old-deja/g++.pt/friend23.C: Likewise. * g++.old-deja/g++.pt/infinite1.C: Likewise. * g++.old-deja/g++.robertl/eb128.C: Likewise. From-SVN: r50115
2002-02-27Index: ChangeLogGeoffrey Keating4-1/+29
* expmed.c (expand_shift): Correctly test for low part of a subreg. Index: testsuite/ChangeLog * gcc.c-torture/execute/20020225-2.c: New test. From-SVN: r50114