aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2000-08-04Removed conditional #defines of macros GCC always definesBruce Korb1-9/+0
From-SVN: r35480
2000-08-04Implement, but leave disabled, MSDOS functionalityBruce Korb8-96/+498
From-SVN: r35479
2000-08-04cppdefault.h (WINT_TYPE): Define.Joseph Myers4-0/+19
* cppdefault.h (WINT_TYPE): Define. * cppinit.c (builtin_array): Define __WINT_TYPE__. * tradcpp.c (initialize_builtins): Define __WINT_TYPE__. * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document. From-SVN: r35478
2000-08-04(mips_legitimate_address_p): Don't allow register+offset if the offset is ↵Clinton Popetz2-0/+10
large and negative... * (mips_legitimate_address_p): Don't allow register+offset if the offset is large and negative, and we are compiling for 64 bit registers. From-SVN: r35477
2000-08-04Daily bump.Jeff Law2-2/+2
From-SVN: r35475
2000-08-04h8300.c (function_prologue): Rearrange code for conciseness.Kazu Hirata3-145/+91
* h8300.c (function_prologue): Rearrange code for conciseness. (function_epilogue): Likewise. * hh8300.h (OK_FOR_U): Fix formatting. From-SVN: r35474
2000-08-04gencodes.c (main): Define CODE_FOR_nothing as the last possible ↵Herman A.J. ten Brugge2-1/+6
insn_code_number + 1. * gencodes.c (main): Define CODE_FOR_nothing as the last possible insn_code_number + 1. From-SVN: r35473
2000-08-04* cse.c: Fix a comment typo. Fix formatting.Kazu Hirata2-162/+169
From-SVN: r35472
2000-08-03i386.md (return_indirect_internal): New.Richard Henderson3-1/+14
* i386.md (return_indirect_internal): New. * i386.c (ix86_expand_epilogue): Use it. From-SVN: r35471
2000-08-04cpplex.c (parse_name): Might have to glue a CPP_OTHER token before the name.Zack Weinberg13-102/+144
* cpplex.c (parse_name): Might have to glue a CPP_OTHER token before the name. (lex_line): Glue @ onto the beginning of identifiers and string constants, in Objective-C mode. (output_token, spell_token): Handle CPP_OSTRING. (can_paste, maybe_paste_with_next): Handle pasting @ onto the beginning of a NAME or a STRING, in objc mode. * cpplib.c (get_define_node): Do not permit identifiers that begin with @ to be #defined. * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER. * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING. * c-lang.c, objc/objc-act.c (build_objc_string): Delete. * c-tree.h (build_objc_string): Delete prototype. * objc/objc-tree.def: Delete OBJC_STRING_CST. * c-lex.c (yylex): Use build_string for all three kinds of strings. * gcc.dg/cpp/20000625-2.c: Don't expect a warning on line 4. From-SVN: r35470
2000-08-03pt.c (do_type_instantiation): Add complain parm; don't complain if called ↵Jason Merrill4-10/+27
recursively. * pt.c (do_type_instantiation): Add complain parm; don't complain if called recursively. * cp-tree.h, parse.y: Adjust. From-SVN: r35467
2000-08-03* extend.texi: Fix typo in last change.Mark Mitchell2-1/+3
From-SVN: r35466
2000-08-03extend.texi: Add commentary on statement-expressions and their interactions ↵Mark Mitchell1-0/+5
with C++. * extend.texi: Add commentary on statement-expressions and their interactions with C++. From-SVN: r35464
2000-08-03ChangeLogMark Mitchell1-0/+43
From-SVN: r35463
2000-08-03Change java language number to 0x000bNick Clifton3-3/+8
From-SVN: r35462
2000-08-03* dce: New file.Mark Mitchell1-0/+1
From-SVN: r35461
2000-08-03Apply patch from Anthony Green to add java language support to Dwarf generation.Anthony Green5-3/+27
From-SVN: r35460
2000-08-03reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap operands.Jan Hubicka3-4/+12
* reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap operands. * i386.c (ix86_expand_branch): Mode of comparison in IF_THEN_ELSE is VOIDmode. From-SVN: r35458
2000-08-03* gengenrtl.c, rtl.c: Avoid #elif.Akiko Matsushita3-48/+90
From-SVN: r35456
2000-08-03h8300.c: Fix a comment typo.Kazu Hirata3-4/+7
* h8300.c: Fix a comment typo. * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S. From-SVN: r35455
2000-08-03tm.texi (Register Classes): Clarify order of sub-initializers in ↵Michael Poole1-0/+5
REG_CLASS_CONTENTS. * tm.texi (Register Classes): Clarify order of sub-initializers in REG_CLASS_CONTENTS. From-SVN: r35454
2000-08-03* jump.c: Fix formatting.Kazu Hirata2-99/+114
From-SVN: r35453
2000-08-03From SAITOH Masanobu:J"orn Rennecke2-1/+6
* sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax. From-SVN: r35452
2000-08-03cygwin.h: Remove -remap from CPP_SPEC since this option is not supported by ↵David Billinghurst2-1/+6
tradcpp and... * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option is not supported by tradcpp and isn't actually needed for cygwin. From-SVN: r35451
2000-08-03decl2.c: Silently ignore -Wstrict-prototypes; warn about -Wno-strict-prototypes.Zack Weinberg2-0/+8
* decl2.c: Silently ignore -Wstrict-prototypes; warn about -Wno-strict-prototypes. From-SVN: r35449
2000-08-03* gcc.c-torture/compile/20000803-1.c: New test.Jeffrey A Law2-0/+15
From-SVN: r35447
2000-08-03Daily bump.Jeff Law2-2/+2
From-SVN: r35446
2000-08-0320000801-3.c, [...]: New tests.Joseph Myers5-0/+62
* gcc.c-torture/execute/20000801-3.c, gcc.c-torture/20000801-4.c: New tests. * gcc.c-torture/execute/20000801-3.x, gcc/c-torture/20000801-4.x: Xfail. From-SVN: r35445
2000-08-03* toplev.c: Fix formatting.Kazu Hirata2-214/+229
From-SVN: r35444
2000-08-03flow.c (find_auto_inc): Verify that we've got a REG before peeking at its regno.Jeffrey A Law2-3/+7
* flow.c (find_auto_inc): Verify that we've got a REG before peeking at its regno. Fail, don't abort if we can't find the increment of the desired register. From-SVN: r35443
2000-08-03* pa.md (shadd height reduction patterns/splitters): Remove.Jeffrey A Law2-67/+4
From-SVN: r35442
2000-08-02Workaround for -fssa testsuite failures.Jim Wilson3-0/+28
* config/ia64/ia64-protos.h (flag_ssa): Declare. * config/ia64/ia64.md (movti_internal, movti_internal+1): New. From-SVN: r35439
2000-08-03dce.c: Remove all uses of assert.Mark Mitchell5-44/+27
* dce.c: Remove all uses of assert. * dwarf2out.c: Likewise. * dwarfout.c: Likewise. * ssa.c: Likewise. From-SVN: r35438
2000-08-02objc.exp (objc_target_compile): Look for libobjc.a in libobjc/.libs to allow ↵Geoff Keating2-2/+7
for libtool. * lib/objc.exp (objc_target_compile): Look for libobjc.a in libobjc/.libs to allow for libtool. From-SVN: r35437
2000-08-02* gcc.c-torture/compile/20000802-1.c: New test.Jakub Jelinek2-0/+19
From-SVN: r35434
2000-08-02gcc.h (lang_specific_driver): Constify second argument.Zack Weinberg11-42/+54
* gcc.h (lang_specific_driver): Constify second argument. * gcc.c (translate_options, process_command, main): Likewise. Constify variables to match. Cast second argument to pexecute. * cppspec.c, gccspec.c, g++spec.c, g77spec.c, jvspec.c: Adjust type of second argument to lang_specific_driver, and update code as necessary. From-SVN: r35433
2000-08-02loop.c (scan_loop): Ensure update_end label does not go away until ↵Jakub Jelinek2-0/+13
reg_scan_update is run. * loop.c (scan_loop): Ensure update_end label does not go away until reg_scan_update is run. From-SVN: r35428
2000-08-02c-common.h: Prototype min_precision and c_build_qualified_type here...Zack Weinberg17-56/+94
* c-common.h: Prototype min_precision and c_build_qualified_type here... * c-tree.h: ... not here. * errors.h: Prototype fancy_abort. * emit-rtl.c (gen_lowpart_common): Move variable 'c' into HOST_BITS_PER_WIDE_INT == 64 ifdef block. * regrename.c (regrename_optimize): Make control flow explicit. (replace_reg_in_block): Initialize reg_use to 0. * i386.c (legitimate_address_p): Rename error label to report_error to avoid namespace clash. cp: * cp-tree.h: Don't prototype min_precision here. (my_friendly_assert): Cast expression to void. * semantics.c (do_poplevel): Initialize scope_stmts. f: * expr.c (ffeexpr_finished_): Cast signed side of ?: expression to bool. java: * class.c (build_dtable_decl): Initialize dummy. intl: * dcgettext.c (find_msg): Initialize act before loop. (guess_category_value): Add dummy uses of both parameters. * localealias.c (read_alias_file): Cast arg of strchr to char *. From-SVN: r35427
2000-08-02* cp-tree.h (DECL_NEEDED_P): Tweak.Mark Mitchell3-1/+24
From-SVN: r35426
2000-08-02* fold-const.c: Fix formatting.Kazu Hirata2-365/+363
From-SVN: r35425
2000-08-02i386.c (legitimate_address_p): Accept other bases than pic_offset_table_rtx ↵Jan Hubicka2-8/+26
for GOTOFF constructs. * i386.c (legitimate_address_p): Accept other bases than pic_offset_table_rtx for GOTOFF constructs. From-SVN: r35424
2000-08-02* i386.md (shift to lea splitter): Use const_int_operand.Jan Hubicka2-1/+5
From-SVN: r35423
2000-08-02Daily bump.Jeff Law2-2/+2
From-SVN: r35422
2000-08-02cppexp.c, [...]: Do not use 'legal' or 'illegal' in error messages and comments.Zack Weinberg12-295/+469
* cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c, cppspec.c: Do not use 'legal' or 'illegal' in error messages and comments. * cppmain.c (cb_define, cb_undef): Don't generate any output if not done_initializing. * cpplex.c (maybe_paste_with_next): When the token after a ## is an omitted rest argument, only delete the token before it if that token is a comma. Do not warn about bogus token pastes for , ## rest_arg. * cpp.texi: Update. * cpp.1: Regenerate. * gcc.dg/cpp/macsyntx.c: Fix error regexp. From-SVN: r35421
2000-08-02beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o when user gives -p option.Fred Fish6-365/+150
* config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o when user gives -p option. Add init_term_dyn.o for BeOS 5.0 and later. * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional Be directories to search path. Remove support for __declspec(dllimport) and __declspec(dllexport). This is leftover cruft from the earlier BeOS gcc port when BeOS used Microsoft's PE object file format. * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o. * config/i386/t-beos (winnt.o): Remove Makefile frag. * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove. (VALID_MACHINE_DECL_ATTRIBUTE): Remove. (VALID_MACHINE_TYPE_ATTRIBUTE): Remove. (MERGE_MACHINE_DECL_ATTRIBUTES): Remove. (REDO_SECTION_INFO_P): Remove. (ASM_EXPORT_DECL): Remove. (ASM_DECLARE_FUNCTION_NAME): Remove. (ASM_DECLARE_OBJECT_NAME): Remove. (ASM_OUTPUT_ALIGNED_COMMON): Remove. (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove. (ASM_OUTPUT_ALIGNED_LOCAL): Remove. (STRIP_NAME_ENCODING): Remove. Remove support for obsolete version of BeOS that is no longer supported by Be. * configure.in (i*86-*-beospe*): Remove. * config/i386/beos-pe.h: Remove. From-SVN: r35420
2000-08-02Makefile.in (OBJS): Added dce.o.Jeffrey Oldham11-65/+990
* Makefile.in (OBJS): Added dce.o. (ssa.o): Updated target to include ssa.h. (flow.o): Likewise. (toplev.o): Likewise. (dce.o): Created target. * basic-block.h: Added comments. (INVALID_BLOCK): Added definition. (connect_infinite_loops_to_exit): Added declaration. Moved SSA declarations to ssa.h. * flow.c: Added inclusion of ssa.h. (struct depth_first_search_dsS, depth_first_search_ds): Added definitions. (compute_immediate_postdominators): Added definition. (connect_infinite_loops_to_exit): Likewise. (flow_dfs_compute_reverse_init): Likewise. (flow_dfs_compute_reverse_add_bb): Likewise. (flow_dfs_compute_reverse_execute): Likewise. (flow_dfs_compute_reverse_finish): Likewise. * rtl.h (rtx/in_struct): Added use to determine insn necessity. (LABEL_P): Added definition. (JUMP_P): Likewise. (NOTE_P): Likewise. (BARRIER_P): Likewise. (JUMP_TABLE_DATA_P): Likewise. (INSN_DEAD_CODE_P): Likewise. * ssa.c: Replaced inclusions with ssa.h inclusion. (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h. (rename_registers): Removed unnecessary variables. * ssa.h: Created by moving declarations from ssa.c and basic-block.h. * timevar.def: Defined TV_DEAD_CODE_ELIM. * toplev.c: Added ssa.h inclusion. (dump_file_index): Added DFI_dce. (dump_file): Added "dce" entry. Defined flag_ssa. (f_options): Added dce entry. * invoke.texi: Document -fdce. Emphasize experimental status of -fssa. Co-Authored-By: Mark Mitchell <mark@codesourcery.com> From-SVN: r35419
2000-08-02Resurrect - accidentally deleted in previous commitZack Weinberg1-0/+3
From-SVN: r35417
2000-08-02argh, forgot to save fileZack Weinberg1-0/+61
From-SVN: r35416
2000-08-02cpperror.c (v_message): Split into _cpp_begin_message and v_message macro.Zack Weinberg10-642/+754
* cpperror.c (v_message): Split into _cpp_begin_message and v_message macro. All callers updated. (_cpp_begin_message): Do inhibit_errors/inhibit_warnings checks here. * cppfiles.c (cpp_syshdr_flags): New function. (read_include_file): Don't call cpp_output_tokens. Call enter_file hook. * cppinit.c (dump_macros_helper): Moved to cppmain.c. (cpp_reader_init): Don't initialize token_buffer. Call _cpp_init_internal_pragmas. (cpp_cleanup): Don't clear token_buffer. (cpp_start_read): Don't worry about output from -D processing. Don't call cpp_output_tokens. (cpp_finish): Don't dump macros here. Don't call cpp_output_tokens. * cppmacro.c (_cpp_dump_definition): Rename cpp_dump_definition. Write directly to a FILE *. (dump_funlike_macro): Delete. (dump_macro_args): New. * cpplex.c (TOKEN_LEN): Convert to inline function. (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens, cpp_scan_line, _cpp_dump_list): Delete. (cpp_printf, cpp_output_list): New. (output_line_command): Don't worry about entering or leaving files. (cpp_scan_buffer): Just output each token as we hit it. (process_directive): Don't call cpp_output_tokens. (_cpp_glue_header_name): Don't use token_buffer. (output_token, dump_param_spelling): Write directly to a FILE *. * cpplib.c (pass_thru_directive, dump_macro_name, pragma_dispatch, do_pragma_gcc): Delete. (do_define, do_undef, parse_include, do_line, do_ident, do_pragma, do_pragma_poison, cpp_pop_buffer): Call the appropriate hook functions. (do_error, do_warning, pragma_dependency): Call _cpp_begin_message, then cpp_output_list. (cpp_register_pragma, cpp_register_pragma_space, _cpp_init_internal_pragmas): New. (do_pragma): Walk the pragmas table here. (do_pragma_once, do_pragma_poison, do_pragma_system_header, do_pragma_dependency): Return void. (do_pragma_implementation): Moved to cppmain.c. * cpplib.h: Update prototypes. (struct cpp_reader): Remove printer, token_buffer, token_buffer_size, and limit. Add struct cb, and pragmas. (struct cpp_printer): Remove last_id and written. (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN, CPP_ADJUST_WRITTEN): Delete. * cpphash.h: Update prototypes. (ufputs): New wrapper. * cppmain.c (cb_define, cb_undef, cb_include, cb_ident, cb_enter_file, cb_leave_file, cb_def_pragma): New functions. (main): Set up callbacks. Register #pragma implementation. Dump macros from here. From-SVN: r35415
2000-08-02rtl.h (enum reg_note): Add REG_MAYBE_DEAD.Geoff Keating5-18/+50
* rtl.h (enum reg_note): Add REG_MAYBE_DEAD. * rtl.c (reg_note_name): Add REG_MAYBE_DEAD. * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue insns if they have a REG_MAYBE_DEAD note attached. * config/rs6000/rs6000.c (rs6000_maybe_dead): New function. (rs6000_emit_load_toc_table): TOC loads may go dead. From-SVN: r35414