aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-10-11t-uclinux: New target Makefile fragment.Bernardo Innocenti4-0/+99
* config/m68k/t-uclinux: New target Makefile fragment. * config/m68k/uclinux.h: New target macro file. * config.gcc (m68k-*-uclinux): New target definition. From-SVN: r72328
2003-10-11builtins.c (builtin_mathfn_code): Generalize to check whether the call is to ↵Roger Sayle2-24/+52
any built-in function by comparing... * builtins.c (builtin_mathfn_code): Generalize to check whether the call is to any built-in function by comparing the call's argument list against the builtin decl's function type. From-SVN: r72327
2003-10-11cse.c (constant_pool_entries_regcost): New global variable to hold the ↵Roger Sayle3-3/+44
register cost component of... * cse.c (constant_pool_entries_regcost): New global variable to hold the register cost component of constant_pool_entries_cost. (fold_rtx): Calculate constant_pool_entries_regcost at the same time as constant_pool_entries_cost. (cse_insn): Set both src_folded_cost and src_folded_regcost from constant_pool_entries_cost and constant_pool_entries_regcost. (cse_main): Initialize constant_pool_entries_regcost to zero. * optabs.c (expand_unop): Attach a REG_EQUAL note describing the semantics of the sequence of bit operations used to negate a floating-point value. (expand_abs_nojump): Likewise attach a REG_EQUAL note describing the semantics of the bit operations used to abs a floating point value. From-SVN: r72326
2003-10-11lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__ support.Bernardo Innocenti7-120/+276
* config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__ support. * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on -fpic, -fPIC, -msep-data and -mid-shared-library. * config/m68k/m68k.c (m68k_library_id_string): New global variable. (override_options): Add -msep-data and -mshared-library-id support. (m68k_output_function_prologue): Generate code to load A5 for TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA. (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY. (m68k_output_pic_call): New function. * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag. (TARGET_ID_SHARED_LIBRARY): Ditto. (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data. * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call(). (call_value): Likewise. From-SVN: r72324
2003-10-11m68k.c (m68k_frame): Move before protos referencing it.Bernardo Innocenti1-0/+12
* config/m68k/m68k.c (m68k_frame): Move before protos referencing it. (m68k_save_reg): Add boolean parameter `interrupt_handler'. (m68k_interrupt_function_p): New function. (m68k_handle_fndecl_attribute): Ditto. (m68k_compute_frame_layout): Ditto. (m68k_attribute_table): Define back-end specific attributes. (m68k_output_function_epilogue): Emit RTE instruction for interrupt functions. From-SVN: r72323
2003-10-11gengenrtl.c (find_formats, genheader): Make i an unsigned int, remove cast ↵Zack Weinberg3-25/+23
of NUM_RTX_CODE. * gengenrtl.c (find_formats, genheader): Make i an unsigned int, remove cast of NUM_RTX_CODE. * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the entire file. Remove the #ifs on GET_MODE_MASK etc and GET_MODE_WIDER_MODE etc. From-SVN: r72321
2003-10-11Daily bump.GCC Administrator1-1/+1
From-SVN: r72319
2003-10-10ia64.c (ia64_vms_init_libfuncs): New function.Richard Kenner3-11/+43
* config/ia64/ia64.c (ia64_vms_init_libfuncs): New function. (ia64_output_function_prologue): Only write .prologue if --with-gnu-as. (ia64_initialize_trampoline): If not using GAS, declare trampoline as global. * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS. (ASM_OUTPUT_DEBUG_LABEL): Likewise. From-SVN: r72316
2003-10-10lcm.c (optimize_mode_switching): Change NORMAL_MODE to MODE_ENTRY and MODE_EXIT.Eric Christopher5-79/+139
2003-10-10 Eric Christopher <echristo@redhat.com> * lcm.c (optimize_mode_switching): Change NORMAL_MODE to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns that set mode. * config/sh/sh.h (MODE_ENTRY): New macro. (MODE_EXIT): Ditto. (MODE_AFTER): Ditto. * config/sh/sh.md: Change for MODE_AFTER. Add fp_set attribute. * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT. From-SVN: r72315
2003-10-10genmodes.c, [...]: New files.Zack Weinberg1-6/+43
* genmodes.c, mode-classes.def: New files. * machmode.def: Rewritten to genmodes.c interface. * Makefile.in (extra_modes_file): New substitution variable. (MACHMODE_H): No longer includes machmode.def or @extra_modes_file@; instead, mode-classes.def and insn-modes.h. (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o. (OBJS-common): Add insn-modes.o. (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and genmodes$(build_exeext). (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o, genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets. (s-genrtl): Don't depend on $(RTL_BASE_H). (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h, or $(RTL_BASE_H); just rtl.def. * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or real.h. Give fake definition of CONST_DOUBLE_FORMAT and substitute definition of NUM_RTX_CODE. Add casts to avoid warnings. * machmode.h: Include insn-modes.h, not machmode.def. Include mode-classes.def to define enum mode_class. Tweak definitions of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK, GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE. (inner_mode_array): Renamed mode_inner. (mode_base_align): New. * rtl.c (mode_name, mode_class, mode_bitsize, mode_size, mode_unit_size, mode_wider_mode, mode_mask_array, inner_mode_array, class_narrowest_mode): Delete definitions. * stor-layout.c (get_mode_alignment): Use mode_base_align. * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode and TFmode, in real_format_for_mode and REAL_MODE_FORMAT. * config/ip2k/ip2k.h, config/iq2000/iq2000.h: No need to define BITS_PER_UNIT. * stor-layout.c (compute_record_mode): Don't force BLKmode if field is zero-length BLKmode. * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode zero-size references. * combine.c (distribute_links): Properly test for REG being set. From-SVN: r72314
2003-10-10genmodes.c, [...]: New files.Zack Weinberg11-302/+1154
* genmodes.c, mode-classes.def: New files. * machmode.def: Rewritten to genmodes.c interface. * Makefile.in (extra_modes_file): New substitution variable. (MACHMODE_H): No longer includes machmode.def or @extra_modes_file@; instead, mode-classes.def and insn-modes.h. (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o. (OBJS-common): Add insn-modes.o. (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and genmodes$(build_exeext). (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o, genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets. (s-genrtl): Don't depend on $(RTL_BASE_H). (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h, or $(RTL_BASE_H); just rtl.def. * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or real.h. Give fake definition of CONST_DOUBLE_FORMAT and substitute definition of NUM_RTX_CODE. Add casts to avoid warnings. * machmode.h: Include insn-modes.h, not machmode.def. Include mode-classes.def to define enum mode_class. Tweak definitions of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK, GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE. (inner_mode_array): Renamed mode_inner. (mode_base_align): New. * rtl.c (mode_name, mode_class, mode_bitsize, mode_size, mode_unit_size, mode_wider_mode, mode_mask_array, inner_mode_array, class_narrowest_mode): Delete definitions. * stor-layout.c (get_mode_alignment): Use mode_base_align. * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode and TFmode, in real_format_for_mode and REAL_MODE_FORMAT. * config/ip2k/ip2k.h, config/iq2000/iq2000.h: No need to define BITS_PER_UNIT. From-SVN: r72313
2003-10-10* gcc.c-torture/compile/20031010-1.c: New test.Ian Lance Taylor2-0/+8
From-SVN: r72312
2003-10-10stor-layout.c (compute_record_mode): Don't force BLKmode if field is ↵Richard Kenner3-6/+17
zero-length BLKmode. * stor-layout.c (compute_record_mode): Don't force BLKmode if field is zero-length BLKmode. * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode zero-size references. From-SVN: r72311
2003-10-10* combine.c (distribute_links): Properly test for REG being set.Richard Kenner2-0/+4
From-SVN: r72310
2003-10-10alpha.c (alpha_expand_block_mode): Don't use gen_lowpart and company except ↵Richard Kenner2-2/+8
for REG. * config/alpha/alpha.c (alpha_expand_block_mode): Don't use gen_lowpart and company except for REG. From-SVN: r72309
2003-10-10va-arg-24.c: Correct, and rename to...Geoffrey Keating2-2/+7
* gcc.c-torture/execute/va-arg-24.c: Correct, and rename to... * gcc.c-torture/execute/va-arg-25.c: ... here. From-SVN: r72307
2003-10-10Fix uses of old-style date format in ChangeLog (Jan Hubicka, twice).Nathanael Nerode1-2/+2
From-SVN: r72306
2003-10-10* pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.John David Anglin2-2/+6
From-SVN: r72305
2003-10-10config.gcc (mips*-*-netbsd*): Remove content-free line.Nathanael Nerode2-2/+5
* config.gcc (mips*-*-netbsd*): Remove content-free line. Also fixed old-style ChangeLog date to be new-style. From-SVN: r72304
2003-10-10Fri Oct 10 18:54:39 CEST 2003 Herman A.J. ten Brugge <hermantenbrugge@home.nl>Herman A.J. ten Brugge2-0/+26
* gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t, gcov_position_t and gcov_type. From-SVN: r72301
2003-10-10configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.Kaz Kojima3-0/+31
* configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases. * configure: Regenerate. From-SVN: r72294
2003-10-10Daily bump.GCC Administrator1-1/+1
From-SVN: r72291
2003-10-09h8300.md (define_asm_attributes): Specify the length of an asm insn more ↵Kazu Hirata2-1/+10
precisely. * config/h8300/h8300.md (define_asm_attributes): Specify the length of an asm insn more precisely. From-SVN: r72289
2003-10-09* config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.Rainer Orth2-0/+9
From-SVN: r72288
2003-10-09xtensa.c (xtensa_dbx_register_number): Change first FP register number to 48 ↵Bob Wilson2-9/+9
and MAC16 accumulator to 0x210. * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first FP register number to 48 and MAC16 accumulator to 0x210. From-SVN: r72283
2003-10-09* g++.dg/ext/attrib8.C: Only run it on x86 targets.Mark Mitchell2-0/+5
From-SVN: r72280
2003-10-09decl.c (java_init_decl_processing): Declare signers field.Tom Tromey3-0/+7
* decl.c (java_init_decl_processing): Declare signers field. * class.c (make_class_data): Set signers field. From-SVN: r72270
2003-10-09config.gcc: Remove redundant thread_file setting clauses for various ↵Nathanael Nerode2-11/+5
*-*-linux* targets. * config.gcc: Remove redundant thread_file setting clauses for various *-*-linux* targets. From-SVN: r72269
2003-10-09* config/h8300/h8300.md (define_asm_attributes): New.Kazu Hirata2-0/+10
From-SVN: r72264
2003-10-09optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note to the ↵Roger Sayle2-58/+55
comparison... * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note to the comparison, as emit_libcall_block calls copy_rtx on equiv. From-SVN: r72262
2003-10-09haifa-sched.c (ok_for_early_schedule): New function.Dorit Naishlos12-3/+514
* haifa-sched.c (ok_for_early_schedule): New function. (early_queue_to_ready): New function. (schedule_block): Allow early removal of insns from Q. (schedule_insn): Update INSN_TICK in case of premature issue. * common.opt (sched_stalled_insns): New flag. (sched_stalled_insns_dep): New flag. * flags.h: Same above flags. * opts.c: Same as above. * toplev.c: Same as above. * target.h (targetm.sched.is_costly_dependence): New hook. * target-def.h: Same as above. * config/rs6000/rs6000.h: (rs6000_sched_costly_dep): Support new flag -msched-costly-dep. (DEFAULT_SCHED_COSTLY_DEP): Define. * config/rs6000/rs6000.c: (rs6000_is_costly_dependence): New function. (is_load_insn, is_store_insn): New functions. (is_load_insn1, is_store_insn1, is_mem_ref): New functions. * doc/invoke.texi (-fsched-stalled-insns-dep) (-fsched-stalled-insns, -msched-costly-dep): Document options. * doc/tm.texi (is_costly_dependence): Define new scheduler target hook. From-SVN: r72261
2003-10-09re PR middle-end/6392 (Problems with __restrict__ type qualifier (array))Jason Merrill1-0/+7
PR c++/6392 * cp/tree.c (build_cplus_array_type): Handle all quals the same. (cp_build_qualified_type_real): Look through arrays first. * c-common.c (c_build_qualified_type): Look through arrays first. (c_apply_type_quals_to_decl): Look through arrays. From-SVN: r72260
2003-10-09re PR middle-end/6392 (Problems with __restrict__ type qualifier (array))Jason Merrill4-70/+87
PR c++/6392 * cp/tree.c (build_cplus_array_type): Handle all quals the same. (cp_build_qualified_type_real): Look through arrays first. * c-common.c (c_build_qualified_type): Look through arrays first. (c_apply_type_quals_to_decl): Look through arrays. * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for types with constructors. From-SVN: r72259
2003-10-09tweak whitespaceJason Merrill1-2/+2
From-SVN: r72256
2003-10-09stmt.c (resolve_asm_operand_names): Call check_unique_operand_names here.Jason Merrill10-14/+50
* stmt.c (resolve_asm_operand_names): Call check_unique_operand_names here. (expand_asm_operands): Not here. (parse_input_constraint): No longer static. * tree.h: Declare it. * coverage.c (build_ctr_info_value): Use build_decl to make a VAR_DECL. (create_coverage): Likewise. java/ * parse.y (patch_assignment): Use make_node to create a BLOCK. * parse.h (BUILD_PTR_FROM_NAME): Use make_node to create a POINTER_TYPE. cp/ * tree.c (build_cplus_new): Use build_decl to create a VAR_DECL. (build_target_expr_with_type): Likewise. * pt.c (instantiate_class_template): Sanity check that our enclosing class has been instantiated. From-SVN: r72255
2003-10-09t-linux (SHLIB_LINK): Override to use a linker script libgcc_s.so.Kaz Kojima2-0/+26
* config/sh/t-linux (SHLIB_LINK): Override to use a linker script libgcc_s.so. (SHLIB_INSTALL): Likewise. From-SVN: r72254
2003-10-09install.texi: Remove reference to removed 'pthreads' thread option.Nathanael Nerode2-4/+5
* doc/install.texi: Remove reference to removed 'pthreads' thread option. From-SVN: r72253
2003-10-09Daily bump.GCC Administrator1-1/+1
From-SVN: r72250
2003-10-08rs6000.md ("abssi2_isel"): Add early clobber to operand 2.Aldy Hernandez2-1/+6
2003-10-08 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to operand 2. From-SVN: r72247
2003-10-08config.gcc: Don't accept --enable-threads=pthreads.Nathanael Nerode4-15/+24
* config.gcc: Don't accept --enable-threads=pthreads. Clean up related case statements. * configure.in: Don't accept --enable-threads=pthreads, decosf1, mach, or os2 (none of which work anyway). Alphabetize supported thread files in case clause. * configure: Regenerate. From-SVN: r72244
2003-10-08function.c (pad_to_arg_alignment): Move 'boundary_in_bytes' definition to ↵Geoffrey Keating2-2/+6
above SPARC_STACK_BOUNDARY_HACK. * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes' definition to above SPARC_STACK_BOUNDARY_HACK. From-SVN: r72241
2003-10-08c-pretty-print.c (pp_c_postfix_expression): Fix thinko.Jason Merrill2-1/+6
* c-pretty-print.c (pp_c_postfix_expression) <COMPOUND_LITERAL_EXPR>: Fix thinko. From-SVN: r72236
2003-10-08* mklibgcc.in: Don't hide undefined or typeless symbols.Rainer Orth2-1/+7
From-SVN: r72235
2003-10-08re PR rtl-optimization/12142 (-fnon-call-exceptions generates incorrect code)John David Anglin3-36/+48
PR optimization/12142 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the uses of the register in the SET_SRC. Remove unnecessary argument. * pa.c (legitimize_pic_address): Before reload, use a scratch register for the intermediate result in loading the address of a SYMBOL_REF. Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn which loads the SYMBOL_REF address. From-SVN: r72234
2003-10-08re PR bootstrap/12490 (buffer overflow in scan-decls.c)Timo Kokkonen2-1/+17
PR bootstrap/12490 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant to define the size of the extern_C_braces array. Set it to 200. (scan_decls): Abort when extern_C_braces_length is out-of-bounds. Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr> From-SVN: r72224
2003-10-08Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand a space after ↵Carlo Wood2-1/+7
the -o option. * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand a space after the -o option. flex 2.5.31 understands both, with and without the space. Removed that space. From-SVN: r72223
2003-10-08mips.c (mips_frame_info): Add cprestore_size field.Richard Sandiford2-16/+33
* config/mips/mips.c (mips_frame_info): Add cprestore_size field. (compute_frame_size): Initialize it. Remove the .cprestore slot from args_size. (mips_output_function_prologue): Simplify accordingly. (mips_debugger_offset): Change the mips16 frame pointer offset from current_function_outgoing_args to cfun->machine->frame.args_size. (mips_initial_elimination_offset): Likewise. (mips_expand_prologue): Likewise. (mips_expand_epilogue): Likewise. From-SVN: r72222
2003-10-08mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.Richard Sandiford3-9/+24
* config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint. (EXTRA_MEMORY_CONSTRAINT): Define. (CAN_ELIMINATE): Remove lwu workaround. * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too. Use a 'W' constraint for the source operand. From-SVN: r72221
2003-10-08genopinit.c (main): Output code to declare undefined variables.Kazu Hirata2-0/+10
* genopinit.c (main): Output code to declare undefined variables. From-SVN: r72220
2003-10-08Fix pathname in last delta.Richard Sandiford1-1/+1
From-SVN: r72219