aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-06-11gthr-win32.h: Wrap all functions in extern "C".Danny Smith4-14/+314
* gthr-win32.h: Wrap all functions in extern "C". (__gthread_key_t): Typedef as unsigned long, not win32 DWORD. (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE. (__gthread_mutex_t): Typedef as void*, not win32 HANDLE. (__gthr_win32_once, __gthr_win32_key_create, __gthr_win32_key_delete, __gthr_win32_getspecific, __gthr_win32_setspecific, __gthr_win32_mutex_init_function, __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock, __gthr_win32_mutex_unlock): Declare. (__gthread_once,__gthread_key_create, __gthread_key_delete, __gthread_getspecific, __gthread_setspecific, __gthread_mutex_init_function, __gthread_mutex_lock,__gthread_mutex_trylock, __gthread_mutex_unlock): Call corresponding __gthr_win32_* extern implementations if #defined __GTHREAD_HIDE_WIN32API. * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to $(srcdir)/config/i386/gthr-win32.c * config/i386/gthr-win32.c: New implementation file. (__gthr_win32_once, __gthr_win32_key_create, __gthr_win32_key_delete, __gthr_win32_getspecific, __gthr_win32_setspecific, __gthr_win32_mutex_init_function, __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock, __gthr_win32_mutex_unlock): New functions, based on static inlines in gthr-win32.h. From-SVN: r54484
2002-06-11xtensa.c (override_options): Don't warn about using -fpic or -fPIC when PIC ↵Bob Wilson2-8/+6
is enabled by default. * config/xtensa/xtensa.c (override_options): Don't warn about using -fpic or -fPIC when PIC is enabled by default. From-SVN: r54483
2002-06-1120001226-1.x: Only xfail for Xtensa targets if not optimizing.Bob Wilson2-3/+18
* gcc.c-torture/compile/20001226-1.x: Only xfail for Xtensa targets if not optimizing. From-SVN: r54481
2002-06-11* toplev.c (rest_of_compilation): Revert flag_if_conversion change.Roger Sayle2-1/+5
From-SVN: r54480
2002-06-10Makefile.in (MACHMODE_H): Add @extra_modes_file@.Zack Weinberg35-344/+690
* Makefile.in (MACHMODE_H): Add @extra_modes_file@. * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def exists, substitute its pathname as @extra_modes_file@, define EXTRA_MODES_FILE to be an appropriate string to #include it with, and define EXTRA_CC_MODES to 1. * machmode.def: Update comments. Include EXTRA_MODES_FILE if it's defined. Get rid of redundancy in calling sequence for CC; don't use it to define CCmode, to avoid a warning. * libgcc2.c: Include symcat.h for the sake of machmode.def. * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def, i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def, pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def: New files. * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h, pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES. * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for defining extra CC modes. From-SVN: r54478
2002-06-10cfgrtl.c (create_basic_block_structure): Remove index argument and use ↵Roger Sayle11-35/+37
last_basic_block++ instead. 2002-06-10 Roger Sayle <roger@eyesopen.com> Andreas Jaeger <aj@suse.de> * cfgrtl.c (create_basic_block_structure): Remove index argument and use last_basic_block++ instead. (create_basic_block): Update. * cfgbuild.c (find_basic_blocks_1): Likewise. * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument. * haifa-sched.c (sched_init): Update compute_bb_for_insn caller. * sched-ebb.c (schedule_ebbs): Likewise. * sched-rgn.c (schedule_insns): Likewise. * ssa-ccp.c (ssa_const_prop): Likewise. * ssa-dcs.c (ssa_eliminate_dead_code): Likewise. * toplev.c (rest_of_compilation): Likewise. * config/ia64/ia64.c (ia64_reorg): Likewise. Co-Authored-By: Andreas Jaeger <aj@suse.de> From-SVN: r54477
2002-06-10simplify-rtx.c (simplify_replace_rtx): Allow replacement of matching registers.Roger Sayle2-6/+16
* simplify-rtx.c (simplify_replace_rtx): Allow replacement of matching registers. From-SVN: r54476
2002-06-10toplev.c (rest_of_compilation): Disable early if-conversion pass.Roger Sayle3-6/+7
* toplev.c (rest_of_compilation): Disable early if-conversion pass. * gcse.c (bypass_conditional_jumps): Fix typo in setcc test. From-SVN: r54475
2002-06-10mmix.h: Improve comments.Hans-Peter Nilsson3-77/+44
* config/mmix/mmix.h: Improve comments. (CPP_SPEC, CPP_PREDEFINES): Don't define. (TARGET_CPU_CPP_BUILTINS): Define. (CANONICALIZE_COMPARISON): Don't define, replace with comment. (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove unused predicate. * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid compiler warning. (mmix_constant_address_p): Remove another redundant test before case. (mmix_canonicalize_comparison): Remove unused function. (mmix_print_operand_address): Don't test and adjust for operand in non-canonical format. (mmix_reg_or_8bit_or_256_operand): Remove unused predicate. (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON. From-SVN: r54474
2002-06-10m32r.h: Don't define SELECT_CC_MODE.Zack Weinberg4-28/+16
* config/m32r/m32r.h: Don't define SELECT_CC_MODE. * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode. * config/m32r/m32r.c: Don't define m32r_select_cc_mode. (gen_compare): Use CCmode unconditionally. From-SVN: r54473
2002-06-11re PR rtl-optimization/6759 (ice when compiling 32 bit sparc code)Jakub Jelinek4-2/+24
PR optimization/6759 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into the REQ_EQUAL note. * g++.dg/opt/cse1.C: New test. From-SVN: r54469
2002-06-10re PR c/6660 (Typedeffed unnamed structs/unions do not compile with gcc-3.1)Jakub Jelinek4-2/+67
PR c/6660 * c-decl.c (grokfield): Allow user defined types if they declare structs or unions for unnamed fields. * gcc.dg/20020527-1.c: New test. From-SVN: r54466
2002-06-10re PR c/6809 (GCC 3.1 cc1 crashes if -fverbose-asm is specified)Jakub Jelinek4-2/+30
PR c/6809 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields. * gcc.dg/20020530-1.c: New test. From-SVN: r54463
2002-06-10re PR rtl-optimization/6842 (internal compiler error using MMX intrinsics ↵Jakub Jelinek4-1/+35
with optimization) PR optimization/6842 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode operand subreg cannot be simplified. * gcc.dg/20020531-1.c: New test. From-SVN: r54462
2002-06-10varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.Jakub Jelinek4-0/+22
* varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR. (compare_constant): Likewise. (output_addressed_constants): Likewise. * g++.dg/opt/vt1.C: New test. From-SVN: r54459
2002-06-10cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't merge bb ↵Jakub Jelinek4-0/+27
with itself. * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't merge bb with itself. * gcc.c-torture/compile/20020605-1.c: New test. From-SVN: r54456
2002-06-10alpha.md (builtin_zap): Fix thinkos expanding mask.Richard Henderson2-4/+12
* config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask. (builtin_zapnot): Likewise. From-SVN: r54454
2002-06-10ev5.md: Don't combine shift and mvi insns in one reservation.Richard Henderson1-3/+8
* config/alpha/ev5.md: Don't combine shift and mvi insns in one reservation. From-SVN: r54453
2002-06-10i386.c (ix86_osf_output_function_prologue): Remove prototype and function.Eric Christopher3-187/+63
2002-06-10 Eric Christopher <echristo@redhat.com> * config/i386/i386.c (ix86_osf_output_function_prologue): Remove prototype and function. (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version. (call_insn_operand): Remove half pic references. (legitimate_address_p): Ditto. * config/i386/i386.h: Remove half pic defines. From-SVN: r54451
2002-06-10Fix typo in comment.Richard Henderson1-2/+2
From-SVN: r54450
2002-06-10extend.texi (Return Address): Add note explaining the side- effects of ↵Eric Christopher2-6/+14
inlining on __builtin_return_address. 2002-06-10 Eric Christopher <echristo@redhat.com> * doc/extend.texi (Return Address): Add note explaining the side- effects of inlining on __builtin_return_address. From-SVN: r54449
2002-06-10Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.Tom Tromey2-2/+7
* Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h. (c-common.o): Depend on langhooks.h. From-SVN: r54448
2002-06-10cpphash.h (_cpp_read_logical_line_trad, [...]): Update prototypes.Neil Booth5-13/+53
* cpphash.h (_cpp_read_logical_line_trad, _cpp_expansions_different_trad): Update prototypes. * cpplex.c (continue_after_nul): New. * cppmain.c: Include cpphash.h. (scan_translation_unit_trad): New. (cpp_preprocess_file): Call it. * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter overlay. (_cpp_expansions_different_trad): Update prototype. From-SVN: r54446
2002-06-10Fix cfi generation for SH[1-4]:J"orn Rennecke3-18/+62
* sh.c (frame_insn): New function. (output_stack_adjust): Add parameter emit_fn. All callers changed. (push): Now returns rtx. Use frame_insn. (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push of a DF register. * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define. From-SVN: r54445
2002-06-10Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h, and gtype-desc.c.Zack Weinberg2-11/+23
* Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h, and gtype-desc.c. (mostlyclean): Delete specs.h, options.h, gencheck.h here... (distclean): ... not here. But do delete all testsuite/*.log, testsuite/*.sum files here. Delete mkheaders. Delete po/*.gmo and the testsuite directory in a split tree build. From-SVN: r54443
2002-06-10alias.c (static_reg_base_value): New to hold RTL for items allocated once ↵Jeff Law7-28/+111
per function for the aliasing code. * alias.c (static_reg_base_value): New to hold RTL for items allocated once per function for the aliasing code. (init_alias_once_per_function): Initialize static_reg_base_value. (init_alias_analysis): Avoid throw-away allocations of RTL by using pre-computed values in static_reg_base_value. * function.c (prepare_function_start): Call init_alias_once_per_function appropriately. * rtl.h (init_alias_once_per_function): Declare. * caller-save (init_caller_save): Restructure slightly to avoid lots of silly RTL generation. * expr.c (init_expr_once): Likewise. * reload1.c (reload_cse_regs_1): Allocate throw-away register RTL object here. Pass it into children. (reload_cse_simplify_operands): Use passed-in register RTL object. (reload_cse_simplify): Pass through throw-away register RTL object. From-SVN: r54442
2002-06-10Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.Daniel Berlin2-1/+5
2002-06-10 Daniel Berlin <dberlin@dberlin.org> * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing. From-SVN: r54440
2002-06-10gcc.c (process_command): Avoid assignment to read-only location.Richard Sandiford2-15/+21
* gcc.c (process_command): Avoid assignment to read-only location. Fix sizeof calculation. From-SVN: r54439
2002-06-10Daily bump.GCC Administrator3-3/+3
From-SVN: r54438
2002-06-10cpphash.h (struct cpp_macro): Put comments on their own lines.Neil Booth4-30/+145
* cpphash.h (struct cpp_macro): Put comments on their own lines. (_cpp_expansions_different_trad): New. * cppmacro.c (warn_of_redefinition): Fix for traditional case. * cpptrad.c (canonicalize_text): New. (scan_out_logical_line): Handle no arguments correctly. (save_replacement_text): Commit memory when finished. (_cpp_expansions_different_trad): New. From-SVN: r54432
2002-06-10Don't use RTL inlining. Fix for PR java/6820.Bryce McKinlay2-0/+38
* lang.c (LANG_HOOKS_POST_OPTIONS): Define. (flag_really_inline): New. (java_decode_option): Set flag_really_inline if -finline-functions is seen. (java_post_options): New function. Turn off inlining unless flag_really_inline is set. From-SVN: r54430
2002-06-10gjavah.c (throwable_p): Accept argument as either a classname or signature ↵Bryce McKinlay2-10/+27
fragment. * gjavah.c (throwable_p): Accept argument as either a classname or signature fragment. Create null-terminated classname string for super when calling itself recursively. (decode_signature_piece): Skip first character from class name signature when calling throwable_p. From-SVN: r54427
2002-06-10Add more cscope data filesZack Weinberg1-0/+2
From-SVN: r54426
2002-06-10Fixes to make treelang worg with PCH gengtype.c changes.Tim Josling11-393/+417
From-SVN: r54425
2002-06-09Make configure.in check that languages specified were found.Tim Josling3-5/+30
From-SVN: r54418
2002-06-09Makefile.in (install-driver): Install driver as $(target_alias)-gcc-$(version).Geoffrey Keating4-66/+88
* Makefile.in (install-driver): Install driver as $(target_alias)-gcc-$(version). * gcc.c (spec_version): Make const. (process_command): Handle -V and -b by using exec. * doc/invoke.texi (Target Options): Restore -V option, update docs for -b option. From-SVN: r54417
2002-06-09Forgot to commit on Friday.Jeff Law1-4/+2
From-SVN: r54416
2002-06-09Doc fixes for treelang, in gcc/doc directory.Tim Josling5-3/+30
From-SVN: r54415
2002-06-09* config/cris/cris.c: Include ggc.hHans-Peter Nilsson2-0/+5
From-SVN: r54413
2002-06-09cpphash.h (_cpp_push_text_context): Update.Neil Booth4-95/+322
* cpphash.h (_cpp_push_text_context): Update. (_cpp_arguments_ok): New. * cppmacro.c (_cpp_arguments_ok): New, split out from... (collect_args): ...here. (_cpp_push_text_context): Change inputs. * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument, replace_args_and_push): New. (lex_identifier, _cpp_lex_identifier_trad, scan_parameters): Don't use IS macros directly. (scan_out_logical_line): Handle function-like macro argument collection. (push_replacement_text): Update. (replacement_length): Remove. (_cpp_create_trad_definition): Don't skip whitespace before checking for '('. From-SVN: r54412
2002-06-09avr.c (avr_mcu_types): Update for new devices.Marek Michalkiewicz5-34/+42
* config/avr/avr.c (avr_mcu_types): Update for new devices. * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls. (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices. * config/avr/avr.md ("type" and "length" attributes): New type "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that output a single "call" or "rcall" insn depending on device size. * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices. From-SVN: r54410
2002-06-09- Add PROCESSOR_DEFAULT64 changelog entry.David Edelsohn1-0/+1
From-SVN: r54409
2002-06-09- Add PROCESSOR_DEFAULT64 as well.David Edelsohn1-0/+2
From-SVN: r54408
2002-06-09{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3 synonym for 630.David Edelsohn7-62/+206
* config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3 synonym for 630. Add power4. Remove embedded processors. Use -m604 assembler option. (CPP_CPU_SPEC): Add power3 and power4. (PROCESSOR_DEFAULT): Change to 604e. * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions. (CPP_CPU_SPEC): Similar additions. (enum process_type): Add POWER4. (RTX_COSTS): Add POWER4. (CPP_CPU_SPEC): Similar additions. * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define. * config/rs6000/rs6000.c (rs6000_override_options): Add power4. (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to branch adjustment. (rs6000_issue_rate): Add Power4. * config/rs6000/rs6000.md (cpu attr): Add power4. (iu compare): Remove 604, 604e, 620, 630. Add basic Power4 scheduling information. (mfcr/mtcrf): Change type attribute to cr_logical. From-SVN: r54405
2002-06-09Daily bump.GCC Administrator3-3/+3
From-SVN: r54404
2002-06-09gengtype.h (error_at_line): Use PARAMS, not VPARAMS.Kaveh R. Ghazi3-2/+6
* gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add ATTRIBUTE_PRINTF_2. * gengtype-lex.l: Fix format specifier warning. From-SVN: r54394
2002-06-09genautomata.c: Don't include ctype.h or limits.h.Kaveh R. Ghazi5-35/+31
* genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE, not isspace. * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in lieu of isspace/IDchar. * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum. * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or ISSPACE. From-SVN: r54392
2002-06-09Makefile.in (LIBCPP_OBJS): Take out version.o.Zack Weinberg4-37/+22
* Makefile.in (LIBCPP_OBJS): Take out version.o. * cpphash.h (cpp_reader): Take out print_version member. * cppinit.c: (cpp_handle_option): Don't do anything with -version. Just set help_only for --version, --target-help. Just set verbose option for -v. (cpp_post_options): Don't print a version string. From-SVN: r54390
2002-06-08avr.c (TARGET_SECTION_TYPE_FLAGS): New.Marek Michalkiewicz2-0/+29
* config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New. (avr_section_type_flags): New, handle .noinit* sections. From-SVN: r54389
2002-06-08netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define and include netbsd_entry_point.Jason Thorpe2-12/+16
* config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define and include netbsd_entry_point. (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF. (NETBSD_ENTRY_POINT): Define. From-SVN: r54388