aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2003-06-16Whitespace change.Richard Kenner1-1/+1
From-SVN: r68031
2003-06-16tree.h (STMT_CHECK): New macro.Richard Kenner2-47/+51
* tree.h (STMT_CHECK): New macro. Also upper-case argument names on all checking macros and fix some whitespace problems; assume CODE argument does not have side-effects. From-SVN: r68028
2003-06-16scan.h: Convert to ISO C.Kaveh R. Ghazi3-49/+36
* scan.h: Convert to ISO C. * system.h: Likewise. From-SVN: r68027
2003-06-16fix typo in last patchJoern Rennecke1-1/+1
From-SVN: r68024
2003-06-16c-format.c (dynamic_format_types): New pointer for dynamic data.Kaveh R. Ghazi2-38/+78
* c-format.c (dynamic_format_types): New pointer for dynamic data. (find_length_info_modifier_index, init_dynamic_asm_fprintf_info): New functions split out of... (handle_format_attribute): ...here. From-SVN: r68023
2003-06-16sh.h (REG_CLASS_FROM_LETTER): Change to: (REG_CLASS_FROM_CONSTRAINT).J"orn Rennecke4-235/+416
* sh.h (REG_CLASS_FROM_LETTER): Change to: (REG_CLASS_FROM_CONSTRAINT). (CONST_OK_FOR_I): Rename to: (CONST_OK_FOR_I08). Changed all users. (CONST_OK_FOR_J): Rename to: (CONST_OK_FOR_I16). Changed all users. (CONST_OK_FOR_K): Rename to: (CONST_OK_FOR_P27). Changed all users. (CONST_OK_FOR_L): Rename to: (CONST_OK_FOR_K08). Changed all users. (CONST_OK_FOR_O): Rename to: (CONST_OK_FOR_I06). Changed all users. (CONST_OK_FOR_P): Rename to: (CONST_OK_FOR_I10). Changed all users. (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define. (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise. (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise. (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise. (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise. (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise. (CONST_OK_FOR_LETTER_P): Replace with (CONST_OK_FOR_CONSTRAINT_P). (EXTRA_CONSTRAINT_S): Rename to: (EXTRA_CONSTRAINT_C16). Changed all users. (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses. (EXTRA_CONSTRAINT_T): Rename to: (EXTRA_CONSTRAINT_Csy). Changed all users. (EXTRA_CONSTRAINT_Z): Remove. (EXTRA_CONSTRAINT): Replace with: (EXTRA_CONSTRAINT_STR). (EXTRA_CONSTRAINT_U): Rename to: (EXTRA_CONSTRAINT_Z). Changed all users. * sh.c (and_operand): Use CONST_OK_FOR_J16. * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints. (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise. (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise. (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise. (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise. (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise. (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise. (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise. (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise. (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise. (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise. (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise. (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise. (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise. (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise. (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise. (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise. (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise. (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise. (sssubv4hi3): Likewise. (movsf_i): Change I[08]/r to G/r. (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc. * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD. From-SVN: r68022
2003-06-16i386.c (ix86_memory_move_cost): Fix typo.Vladimir Makarov2-2/+6
2003-06-16 Vladimir Makarov <vmakarov@redhat.com> * config/i386/i386.c (ix86_memory_move_cost): Fix typo. From-SVN: r68020
2003-06-16basic-block.h: Remove duplicate prototype of note_prediction_to_br_prob.Andreas Jaeger2-4/+6
* basic-block.h: Remove duplicate prototype of note_prediction_to_br_prob. From-SVN: r68019
2003-06-16* tree.h: Remove duplicate prototype of strip_float_extensions.Andreas Jaeger2-1/+4
From-SVN: r68018
2003-06-16sh.c (prepare_move_operand): Check if operand 0 is an invalid memory reference.J"orn Rennecke3-3/+22
* sh.c (prepare_move_operand): Check if operand 0 is an invalid memory reference. Fix test that checks if operand 1 is using r0. * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) . From-SVN: r68017
2003-06-16c4x.c: Don't include "c-tree.h".Kaveh R. Ghazi5-3/+11
* config/c4x/c4x.c: Don't include "c-tree.h". * config/pa/pa.c: Likewise. * langhooks.c: Likewise. * tree.h (poplevel): Declare. From-SVN: r68016
2003-06-16cp-tree.h: Follow spelling conventions.Kazu Hirata5-10/+17
* cp-tree.h: Follow spelling conventions. * mangle.c: Likewise. * method.c: Likewise. * parser.c: Likewise. From-SVN: r68015
2003-06-16h8300.c (const_costs): Move this to ...Kazu Hirata2-51/+46
* config/h8300/h8300.c (const_costs): Move this to ... (h8300_rtx_costs): ... here. From-SVN: r68014
2003-06-16optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.Roger Sayle10-9/+132
* optabs.h (enum optab_index): Add new OTI_tan and OTI_atan. (tan_optab, atan_optab): Define corresponding macros. * optabs.c (init_optabs): Initialize tan_optab and atan_optab. * genopinit.c (optabs): Implement tan_optab and atan_optab using tan?f2 and atan?f2 patterns. * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L} using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab. Change the default value of errno_set to false. (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L} using expand_builtin_mathfn. * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New expander patterns implemented using existing atan2?f3 patterns. * gcc.dg/i386-387-5.c: New test case. * gcc.dg/i386-387-6.c: New test case. * gcc.dg/builtins-23.c: New test case. From-SVN: r68013
2003-06-16expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers both operands ↵Roger Sayle2-3/+22
of the addition equal... * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers both operands of the addition equal, reuse the expanded RTL. (expand_expr <MULT_EXPR>): Likewise for multiplication. From-SVN: r68012
2003-06-16fold-const.c (operand_equal_p): Consider two calls to "const" functions with ↵Roger Sayle2-2/+52
identical non-volatile arguments... * fold-const.c (operand_equal_p): Consider two calls to "const" functions with identical non-volatile arguments to be equal. Consider the FUNCTION_DECL for the "__builtin_foo" form of a built-in function to be equal to the "foo" form. Co-Authored-By: Jeff Law <law@redhat.com> From-SVN: r68011
2003-06-16Fix typo.Nathanael Nerode1-1/+1
From-SVN: r68010
2003-06-16sysv4le.h: Remove target-independent comment.Nathanael Nerode2-10/+6
* config/rs6000/sysv4le.h: Remove target-independent comment. Replace "GNU compiler" with "GCC" in comment. From-SVN: r68009
2003-06-16tracer.c: Remove duplication declaration.Andreas Jaeger9-13/+22
* tracer.c: Remove duplication declaration. * toplev.c: Remove extra declaration of decode_d_option. * ssa.c: Remove duplicate declaration. * sreal.c: Remove extra declaration of dump_sreal. * reload1.c: Remove duplicate declarations. * integrate.c: Remove extra declaration of set_decl_abstract_flags. * flow.c: Remove extra declaration of dump_flow_info. * alias.c: Remove extra declaration of get_addr. From-SVN: r68006
2003-06-16rtems.h, [...]: GNU CC -> GCC.Nathanael Nerode6-20/+23
* config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h, config/vxworks.h: GNU CC -> GCC. From-SVN: r68005
2003-06-16convert.c, [...]: Replace overly specific references to "GNU C" and "GNU C ↵Nathanael Nerode19-18/+26
Compiler" with... * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c, lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c, stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h, ssa.h, tree.def: Replace overly specific references to "GNU C" and "GNU C Compiler" with references to "GCC". From-SVN: r68004
2003-06-16* (REG_CLASS_FROM_CONSTRAINT): Only define if not already defined.J"orn Rennecke2-0/+6
From-SVN: r68003
2003-06-16function.h (struct emit_status): Remove x_last_linenum, x_last_filename.Nathan Sidwell8-59/+92
* function.h (struct emit_status): Remove x_last_linenum, x_last_filename. Add x_last_location. * rtl.h: #include "input.h". (NOTE_DATA): New. * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line number notes. * emit-rtl.c (last_linenum, last_filename): Remove. (last_location): New. (emit_line_note_after): LINE must always be >= 0. (emit_line_note): Likewise. Check not duplicate here... (emit_note): ... rather than here. (emit_line_note_force, force_next_line_note, init_emit): Adjust. * integrate.c (expand_inline_function): Use emit_line_note for line number notes. (copy_insn_list): Likewise. * unroll.c (copy_loop_body): Likewise. * Makefile.in (RTL_H): Add input.h. From-SVN: r68002
2003-06-16* optabs.c (emit_libcall_block): Don't hoist insns past a label.Richard Sandiford2-0/+9
From-SVN: r68001
2003-06-15alpha-protos.h, [...]: Update to ISO C.Richard Henderson9-1163/+707
* config/alpha/alpha-protos.h, config/alpha/elf.h, config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h, config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C. * config/alpha/alpha.c: Likewise. Move targetm init to end of file. Remove unneeded static function decls. From-SVN: r68000
2003-06-16c-opts.c (c_common_handle_option): s/on/value/.Neil Booth10-209/+234
* c-opts.c (c_common_handle_option): s/on/value/. (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value directly rather than converting the argument. * c.opt: Update docs. Use UInteger where appropriate. * common.opt: Use UInteger where appropriate. * opts.c (integral_argument): New. (handle_argument): Handle integral arguments, and optional joined arguments. (common_handle_option): Update. * opts.h (CL_MISSING_OK, CL_UINTEGER): New. * opts.sh: Handle JoinedOrMissing and UInteger flags. java: * lang.c (java_handle_option): Special-casing of optional joined arguments no longer needed. * lang.opt: Update switches that take optional argument. From-SVN: r67999
2003-06-16sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove unnecessary extern declaration.Neil Booth2-2/+5
* config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove unnecessary extern declaration. From-SVN: r67998
2003-06-16gofast.h, [...]: GNU CC -> GCC.Nathanael Nerode10-35/+41
* config/gofast.h, config/interix.h, config/interix3.h, config/libgloss.h, config/linux-aout.h, config/linux.h, config/lynx-ng.h, config/lynx.h: GNU CC -> GCC. * config/kaos.h: "GNU compiler" -> GCC. * config/linux-aout.h, config/lynx.h: Clarify comment describing file. From-SVN: r67997
2003-06-16crt0.S, [...]: GNU CC -> GCC.Nathanael Nerode6-20/+24
* config/ip2k/crt0.S, config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S: GNU CC -> GCC. From-SVN: r67996
2003-06-16svr3.h: Remove #if 0 code, misleading comments.Nathanael Nerode2-34/+10
* config/svr3.h: Remove #if 0 code, misleading comments. GNU CC -> GCC. From-SVN: r67995
2003-06-16Daily bump.GCC Administrator1-1/+1
From-SVN: r67993
2003-06-15vmsdbgout.c (vmsdbgout_finish): Rename parameter to main_input_filename to ↵Zack Weinberg2-3/+8
avoid conflict with input_filename macro. * vmsdbgout.c (vmsdbgout_finish): Rename parameter to main_input_filename to avoid conflict with input_filename macro. From-SVN: r67990
2003-06-15mips.h (asm_file_name, [...]): Remove.Neil Booth3-6/+7
* config/mips/mips.h (asm_file_name, g_switch_set, g_switch_value): Remove. * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove unnecessary extern declarations. From-SVN: r67988
2003-06-15frv.h: Remove declaration of g_switch_value.Neil Booth4-6/+6
* config/frv/frv.h: Remove declaration of g_switch_value. * config/m32r/m32r.h: Remove declaration of g_switch_value. * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name. From-SVN: r67987
2003-06-15* opts.sh: Quote '+' in regex.Neil Booth1-1/+1
From-SVN: r67984
2003-06-15* opts.sh: Quote '+' in regex.Neil Booth2-1/+5
From-SVN: r67983
2003-06-15t-rs6000: Add dependence of cfglayout.h to rs6000.o.Andrew Pinski7-1/+16
* config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o. * config/rs6000/rs6000.c: Include cfglayout.h. * config/alpha/alpha.c: Likewise. * config/ia64/ia64.c: Likewise. * config/sparc/sparc.c: Likewise. * config/sh/sh.c: Likewise. From-SVN: r67982
2003-06-15* opts.sh: Quote '+' in regex.Neil Booth2-1/+7
From-SVN: r67978
2003-06-15document why POSIXLY_CORRECT must be unsetNathan Sidwell1-1/+2
From-SVN: r67977
2003-06-15c-opts.c (lang_flags): Update for new spelling of flags.Neil Booth17-132/+103
* c-opts.c (lang_flags): Update for new spelling of flags. (write_langs): Similarly. * c.opt: Specify languages. * opts.h: Remove languages. * opts.sh: Recognise front-end defined languages. ada: * lang.opt: Declare Ada. * misc.c (gnat_init_options): Update. doc: * sourcebuild.texi: Update. f: * lang.opt: Declare F77. java: * lang.opt: Declare Java. * lang.c (java_init_options): Update. treelang: * lang.opt: Declare Treelang. Update. * tree1.c (treelang_init_options): Update. From-SVN: r67976
2003-06-15alloc-pool.c: Convert to ISO C90 prototypes.Andreas Jaeger13-712/+404
* alloc-pool.c: Convert to ISO C90 prototypes. * alloc-pool.h: Likewise. * alias.c: Likewise. * attribs.c: Likewise. * bb-reorder.c: Likewise. * bitmap.h: Likewise. * bitmap.c: Likewise. * builtins.c: Likewise. * tree.h: Convert prototypes of attribs.c to ISO C90. * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90. * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90. * expr.h: Convert prototypes of builtins.c to ISO C90. From-SVN: r67975
2003-06-15* gencheck.c (main): Avoid generating duplicate macros.Richard Kenner2-3/+13
From-SVN: r67974
2003-06-15i386.md (expsf2, [...]): New patterns to implement exp, expf and expl ↵Roger Sayle7-1/+171
built-ins as inline x87 intrinsics. * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to implement exp, expf and expl built-ins as inline x87 intrinsics. (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to represent x87's fscale, frndint and f2xm1 insns respectively. (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns to encode x87's "fscale" instruction followed by a pop. (*frndintxf2): New insn pattern for "frndint". (*f2xm1xf2): New insn pattern for "f2xm1". * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like UNSPEC_FPATAN. * gcc.dg/builtins-22.c: New test case. * gcc.dg/i386-387-1.c: Update to test exp. * gcc.dg/i386-387-2.c: Likewise. From-SVN: r67973
2003-06-15Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of knowing names ↵Richard Kenner2-1/+10
of language subdirectories. * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of knowing names of language subdirectories. From-SVN: r67972
2003-06-15c-pch.c (asm_file_name): Remove.Neil Booth9-174/+178
* c-pch.c (asm_file_name): Remove. * common.opt: Add more switches. * flags.h (g_switch_set): Boolify. * opts.c (g_switch_value, g_switch_set, exit_after_options, version_flag): Move from toplev.c. (common_handle_option): Handle more switches from toplev.c. * toplev.c (display_help, display_target_options, decode_d_option, print_version): Make non-static, remove prototypes. (aux_base_name, asm_file_name, aux_info_file_name): Constify. (version_flag, g_switch_value, g_switch_set, exit_after_options): Remove. (independent_decode_option): Move some handlers to opts.c. * toplev.h (aux_info_file_name, aux_base_name, asm_file_name, exit_after_options, version_flag, display_help, display_target_options, print_version, decode_d_option): New. java: * lang.c (version_flag): Rename to v_flag to avoid clash w/ toplev.h. From-SVN: r67971
2003-06-15alpha.md: Follow spelling conventions.Kazu Hirata9-9/+20
* config/alpha/alpha.md: Follow spelling conventions. * config/arm/arm.c: Likewise. * config/arm/arm.h: Likewise. * config/arm/arm.md: Likewise. * config/arm/crtn.asm: Likewise. * config/m32r/m32r.c: Likewise. * config/m32r/m32r.md: Likewise. * config/rs6000/rs6000.c: Likewise. From-SVN: r67970
2003-06-15alpha.c (alpha_output_mi_thunk_osf): Call insn_locators_initialize.Richard Henderson6-2/+16
* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call insn_locators_initialize. * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise. * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise. * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise. * config/sh/sh.c (sh_output_mi_thunk): Do it later. From-SVN: r67969
2003-06-15builtins.c (expand_builtin_expect_jump): Remove redundant tests that are ↵Kazu Hirata2-7/+7
also in any_condjump_p(). * builtins.c (expand_builtin_expect_jump): Remove redundant tests that are also in any_condjump_p(). From-SVN: r67966
2003-06-15libgcc2.c: Delete sysV68 L_trampoline section.Kaveh R. Ghazi4-285/+6
* libgcc2.c: Delete sysV68 L_trampoline section. * config/m68k/mot3300-crt0.S: Delete file. * config/m68k/mot3300Mcrt0.S: Likewise. From-SVN: r67965
2003-06-15aoutos.h: Remove.Nathanael Nerode4-43/+7
* config/aoutos.h: Remove. * config.gcc: Remove reference to aoutos.h. * config/m68k/m68k-aout.h: Remove reference to aoutos.h. From-SVN: r67964