aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-12-13c-typeck.c: Fix comment typos.Kazu Hirata20-27/+27
* c-typeck.c: Fix comment typos. * calls.c: Likewise. * cfgcleanup.c: Likewise. * cgraph.h: Likewise. * dwarfout.c: Likewise. * emit-rtl.c: Likewise. * explow.c: Likewise. * expr.c: Likewise. * flow.c: Likewise. * function.c: Likewise. * gcc.c: Likewise. * ggc-zone.c: Likewise. * ifcvt.c: Likewise. * local-alloc.c: Likewise. * predict.c: Likewise. * pretty-print.c: Likewise. * profile.c: Likewise. * ra-colorize.c: Likewise. * sched-vis.c: Likewise. * stor-layout.c: Likewise. From-SVN: r74594
2003-12-13ggc-zone.c (struct alloc_zone): Don't pre-declare, it already comes in with ↵Steven Bosscher2-21/+56
ggc.h. * ggc-zone.c (struct alloc_zone): Don't pre-declare, it already comes in with ggc.h. Add a new bool field `dead'. (destroy_ggc_zone): Don't destroy a zone at once. Instead, only set the `dead' flag for the dead zone. Wrap a sanity check in ENABLE_CHECKING. (ggc_collect_1): Always mark and sweep if a zone has the `dead' flag set. (ggc_collect): Free dead zones after collecting. From-SVN: r74592
2003-12-13coverage.c (get_coverage_counts): Use inform instead of warning about ↵Jan Hubicka2-2/+7
missing profile. * coverage.c (get_coverage_counts): Use inform instead of warning about missing profile. From-SVN: r74591
2003-12-13ggc-zone.c: Follow spelling conventions.Kazu Hirata5-5/+5
* ggc-zone.c: Follow spelling conventions. * config/rs6000/rs6000.c: Likewise. * pt.c: Likewise. * semantics.c: Likewise. * objc/objc-act.c: Likewise. From-SVN: r74590
2003-12-13Daily bump.GCC Administrator1-1/+1
From-SVN: r74588
2003-12-12* Makefile.in (opts.o, explow.o): Depend on langhooks.hSteven Bosscher2-2/+6
From-SVN: r74584
2003-12-12config.gcc: Don't use fixproto.Geoffrey Keating2-2/+5
* config.gcc <i[34567]86-*-darwin*>: Don't use fixproto. <powerpc-*-darwin*>: Likewise. From-SVN: r74581
2003-12-12re PR c++/13118 ([ABI] Missed covariant return thunk)Nathan Sidwell7-70/+153
cp: PR c++/13118 * cp-tree.h (lang_decl_u): Add thunk_alias member. (THUNK_VIRTUAL_OFFSET): Must be a FUNCTION_DECL. (THUNK_ALIAS_P): Remove. (THUNK_ALIAS): Adjust. * class.c (update_vtable_entry_for_fn): Get the vbase within the overriding function's return type. (dump_thunk): Adjust THUNK_ALIAS printing. (build_vtbl_initializer): Adjust THUNK_ALIAS use. * method.c (make_thunk): Revert 12881 test change. Clear THUNK_ALIAS. (finish_thunk): Adjust THUNK_ALIAS setting. (use_thunk): Adjust THUNK_ALIAS use. * semantics.c (emit_associated_thunks): Likewise. testsuite: PR c++/13118 * g++.dg/abi/covariant3.C: New. From-SVN: r74576
2003-12-12linux.h (IA64_GATE_AREA_END): Increase by 64K.Jakub Jelinek6-18/+162
* config/ia64/linux.h (IA64_GATE_AREA_END): Increase by 64K. (MD_FALLBACK_FRAME_STATE_FOR): Set fpsr_loc, br_loc[6] and br_loc[7]. Update comment. (MD_HANDLE_UNWABI): Define. * config/ia64/unwind-ia64.c (struct unw_state_record): Add unwabi field. (struct _Unwind_Context): Increase br_loc array size to 8 entries. (desc_abi): Set unwabi. (uw_update_reg_address): Allow br up to 7. (uw_update_context): Invoke MD_HANDLE_UNWABI if defined. (uw_install_context): Load b1..b5 from correct locations. Fix insn loading ar.fpsr. * doc/tm.texi: Document MD_HANDLE_UNWABI. * g++.dg/eh/ia64-1.C: New test. From-SVN: r74575
2003-12-12PR c++/13114, c++/13115Nathan Sidwell3-8/+16
PR c++/13114, c++/13115 * class.c (layout_empty_base): Propagate the move of an empty base to offset zero. From-SVN: r74573
2003-12-12re PR rtl-optimization/13037 ([gcse-lm] g77 generates incorrect code)Roger Sayle4-0/+73
PR optimization/13037 * loop.c (update_giv_derive): Ignore redundant sets of a biv when calculating how to derive a giv from a biv. * g77.f-torture/execute/13037.f: New test case. From-SVN: r74572
2003-12-12re PR c++/12881 (ICE in make_thunk)Nathan Sidwell4-9/+93
PR c++/12881 * method.c (make_thunk): Deal with thunk aliases when searching for a thunk. Robustify assertion. From-SVN: r74571
2003-12-12PR preprocessor/12935 preprocessor/12952 preprocessor/13046Neil Booth5-13/+51
PR preprocessor/12935 preprocessor/12952 preprocessor/13046 * cpplib.c (prepare_directive_trad): Clear skipping only in #if and #elif directives. (do_undef): Call the handler even if the identifier is not a macro. * cpptrad.c (scan_parameters): Emit an error message. (_cpp_create_trad_definition): Remember the params list even on failure. * testsuite/gcc.dg/cpp/trad/macro.c: New tests. From-SVN: r74562
2003-12-12arm.c (ARM_ADDRESS_COST, [...]): Convert macros to inline functions...Zack Weinberg2-39/+66
* arm.c (ARM_ADDRESS_COST, THUMB_ADDRESS_COST): Convert macros to inline functions: arm_arm_address_cost, arm_thumb_address_cost respectively. (arm_address_cost): Use 'em. From-SVN: r74560
2003-12-12* gcc.c-torture/execute/wchar_t-1.x: Delete.Zack Weinberg2-6/+7
From-SVN: r74559
2003-12-12osf.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__ to ISO C94 for C++.Rainer Orth5-5/+96
* config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__ to ISO C94 for C++. * fixinc/inclhack.def (alpha_wchar): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/wchar.h: New file. From-SVN: r74558
2003-12-12Daily bump.GCC Administrator1-1/+1
From-SVN: r74554
2003-12-11libunwind related patch from David MosbergerDavid Mosberger7-74/+143
libunwind related patch from David Mosberger * unwind-libunwind.c (_Unwind_SetGR): Clear the NaT bit as required by C++ ABI for Itanium. * config/t-libunwind (LIB2ADDEH): Remove unwind-libunwind.c. * config/t-libunwind-no-eh: New file. * configure.in: Check libunwind for _Unwind_Resume() and if it's present, set libunwind_has_eh_support to "yes". * configure: Regenerate. * config.gcc (ia64*-*-linux*): If $libunwind_has_eh_support is set to yes, use t-libunwind, otherwise, use t-libunwind-no-eh. From-SVN: r74548
2003-12-11mips.c (mips_global_pointer): Force functions with a nonlocal goto to set up ↵Richard Sandiford2-0/+10
$gp. * config/mips/mips.c (mips_global_pointer): Force functions with a nonlocal goto to set up $gp. From-SVN: r74547
2003-12-11Fix for problem with unnecessary volatile mems.James E Wilson2-1/+17
PR target/13132 * function.c (gen_mem_addressof): When no decl, explicitly clear flag bits. From-SVN: r74543
2003-12-11[multiple changes]Arnaud Charlet13-86/+271
2003-12-11 Ed Falis <falis@gnat.com> * 5zinit.adb: Clean up. * 5zintman.adb (Notify_Exception): replaced case statement with a call to __gnat_map_signal, imported from init.c to support signal -> exception mappings that depend on the vxWorks version. * init.c: Created and exported __gnat_map_signal to support signal -> exception mapping that is dependent on the VxWorks version. Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr> * 5wosinte.ads: Link with -mthreads switch. 2003-12-11 Arnaud Charlet <charlet@act-europe.fr> * init.c (__gnat_install_handler [NetBSD]): Set __gnat_handler_installed, as done on all other platforms. Remove duplicated code. 2003-12-11 Jerome Guitton <guitton@act-europe.fr> * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a. 2003-12-11 Thomas Quinot <quinot@act-europe.fr> * sinfo.ads: Fix inconsistent example code in comment. 2003-12-11 Robert Dewar <dewar@gnat.com> * a-tiinau.adb: Add a couple of comments * sem_ch3.adb: Minor reformatting * sem_prag.adb: Fix bad prototype of Same_Base_Type in body (code reading cleanup) Minor reformatting throughout 2003-12-11 Ed Schonberg <schonberg@gnat.com> * exp_ch7.adb (Establish_Transient_Scope): If the call is within the bounds of a loop, create a separate block in order to generate proper cleanup actions to prevent memory leaks. * sem_res.adb (Resolve_Call): After a call to Establish_Transient_Scope, the call may be rewritten and relocated, in which case no further processing is needed. * sem_util.adb: (Wrong_Type): Refine previous fix. Fixes ACATS regressions. PR ada/13353 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always be inlined. From-SVN: r74541
2003-12-11mangle.c (conv_type_names): Holds IDENTIFIER_NODEs only.Nathan Sidwell2-26/+37
* mangle.c (conv_type_names): Holds IDENTIFIER_NODEs only. (hash_type): Use TYPE_UID of the identifier's type. (compare_type): Adjust. (mangle_conv_op_name_for_type): Store identifier nodes only, use TYPE_UID has hash value. From-SVN: r74538
2003-12-11oops - fix typo in previous deltaNick Clifton1-1/+1
From-SVN: r74534
2003-12-11m32r.c: Convert to ISO-CNick Clifton5-339/+221
* config/m32r/m32r.c: Convert to ISO-C * doc/invoke.texi: Replace Mitsubishi with Renesas. * config/m32r/m32r.h: Ditto. * config/m32r/m32r.c: Ditto. * config/m32r/m32r.md: Ditto. From-SVN: r74533
2003-12-11basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.Steven Bosscher52-633/+662
2003-12-11 Steven Bosscher <steven@gcc.gnu.org> * basic-block.h (BLOCK_HEAD, BLOCK_END): Remove. (BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove. (basic_block_def): Rename `head' to `head_' and `end' to `end_'. (BB_HEAD, BB_END): New accessor macros for the `head_' and `end_' fields of a basic block. * bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c, cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c, final.c, flow.c, function.c, gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c, loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c, ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c, sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c, config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of accessing the `head' and `end' fields of a basic block directly. * gengtype.c: Add missing piece from earlier patch. Dunno what I was thinking... From-SVN: r74520
2003-12-11Daily bump.GCC Administrator1-1/+1
From-SVN: r74518
2003-12-10Fix changelog entry again.Andrew Pinski1-2/+1
From-SVN: r74514
2003-12-10move changelog entry that should have been in testsuite's.Andrew Pinski2-10/+11
Also fix date on it. From-SVN: r74513
2003-12-10extend.texi (Vector Extensions): Document that bitwise operations also work ↵Geoffrey Keating2-5/+11
on vectors. * doc/extend.texi (Vector Extensions): Document that bitwise operations also work on vectors. From-SVN: r74511
2003-12-10re PR testsuite/10819 (testsuite creates CR+LF on compiler version lines in ↵Robert Schiele5-4/+13
test summary files) 2003-12-09 Robert Schiele <rschiele@uni-mannheim.de> PR other/10819 * lib/gcc.exp (default_gcc_version): Do not match NL/CR characters to fix Bug 10819. * lib/g++.exp (g++_version): Likewise. * lib/g77.exp (g77_version): Likewise. * lib/objc.exp (default_objc_version): Likewise. From-SVN: r74507
2003-12-10* arm.md: New split patterns for optimizing bitfield accesses.Richard Earnshaw2-0/+169
From-SVN: r74503
2003-12-10README.Portability: Remove K+R section.Steven Bosscher3-211/+14
2003-12-10 Steven Bosscher <stevenb@suse.de> * README.Portability: Remove K+R section. * gengtype-lex.l: Teach about "void**" pointers and "void*" function types. From-SVN: r74501
2003-12-10re PR target/13354 (internal compiler error: in sparc_emit_set_const32)Eric Botcazou2-3/+16
PR target/13354 * config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA manually if one can do that with only one instruction. From-SVN: r74499
2003-12-10* cp-tree.h (DECL_CONV_FN_P): Check that DECL_NAME is non-NULL.Mark Mitchell2-1/+5
From-SVN: r74496
2003-12-10config.gcc (arm-linux): Include linux.h in tm_file so that ↵Nick Clifton1-0/+6
LINUX_TARGET_OS_CPP_BUILTINS is defined. * config.gcc (arm-linux): Include linux.h in tm_file so that LINUX_TARGET_OS_CPP_BUILTINS is defined. * config/arm/linux-elf.h (LIB_SPEC): Protect the definition. From-SVN: r74494
2003-12-10* gcc.c-torture/execute/wchar_t-1.c: Convert to utf-8.Richard Henderson2-4/+6
From-SVN: r74491
2003-12-10* gcc.dg/intermod-1.c: Adjust assembler scan pattern for alpha.Richard Henderson2-1/+5
From-SVN: r74490
2003-12-09Fix comment problem reported by Doug Evans.James E Wilson2-7/+11
* rtl.def (CODE_LABEL, NOTE): Correct operand numbers in comments. From-SVN: r74488
2003-12-10re PR c/13134 (Visibility attribute is ignored)Matt Austern21-1/+229
PR c/13134 * c--decl.c (duplicate_decls): Copy visibility flag when appropriate. * cp/decl.c (duplicate_decls): Copy visibility flag when appropriate. * testsuite/lib/gcc-dg.exp (dg-require-visibility): Define. * testsuite/lib/target-supports (check_visibility_available): Define. * testsuite/gcc.dg/visibility-1.c: New test. * testsuite/gcc.dg/visibility-2.c: Likewise. * testsuite/gcc.dg/visibility-3.c: Likewise. * testsuite/gcc.dg/visibility-4.c: Likewise. * testsuite/gcc.dg/visibility-5.c: Likewise. * testsuite/gcc.dg/visibility-6.c: Likewise. * testsuite/g++.dg/ext/visibility-1.C: Likewise. * testsuite/g++.dg/ext/visibility-2.C: Likewise. * testsuite/g++.dg/ext/visibility-3.C: Likewise. * testsuite/g++.dg/ext/visibility-4.C: Likewise. * testsuite/g++.dg/ext/visibility-5.C: Likewise. * testsuite/g++.dg/ext/visibility-6.C: Likewise. From-SVN: r74487
2003-12-10Daily bump.GCC Administrator1-1/+1
From-SVN: r74481
2003-12-09init.c (build_new_1): Deal with an OVERLOAD set when looking up for ↵Giovanni Bajo3-5/+23
_Jv_AllocObject. * init.c (build_new_1): Deal with an OVERLOAD set when looking up for _Jv_AllocObject. * except.c (build_throw): Likewise for _Jv_Throw. From-SVN: r74474
2003-12-09m32r.h: Add support for m32r2 processor.Kazuhiro Inaoka7-13/+44
* config/m32r/m32r.h: Add support for m32r2 processor. Including a new command line option -m32r2 to select it. * config/m32r/m32r.c: Add support for the new processor variant. * config/m32r/m32r.md: Likewise. * config/m32r/t-m32r: Add m32r2 multilibs. * doc/invoke.texi: Document the new command line switch. From-SVN: r74473
2003-12-08re PR c++/11971 (ICE in cp_expr_size with variadic function call)Jason Merrill5-22/+85
PR c++/11971 * tree.c (build_local_temp): Split out from build_cplus_new. (force_target_expr): New fn. * call.c (call_builtin_trap): Call it. Take a type parm. (convert_arg_to_ellipsis): Pass it. (build_x_va_arg): Use call_builtin_trap. PR c++/11929 * call.c (magic_varargs_p): New fn. (build_over_call): Do no ellipsis conversions for arguments to functions with magic varargs. From-SVN: r74462
2003-12-08re PR c++/11929 (Cannot obtain variable arguments list in function with last ↵Jason Merrill1-0/+12
named argument being of non-POD type) PR c++/11929 * call.c (magic_varargs_p): New fn. (build_over_call): Do no ellipsis conversions for arguments to functions with magic varargs. From-SVN: r74461
2003-12-09defaults.h (LOCAL_REGNO): Give the default definition.Kazu Hirata4-7/+10
* defaults.h (LOCAL_REGNO): Give the default definition. * flow.c (LOCAL_REGNO): Remove. * reload1.c (LOCAL_REGNO): Likewise. From-SVN: r74456
2003-12-09re PR target/11848 ([darwin] [no support for 128 doubles] internal compiler ↵Geoffrey Keating7-304/+156
error for -mlong-double-128) PR target/11848 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Allow change of mode in floating-point registers between TFmode and DImode. * rs6000.c (rs6000_emit_move): Split moves early. (secondary_reload_class): Random Whitespace Change. (rs6000_split_multireg_move): Support moves involving FP registers. Emit instructions directly. * rs6000-protos.h (rs6000_split_multireg_move): Update prototype. * altivec.md: Update for changes to rs6000_split_multireg_move. * rs6000.md: Update for changes to rs6000_split_multireg_move. (movtf_internal): Support moves to/from GPRs. From-SVN: r74454
2003-12-09i386.md: Typo in split of fp-valued if_then_else.Stuart Hastings2-1/+5
2003-12-08 Stuart Hastings <stuart@apple.com> * config/i386/i386.md: Typo in split of fp-valued if_then_else. From-SVN: r74453
2003-12-09Daily bump.GCC Administrator1-1/+1
From-SVN: r74451
2003-12-08name-lookup.c, [...]: Revert Giovanni's patch from yesterday.Jason Merrill4-27/+11
* name-lookup.c, init.c, except.c: Revert Giovanni's patch from yesterday. From-SVN: r74446
2003-12-08Fix IA-64 glibc ICE PR target/13132James E Wilson2-4/+15
Fix IA-64 glibc ICE PR target/13132 * expmed.c (extract_bit_field): Only call mode_for_size for scalar integer modes. From-SVN: r74443