aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2000-07-13parse.y (fold_constant_for_init): Avoid bullish conversion.Alexandre Petit-Bianco3-8/+6
2000-07-13 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (fold_constant_for_init): Avoid bullish conversion. (http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00506.html) From-SVN: r35022
2000-07-13Reverting incorrectly applied changeTom Tromey1-22/+2
From-SVN: r35021
2000-07-13* system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.Kaveh R. Ghazi2-0/+9
From-SVN: r35020
2000-07-13* lang-specs.h: Added %{I*}.Tom Tromey3-3/+27
From-SVN: r35018
2000-07-13calls.c (stored_args_map): New variable.Jakub Jelinek4-5/+164
* calls.c (stored_args_map): New variable. (check_sibcall_argument_overlap_1): New. (check_sibcall_argument_overlap): New. (expand_call): Initialize stored_args_map. Call check_sibcall_argument_overlap. * gcc.c-torture/execute/20000707-1.c: New test. From-SVN: r35017
2000-07-13implement various pre-processor guards around standard typesBruce Korb1-0/+13
From-SVN: r35016
2000-07-13Regenerate fixincl.x, tooBruce Korb1-244/+118
From-SVN: r35015
2000-07-13Obsolete test resultBruce Korb1-28/+0
From-SVN: r35014
2000-07-13fixinc test result changesBruce Korb6-4/+61
From-SVN: r35013
2000-07-13implement various pre-processor guards around standard typesBruce Korb4-119/+252
From-SVN: r35012
2000-07-13diagnostic.c (vline_wrapper_message_with_location, [...]): Remove.Gabriel Dos Reis2-226/+62
2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com> * diagnostic.c (vline_wrapper_message_with_location, v_message_with_file_and_line, v_error_with_file_and_file, v_error_for_asm, v_warning_for_asm, vfatal, v_warning_with_file_and_line, v_pedwarn_with_file_and_line, vsorry, verror, vwarning, vpedwarn): Remove. (diagnostic_for_asm): New function. (pedwarn, error, warning, pedwarn_with_file_and_line, error_with_file_and_line, warning_with_file_and_line, sorry, error_for_asm, warning_for_asm, fatal): Reimplement. (finish_diagnostic): Clear diagnostic info as well. From-SVN: r35011
2000-07-13c-common.h (flag_digraphs): New.Neil Booth8-8/+106
* c-common.h (flag_digraphs): New. * c-decl.c (c_decode_option): Set flag_digraphs as appropriate. * c-lex.c (yylex): Use flag_digraphs to decide whether to honour digraphs. * testsuite/gcc.dg/cpp/digraph1.c, testsuite/gcc.dg/cpp/digraph2.c, testsuite/gcc.dg/cpp/digraphs.c: New tests. From-SVN: r35010
2000-07-13Daily bump.Jeff Law2-2/+2
From-SVN: r35009
2000-07-13gcc.c (do_spec_1): Add new %B operator.Zack Weinberg11-488/+244
* gcc.c (do_spec_1): Add new %B operator. (set_input): Prepare for %B. (link_command_spec): Move up with the other tm.h- overrideable specs. Factor out the portion conditional on LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc). (struct compiler): Just have a single spec string. All users updated. (default_compilers): Remove unnecessary braces. (static_specs): Update. (trad_capable_cpp, cpp_options, cc1_options, asm_options): New named specs. (C and assembly specs): Use the new named specs, as appropriate. * objc/lang-specs.h, ch/lang-specs.h, cp/lang-specs.h, f/lang-specs.h, java/lang-specs.h: Use the new named specs. Remove unnecessary braces. From-SVN: r35008
2000-07-13* tradcif.c: Remove.Zack Weinberg2-1543/+2
From-SVN: r35007
2000-07-13gcc.c (execute): If a subprocess gets a fatal signal...Zack Weinberg3-64/+72
* gcc.c (execute): If a subprocess gets a fatal signal, report strsignal() of the signal number, and ask for a bug report. Do not do this for SIGPIPE if there's already been an error. * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE. Delete pipe_closed. From-SVN: r35006
2000-07-13final.c (profile_function): Do not emit profile counters in the data ↵Zack Weinberg3-11/+21
section, if NO_PROFILE_COUNTERS is defined. * final.c (profile_function): Do not emit profile counters in the data section, if NO_PROFILE_COUNTERS is defined. * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for FUNCTION_PROFILER. * config/i386/linux.h (NO_PROFILE_COUNTERS): Define. (FUNCTION_PROFILER): Just emit a call to mcount. From-SVN: r35005
2000-07-13* tradcpp.c (main): Rename 'perror' label to 'sys_error'.Zack Weinberg2-7/+9
From-SVN: r35004
2000-07-13cppexp.c, [...]: Eradicate all traces of code dependent on traditional, ↵Zack Weinberg9-265/+219
lang_chill, or lang_fortran. * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c, cpplib.c, cpplib.h: Eradicate all traces of code dependent on traditional, lang_chill, or lang_fortran. * cppfiles.c: #undef strcmp to suppress warning about macros used without arguments. (_cpp_execute_include): Use f, not fname, in "No include path" error. (_cpp_pop_file_buffer): New function. * cpplib.c: Don't include <sys/mman.h>. (cpp_push_buffer): Set line_base and lineno in new buffer. (cpp_pop_buffer): Use _cpp_pop_file_buffer. * cpplex.c: Move all prototypes and structure declarations to the top of the file. Properly parenthesise some macro arguments. (cpp_scan_line): New function. (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth, don't need to walk up the stack counting. From-SVN: r35003
2000-07-12c-common.c (combine_strings): Emit a pedantic warning when a string length ↵Kaveh R. Ghazi2-0/+11
is greater than the minimum ANSI C... * c-common.c (combine_strings): Emit a pedantic warning when a string length is greater than the minimum ANSI C is required to support. From-SVN: r34999
2000-07-12xm-pa64.h (NO_SYS_SIGLIST): Kill.Jeffrey A Law2-3/+5
* pa/xm-pa64.h (NO_SYS_SIGLIST): Kill. * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill. From-SVN: r34998
2000-07-12c-decl.c (define_label): Warn about identifier conflicts with labels in ↵Kaveh R. Ghazi5-1/+37
traditional C. * c-decl.c (define_label): Warn about identifier conflicts with labels in traditional C. * c-parse.in (unop +): Warn about the unary plus operator for traditional C. * c-typeck.c (store_init_value): Warn about automatic aggregate initialization for traditional C. * invoke.texi (-Wtraditional): Document new warnings. From-SVN: r34997
2000-07-12Makefile.in (c-errors.o): Fix thinko in dependency.Gabriel Dos Reis2-2/+6
2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com> * Makefile.in (c-errors.o): Fix thinko in dependency. From-SVN: r34996
2000-07-12gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of -traditional, ↵Zack Weinberg5-28/+35
-ftraditional, or -traditional-cpp was given. * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of -traditional, -ftraditional, or -traditional-cpp was given. Do not pass -traditional to the preprocessor. (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the preprocessor does it automatically. * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__. * ch/lang-specs.h: Always use tradcpp. Do not pass -traditional, -trigraphs, or -pedantic to the preprocessor. * f/lang-specs.h (.F spec): Likewise. Don't bother defining _LANGUAGE_FORTRAN. From-SVN: r34995
2000-07-12cppexp.c (LOGICAL): Delete macro.Zack Weinberg3-12/+35
* cppexp.c (LOGICAL): Delete macro. (_cpp_parse_expr): Do not use UNARY for unary +. Implement || and && directly. * cpphash.c (HASHSIZE): Increase to 4096. (struct hashdummy): Add hash field. (eq_HASHNODE): Compare unreduced hashes, then lengths, then the string values using memcmp. (cpp_lookup): Set dummy.hash. From-SVN: r34994
2000-07-12configure.in (m88k-openbsd): Express configuration using new fragment style.Marc Espie4-0/+127
* configure.in (m88k-openbsd): Express configuration using new fragment style. * configure: Rebuilt. * m88k/aout-dbx.h: New. * m88k/openbsd.h: New. * m88k/xm-openbsd.h: New. From-SVN: r34993
2000-07-1220000630-2.f: New test.David Billinghurst3-0/+16
* g77.f-torture/compile/20000630-2.f: New test. * g77.f-torture/compile/20000630-2.x From-SVN: r34992
2000-07-12* expr.c (expand_expr): Return const0_rtx, not error_mark_node.Kaveh R. Ghazi2-1/+5
From-SVN: r34991
2000-07-12reload.c (push_secondary_reload): Make sure to add the new reload at the ↵Richard Henderson2-1/+12
end, after acquiring secondary memory. * reload.c (push_secondary_reload): Make sure to add the new reload at the end, after acquiring secondary memory. From-SVN: r34990
2000-07-12Oops, use CPP_WTRADITIONAL, not CPP_TRADITIONAL.Kaveh R. Ghazi2-2/+2
From-SVN: r34989
2000-07-12* cpplex.c (is_macro_disabled): Use CPP_TRADITIONAL.Kaveh R. Ghazi2-1/+3
From-SVN: r34988
2000-07-12Warning fixes:Kaveh R. Ghazi6-8/+21
* c-decl.c (set_current_function_name_declared, anon_aggr_type_p, lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED. * c-parse.in (stmt): Delete unused variables. * convert.c (convert_to_vector): Likewise. * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'. * tree.c (finish_vector_type): Prototype. From-SVN: r34987
2000-07-12removed dinkleberries and use xmalloc instead of a private versionBruce Korb6-20/+58
From-SVN: r34986
2000-07-12cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.Neil Booth4-90/+167
* cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c. * cpplex.c (TOKEN_SPELL) Move to cpphash.h. * cpphash.c: (struct macro_info, alloc_macro, free_macro, struct toklist_dummy): New. (cpp_free_definition): Free macros with free_macro. (count_params): Don't save paramter spellings. Save macro information in a struct macro_info. (parse_define): Don't allocate a token list. (save_expansion): Allocate the macro's token list, and save parameter spellings if necessary. Use TOKEN_SPELL. (cpp_create_definition): Make list const. From-SVN: r34985
2000-07-12c-typeck.c (pedwarn_c99): Move toGabriel Dos Reis6-32/+67
2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com> * c-typeck.c (pedwarn_c99): Move to * c-errors.c: ... Here. * toplev.h (verror, vwarning, vpedwarn): Remove prototypes. * diagnostic.c (verror, vwarning, vpedwarn): Make static. * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o (c-errors.o): List dependency. From-SVN: r34984
2000-07-12Daily bump.Jeff Law2-2/+2
From-SVN: r34983
2000-07-12gcc_update (files_and_dependencies): Remove generated YACC files.Mark Mitchell12-25288/+19
* gcc_update (files_and_dependencies): Remove generated YACC files. * c-parse.c: Remove. * c-parse.h: Likewise. * c-parse.y: Likewise. * objc/objc-parse.c: Likewise. * objc/objc-pasre.y: Likewise. * Makefile.in ($(PARSE_H)): Depend directly on parse.y. * parse.c: Remove. * parse.h: Likewise. * parse-scan.c: Remove. From-SVN: r34982
2000-07-11gcc.texi: Fix minor typosRodney Brown3-7/+12
* gcc.texi: Fix minor typos * extend.texi: Fix minor typos From-SVN: r34980
2000-07-11pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is true.J. David Anglin2-4/+10
* pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is true. From-SVN: r34979
2000-07-11* collect2.c (main): Recognize .lo as object files.Marc Espie2-2/+6
From-SVN: r34978
2000-07-11aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems with ↵J. David Anglin4-112/+141
MAP_ANONYMOUS and MAP_ANON. * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems with MAP_ANONYMOUS and MAP_ANON. * configure, config.in: Rebuilt. From-SVN: r34977
2000-07-12diagnostic.c (save_output_state): Remove.Gabriel Dos Reis3-174/+190
2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com> * diagnostic.c (save_output_state): Remove. (restore_output_state): Likewise. (clear_text_info): New function. (clear_diagnostic_info): Likewise. (output_text_length, is_starting_newline, output_prefix, line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for, prefixing_policy, output_buffer_ptr_to_format_args): New macros (set_real_maximum_length, output_set_maximum_length, output_set_prefix, output_get_prefix, output_set_maximum_length, output_destroy_prefix, init_output_buffer, reshape_diagnostic_buffer, output_space_left, output_emit_prefix, output_add_newline, output_add_character, output_add_space, output_append_r, output_append, wrap_text, output_format, output_do_printf, output_printf, output_do_verbatim, output_verbatim, verbatim): Use them. (output_clear): Split into cleat_text_info and clear_diagnostic_info. (struct output_state): Move to... * diagnostic.h: ...Here (struct output_buffer): Adjust. From-SVN: r34975
2000-07-11* g77.f-torture/execute/20000503-1.x: Delete. Test now passes.David Billinghurst1-0/+4
From-SVN: r34974
2000-07-11Remove. No longer expected to fail.David Billinghurst1-6/+0
From-SVN: r34973
2000-07-11[multiple changes]Zack Weinberg6-219/+304
2000-07-11 Zack Weinberg <zack@wolery.cumb.org> * cpplex.c (parse_name): No longer inline (premature optimization). (do_pop_context): Fold into pop_context. (pop_context): Returns int. (lex_next): Hoist test for end of directive into pop_context. (push_macro_context): Returns int; takes just reader and token. Hoist test for excessive nesting to caller. (push_arg_context): Returns void; takes just reader and token. Do not call stringify_arg or get_raw_token. (get_raw_token): Convert tail recursion through push_arg_context to a loop at this level. Call stringify_arg here if appropriate. (maybe_paste_with_next): Convert tail recursion to a while loop. Hoist test of paste_level to caller. (stringify_arg): Push arg context at beginning. (cpp_get_token): Split out core into _cpp_get_token. Call process_directive here. Throw away CPP_PLACEMARKER tokens. (_cpp_get_token): Convert tail recursion through push_macro_context to a loop at this level. (_cpp_glue_header_name, is_macro_disabled, stringify_arg, _cpp_get_raw_token): Use _cpp_get_token. (_cpp_skip_rest_of_line): Drop the context stack directly; do not call pop_context. (_cpp_run_directive): Call lex_next directly. * cpphash.h: Prototype _cpp_get_token. * cppexp.c (lex): Use it. * cpphash.c (parse_define): Use it. * cpplib.c (get_define_node, do_undef, parse_include, read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc, do_pragma_implementation, do_pragma_poison, do_pragma_dependency, parse_ifdef, validate_else): Use it. (cpp_push_buffer): Tweak error message; abort if anyone tries to push a buffer while macro expansions are stacked. 2000-07-11 Donn Terry <donnte@microsoft.com> * cpplex.c (free_macro_args, save_token): Cast arg of free and/or xrealloc to PTR. (_cpp_init_input_buffer): Clear all fields of the base context. From-SVN: r34972
2000-07-11new tests results from changesBruce Korb2-8/+0
From-SVN: r34971
2000-07-11Regenerate after this patch:Benjamin Chelf2-347/+225
2000-07-10 Benjamin Chelf <chelf@codesourcery.com> * c-parse.in (BREAK): Change to build tree, then generate RTL. (CONTINUE): Likewise. (RETURN): Likewise. (CASE): Likewise. (DEFAULT): Likewise. From-SVN: r34970
2000-07-11fixinc/inclhack.def(libc1_ifdefd_memx) omit #if/#endif pairBruce Korb3-13/+20
From-SVN: r34969
2000-07-11gensupport.c (process_rtx): Make rtl checking stop complaining about the ↵Clinton Popetz2-2/+9
define_insn while it is being... * gensupport.c (process_rtx): Make rtl checking stop complaining about the define_insn while it is being converted from a define_insn_and_split. From-SVN: r34968
2000-07-11mips.c (simple_memory_operand): Access the INTVAL of the address, not it's ↵Clinton Popetz2-1/+6
containing MEM. * config/mips/mips.c (simple_memory_operand): Access the INTVAL of the address, not it's containing MEM. From-SVN: r34965