- 02 Jun, 2002 19 commits
-
-
* c-common.c (c_common_init): Override cpplib's default warn_long_long setting. * c-lex.c (lex_number): Replace with interpret_integer, interpret_float, narrowest_unsigned_type and narrowest_signed_type, taking advantage of the new cpplib functionality. * cpperror.c (_cpp_begin_message): If a warning is turned into an error, avoid printing "warning:". * cppexp.c (cpp_num_sign_extend): New. * cppinit.c: Update comment. * cpplib.h (cpp_num_sign_extend): New. * tree.h: Update comment. testsuite: * gcc.dg/wtr-int-type-1.c, gcc.dg/wtr-suffix-1.c, gcc.dg/cpp/paste4.c, gcc.dg/cpp/sysmac2.c: Update for mofified diagnostics. * gcc.dg/c99-intconst-1.c: No longer fail. From-SVN: r54180
Neil Booth committed -
* diagnostic.h (struct diagnostic_context): Add new member internal_error. (internal_error_function): Remove declaration. * diagnostic.c (internal_error_function): Remove definition.. (internal_error): Adjust use. ada/ * misc.c (gnat_init): Adjust setting of internal_error_function. From-SVN: r54179
Gabriel Dos Reis committed -
* rtl.h (CC0_P): New. * gcse.c (cprop_jump): Use it with single_set. Tweak dump text. (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set. (bypass_block): Save old dest block for dump text. (bypass_conditional_jumps): Allow any mode register; use CC0_P. Allow only true SET insns, not single_set. From-SVN: r54178
Richard Henderson committed -
From-SVN: r54177
Richard Henderson committed -
* diagnostic.c (diagnostic_finish): Rename to output_flush. (clear_disgnostic_info): Rename to output_clear_data. Use false instead of 0 for boolean value. Adjust function call throughout. From-SVN: r54176
Gabriel Dos Reis committed -
* cfgrtl.c (commit_one_edge_insertion): Fix warning. * gcse.c (bypass_conditional_jumps): CSE out single_set call. From-SVN: r54175
Jan Hubicka committed -
Fix for PR java/5913: * parse.y (patch_binop): Call patch_string on op1. From-SVN: r54174
Tom Tromey committed -
* parse.y (make_nested_class_name): Remove extraneous `else'; fix formatting. Changed return type. (anonymous_class_counter): Moved to top of file. (maybe_make_nested_class_name): Append number to class name for function-local classes. From-SVN: r54173
Tom Tromey committed -
* libI77/dfe.c (s_rdfe, s_wdfe): Wrap parentheses around assignment used as truth value. * libI77/due.c (s_rdue, s_wdue): Likewise. * libI77/endfile.c (f_end): Likewise. * libI77/iio.c (s_rsfi, s_wsfi): Likewise. * libI77/lread.c (ERR, l_C, nmL_getc, s_rsle): Likewise. * libI77/lwrite.c (l_g, l_put): Likewise. * libI77/open.c (f_open): Likewise. * libI77/rdfmt.c (rd_Z): Likewise. * libI77/rsfe.c (s_rsfe): Likewise. * libI77/rsne.c (hash, mk_hashtab, nl_init, getname, getdimen, x_rsne, s_rsne): Likewise. * libI77/sue.c (s_rsue, s_wsue): Likewise. * libI77/wref.c (wrt_E, wrt_F): Likewise. * libI77/wsfe.c (s_wsfe): Likewise. * libI77/wsle.c (s_wsle): Likewise. * libI77/wsne.c (s_wsne): Likewise. From-SVN: r54172
Kaveh R. Ghazi committed -
* d30v.h (CPP_PREDEFINES): Replace with (TARGET_CPU_CPP_BUILTINS): New. From-SVN: r54171
Neil Booth committed -
From-SVN: r54170
Roger Sayle committed -
* libF77/main.c (main): Avoid implicit int. * libI77/dfe.c (y_rsk, y_getc, c_dfe): Likewise. * libI77/due.c (c_due): Likewise. * libI77/err.c (f__canseek, f__nowreading, f__nowwriting): Likewise. * libI77/fmt.c (op_gen, ne_d, e_d, pars_f, type_f, en_fio): Likewise. * libI77/iio.c (z_getc, z_rnew, c_si, z_wnew): Likewise. * libI77/lread.c (t_getc, c_le, l_read): Likewise. * libI77/lwrite.c (l_write): Likewise. * libI77/open.c (fk_open): Likewise. * libI77/rdfmt.c (rd_ed, rd_ned): Likewise. * libI77/rsfe.c (xrd_SL, x_getc, x_endp, x_rev): Likewise. * libI77/rsne.c (t_getc, x_rsne): Likewise. * libI77/sfe.c (c_sfe): Likewise. * libI77/sue.c (c_sue): Likewise. * libI77/uio.c (do_us): Likewise. * libI77/wref.c (wrt_E, wrt_F): Likewise. * libI77/wrtfmt.c (wrt_L, w_ed, w_ned): Likewise. From-SVN: r54169
Kaveh R. Ghazi committed -
* libI77/rdfmt.c (rd_I): Delete unused variable(s). * libU77/access_.c (G77_access_0): Likewise. * libU77/chdir_.c (G77_chdir_0): Likewise. * libU77/chmod_.c (G77_chmod_0): Likewise. * libU77/ctime_.c (G77_ctime_0): Likewise. * libU77/link_.c (G77_link_0): Likewise. * libU77/lstat_.c (G77_lstat_0): Likewise. * libU77/rename_.c (G77_rename_0): Likewise. * libU77/stat_.c (G77_stat_0): Likewise. * libU77/symlnk_.c (G77_symlnk_0): Likewise. * libU77/unlink_.c (G77_unlink_0): Likewise. From-SVN: r54168
Kaveh R. Ghazi committed -
* libI77/inquire.c (f_inqu): Avoid ambiguous else clauses. * libI77/lread.c (l_C, l_L): Likewise. * libI77/open.c (f_open): Likewise. * libI77/rsne.c (x_rsne): Likewise. * libI77/wref.c (wrt_F): Likewise. From-SVN: r54167
Kaveh R. Ghazi committed -
* libF77/getenv_.c (G77_getenv_0): Avoid signed/unsigned warning. * libF77/system_.c (G77_system_0): Likewise. * libI77/open.c (f_open): Likewise. * libI77/rdfmt.c (rd_Z): Likewise. * libI77/uio.c (do_us, do_ud): Likewise. From-SVN: r54166
Kaveh R. Ghazi committed -
From-SVN: r54165
Jan Hubicka committed -
From-SVN: r54163
Richard Henderson committed -
From-SVN: r54162
GCC Administrator committed -
[[Split portion of a mixed commit.]] From-SVN: r54161.2
GCC Administrator committed
-
- 01 Jun, 2002 21 commits
-
-
* config/avr/avr.c (avr_output_function_epilogue): Jump to exit() instead of looping if main() returns. (asm_file_start): Output global symbols that cause .data and .bss initialization code to be linked in, unconditionally for now. (avr_asm_out_ctor, avr_asm_out_dtor): New functions. * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New. (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New. (LIBSTDCXX): New. * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections. (__tablejump__): New. (__do_copy_data, __do_clear_bss): New. (__do_global_ctors, __do_global_dtors): New. * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss, _ctors, _dtors. From-SVN: r54156
Marek Michalkiewicz committed -
* c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New. (CPP_SPEC, CPP_PREDEFINES): Kill. * c4x/rtems.h (CPP_PREDEFINES): Kill. (TARGET_OS_CPP_BUILTINS): New. From-SVN: r54155
Neil Booth committed -
* Makefile.in (tracer.o): New. * params.def (TRACER_*): New options. * rtl.h (tracer): Declare. * timevar.def (TV_TRACER): New. * toplev.c (dump_file_index): Add DFI_tracer. (dump_file_info): Add tracer. (flag_tracer): New. (lang_indepdenent_options): Add tracer. (rest_of_compilation): Call tracer. * tracer.c: New file. * invoke.texi (-ftracer): Document. (--param tracer-*): Document. From-SVN: r54154
Jan Hubicka committed -
2002-06-01 Daniel Berlin <dberlin@dberlin.org> * tree-inline.c (expand_call_inline): Make the statement expression we generate have a COMPOUND_STMT. From-SVN: r54153
Daniel Berlin committed -
* gcse.c (cprop_cc0_jump): Function deleted. (cprop_jump): Take an additional argument which is the possibly NULL cc setting insn immediately before the conditional jump. When a MODE_CC set is present, substitute it into the JUMP_INSN before attempting the constant propagation. (cprop_insn): Recognize cc setters followed by conditional jumps as a special case. Use cprop_jump instead of cprop_cc0_jump. (cprop_one_pass): Call bypass_conditional_jumps if altering jumps. (find_bypass_set): New function based upon find_avail_set used by cprop, but finds constant expressions available at the end of basic blocks. (bypass_block): New function. Given a basic block that begins with a conditional jump and multiple incoming edges, perform the jump bypass optimization. (bypass_conditional_jumps): New function. Call bypass_block with each suitable basic block in the CFG using a simple single pass. From-SVN: r54152
Roger Sayle committed -
* tree.c (real_minus_onep): New function to test for -1.0. * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x. * gcc.dg/fnegate-1.c: New test case. From-SVN: r54149
Roger Sayle committed -
fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0" and "!p && !q" into "(p|q) == 0" under... * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0" and "!p && !q" into "(p|q) == 0" under suitable conditions. From-SVN: r54148
Roger Sayle committed -
* cppexp.c (cpp_classify_number): Cast precission to int for correct printf format. From-SVN: r54147
Andreas Jaeger committed -
* config/avr/avr.c (avr_mcu_types): Remove devices that were once expected, but don't really exist: atmega83, atmega85, attiny10. * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld emulations for all devices. (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10. * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85. From-SVN: r54146
Marek Michalkiewicz committed -
* libF77/*: Fix formatting. * libI77/*: Likewise. * libU77/*: Likewise. From-SVN: r54145
Kaveh R. Ghazi committed -
* gnat_ug.texi: Use @ifnottex instead of @ifinfo. * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, gnat_ug_wnt.texi: Regenerate. From-SVN: r54144
Joseph Myers committed -
* config/h8300/h8300-protos.h: Add a prototype for h8300_shift_needs_scratch_p. * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New. * config/h8300/h8300.h (OK_FOR_R): New. (OK_FOR_S): Likewise. (OK_FOR_T): Likewise. (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T. * config/h8300/h8300.md (anonymous shift patterns): Use constraints R, S, and T. From-SVN: r54143
Kazu Hirata committed -
* basic-block.h (struct basic_block_def): New field loop_father. (BB_VISITED): New flag. (struct loop): New field pred, removed field shared. (struct loops): New field parray. (LOOP_EXITS_DOMS): Removed. (flow_loop_tree_node_add, flow_loop_tree_node_remove, flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body, dfs_enumerate_from, loop_preheader_edge, loop_latch_edge, add_bb_to_loop, remove_bb_from_loops, find_common_loop, verify_loop_structure): Declare. * cfg.c (entry_exit_blocks): Initialize loop_father field. * cfganal.c (dfs_enumerate_from): New function. * cfgloop.c (HEAVY_EDGE_RATIO): New constant. (flow_loop_entry_edges_find, flow_loop_exit_edges_find, flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p, flow_loop_dump, flow_loops_dump, flow_loops_free, flow_loop_tree_node_add, flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan, flow_loops_update, flow_loop_outside_edge_p): Modified for new infrastructure. (make_forwarder_block, canonicalize_loop_headers, glb_enum_p, redirect_edge_with_latch_update, flow_loop_free): New static functions. (flow_loop_tree_node_remove, flow_bb_inside_loop_p, get_loop_body, add_bb_to_loop, remove_bb_from_loops, find_common_loop, verify_loop_structure, loop_latch_edge, loop_preheader_edge): New functions. (flow_loops_cfg_dump): Do not show dominators, as this information does not remain up to date long. (flow_loops_find): Store results in new format. * predict.c (propagate_freq, estimate_probability, estimate_loops_at_level, estimate_bb_frequencies): Use new loop infrastructure. From-SVN: r54142
Zdenek Dvorak committed -
From-SVN: r54141
GCC Administrator committed -
From-SVN: r54136
Alan Lehotsky committed -
From-SVN: r54135
David Edelsohn committed -
* g2c.hin, libF77/d_cnjg.c, libF77/main.c, libF77/r_cnjg.c, libF77/s_cat.c, libF77/s_paus.c, libF77/s_rnge.c, libF77/setarg.c, libF77/setsig.c, libF77/signal1.h0, libI77/dfe.c, libI77/due.c, libI77/err.c, libI77/fio.h, libI77/fmt.c, libI77/iio.c, libI77/ilnw.c, libI77/lread.c, libI77/lwrite.c, libI77/rsfe.c, libI77/rsli.c, libI77/rsne.c, libI77/sfe.c, libI77/sue.c, libI77/util.c, libI77/wrtfmt.c, libI77/wsfe.c, libI77/wsle.c, libI77/xwsne.c, libU77/date_.c: Kill VOID, Void and Int. From-SVN: r54134
Kaveh R. Ghazi committed -
* libF77/F77_aloc.c, libF77/exit_.c, libF77/main.c, libF77/s_paus.c, libF77/s_stop.c, libF77/setarg.c, libF77/setsig.c, libF77/sig_die.c, libF77/signal1.h0, libI77/close.c, libI77/dolio.c, libI77/fio.h, libI77/fmt.h, libI77/lio.h: Delete checks on __cplusplus. From-SVN: r54133
Kaveh R. Ghazi committed -
* libF77/*: Delete KR_headers cruft. * libI77/*: Likewise. * libU77/*: Likewise. From-SVN: r54132
Kaveh R. Ghazi committed -
* Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove. (install): Refer to install-cpp directly. (uninstall-cpp): Folded into uninstall rule. * configure.in: Delete all code relating to --disable-cpp. * configure: Regenerate. * config/t-install-cpp: Delete. From-SVN: r54131
Zack Weinberg committed -
From-SVN: r54129
Phil Edwards committed
-