aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2001-02-25cppinit.c (builtin_array): Update.Neil Booth5-37/+55
* cppinit.c (builtin_array): Update. (init_builtins): Flag builtins to warn if redefined or undefined. Define __GXX_WEAK as a normal macro. * cpplib.c (do_undef): Warn if flagged NODE_WARN. * cpplib.h (NODE_WARN): New flag. * cppmacro.c (builtin_macro): Remove handling of __GXX_WEAK__. Handle __STDC__ as a builtin only on Solaris. (warn_of_redefinition): Renamed from check_macro_definition. Reverse sense of test. Always warn if NODE_WARN. (_cpp_create_definition): Use warn_of_redefinition. Flag any macro beginning with "__STDC_" to require a mandatory warning if redefined or undefined. From-SVN: r40053
2001-02-25Daily bump.GCC Administrator2-2/+2
From-SVN: r40049
2001-02-25xm-interix.h, [...]: Don't define any of...Zack Weinberg35-408/+75
* xm-interix.h, xm-lynx.h, alpha/xm-vms.h, convex/xm-convex.h, i370/xm-i370.h, i370/xm-linux.h, i370/xm-mvs.h, i370/xm-oe.h, i386/xm-beos.h, i386/xm-dos.h, i386/xm-mingw32.h, i860/xm-i860.h, m68k/xm-3b1.h, m68k/xm-amix.h, m68k/xm-aux.h, m68k/xm-crds.h, m68k/xm-mot3300.h, m88k/xm-sysv3.h, mips/xm-mips.h, rs6000/xm-beos.h, vax/xm-vms.h: Don't define any of: USE_PROTOTYPES, vfork, mktemp, SVR3, NO_SYS_PARAMS_H, P_tmpdir, MVS, NO_DBX_FORMAT, USE_STDARGS, STDC_HEADERS, NO_PRECOMPILES, i860, __PTR_TO_INT, __INT_TO_PTR, rindex, index, FULL_PROTOTYPES, AUX, R_OK, W_OK, X_OK, F_OK, STACK_DIRECTION, MIPS, MAX_READ_LEN, MAX_WRITE_LEN. * alpha/xm-alpha.h, clipper/xm-clix.h, d30v/xm-d30v.h, fr30/xm-fr30.h, i370/xm-linux.h: Remove commented-out macro definitions. * m68k/xm-3b1.h, m68k/xm-crds.h, m88k/xm-sysv3.h: Delete now-empty file. * alpha/vms.h: Define NEED_ATEXIT here... * alpha/xm-vms.h: ...not here. * i386/cygwin.h: Don't define PARAMS. * mips/mips.c: Don't prototype mktemp. Don't define P_tmpdir. Use make_temp_file to create temporary files. Don't be clever and delete temporary files early. * f/com.c: Don't define STDC_HEADERS, autoconf handles it. * config.gcc: Drop references to deleted files. Don't define FULL_PROTOTYPES. * gcc.texi: Don't mention USE_PROTOTYPES. From-SVN: r40048
2001-02-24i386.c (ix86_set_move_mem_attrs): New function.Richard Kenner4-4/+69
* config/i386/i386.c (ix86_set_move_mem_attrs): New function. (ix86_set_move_mem_attrs_1): Likewise. * config/i386/i386-protos.h (ix86_set_move_mem_attrs): New declaration. * config/i386/i386.md (movstrsi): Call it. From-SVN: r40046
2001-02-25config.gcc: Expunge references to alpha/t-pe...Zack Weinberg1-27/+51
* config.gcc: Expunge references to alpha/t-pe, pa/t-openbsd, x-linux-aout, i386/t-go32, t-osf, m68k/x-m68kv, ns32k/xm-netbsd.h, rs6000/t-openbsd, rs6000/t-xnewas, rs6000/x-aix41-gld. These are nonexistent, empty, or obsolete. (i750a-*-*): Error here if hosting on i750a. (alpha*-*-winnt*, ix86-*-winnt3*): Remove stanzas entirely. * x-linux-aout, xm-freebsd.h, i386/beos-pe.h, ns32k/xm-netbsd.h: Remove (empty modulo comments). * 1750a/xm-1750a.h, alpha/config-nt.sed, alpha/win-nt.h, alpha/xm-winnt.h, i386/config-nt.sed, i386/os2.h, i386/t-winnt, i386/win-nt.h, i386/xm-freebsd.h, i386/xm-os2.h, i386/xm-winnt.h, m68k/x-alloca-c, m88k/x-dguxbcs, mips/x-netbsd, mips/x-nws3250v4, rs6000/t-xnewas, rs6000/t-xrs6000, rs6000/xm-cygwin.h: Remove (obsolete) * i386/crtdll.h, i386/cygwin.h, i386/mingw32.h: Remove reference to winnt.h in comment. * rs6000/t-newas, rs6000/t-rs6000: Override LIBGCC1_TEST to null. From-SVN: r40045
2001-02-25config.gcc: Expunge references to alpha/t-pe...Zack Weinberg28-762/+15
* config.gcc: Expunge references to alpha/t-pe, pa/t-openbsd, x-linux-aout, i386/t-go32, t-osf, m68k/x-m68kv, ns32k/xm-netbsd.h, rs6000/t-openbsd, rs6000/t-xnewas, rs6000/x-aix41-gld. These are nonexistent, empty, or obsolete. (i750a-*-*): Error here if hosting on i750a. (alpha*-*-winnt*, ix86-*-winnt3*): Remove stanzas entirely. * x-linux-aout, xm-freebsd.h, i386/beos-pe.h, ns32k/xm-netbsd.h: Remove (empty modulo comments). * 1750a/xm-1750a.h, alpha/config-nt.sed, alpha/win-nt.h, alpha/xm-winnt.h, i386/config-nt.sed, i386/os2.h, i386/t-winnt, i386/win-nt.h, i386/xm-freebsd.h, i386/xm-os2.h, i386/xm-winnt.h, m68k/x-alloca-c, m88k/x-dguxbcs, mips/x-netbsd, mips/x-nws3250v4, rs6000/t-xnewas, rs6000/t-xrs6000, rs6000/xm-cygwin.h: Remove (obsolete) * i386/crtdll.h, i386/cygwin.h, i386/mingw32.h: Remove reference to winnt.h in comment. * rs6000/t-newas, rs6000/t-rs6000: Override LIBGCC1_TEST to null. From-SVN: r40044
2001-02-2520010224-1.c: New test.Franz Sirl2-0/+48
2001-02-24 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * gcc.c-torture/execute/20010224-1.c: New test. From-SVN: r40043
2001-02-25loop.c (check_dbra_loop): A biv has uses besides counting if it is used to ↵Franz Sirl2-0/+14
set another biv. 2001-02-24 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * loop.c (check_dbra_loop): A biv has uses besides counting if it is used to set another biv. From-SVN: r40042
2001-02-24tree.h (BLOCK_DEAD): New macro.Richard Kenner6-22/+45
* tree.h (BLOCK_DEAD): New macro. (struct tree_block): New flag, dead_flag. * print-tree.c (print_node, case 'b'): Print missing fields. * emit-rtl.c (remove_unnecessary_notes): Set BLOCK_DEAD. * function.c (identify_blocks): Enable test for misplaced notes. (all_blocks): Skip BLOCK_DEAD blocks. * integrate.c (integrate_decl_tree): Likewise. From-SVN: r40039
2001-02-24errors.c (internal_error, [...]): New functions.Richard Kenner3-7/+67
* errors.c (internal_error, trim_filename): New functions. (fancy_abort): Call internal_error. * errors.h (internal_error, trim_filename): New declarations. From-SVN: r40037
2001-02-24Kill stray blank linesZack Weinberg13-15/+1
From-SVN: r40036
2001-02-24Daily bump.GCC Administrator2-2/+2
From-SVN: r40034
2001-02-24mn10300.h (DBX_REGISTER_NUMBER): Reverted 2000-08-26's patch.Alexandre Oliva2-7/+10
* config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Reverted 2000-08-26's patch. (EXTRA_CONSTRAINT): Formatting changes. From-SVN: r40031
2001-02-24* rtl.c (rtl_check_failed_code2): Fix typo in last change.Kaveh R. Ghazi2-1/+5
From-SVN: r40029
2001-02-23Handle compiling multiple input files at once, and @FILE syntax.Per Bothner3-4/+42
* gcj.texi: Updated documentation to match. and parse.h inadvertently left out from previous check-in. From-SVN: r40026
2001-02-23Handle compiling multiple input files at once, and @FILE syntax. See ChangeLog.Per Bothner8-86/+208
From-SVN: r40024
2001-02-23gcc.c (record_temp_file, [...]): Make non-static, so they can be called from ↵Per Bothner3-7/+12
java/jvspec.c. * gcc.c (record_temp_file, pfatal_with_name, error): Make non-static, so they can be called from java/jvspec.c. * gcc.h (record_temp_file, pfatal_with_name, error): Declare. From-SVN: r40023
2001-02-24i386.c (ix86_frame): New structure.Jan Hubicka2-133/+161
* i386.c (ix86_frame): New structure. (ix86_compute_frame_size): Kill. (ix86_compute_frame_layout): New. (ix86_save_reg): New. (ix86_can_use_return_insn_p): Use frame layout stuff. (ix86_expand_prologue): Likewise. (ix86_expand_epilogue): Likewise. (ix86_initial_elimination_offset): Likewise. (ix86_nsaved_regs): Use ix86_save_reg. (ix86_emit_save_regs): Likewise. From-SVN: r40022
2001-02-24flow.c (find_sub_basic_blocks): New function.Jan Hubicka2-5/+130
* flow.c (find_sub_basic_blocks): New function. (split_block): Be ready for basic block introduced by CODE_LABEL. (commit_one_edge_insertion): Call find_sub_basic_block. * flow.c (make_edges): Add edge from entry for blocks starting with label having ALTERNATE_NAME From-SVN: r40021
2001-02-24function.c (epilogue_done): Be ready for first basic block not containing ↵Jan Hubicka2-2/+18
PROLOGUE_END note. * function.c (epilogue_done): Be ready for first basic block not containing PROLOGUE_END note. (reposition_prologue_and_epilogue_notes): Avoid placing PROLOGUE_END note between BASIC_BLOCK. From-SVN: r40020
2001-02-24* loop.c (canonicalize_condition): Move to reversed_comparison_code.Jan Hubicka2-23/+17
From-SVN: r40019
2001-02-23i960.h (FRAME_POINTER_REQUIRED): Revert removal of check for ↵DJ Delorie2-1/+11
current_function_has_nonlocal_goto from 1999-11-12. * config/i960/i960.h (FRAME_POINTER_REQUIRED): Revert removal of check for current_function_has_nonlocal_goto from 1999-11-12. From-SVN: r40018
2001-02-23diagnostic.c (trim_filename): No longer static.Richard Kenner5-29/+39
* diagnostic.c (trim_filename): No longer static. * toplev.h (trim_filename): Declare. * rtl.c (rtl_check_failed_bounds): Call internal_error. (rtl_check_failed_type1, rtl_check_failed_type2): Likewise. (rtl_check_failed_code1, rtl_check_failed_code2): Likewise. (rtvec_check_failed_bounds): Likewise. * tree.c (tree_check_failed, tree_class_check_failed): Likewise. From-SVN: r40016
2001-02-23convert.c (convert_to_integer): Don't do unsigned unless result or both ↵Richard Kenner2-3/+6
inputs are unsigned. * convert.c (convert_to_integer): Don't do unsigned unless result or both inputs are unsigned. From-SVN: r40014
2001-02-23fold-const.c (fold_convert): Don't call size_int_type_wide if input overflows.Richard Kenner2-0/+4
* fold-const.c (fold_convert): Don't call size_int_type_wide if input overflows. From-SVN: r40012
2001-02-23c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK.Richard Kenner8-0/+29
* c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK. * ch/decl.c, f/com.c, java/decl.c: Likewise. From-SVN: r40010
2001-02-23* varasm.c (output_constant): Recompute CODE after lang-specific fn.Richard Kenner2-1/+8
From-SVN: r40008
2001-02-23Makefile.in (resource.o): Add params.h dependence.Jeffrey Oldham5-12/+51
2001-02-23 Jeffrey Oldham <oldham@codesourcery.com> * Makefile.in (resource.o): Add params.h dependence. * params.def (MAX_DELAY_SLOT_LIVE_SEARCH): New parameter. * params.h (MAX_DELAY_SLOT_LIVE_SEARCH): Likewise. * resource.c: Add dependence on params.h. (current_live_regs): Fix explanatory comment. (find_basic_block): Add new parameter to permit limiting search for a BARRIER. (mark_target_live_regs): Add new argument to find_basic_block call. (incr_ticks_for_insn): Likewise. From-SVN: r40001
2001-02-23diagnostic.c (output_to_stream): Rename to output_buffer_to_stream.Gabriel Dos Reis3-12/+29
* diagnostic.c (output_to_stream): Rename to output_buffer_to_stream. Loses the stream parameter. (init_output_buffer): Set diagnosic_buffer's stream. (flush_diagnostic_buffer): Adjust. (default_print_error_function): Likewise. (finish_diagnostic): Likewise. (verbatim): Likewise. * diagnostic.h (struct output_buffer): Add `stream' field. (output_buffer_attached_stream): New macro. From-SVN: r39999
2001-02-23fold-const.c (extract_muldiv): If not MULT_EXPR, check if either operand is ↵Jakub Jelinek4-4/+49
divisible by C. * fold-const.c (extract_muldiv) [case PLUS_EXPR]: If not MULT_EXPR, check if either operand is divisible by C. (multiple_of_p): Handle LSHIFT_EXPR with small constant shift. If type is signed, consider negative numbers as well. * gcc.c-torture/execute/20010222-1.c: New test. From-SVN: r39996
2001-02-23Daily bump.GCC Administrator2-2/+2
From-SVN: r39992
2001-02-23* spew.c (yylex): Correct handling of friends.Mark Mitchell3-3/+23
From-SVN: r39990
2001-02-22crtbegin.asm (.fini): Use pc-relative relocs to reach .text instead of ↵Richard Henderson3-14/+21
gp-relative relocs. * config/ia64/crtbegin.asm (.fini): Use pc-relative relocs to reach .text instead of gp-relative relocs. * config/ia64/crtend.asm (.init): Likewise. From-SVN: r39986
2001-02-22mangle.c (write_encoding): Pass write_function_type the FUNCTION_DECL for ↵Mark Mitchell2-22/+52
the function being encoded. * mangle.c (write_encoding): Pass write_function_type the FUNCTION_DECL for the function being encoded. (write_function_type): Pass it along to write_bare_function_type. (write_bare_function_type): Pass it along to write_method_parms. (write_method_parms): Don't mangle the compiler-generated parameters to a constructor or destructor. From-SVN: r39985
2001-02-22* extend.texi (C++ Attributes): Fix typo.Andreas Jaeger2-33/+37
From-SVN: r39982
2001-02-22optimize.c: Include toplev.h for note_deferral_of_defined_inline_function ↵Andreas Jaeger2-48/+54
prototype. * optimize.c: Include toplev.h for note_deferral_of_defined_inline_function prototype. From-SVN: r39981
2001-02-22cp-tree.h (struct lang_decl_inlined_fns): New.Jakub Jelinek6-4/+151
* cp-tree.h (struct lang_decl_inlined_fns): New. (struct lang_decls): Add inlined_fns. (DECL_INLINED_FNS): New macro. * optimize.c (struct inline_data): Add inlined_fns. (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro. (inlinable_function_p): Likewise, fix typo in comment, function is not inlinable if it already inlined function currently being optimized. (expand_call_inline): Add fn to inlined_fns if neccessary. (optimize_function): Initialize inlined_fns. Save inlined_fns into DECL_INLINED_FNS after expanding inlines. * decl.c (mark_inlined_fns): New function. (lang_mark_tree): Call it. * g++.old-deja/g++.other/inline20.C: New test. From-SVN: r39977
2001-02-22Daily bump.GCC Administrator2-2/+2
From-SVN: r39975
2001-02-21Refine syscall_linkage attribute semantics to fix security hole.David Mosberger2-3/+16
* config/ia64/ia64.c (ia64_epilogue_uses): For syscall_linkage functions, drop current_function_args_info.words test. (ia64_compute_frame_size): Mark syscall_linkage functions as using eight input registers. From-SVN: r39965
2001-02-21Added.Ovidiu Predescu1-0/+12
From-SVN: r39964
2001-02-21nested-1.m: Added (contributed by Nicola Pero).Ovidiu Predescu1-0/+4
Wed Feb 21 12:38:22 2001 Ovidiu Predescu <ovidiu@cup.hp.com> * objc/execute/nested-1.m: Added (contributed by Nicola Pero). From-SVN: r39963
2001-02-21fix freebsd version check of GCCLoren J. Rittle4-141/+147
Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r39961
2001-02-21gcc.c: Add comment explaining how to add a command-line option.Jeffrey D. Oldham2-1/+46
2001-02-21 Jeffrey D. Oldham <oldham@codesourcery.com> * gcc.c: Add comment explaining how to add a command-line option. Add title to specs language comment. From-SVN: r39960
2001-02-21gcc.c (cc1_options): Add "-param".Jeffrey Oldham3-6/+17
2001-02-21 Jeffrey Oldham <oldham@codesourcery.com> * gcc.c (cc1_options): Add "-param". (DEFAULT_WORD_SWITCH_TAKES_ARG): Likewise. (option_map): Likewise. * toplev.c (display_help): Add entry for "--param". (independent_decode_option): Fix typographical error. From-SVN: r39958
2001-02-21i386.c (function_arg_advance): Pass SSE arguments in registers.Catherine Moore2-8/+31
* i386.c (function_arg_advance): Pass SSE arguments in registers. (function_arg): Likewise. Co-Authored-By: Bernd Schmidt <bernds@redhat.com> Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r39955
2001-02-21fixed typo in last commit re REVERSE_CONDEXEC_PREDICATES_PAldy Hernandez1-1/+2
From-SVN: r39954
2001-02-21* i386.md (mmx_lshrdi3, mmx_ashldi3): Guard by unspec.Jan Hubicka2-4/+10
From-SVN: r39952
2001-02-21h8300.md (iorsi3): Do not output an extra newline character.Kazu Hirata2-2/+8
2001-02-21 Kazu Hirata <kazu@hxi.com> * config/h8300/h8300.md (iorsi3): Do not output an extra newline character. (xorsi3): Likewise. From-SVN: r39950
2001-02-21flow.c (init_propagate_block_info): Canon address and use single_set for ↵Jan Hubicka2-9/+15
killing dead memory stores. * flow.c (init_propagate_block_info): Canon address and use single_set for killing dead memory stores. From-SVN: r39949
2001-02-21Makefile.in (reorg.o): Add params.h dependence.Jeffrey Oldham5-82/+100
2001-02-21 Jeffrey Oldham <oldham@codesourcery.com> * Makefile.in (reorg.o): Add params.h dependence. * params.def: Fix typographical error in comment. (MAX_DELAY_SLOT_INSN_SEARCH): New parameter. * params.h: Modify introductory comment. (MAX_DELAY_SLOT_INSN_SEARCH): New parameter. * reorg.c: Add dependence on params.h. (redundant_insn): Add parameterized throttle for search. (fill_simple_delay_slots): Add a comment explaining a variable. Move conditional out of loop, simplifying code. (fill_eager_delay_slots): Fix typographical error in comment. From-SVN: r39948