- 19 Apr, 2003 11 commits
-
-
* rtlanal.c (subreg_offset_representable_p): Fix call of subreg_lowpart. From-SVN: r65817
Jan Hubicka committed -
* cpphash.h (struct cpp_reader): New member warned_dollar. * cpplex.c (continues_identifier_p): New function. (parse_identifier, parse_number, parse_string): Rename lex_identifer, lex_number and lex_string, and simplify. (parse_slow, unescaped_terminator_p): Die. (_cpp_lex_direct): Update. From-SVN: r65816
Neil Booth committed -
From-SVN: r65815
Richard Kenner committed -
From-SVN: r65814
Richard Kenner committed -
* doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and fork behaviour. From-SVN: r65813
Nathan Sidwell committed -
From-SVN: r65812
Neil Booth committed -
* cppexp.c (eval_token): Permit true and false even if pedantic. testsuite: * gcc.dg/cpp/truefalse.cpp: New test. * gcc.dg/cpp/cpp.exp: Update. From-SVN: r65811
Neil Booth committed -
From-SVN: r65810
Neil Booth committed -
From-SVN: r65809
Neil Booth committed -
* cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD, MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove. (struct include_file): Remove fefcnt, mapped members. (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching. (read_include_file): Don't use mmap, terminate buffers in '\r'. (purge_cache): Don't use munmap. * cpphash.h (CPP_BUF_COLUMN): Update. (lexer_state): Remove lexing_comment. (struct _cpp_line_note): New. (struct cpp_buffer): New members cur_note, notes_used, notes_cap, next_line and need_line. Remove col_adjust and saved_flags. (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line, _cpp_skip_block_comment, scan_out_logical_line): New. (_cpp_init_mbchar): Remove. * cppinit.c (init_library): Remove call to _cpp_init_mbchar. (cpp_read_main_file): Set line to 1 earlier. (post_options): -traditional-cpp doesn't want trigraphs. * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this. (add_line_note, _cpp_clean_line, _cpp_process_line_notes, _cpp_get_fresh_line): New. (handle_newline, skip_escaped_newlines, trigraph_p, continue_after_nul, _cpp_init_mbchar): Remove. (get_effective_char): Update. (_cpp_skip_block_comment): Rename from skip_block_comment, simplify. (skip_line_comment): Simplify. (skip_whitespace, parse_identifier, parse_slow, parse_number, parse_string): Update. (cpp_lex_direct): Use clean lines and process line notes. Update. (cpp_interpret_charconst): No MULTIBYTE_CHARS. * cpplib.c (prepare_directive_trad): Call scan_out_logical_line directly. (_cpp_handle_directive): Don't set saved_flags. (run_directive, destringize_and_run, cpp_define, cpp_define_builtin, cpp_undef, handle_assertion, cpp_push_buffer): Update. (_cpp_pop_buffer): Free notes. * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer. * cpppch.c (cpp_read_state): \n terminate buffer. * cpptrad.c (skip_escaped_newlines, handle_newline): Remove. (copy_comment): Use _cpp_skip_block_comment. (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad): Simplify. (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text, save_replacement_text): Update. (scan_out_logical_line): Update to use clean lines and process line notes. * fix-header.c (read_scan_file): Update. testsuite: * gcc.dg/cpp/_Pragma4.c: Remove stray space. * gcc.dg/cpp/trad/escaped-eof.c: Correct line number. From-SVN: r65808
Neil Booth committed -
From-SVN: r65807
GCC Administrator committed
-
- 18 Apr, 2003 26 commits
-
-
From-SVN: r65800
Richard Kenner committed -
unwind-dw2-fde.c (__register_frame_info_bases): Check for null begin parameter (as well as pointer to null). * unwind-dw2-fde.c (__register_frame_info_bases): Check for null begin parameter (as well as pointer to null). (__deregister_frame_info_bases): Likewise. From-SVN: r65799
Douglas B Rupp committed -
* function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a hard or virtual register and copy into pseudo if replacement fails. From-SVN: r65798
Richard Kenner committed -
From-SVN: r65797
Richard Kenner committed -
From-SVN: r65796
Richard Kenner committed -
* calls.c (expand_call): Move special case for constructor calls to right place. Ensures constructor calls used to initialize arguments get a clean outgoing argument block for themselves. Move check for stack deallocation completeness until after last deallocation. Add stack_pointer_delta to set of state variables saved and restored along with current stack_level. From-SVN: r65795
Olivier Hainque committed -
integrate.c (expand_inline_function): Ensure non-const actuals don't end up const in the caller's flow after... * integrate.c (expand_inline_function): Ensure non-const actuals don't end up const in the caller's flow after conversion to possibly const formal type. From-SVN: r65794
Olivier Hainque committed -
* dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR and *_DIV_EXPR as TRUNC_*_EXPR. From-SVN: r65793
Vincent Celier committed -
* cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block for orphaned jump tables. From-SVN: r65792
Mark Mitchell committed -
* cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block for orphaned jump tables. [[Split portion of a mixed commit.]] From-SVN: r65791.2
Mark Mitchell committed -
From-SVN: r65790
Kazu Hirata committed -
* doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix". Add Segher Boessenkool. From-SVN: r65788
Gerald Pfeifer committed -
re PR c/9177 (-fdump-translation-unit: C front end deletes function_decl AST nodes and breaks debugging dumps.) PR c/9177 * c-decl.c (c_expand_body): Don't garbage collect the function body if we are going to dump it later. From-SVN: r65787
Alexander Sotirov committed -
* Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000. * Makefile.in: Regenerate. From-SVN: r65786
Gerald Pfeifer committed -
* config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove. (alpha_end_function): Don't set them. (decl_in_text_section): Remove. (alpha_encode_section_info): Remove. (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P. (direct_call_operand): Use SYMBOL_REF_DECL and compare actual sections, rather than decl_in_text_section results. From-SVN: r65785
Richard Henderson committed -
2003-04-18 Paolo Carlini <pcarlini@unitus.it> According to 5.9 para 2 (second bullet) for pointers p, q pointing to the same type, with p == 0 and q == 0, (p < q) is false. * include/bits/fstream.tcc (close, overflow, _M_really_overflow, seekoff): Remove redundant NULL pointer checks from tests involving _M_out_* and _M_in_*, const qualify bool variables. (showmanyc, pbackfail, _M_convert_to_external, imbue): Const qualify bool variables. * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc): Remove redundant NULL pointer checks from tests involving _M_out_* and _M_in_*, const qualify bool variables. * include/std/std_fstream.h (sync): Likewise. (_M_is_indeterminate): Const qualify bool variables. * include/std/std_streambuf.h (sgetc, uflow): Remove redundant NULL pointer checks from tests involving _M_out_* and _M_in_*, const qualify bool variables. (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool variables. From-SVN: r65783
Paolo Carlini committed -
* rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT and SIGN_EXTRACT. From-SVN: r65782
Roger Sayle committed -
* configure.in (powerpc64*-*-linux*): Remove. * configure: Rebuilt. libffi/ * include/ffi.h.in (POWERPC64): Define if 64-bit. (enum ffi_abi): Add FFI_LINUX64 on POWERPC. Make it the default on POWERPC64. (FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64. * configure.in: Change powerpc-*-linux* into powerpc*-*-linux*. * configure: Rebuilt. * src/powerpc/ffi.c (hidden): Define. (ffi_prep_args_SYSV): Renamed from ffi_prep_args. Cast pointers to unsigned long to shut up warnings. (NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64, ASM_NEEDS_REGISTERS64): New. (ffi_prep_args64): New function. (ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI. (ffi_call): Likewise. (ffi_prep_closure): Likewise. (flush_icache): Surround by #ifndef POWERPC64. (ffi_dblfl): New union type. (ffi_closure_helper_SYSV): Use it to avoid aliasing problems. (ffi_closure_helper_LINUX64): New function. * src/powerpc/ppc_closure.S: Surround whole file by #ifndef __powerpc64__. * src/powerpc/sysv.S: Likewise. (ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV. * src/powerpc/linux64.S: New file. * src/powerpc/linux64_closure.S: New file. * Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and src/powerpc/linux64_closure.S. (TARGET_SRC_POWERPC): Likewise. * src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2, closure_test_fn3): Fix result printing on big-endian 64-bit machines. (main): Print tst2_arg instead of uninitialized tst2_result. * src/ffitest.c (main): Hide what closure pointer really points to from the compiler. From-SVN: r65781
Jakub Jelinek committed -
* docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro. (_GLIBCPP_USE_C99_DYNAMIC): New macro. (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro. (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro. * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK): New macro. (_GLIBCPP_USE_C99_DYNAMIC): New macro. (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro. (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro. * include/c_std/std_cstdlib.h: Use new macros. * include/c_std/std_cstdio.h: Use new macros. * include/c_std/std_cwchar.h: Use new macros. From-SVN: r65778
Loren J. Rittle committed -
* include/c_std/std_cmath.h (C99 FP capture): Only undefine said C99 FP macros, if actually captured. From-SVN: r65777
Loren J. Rittle committed -
PR optimization/7675 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag on VAR_DECL, PARM_DECL and FUNCTION_DECL from within nested functions if they refer to declarations from parent functions. * stmt.c (expand_decl): Don't put automatic variables in registers if the DECL_NONLOCAL flag is set. From-SVN: r65774
Eric Botcazou committed -
2003-04-17 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/9555 * include/bits/ostream.tcc: Catch all exceptions for formatted output, instead of std::exception and derivatives. * include/bits/istream.tcc: Same. * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc: * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc: * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc: * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc: * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc: * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc: New. From-SVN: r65770
Benjamin Kosnik committed -
2003-04-17 Phil Edwards <pme@gcc.gnu.org> * include/bits/c++config: Minor cosmetic tweaks. From-SVN: r65768
Phil Edwards committed -
* testsuite_flags.in (PCHFLAGS): Find PCH in new home. * include/Makefile.am (pch_input): Find in ${target_builddir}. (pch_output): Rename to... (pch_output_builddir): ..this. Find in ${target_builddir}. (pch_source): Tweak. (pch_build): Key off a built file. (pch_output rule): Rename to... (pch_input rule): ...this. Produce ${pch_output_builddir} instead of ${pch_output}. (install-pch rule): Install ${pch_output_builddir}. * include/Makefile.in: Regenerated. From-SVN: r65767
Loren J. Rittle committed -
* gcse.c (compute_ld_motion_mems): For MEM destinations, only consider those to be movable where the source matches want_to_gcse_p. (update_ld_motion_stores): In comment, refer to compute_ld_motion_mems for validity of replacement. From-SVN: r65766
Hans-Peter Nilsson committed -
From-SVN: r65765
GCC Administrator committed
-
- 17 Apr, 2003 3 commits
-
-
* gcov-dump.c (tag_summary): Remove max_sum * gcov-io.h (gcov_summary, gcov_write_summary, gcov_read_summary): Kill max_sum. * libgcov.c (gcov_exit): Do one pass over the data. Make error message more verbose. From-SVN: r65758
Jan Hubicka committed -
* emit-rtl.c (subreg_hard_regno): Check that register is representable. * reload.c (reload_inner_reg_of_subreg): When register is not representable, reload the whole thing. (find_reloads): Likewsie. * rtlanal.c (subreg_representable_p): New function. * profile.c (compute_branch_probabilities): Cleanup sanity checking; allow negative probabilities for edges from the call to exit. (branch_prob): Do not add fake edges for functions that may return twice From-SVN: r65757
Jan Hubicka committed -
* toplev.c (target_options): Add value field. (set_target_switch): Handle target options with values. * doc/tm.texi: Document how fixed vs variable target options work. * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h, config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h, config/rs6000/rs6000.h, config/rs6000/sysv4.h, config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h: Add value initializer to target options. From-SVN: r65756
DJ Delorie committed
-