1 2004-09-03 Daniel Jacobowitz <dan@debian.org>
3 * reload.c (find_reloads): Swap operand_loc pointers for
4 find_dummy_reload if we have swapped two operands.
6 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
8 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
9 to get the tablejump-insn before the jump-table label.
11 2004-09-03 Ziemowit Laski <zlaski@apple.com>
13 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
14 objc_declare_protocols, objc_build_message_expr,
15 objc_finish_message_expr, objc_build_selector_expr,
16 objc_build_protocol_expr, objc_build_encode_expr,
17 objc_build_string_object, objc_get_protocol_qualified_type,
18 objc_get_class_reference, objc_get_class_ivars,
19 objc_start_class_interface, objc_start_category_interface,
20 objc_start_protocol, objc_continue_interface, objc_finish_interface,
21 objc_start_class_implementation, objc_start_category_implementation,
22 objc_continue_implementation, objc_finish_implementation,
23 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
24 objc_add_method_declaration, objc_start_method_definition,
25 objc_finish_method_definition, objc_add_instance_variable,
26 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
27 objc_finish_try_stmt, objc_begin_catch_clause,
28 objc_finish_catch_clause, objc_build_finally_clause,
29 objc_build_synchronized, objc_static_init_needed_p,
30 objc_generate_static_init_call): New prototypes.
32 2004-09-03 Steve Ellcey <sje@cup.hp.com>
34 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
36 (ia64_function_value): Ditto.
38 2004-09-03 Jan Beulich <jbeulich@novell.com>
40 * config.gcc: Resurrect NetWare as a target. Handle special case of
41 Novell linker to be used (specified through --with-ld=) and threading
42 model of either Posix (default) or NKS.
43 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
44 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
45 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
46 * config/i386/netware.c, config/i386/netware.h: New.
47 * config/i386/nwld.c, config/i386/nwld.h: New.
48 * config/i386/netware-crt0.c: New.
49 * config/i386/netware-libgcc.c: New.
50 * config/i386/netware-libgcc.def: New.
51 * config/i386/netware-libgcc.exp: New.
52 * config/i386/t-netware, config/i386/t-nwld: New.
54 * doc/install.texi: Document NKS threading model.
56 2004-09-03 Jan Beulich <jbeulich@novell.com>
59 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
60 * tree.h (initial_max_fld_align): Declare
61 * stor-layout.c (initial_max_fld_align): Define and initialize.
62 (maximum_field_alignment): Initialize to the same value.
63 * common.opt: Add -fpack-struct= variant of switch.
64 * opts.c: Handle -fpack-struct= variant of switch.
65 * c-pragma.c: Change #pragma pack() handling so that it becomes
66 compatible to other compilers: accept individual 'push' argument,
67 make final pop restore (command line) default, correct interaction
68 of push/pop and sole specification of a new alignment (so that the
69 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
70 to #pragma pack(push, <n>).
71 * doc/extend.texi: New node "Structure-Packing Pragmas" under
72 "Pragmas", describing #pragma pack.
73 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
74 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
75 Document new TARGET_DEFAULT_PACK_STRUCT.
77 2004-09-03 Devang Patel <dpatel@apple.com>
79 * dwarf2out.c (gen_field_die). Equate decl number to die.
81 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
84 * global.c (modify_reg_pav): New function.
85 (make_accurate_live_analysis): Call the new function. Move pavin
86 modification by earlyclobber set into the new function.
88 2004-09-03 Andreas Schwab <schwab@suse.de>
90 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
91 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
94 2004-09-02 Jan Beulich <jbeulich@novell.com>
96 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
97 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
98 not unwind code specific ones.
99 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
100 Remove unwind code specific dependencies.
101 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
103 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
104 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
105 * tsystem.h: Declare memcpy and memset when inhibit_libc.
107 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
109 * combine.c (try_combine): Delay modifying of insns which cannot
112 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
114 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
116 * gcc/tree-ssa-loop.c: Ditto
117 * gcc/tree-ssa-loop-ivcanon.c: Ditto
118 * gcc/doc/invoke.texi: Ditto.
120 2004-09-02 Ziemowit Laski <zlaski@apple.com>
122 * c-decl.c (store_parm_decls_newstyle): Make static.
123 (store_parm_decls_from): New function.
124 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
125 (store_parm_decls_from): New prototype.
127 2004-09-02 David Edelsohn <edelsohn@gnu.org>
129 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
130 HImode with STRICT_ALIGNMENT.
132 2004-09-02 Mark Mitchell <mark@codesourcery.com>
134 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
135 (TARGET_OS_CPP_BUILTINS): Likewise.
136 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
137 TARGET_BPABI_CPP_BUILTINS.
139 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
141 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
143 2004-09-02 Eric Christopher <echristo@redhat.com>
145 * builtins.c (expand_builtin_cabs): Delete.
146 (expand_builtin): If unable to fold the values do a normal
147 library call for builtin_cab*.
148 (fold_builtin_cabs): Depend on optimize and optimize_size.
149 * optabs.c (expand_cmplxdiv_straight): Delete.
150 (expand_cmplxdiv_wide): Ditto.
151 (expand_vector_binop): Ditto.
152 (expand_vector_unop): Ditto.
153 (expand_complex_abs): Delete.
154 (expand_binop): Remove calls to above functions.
155 Remove open coding of complex arithmetic.
156 (expand_unop): Ditto.
157 * optabs.h: Remove prototypes.
159 2004-09-02 Ziemowit Laski <zlaski@apple.com>
161 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
162 * c-tree.h (store_parm_decls_newstyle): New prototype.
164 2004-09-02 Geoffrey Keating <geoffk@apple.com>
166 * config/rs6000/rs6000.c (expand_block_clear): Use vector
167 instructions if available.
168 (expand_block_move): Likewise.
170 2004-09-03 Jan Hubicka <jh@suse.cz>
172 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
174 2004-09-02 Mark Mitchell <mark@codesourcery.com>
176 * config/arm/symbian.h (LIB_SPEC): Define to empty.
177 * config/arm/t-symbian (SHLIB_LC): Likewise.
179 2004-09-02 Paul Brook <paul@codesourcery.com>
181 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
183 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
185 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
186 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
187 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
188 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
189 (mips_issue_rate): Remove unreachable abort.
190 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
191 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
192 (mips_block_move_straight, print_operand_address, mips_file_start)
193 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
194 (mips_output_conditional_branch, mips_expand_builtin_direct)
195 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
196 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
199 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
201 * config/mips/mips.md (*lea_high64): Change split condition to
202 flow2_completed. Add a peephole2 to generate a more parallel version.
204 2004-09-02 Jan Hubicka <jh@suse.cz>
206 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
209 * ggc-page.c: include tree-flow.h.
210 (extra_order_size_table): Add stmt_ann_d.
211 (STAT_LABEL): Rename from ....
212 (LABEL): ... this one.
213 * Makefile.in (ggc-page.o): Add dependency.
215 * ggc-common.c (ggc_force_collect): New global variable.
216 (loc_description): Add fields "freed", "collected"
217 (ptr_hash): New static hash
218 (ptr_hash_entry): New structure.
219 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
220 (ggc_record_overhead): Take ptr argument, record it
221 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
222 (cmp_statistics): Imrove sorting.
223 (dump_ggc_loc_statistics): Output newly collected statistics
224 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
225 (ggc_free): Call ggc_free_overhead.
226 (ggc_collect): Force collection when asked to be forced.
227 (ggc_collect): Call ggc_prune_overhead_list.
228 * ggc.h (ggc_force_collect): Declare
229 (ggc_record_overhead): Update prototype.
230 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
232 2004-09-02 James E Wilson <wilson@specifixinc.com>
234 * common.opt (ftrapping-math): Default to on.
236 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
238 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
240 2004-09-02 Denis Chertykov <denisc@overta.ru>
243 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
245 (*movmemqi_insn): Likewise.
246 (*movmemhi): Likewise.
247 (clrmemhi): Likewise.
248 (*clrmemqi): Likewise.
249 (*clrmemhi): Likewise.
251 2004-09-02 Paul Brook <paul@codesourcery.com>
253 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
254 default_use_cxa_atexit=yes.
256 2004-09-02 Alan Modra <amodra@bigpond.net.au>
258 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
259 (struct kernel_old_ucontext): Delete.
260 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
261 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
264 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
266 * toplev.c (process_options): Fix typo.
268 2004-09-01 Richard Henderson <rth@redhat.com>
271 * calls.c (initialize_argument_information): Tighten pass-through
272 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
273 Use build_fold_addr_expr.
274 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
275 that assumes ADDR_EXPR allocates stack space.
276 * fold-const.c (build_fold_addr_expr_with_type): Look through
279 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
281 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
282 * ggc.h (ggc_alloc_rtx): Delete.
284 2004-09-01 Roger Sayle <roger@eyesopen.com>
286 * expmed.c (enum alg_code): Remove long unused enumeration values.
287 (struct mult_cost): New structure to hold the "score" of a synthetic
288 multiply sequence, including both a rtx_cost and a latency field.
289 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
290 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
291 (struct algorithm): Change type of cost field to be mult_cost.
292 (synth_mult): Change type of cost_limit argument to be a
293 pointer to a mult_cost. Update all cost comparisons to use the
294 new mult_cost infrastructure. For alg_add_factor and
295 alg_sub_factor operations, latency is lower than the rtx_cost.
296 (choose_mult_variant): Update calls to synth_mult. Perform
297 cost comparisons using the new mult_cost infrastructure.
298 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
299 to optain the total rtx_cost of a synth_mult "algorithm".
301 2004-09-01 David Edelsohn <edelsohn@gnu.org>
303 * config/rs6000/power4.md: Increase store latency to 12.
304 * config/rs6000/power5.md: Same.
306 2004-09-01 James E Wilson <wilson@specifixinc.com>
309 * config/avr/avr.c (avr_unique_section): Delete prototype and
311 (TARGET_ASM_UNIQUE_SECTION): Delete.
313 2004-09-01 Ziemowit Laski <zlaski@apple.com>
315 * c-parse.in (primary): Call objc_build_message_expr(),
316 objc_build_selector_expr(), objc_build_protocol_expr(),
317 objc_build_encode_expr() and objc_build_string_object() instead of
318 build_message_expr(), build_selector_expr(), build_protocol_expr(),
319 build_encode_expr() and build_objc_string_object(), respectively.
320 (component_decl_list2): Call objc_get_class_ivars() instead of
321 get_class_ivars_from_name().
322 (keyworddecl): Call objc_build_keyword_decl() instead of
323 build_keyword_decl().
324 (receiver): Call objc_get_class_reference() instead of
325 get_class_reference().
326 (reswords): Add blank line before @@ifobjc section, for clarity.
328 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
330 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
333 2004-09-01 Wu Yongwei <adah@sh163.net>
334 Danny Smith <dannysmith@users.sourceforge.net>
336 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
338 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
339 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
340 (__gthr_win32_recursive_mutex_init_function): Add prototype for
341 __GTHREAD_HIDE_WIN32API case..
342 (__gthr_win32_recursive_mutex_lock): Likewise.
343 (__gthr_win32_recursive_mutex_trylock): Likewise.
344 (__gthr_win32_recursive_mutex_unlock): Likewise.
345 (__gthread_recursive_mutex_init_function); Add definition for
346 __GTHREAD_HIDE_WIN32API case.
347 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
348 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
349 call to InterlockedDecrement.
351 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
353 * tree-tailcall.c (find_tail_calls): Also fail is statement has
356 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
358 * doc/c-tree.texi: Document new operands for ARRAY_REF and
361 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
363 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
364 * common.opt (fspeculative-prefetching): New.
365 * flags.h (flag_speculative_prefetching_set): Declare.
366 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
368 * opts.c (flag_sepculative_prefetching_set): New variable.
369 (common_handle_option): Handle -fspeculative-prefetching.
370 * passes.c (rest_of_compilation): Ditto.
371 * profile.c (instrument_values, compute_value_histograms, branch_prob):
372 Use vectors instead of arrays.
373 * toplev.c (process_options): Handle -fspeculative-prefetching.
374 * rtl-profile.c: Include ggc.h.
375 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
376 rtl_gen_one_value_profiler_no_edge_manipulation,
377 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
379 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
380 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
382 * value-prof.c: Include ggc.h.
383 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
385 (insn_prefetch_values_to_profile, find_mem_reference_1,
386 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
387 speculative_prefetching_transform): New.
388 (value_profile_transformations): Call speculative_prefetching_transform.
389 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
390 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
391 tree_find_values_to_profile, find_values to profile): Use vectors
393 (free_profiled_values): Removed.
394 * value-prof.h (struct histogram_value): Renamed to
395 struct histogram_value_t.
396 (histogram_value, histogram_values): New types.
397 (find_values_to_profile): Declaration changed.
398 (free_profiled_values): Removed.
399 (struct profile_hooks): Type of argument of the hooks changed to
401 * doc/invoke.texi (-fspeculative-prefetching): Document.
403 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
405 PR rtl-optimization/16408
406 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
408 2004-09-01 Richard Henderson <rth@redhat.com>
410 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
411 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
413 2004-09-01 Jakub Jelinek <jakub@redhat.com>
415 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
417 2004-09-01 Mike Stump <mrs@apple.com>
419 * config/darwin.c (machopic_symbol_defined_p): In addition to
420 being SYMBOL_REF_LOCAL_P, a symbol must also be
421 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
422 defined in this output file, or translation unit in the case
423 of IMA not being used.
424 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
425 never need .indirect_symbol when indirecting.
427 2004-09-01 Jakub Jelinek <jakub@redhat.com>
429 * Makefile.in (bb-reorder.o): Add several dependencies.
431 2004-09-01 Jakub Jelinek <jakub@redhat.com>
433 * fold-const.c (operand_equal_p): Require equal sign also for
434 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
436 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
438 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
439 for use in configargs.h. Put the cname in a separate variable. Use
440 that to set target_cpu_default2.
442 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
443 Nick Clifton <nickc@redhat.com>
445 * config/sh/sh.md ("length"): Increase branch length when
446 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
447 constant, 2 byte for aligning the constant.
449 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
451 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
453 (arm7tdmi-s): New CPU name.
454 * arm/arm.c (ARM_CORE): Update for new format.
455 * arm/arm.h (ARM_CORE): Likewise.
456 * arm/gentune.sh: Update for extra field.
457 * config.gcc: Likewise.
458 * arm/arm-tune.md: Regenerate.
459 * doc/invoke.texi: Document the real processor names for ARM cpus.
461 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
463 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
464 (floatdidf): New functions.
465 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
466 (floatdisf): New functions.
467 * t-arm-elf: Use them.
469 2004-09-01 Ziemowit Laski <zlaski@apple.com>
471 * c-common.h (lookup_interface): Remove prototype.
472 (is_class_name): Rename to objc_is_class_name.
473 (lookup_objc_ivar): Rename to objc_lookup_ivar.
474 (get_current_scope): Rename to objc_get_current_scope.
475 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
476 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
477 (yylexname): Call objc_is_class_name() instead of is_class_name().
478 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
479 instead of lookup_objc_ivar().
480 * stub-objc.c (lookup_interface): Remove stub.
481 (is_class_name): Rename to objc_is_class_name.
482 (lookup_objc_ivar): Rename to objc_lookup_ivar.
484 2004-08-31 Mark Mitchell <mark@codesourcery.com>
486 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
487 * config/arm/lib1funcs.asm: Do not include supplemental .S files
488 when compiling for Symbian.
489 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
490 (TARGET_OS_CPP_BUILTINS): Likewise.
491 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
493 2004-08-31 Stan Shebs <shebs@apple.com>
495 * toplev.c (process_options): Ensure debug_hooks is initialized.
497 2004-08-31 Mark Mitchell <mark@codesourcery.com>
499 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
500 * target.h (cxx): Add export_class_data.
501 * config/arm/arm.c (arm_cxx_export_class_data): New function.
502 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
503 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
505 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
507 * config/sh/sh.c (output_branch): Check the insn length possibly
510 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
512 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
514 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
516 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
517 (c_sizeof_of_alignof_type): Likewise.
518 * expr.c (array_ref_element_size): Likewise.
519 (highest_pow2_factor_for_target): Likewise.
520 * gimplify.c (canonicalize_addr_expr): Likewise.
521 (gimplify_compound_lval): Likewise.
522 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
523 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
524 * varasm.c (assemble_variable): Likewise.
525 (output_constant_def_contents): Alignments are unsigned.
527 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
528 Jeff Law <law@redhat.com>
530 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
533 2004-08-31 Mark Mitchell <mark@codesourcery.com>
535 * hooks.c (hook_bool_void_true): New function.
536 * hooks.h (hook_bool_void_true): Declare.
537 * target-def.h (TARGET_CXX): Add
538 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
539 * target.h (struct cxx): Add key_method_may_be_inline.
540 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
542 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
543 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
546 2004-08-31 Denis Chertykov <denisc@overta.ru>
549 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
550 frame pointer register only in Pmode while reload in progress.
552 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
555 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
556 because it breaks the 32-bit shift patterns that rely on a match_dup.
558 2004-08-31 Matt Austern <austern@apple.com>
560 * config/darwin.c (darwin_make_decl_one_only): Allocate section
561 names once per compilation, instead of once per symbol.
563 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
565 * Makefile.in (build_subdir): New substitution.
566 (fixinc.sh): Simplify heavily since fixincludes is already built.
567 (stmp-fixinc): Depend on specs.ready.
568 (install-mkheaders): Use new location of fixincludes.
569 (clean): Do not descend into fixinc.
570 (FORBUILD): Replace with ../$(build_subdir).
571 * configure.ac (build_subdir): Substitute.
572 (FORBUILD): Do not set.
573 (all_outputs): Remove fixinc/Makefile.
574 (default commands): Do not create links in fixinc.
575 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
576 the fixincludes configuration steps and substituting
577 @FIXINCL@ in fixinc.in.
578 * fixinc.in: New, from fixinc/fixincl.sh.
582 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
584 * attribs.c (strip_attrs): Remove.
585 (split_specs_attrs): Move ...
586 * c-decl.c: ... to here.
587 * tree.h (split_specs_attrs, strip_attrs): Remove.
588 * c-tree.h (split_specs_attrs): Declare.
590 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
592 * read-rtl.c: Disable RTL checking.
593 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
595 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
597 * config/mips/mips.md (fcond): New code macro and attribute.
598 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
599 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
600 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
602 2004-08-30 Mark Mitchell <mark@codesourcery.com>
605 2004-08-29 Mark Mitchell <mark@codesourcery.com>
606 PR rtl-optimization/16590
607 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
609 2004-08-30 Andrew Pinski <apinski@apple.com>
612 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
613 * ChangeLog: Fix previous ChangeLog entry.
616 * config.host (use_long_long_for_widest_fast_int): New, default is
618 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
619 * configure.ac: If use_long_long_for_widest_fast_int, then
620 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
621 * configure: Regenerate.
622 * config.in: Regenerate.
623 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
624 New: widest integer type supported efficiently in hardware for the
626 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
627 HOST_BITS_PER_WIDEST_FAST_INT.
628 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
629 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
631 instead of HOST_WIDE_INT.
632 (HARD_REG_SET_LONGS): Likewise.
633 (UHOST_BITS_PER_WIDE_INT): Likewise.
634 Change the checks for the fast cases to be based on
635 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
637 2004-08-30 Steven Bosscher <stevenb@suse.de>
639 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
642 2004-08-30 Geoffrey Keating <geoffk@apple.com>
648 * c-decl.c (grokdeclarator): Produce error for 'static' on local
649 function declaration.
651 2004-08-30 Richard Henderson <rth@redhat.com>
653 * expr.c (array_ref_element_size): Force aligned_size back to
655 (component_ref_field_offset): Similarly for aligned_offset.
656 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
657 low-bound, element-size, field-offset fields rather than
660 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
662 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
665 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
667 * c-tree.h (struct language_function): Add arg_info element.
668 * c-decl.c (current_function_arg_info): New.
669 (grokdeclarator, store_parm_decls): Use it instead of
671 (c_push_function_context, c_pop_function_context): Save and
674 2004-08-30 Richard Henderson <rth@redhat.com>
676 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
677 COMPONENT_REF to pointer arithmetic.
678 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
679 constant "c" as a valid constant initializer. Allow narrowing of
680 differences against the same base object, for any base object.
682 2004-08-30 Richard Henderson <rth@redhat.com>
684 * expr.c (expand_expr_addr_expr): New.
685 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
687 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
689 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
690 (mips_fp_condition): New enum.
691 (mips_fp_conditions): New array.
692 (print_fcc_operand): Delete.
693 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
694 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
695 (builtin_description): Add "cond" field.
696 (DIRECT_BUILTIN): Initialize it.
697 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
698 into INSN and CODE. Initialize the "cond" field.
699 (CMP_BUILTINS): Update accordingly.
700 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
701 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
702 mips_fp_condition as argument. Make it the final operand of the
703 comparison instruction.
704 (mips_expand_builtin): Update accordingly.
705 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
706 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
708 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
709 Don't use the 'Q' operand prefix; just print the operand normally.
710 (mips_cabs_*, mips_c_*): Delete, replacing with...
711 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
712 patterns. Split the 4s versions into 2 ps patterns after reload.
714 2004-08-30 Richard Henderson <rth@redhat.com>
716 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
717 assuming an ADDR_EXPR is non-null.
719 2004-08-30 Jason Merrill <jason@redhat.com>
721 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
723 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
725 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
726 * gcov.c (abort): Remove undef.
728 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
729 (struct tree_binfo): Remove primary field.
731 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
733 * fixinc/Makefile.in (machname.h): Remove.
734 (fixincl.x): Do not pass $@ to genfixes.
735 * fixinc/genfixes: Remove code to produce machname.h.
736 * fixinc/fixincl.sh: Move it here instead.
737 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
738 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
739 return a bool indicating whether pz_mn_name_pat is NULL.
740 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
741 Declare extern C variables for the ENV_TABLE.
742 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
743 instead use the result of mn_get_regexps.
744 * fixinc/fixtests.c: Likewise.
746 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
748 * configure.ac: Do not run fixincludes after stage1 during
750 * configure: Regenerate.
752 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
754 * sched-deps.c (get_condition): Partially revert previous, by never
755 trying to extract the condition from a condjump.
757 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
759 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
760 (handle_visibility_attribute, c_determine_visibility): Likewise.
761 * c-common.h (my_friendly_assert): Remove.
763 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
765 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
766 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
767 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
768 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
769 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
771 2004-08-30 Diego Novillo <dnovillo@redhat.com>
773 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
774 in COMPONENT_REF nodes.
776 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
779 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
780 global_dc->warning_as_error_requested.
781 * diagnostic.c (diagnostic_initialize): Tidy.
782 * diagnostic.h (diagnostic_context::x_data): Remove
783 (diagnostic_context::issue_warnings_are_errors_message): Rename
784 from warnings_are_errors_message.
785 (diagnostic_context::warning_as_error_requested): New.
787 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
789 * sched-deps.c (get_condition): Fix breakage in previous patch.
791 2004-08-30 Paul Brook <paul@codesourcery.com>
793 * doc/install.texi: Fix broken mpfr link.
795 2004-08-29 David O'Brien <obrien@FreeBSD.org>
797 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
798 other FreeBSD platforms.
800 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
802 * arm.h (REVERSE_CONDITION): Define.
803 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
805 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
807 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
808 just the codes, call reversed_comparison_code ().
809 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
810 (not_reg_cond): Use reversed_comparison_code.
811 (and_reg_cond): Likewise.
812 * ifcvt.c (cond_exec_process_if_block): Likewise.
813 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
815 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
817 * sched-deps.c (get_condition): Rewrite using jump support functions.
818 Use reversed_comparison_code.
819 (conditions_mutex_p): Use reversed_comparison_code.
821 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
823 * config/mips/mips.c (override_options): Disable hot/cold partitioning
826 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
828 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
829 (mips_function_type): Move to mips.c.
830 * config/mips/mips.c (mips_builtin_type): New enum.
831 (builtin_description): Replace code and ftype with builtin_type
833 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
834 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
835 (CODE_FOR_mips_abs_ps): Define.
836 (mips_bdesc): Use new macros.
837 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
838 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
839 (mips_expand_builtin_direct): New function.
840 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
841 builtin. Replace boolean parameter with builtin_type.
842 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
843 (mips_expand_4s_compare_builtin): Delete, replacing with...
844 (mips_expand_builtin_compare): ...this new function.
846 2004-08-29 Mark Mitchell <mark@codesourcery.com>
848 PR rtl-optimization/16590
849 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
851 2004-08-29 Diego Novillo <dnovillo@redhat.com>
853 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
854 * tree-ssa-propagate.c: Fix documentation.
856 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
858 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
859 (mov[sd]fcc): Likewise.
861 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
863 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
865 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
867 * config/mips/mips.md (divide_condition): New mode attribute.
868 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
869 (sqrt[sd]f3): Redefine using SCALARF.
870 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
873 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
875 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
876 (loadx, storex, fmt, UNITMODE): New mode attributes.
877 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
878 (mul[sd]f3): Redefine using :SCALARF.
879 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
880 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
881 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
882 Check TARGET_FUSED_MADD for V2SF too.
883 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
885 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
886 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
888 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
890 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
891 V2SF_type_node if it will be needed.
893 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
895 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
896 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
897 (mips_prepare_builtin_target): New function.
898 (mips_expand_builtin): Use them. Update calls to subroutines.
899 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
900 cmp_choice with a boolean argument to select between movt and movf.
901 Take the comparison's icode as an argument, not the function's fcode.
902 (mips_expand_compare_builtin): New function. Rename existing function
903 to mips_expand_scalar_compare_builtin.
904 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
905 (mips_expand_ps_compare_builtin): Use the new functions. Take the
906 comparison's icode as an argument, not the builtin's fcode.
908 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
910 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
911 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
912 registers are false and -1 if all registers are true.
913 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
914 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
915 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
916 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
917 (bc1any2t, bc1any2f): Likewise CCV2.
918 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
920 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
922 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
923 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
924 UNSPEC rather than an IF_THEN_ELSE.
925 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
926 mips_cond_move_tf_ps by name.
928 2004-08-29 Chao-ying Fu <fu@mips.com>
929 James E Wilson <wilson@specifixinc.com>
931 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
932 8 byte size and alignment. Give CCV4 16 byte size and alignment.
933 * config/mips/mips-ps-3d.md: New file.
934 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
935 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
936 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
937 (mips_output_move): Emit "mov.ps" for V2SFmode.
938 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
940 (override_options): Check if TARGET_MIPS3D and there was an explicit
941 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
942 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
943 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
944 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
945 and allow CCV2 and CCV4 to occupy two and four CC registers.
946 (print_fcc_operand): New function.
947 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
948 %Z to call print_fcc_operand.
949 (mips_function_value): Handle MODE_VECTOR_FLOAT.
950 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
951 (mips_vector_mode_supported_p): New function.
952 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
953 (builtin_description): New struct.
954 (mips_bdesc): New array of struct builtin_description.
955 (mips_expand_builtin, mips_init_builtins,
956 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
957 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
959 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
960 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
961 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
962 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
963 "-mips3d", and "-mno-mips3d".
964 (ASM_SPEC): Map -mips3d to -mips3d in gas.
965 (EXTRA_CONSTRAINT_Y): New macro.
966 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
967 multi-letter constraint 'Y'.
968 (CONSTRAINT_LEN): New macro.
969 (enum mips_builtins): New for MIPS builtin functions.
970 (enum mips_function_type): New for the types of MIPS builtin functions.
971 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
972 * config/mips/mips.md: New constants for paired single and MIPS-3D
973 instructions. Include the new mips-ps-3d.md file.
974 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
975 movv2sf_hardfloat_64bit): New named patterns.
976 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
977 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
978 sdxc1_v2sf_di): New unnamed patterns.
979 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
980 const_vector support.
981 (const_0_or_1_operand): New predicate.
982 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
984 2004-08-29 Diego Novillo <dnovillo@redhat.com>
986 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
987 (tree-ssa-propagate.o): New rule.
988 (GTFILES): Add tree-ssa-propagate.c.
989 * tree-flow.h (struct stmt_ann_d): Remove field
991 * tree-ssa-propagate.c: New file.
992 * tree-ssa-propagate.h: New file.
993 * tree-ssa-ccp.c: Re-write to use the routines from
994 tree-ssa-propagate.c.
996 2004-08-28 Andrew Pinski <apinski@apple.com>
998 * tree-ssa-loop.c: Remove extra include of basic-block.h.
1000 2004-08-28 Ziemowit Laski <zlaski@apple.com>
1002 * c-common.h: Update comments about ObjC/ObjC++ entry points.
1003 (objc_is_reserved_word): New prototype.
1004 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
1005 separate section; these are call-backs.
1006 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
1007 ObjC/ObjC++ "@" keywords.
1008 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
1009 prototypes; they already live in c-common.h.
1010 * stub-objc.c: Update copyright notice.
1011 (objc_is_reserved_word): New stub.
1013 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
1015 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
1016 even when not checking.
1018 2004-08-27 Jason Merrill <jason@redhat.com>
1021 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
1022 (gimple_push_cleanup): Add eh_only parm.
1023 (gimplify_target_expr): Pass it.
1024 * c.opt (-fno-threadsafe-statics): New option.
1025 * c-opts.c (c_common_handle_option): Handle it.
1026 * c-common.h (flag_threadsafe_statics): Declare it.
1027 * c-common.c (flag_threadsafe_statics): Record it.
1028 * doc/invoke.texi: Document it.
1029 * tsystem.h (_GNU_SOURCE): Define.
1030 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
1031 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
1032 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
1033 (__gthread_recursive_mutex_init_function): New fn.
1034 (__gthread_recursive_mutex_lock): New fn.
1035 (__gthread_recursive_mutex_trylock): New fn.
1036 (__gthread_recursive_mutex_unlock): New fn.
1037 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
1038 * gthr-win32.h, gthr-vxworks.h: Likewise.
1041 2004-08-27 David Edelsohn <edelsohn@gnu.org>
1043 * config/rs6000/rs6000.c (rs6000_override_options): Increase
1044 maximum skip to 15. Set function alignment, jump alignment, and
1045 loop alignment to 16 for processors that form dispatch groups.
1046 (rs6000_rtx_costs): outer_code is used.
1048 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1050 * stor-layout.c (sizetype_set): Remove.
1051 (set_sizetype): Don't test or set it.
1053 * tree.h (size_int_type): Remove.
1054 * fold-const.c: Do not #include gt-fold-const.h.
1055 (size_htab_hash, size_htab_eq): Remove.
1056 (size_int_kind): Use build_int_cst.
1057 (new_const, size_htab): Remove.
1058 (size_int_type): Remove.
1059 (round_up): Use build_int_cst.
1060 (round_down): Likewise. Remove spurious constant build.
1062 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1064 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
1065 Add is_release variable, use it for --enable-werror and
1066 --enable-checking defaults.
1067 * system.h (gcc_assert, gcc_unreachable): New.
1068 * doc/install.texi (--enable-checking): Update.
1069 * configure, config.in: Rebuilt.
1071 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
1073 * rtl.h (read_rtx): Change prototype.
1074 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
1075 line number. Return true on success.
1076 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
1077 callers accordingly.
1079 2004-08-26 Richard Henderson <rth@redhat.com>
1081 * c-typeck.c (build_offsetof): Remove.
1082 * c-tree.h (build_offsetof): Remove.
1083 * c-common.c (fold_offsetof_1, fold_offsetof): New.
1084 * c-common.h (fold_offsetof): Declare.
1085 * c-parse.in (offsetof_base): New.
1086 (offsetof_member_designator): Use it. Build references, not just
1088 (primary): Use fold_offsetof, not build_offsetof.
1090 2004-08-26 Richard Henderson <rth@redhat.com>
1092 * tree.c (staticp): Return the static object.
1093 * tree.h (staticp): Update decl.
1094 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
1095 * langhooks.c (lhd_staticp): Return NULL_TREE.
1096 * langhooks-def.h (lhd_staticp): Update decl.
1097 * c-common.c (c_staticp): Return the static object.
1098 * c-common.h (c_staticp): Update decl.
1100 2004-08-26 Richard Henderson <rth@redhat.com>
1102 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
1105 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
1108 * c-decl.c (struct c_binding): Add type and inner_comp fields.
1109 (bind): Set type and inner_comp fields.
1110 (pop_scope): Restore type of decl to the correct type from an
1111 outer scope. Give error when popping file scope for incomplete
1112 arrays completed incompatibly with default initialization in an
1114 (diagnose_mismatched_decls): Handle externs with initializers at
1116 (pushdecl): Set type of external declaration at block scope based
1117 only on the visible declarations. Save type when changing the
1118 type of a declaration. Merge an external declaration at block
1119 scope with a visible static declaration at file scope.
1120 (implicitly_declare): Give recycled old declaration the new type
1121 except for incompatible declarations of built-in functions, saving
1124 2004-08-26 Ziemowit Laski <zlaski@apple.com>
1126 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
1128 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
1130 * tree-alias-common.c (gate_pta): New function.
1131 (pass_build_pta): Use it.
1132 (pass_del_pta): Use it.
1133 (delete_alias_vars): Don't check flag_tree_points_to.
1135 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1137 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
1138 TFmode as additional register mode cloberred by call.
1140 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1142 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
1143 parallel pattern for library call returning DImode in
1146 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1148 * config/rs6000/rs6000.c (function_arg): Generate parallel
1149 pattern for more split args.
1151 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1153 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
1154 either gen_movdi_di_update or gen_movdi_si_update depending on
1156 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
1157 to generate two versions.
1159 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
1161 * Makefile.in (lambda-code.o): New.
1162 (lambda-trans.o): Ditto.
1163 (TREE_DATA_REF_H): Ditto.
1165 (lambda-mat.o): Use LAMBDA_H.
1166 (tree-data-ref.o): Ditto.
1167 * lambda-code.c: New file. Lambda code generation algorithm.
1168 * lambda-trans.c: Ditto. Lambda transformation matrix support.
1169 * lambda.h: Add lambda loop structures.
1170 Add lambda loopnest structures.
1171 Add lambda body vector structure.
1172 Add lambda linear expression structures.
1173 Add prototypes for functions in new files.
1174 * lambda-mat.c: Include tree.h
1176 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
1177 Sebastian Pop <pop@cri.ensmp.fr>
1179 * tree-data-ref.h: Include lambda.h
1180 (free_dependence_relation): Declared here.
1181 (free_dependence_relations): Ditto.
1182 (free_data_refs): Ditto.
1183 * tree-data-ref.c (free_dependence_relation): New function.
1184 (free_dependence_relations): Ditto.
1185 (free_data_refs): Ditot.
1186 (analyze_all_data_dependences): Free datarefs and dependence_relations.
1187 (build_classic_dist_vector): Store in the dependence_relations the
1188 information. Each arc in the dependence_relations graph is labelled
1189 with the distance and direction vectors.
1190 (build_classic_dir_vector): Ditto.
1191 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
1192 Now computes again the whole dependence graph including read-read
1194 (compute_data_dependences_for_loop): Now dependence_relations contains
1195 all the data, and thus it doesn't need to initialize the classic_dir
1196 and classic_dist vectors.
1197 (analyze_all_data_dependences): Adjusted for using the new interface of
1198 compute_data_dependences_for_loop. Remove the statistics dump.
1200 2004-08-26 Bob Wilson <bob.wilson@acm.org>
1202 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
1203 (xtensa_expand_block_move): Update comment.
1204 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
1206 2004-08026 Richard Earnshaw <rearnsha@arm.com>
1209 * toplev.c (crash_signal): If we crashed while emitting
1210 a user asm, then die more gracefully.
1212 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1215 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
1216 checking for a valid constant, regardless of sign.
1218 2004-08-25 Richard Henderson <rth@redhat.com>
1221 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
1222 if the constant satisfies add_operand.
1224 2004-08-25 Richard Henderson <rth@redhat.com>
1227 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
1228 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
1229 unwind info for >16-bit frames.
1231 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
1234 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
1236 2004-08-25 Richard Henderson <rth@redhat.com>
1238 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
1239 (TARGET_CANNOT_FORCE_CONST_MEM): New.
1241 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
1243 * doc/tree-ssa.texi: Document new operand iterator.
1245 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1248 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
1249 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
1252 2005-08-28 Paul Brook <paul@codesourcery.com>
1254 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
1255 -mfpu=vfp -march=armv5t
1256 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
1258 2004-08-25 Richard Henderson <rth@redhat.com>
1260 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1261 * target.h (struct gcc_target): Add scalar_mode_supported_p.
1262 * targhooks.c (default_scalar_mode_supported_p): New.
1263 * targhooks.h (default_scalar_mode_supported_p): Declare.
1264 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
1266 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
1267 before attempting to create types. Tidy.
1268 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
1270 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
1271 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1273 2004-08-25 Richard Henderson <rth@redhat.com>
1275 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
1276 set REAL_MODE_FORMAT for TFmode.
1278 2004-08-25 Ziemowit Laski <zlaski@apple.com>
1280 * c-decl.c (grokparm): New function.
1281 * c-tree.h (grokparm): New prototype.
1283 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
1285 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
1286 iterator controlling structure.
1287 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
1288 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
1289 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
1291 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
1292 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
1293 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
1294 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
1295 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
1296 Empty operand pointers.
1297 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
1298 (op_iter_next_use): New. Return next use_operand_p.
1299 (op_iter_next_def): New. Return next def_operand_p.
1300 (op_iter_next_tree): New. Return next operands as a tree.
1301 (op_iter_init): New. Initialize an iterator structure.
1302 (op_iter_init_use): New. Initialize structure and get the first use.
1303 (op_iter_init_def): New. Initialize structure and get the first def.
1304 (op_iter_init_tree): New. Initialize structure and get the first tree.
1305 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
1306 (op_iter_init_maydef): New. Initialize structure and get the first
1308 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
1309 * tree-dfa.c (compute_immediate_uses_for_stmt,
1310 redirect_immediate_uses): Use new operand iterator.
1311 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
1312 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
1313 operands instead of using *_disappeared_p routines.
1314 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
1315 ssa_rewrite_stmt): Use new operand iterator.
1316 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
1317 rewrite_trees): Use new operand iterator.
1318 * tree-pretty-print.c (dump_vops): Use new operand iterator.
1319 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
1320 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
1321 dump_points_to_info): Use new operand iterator.
1322 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
1323 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
1325 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
1326 propagate_necessity): Use new operand iterator.
1327 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
1328 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
1329 a parameter instead of a stmt_ann_t.
1330 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
1331 build_tree_conflict_graph): Use new operand iterator.
1332 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
1333 rewrite_mem_refs): Use new operand iterator.
1334 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
1335 check_loop_closed_ssa_use): Use new operand iterator.
1336 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
1337 * tree-ssanames.c (release_defs): Use new operand iterator.
1338 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
1340 2004-08-25 Adam Nemet <anemet@lnxw.com>
1342 * tlink.c (initial_cwd): New variable.
1343 (tlink_init): Initialize it.
1344 (recompile_files): Use tlink_execute() instead of system(). Don't
1345 duplicate verbose output of collect_execute. Restore initial_cwd.
1346 Update comment before the function.
1348 2004-08-25 Ziemowit Laski <zlaski@apple.com>
1350 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
1351 accept) a cast from one Objective-C pointer type to another.
1353 2004-08-25 Paolo Carlini <pcarlini@suse.de>
1355 * doc/install.texi: Document that libstdc++-v3 requires
1358 2004-08-25 Caroline Tice <ctice@apple.com>
1360 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
1361 to comments at start of function.
1362 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
1364 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1365 merge_blocks_move_predecessor_nojumps,
1366 merge_blocks_move_successor_nojumps, merge_blocks_move,
1367 try_crossjump_to_edge, try_crossjump_bb): Likewise.
1368 * cfglayout.c (fixup_reorder_chain): Likewise.
1369 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
1370 cfg_layout_can_merge_blocks_p): Likewise.
1371 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
1372 * passes.c (rest_of_compilation): Update comments for calling
1373 optimization that partitions hot/cold basic blocks.
1374 * doc/invoke.texi: Update documentation of
1375 freorder-blocks-and-partition flag.
1377 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
1379 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
1380 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
1382 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
1384 * config/mips/mips.md (any_shift): New code macro.
1385 (optab, insn): New code attributes.
1386 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
1387 Use the standard rather than internal patterns for the MIPS16
1388 double-shift optimization.
1389 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
1390 Redefine using :GPR and any_shift.
1391 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
1392 to cover all three shifts.
1393 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
1394 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
1395 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
1397 2004-08-24 Geoffrey Keating <geoffk@apple.com>
1399 * gimplify.c (lookup_tmp_var): Separate temporaries when not
1402 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1404 PR libstdc++/17005 (fix for HP-UX 11.11)
1405 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
1406 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
1407 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
1408 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
1409 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
1410 (LINK_SPEC): Handle march=1.0 option.
1411 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
1412 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
1413 (SUBTARGET_OPTIONS): New define.
1414 (LINK_SPEC): Handle march=1.0 option.
1415 (STARTFILE_SPEC): New define.
1416 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
1417 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
1418 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
1419 (SUBTARGET_OPTIONS): New define.
1420 (LINK_SPEC): Handle march=1.0 option.
1421 (STARTFILE_SPEC): New define.
1422 * config/pa/pa.c (override_options): Add code to process -munix= option.
1423 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
1424 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
1426 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
1427 (SUBTARGET_OPTIONS): Provide default define.
1428 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
1429 STANDARD_STARTFILE_PREFIX_2): New defines.
1430 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
1431 (ENDFILE_SPEC): Use %O.
1432 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
1433 Mention issue caused by changing namespace and runtime to UNIX 95/98.
1434 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
1435 Document -munix=std option.
1437 2004-08-25 Steven Bosscher <stevenb@suse.de>
1439 * cse.c (cse_around_loop, cse_check_loop_start,
1440 cse_set_around_loop): Remove.
1441 (cse_basic_block): Remove the around_loop argument.
1442 (cse_end_of_basic_block): Remove the after_loop argument.
1443 (cse_main): Likewise.
1444 * rtl.h (cse_main): Update prototype.
1445 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
1446 rest_of_handle_gcse): Update cse_main calls.
1448 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1450 * tree.h (build_int_cst): New, sign extended constant.
1451 (build_int_cstu): New, zero extended constant.
1452 (build_int_cst_wide): Renamed from build_int_cst.
1453 * tree.c (build_int_cst, build_int_cstu): New.
1454 (build_int_cst_wide): Renamed from build_int_cst.
1455 (make_vector_type, build_common_tree_nodes,
1456 build_common_tree_nodes_2): Adjust build_int_cst calls.
1457 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
1458 expand_builtin_strpbrk, expand_builtin_fputs,
1459 build_string_literal, expand_builtin_printf,
1460 expand_builtin_sprintf, fold_builtin_classify_type,
1461 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
1462 fold_builtin_toascii, fold_builtin_isdigit,
1463 simplify_builtin_strstr, simplify_builtin_strpbrk,
1464 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
1465 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
1466 DEF_ATTR_INT): Likewise.
1467 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
1469 * c-lex.c (interpret_integer, lex_charconst): Likewise.
1470 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
1471 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1472 * c-typeck.c (really_start_incremental_init, push_init_level,
1473 set_nonincremental_init_from_string): Likewise.
1474 * calls.c (load_register_parameters): Likewise.
1475 convert.c (convert_to_pointer): Likewise.
1476 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
1477 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
1478 build_gcov_info): Likewise.
1479 * except.c (init_eh, assign_filter_values): Likewise.
1480 * expmed.c (store_fixed_bit_field, extract_bit_field,
1481 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
1482 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
1483 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
1484 * expr.c (convert_move, emit_group_load, emit_group_store,
1485 expand_assignment, store_constructor, store_field,
1486 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1487 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
1488 invert_truthvalue, optimize_bit_field_compare,
1489 decode_field_reference, all_ones_mask_p, constant_boolean_node,
1490 fold_div_compare, fold, fold_read_from_constant_string,
1491 fold_negate_const, fold_abs_const, fold_not_const, round_up,
1492 round_down): Likewise.
1493 * function.c (assign_parm_setup_block): Likewise.
1494 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
1496 * stor-layout.c (layout_type, initialize_sizetypes,
1497 set_min_and_max_values_for_integral_type): Likewise.
1498 * tree-chrec.c (chrec_fold_multiply_poly_poly,
1499 reset_evolution_in_loop): Likewise.
1500 * tree-chrec.h (build_polynomial_chrec): Likewise.
1501 * tree-complex.c (build_replicated_const): Likewise.
1502 * tree-eh.c (honor_protect_cleanup_actions,
1503 lower_try_finally_onedest, lower_try_finally_copy,
1504 lower_try_finally_switch): Likewise.
1505 * tree-mudflap.c (mf_build_string, mx_register_decls,
1506 mudflap_register_call, mudflap_enqueue_constant): Likewise.
1507 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
1508 * tree-pretty-print.c (dump_generic_node): Likewise.
1509 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
1511 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
1512 * tree-ssa-loop-niter.c (number_of_iterations_cond,
1513 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
1515 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
1516 canonicalize_loop_induction_variables): Likewise.
1517 * tree-vectorizer.c (vect_create_index_for_array_ref,
1518 vect_transform_loop_bound, vect_compute_data_ref_alignment):
1521 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
1522 alpha_gimplify_va_arg_1): Likewise.
1523 * config/arm/arm.c (arm_get_cookie_size): Likewise.
1524 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
1525 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1526 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1527 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
1528 mips_gimplify_va_arg_expr): Likewise.
1529 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1530 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
1531 add_compiler_branch_island): Likewise.
1532 * config/s390/s390.c (s390_va_start): Likewise.
1533 * config/sh/sh.c (sh_va_start): Likewise.
1534 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1536 * config/xtensa/xtensa.c (xtensa_va_start,
1537 xtensa_gimplify_va_arg_expr): Likewise.
1539 * objc/objc-act.c (build_objc_string_object,
1540 build_objc_symtab_template, init_def_list, init_objc_symtab,
1541 init_module_descriptor, generate_static_references,
1542 build_selector_translation_table, get_proto_encoding,
1543 build_typed_selector_reference, build_selector_reference,
1544 build_next_objc_exception_stuff,
1545 build_method_prototype_list_template, generate_descriptor_table,
1546 generate_protocols, build_protocol_initializer,
1547 build_ivar_list_template, build_method_list_template,
1548 build_ivar_list_initializer, generate_ivars_list,
1549 generate_dispatch_table, generate_protocol_list,
1550 build_category_initializer, build_shared_structure_initializer,
1551 generate_shared_structures, handle_impent,
1552 generate_objc_image_info): Likewise.
1554 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
1556 * cfglayout.c (duplicate_insn_chain): Remove references to
1557 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
1558 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
1559 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
1560 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
1561 and NOTE_INSN_LOOP_CONT.
1562 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
1563 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
1564 and NOTE_INSN_LOOP_CONT.
1565 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
1566 check_dbra_loop, loop_dump_aux): Remove references to removed notes
1568 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
1569 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
1570 references to removed notes and fields.
1571 (subtract_reg_term, ujump_to_loop_cont): Remove.
1573 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
1575 * doc/install.texi: Document that libcpp does not require
1576 Automake any longer. Document that Automake 1.9.1 should
1579 2004-08-25 Zack Weinberg <zack@codesourcery.com>
1581 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
1582 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
1583 DWARF_DEBUGGING_INFO from choice-of-definition chain;
1584 restructure using C89 features (#elif, #error).
1585 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
1586 * config/sh/sh.h: Remove references to DWARF_DEBUG.
1587 * doc/invoke.texi: Remove references to DWARF version 1;
1588 clarify why -gdwarf-2<n> doesn't work.
1590 2004-08-25 Zack Weinberg <zack@codesourcery.com>
1592 * basic-block.h (BB_SET_PARTITION): Clear old value first.
1593 * cfg.c (clear_bb_flags): Don't clear partition setting.
1594 * ifcvt.c (find_if_case_1): Remove ??? comment.
1596 2004-08-25 Alan Modra <amodra@bigpond.net.au>
1599 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
1600 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
1601 current_function_stdarg in place of sysv_varargs_p.
1602 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
1605 2004-08-24 Richard Henderson <rth@redhat.com>
1608 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
1609 random codes within CONST.
1611 2004-08-24 James E Wilson <wilson@specifixinc.com>
1613 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
1614 -freorder-blocks-and-partition.
1616 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1619 * tree-ssa-threadupdate.c (redirection_data): Make static.
1620 (thread_block): Use ggc_alloc_cleared to allocate struct
1621 redirection_data. Don't free elements in redirection_data.
1623 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
1625 * config/mips/predicates.md (small_data_pattern): Match prefetches.
1627 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1629 PR tree-optimization/17016
1630 * tree-ssa-loop-niter.c (number_of_iterations_cond,
1631 number_of_iterations_exit): Use POINTER_TYPE_P instead
1632 of testing for POINTER_TYPE.
1634 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1636 * tree-ssa-loop-ivcanon.c: New file.
1637 * tree-ssa-loop-manip.c (create_iv): New function.
1638 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
1639 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
1640 * cfgloop.c (mark_single_exit_loops): New function.
1641 (verify_loop_structure): Verify single-exit loops.
1642 * cfgloop.h (struct loop): Add single_exit field.
1643 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
1644 (mark_single_exit_loops): Declare.
1645 (tree_num_loop_insns): Declare.
1646 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
1647 (duplicate_loop_to_header_edge): Use it.
1648 * common.opt (fivcanon): New flag.
1649 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
1650 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
1651 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
1652 (bsi_insert_on_edge_immediate): New function.
1653 * tree-flow.h (bsi_insert_on_edge_immediate,
1654 canonicalize_induction_variables, tree_unroll_loops_completely,
1655 create_iv): Declare.
1656 * tree-optimize.c (init_tree_optimization_passes): Add
1657 pass_iv_canon and pass_complete_unroll.
1658 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
1659 * tree-scalar-evolution.c (get_loop_exit_condition,
1660 get_exit_conditions_rec, number_of_iterations_in_loop,
1661 scev_initialize): Use single_exit information.
1662 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
1663 missing assumptions.
1664 (loop_niter_by_eval): Return number of iterations as unsigned
1666 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
1667 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
1668 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
1670 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
1671 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
1672 the defining statement is ready.
1673 * tree-vectorizer.c (vect_create_iv_simple): Removed.
1674 (vect_create_index_for_array_ref, vect_transform_loop_bound):
1676 (vect_transform_loop_bound): Use single_exit information.
1677 (vect_analyze_loop_form): Cleanup bogus tests.
1678 (vectorize_loops): Do not call flow_loop_scan.
1679 * tree.h (may_negate_without_overflow_p): Declare.
1680 * fold-const.c (may_negate_without_overflow_p): Split out from ...
1681 (negate_expr_p): ... this function.
1682 (tree_expr_nonzero_p): Handle overflowed constants correctly.
1683 * doc/invoke.texi (-fivcanon): Document.
1684 * doc/passes.texi: Document canonical induction variable creation.
1686 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
1688 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
1689 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
1690 using the mode of the operand to decide between them.
1691 * config/mips/mips.md (MOVECC): New mode macro.
1692 (ccreg): New mode attribute.
1693 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
1694 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
1695 (mov[sd]icc): Redefine using :GPR.
1697 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
1699 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
1700 (mips_prefetch_cookie): New function.
1701 * config/mips/mips.c (print_operand_address): Fix handling of
1703 (mips_emit_prefetch): Delete.
1704 (mips_prefetch_cookie): New function.
1705 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
1706 mode of QImode for the address_operand. Use mips_prefetch_cookie
1707 to calculate the first "pref" operand.
1708 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
1709 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
1711 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
1713 * arm.md: Include predicates.md.
1714 * predicates.md: New file.
1715 * arm.c (s_register_operand, arm_hard_register_operand)
1716 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
1717 (arm_immediate_operand, arm_neg_immediate_operand)
1718 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
1719 (arm_add_operand, arm_addimm_operand, arm_not_operand)
1720 (offsettable_memory_operand, alignable_memory_operand)
1721 (arm_reload_memory_operand, arm_float_rhs_operand)
1722 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
1723 (index_operand, shiftable_operator, logical_binary_operator)
1724 (shift_operator, equality_operator, arm_comparison_operator)
1725 (minmax_operator, cc_register, dominant_cc_register)
1726 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
1727 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
1728 (const_shift_operand, load_multiple_operation)
1729 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
1730 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
1731 (cirrus_register_operand, cirrus_fp_register)
1732 (cirrus_shift_const): Delete, replaced with equivalents in
1734 (shift_op): Handle ROTATE.
1735 * arm-protos.h: Delete declarations for above.
1736 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
1737 * t-arm (MD_INCLUDES): Add predicates.md.
1738 (s-preds): Depends on MD_INCLUDES.
1740 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
1742 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
1743 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
1744 patterns. Redefine using :GPR. Give the match_operator a mode.
1745 Use '%2' rather than '%z2' for operand 2.
1747 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
1749 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
1752 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
1754 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
1755 of internal patterns.
1756 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
1758 (tablejump): Use expand_binop to calculate address. Adjust names
1759 of internal patterns.
1760 (tablejump[sd]i): Renamed from tablejump_internal[12].
1762 (tablejump_mips16[12]): Delete.
1764 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
1766 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
1767 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
1768 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
1769 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
1770 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
1772 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
1774 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
1775 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
1777 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
1778 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
1779 (*branch_equality[sd]i_inverted): Likewise
1780 branch_equality{,_di}_inverted.
1781 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
1782 Redefine using :GPR.
1784 2004-08-24 Zack Weinberg <zack@codesourcery.com>
1786 * rtl.def: Reorganize, placing all codes used only in machine
1787 descriptions at the end.
1789 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
1790 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
1791 rtx_name, rtx_format arrays by direct reference to rtl.def,
1792 first undefining GENERATOR_FILE. Define enum insn_note and
1793 note_insn_name array by direct reference to insn-notes.def.
1794 (adjust_field_rtx_def): Remove local definition of rtx_name.
1795 Use symbolic names for insn notes.
1796 * Makefile.in (gengtype.o): Update dependencies.
1798 2004-08-24 Zack Weinberg <zack@codesourcery.com>
1800 * basic-block.h (struct basic_block_def): Reorder fields to
1801 eliminate interior padding. Remove 'partition' field.
1802 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
1803 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
1804 (BB_COPY_PARTITION): New macros.
1805 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
1806 Replace all references to the 'partition' field of a basic
1807 block with new macros.
1809 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
1810 * final.c (final_scan_insn): Don't handle it.
1811 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
1812 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
1813 * sched-rgn.c (sched_is_disabled_for_current_region_p):
1814 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
1816 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1818 * c-decl.c (c_init_decl_processing): Adjust
1819 build_common_tree_nodes call.
1820 * expmed.c (const_mult_add_overflow_p): Use
1821 build_distinct_type_copy.
1822 * stor-layout.c (early_type_list): Remove.
1823 (layout_type): Don't append to early_type_list.
1824 (initialize_sizetypes): Add signed_p argument.
1825 (set_sizetype): Overwrite the stub type nodes directly.
1826 * tree.c (copy_node_stat): Clear a type's value cache here ...
1827 (build_distinct_type): ... not here.
1828 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
1829 * tree.h (initialize_sizetypes): Add signed_p argument.
1830 (build_common_tree_nodes): Likewise.
1832 * objc/objc-act.c (get_static_reference): Use
1833 build_variant_type_copy.
1834 (get_protocol_reference): Likewise.
1835 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
1837 2004-08-24 Richard Henderson <rth@redhat.com>
1838 Andrew Pinski <apinski@apple.com>
1840 * gimplify.c (gimplify_array_ref_to_plus): Delete.
1841 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
1844 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
1845 ARRAY_REF also to get to the STRING_CST.
1847 2004-08-24 Paul Brook <paul@codesourcery.com>
1849 * config/arm/arm.c (arm_override_options): Update error message.
1850 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
1851 TARGET_HARD_FLOAT_ABI.
1852 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
1853 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
1855 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1858 * config/m32r.md (movsi_sda): Add SI mode specification to
1861 2004-08-24 Nick Clifton <nickc@redhat.com>
1863 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
1864 of seth_add3_operand.
1866 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1868 * Makefile.in (PROTO_OBJS): Add errors.o.
1869 * protoize.c (fancy_abort): Remove.
1870 * mips-tfile.c (fancy_abort): Add parameters.
1872 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
1874 * doc/trouble.texi (C++ misunderstandings): Fix example code.
1876 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
1878 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
1879 (host-default.o): Add dependency on HOOKS_H.
1880 * config/x-linux: Likewise.
1881 * config/x-solaris: Likewise.
1882 * config/i386/x-mingw32: Likewise.
1883 * config/rs6000/x-darwin: Likewise.
1885 2004-08-23 James E Wilson <wilson@specifixinc.com>
1887 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
1890 2004-08-23 Mark Mitchell <mark@codesourcery.com>
1893 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
1895 2004-08-23 Diego Novillo <dnovillo@redhat.com>
1897 * cfg.c (check_bb_profile): Fix typos.
1898 * function.c (assign_parm_is_stack_parm): Likewise.
1899 * tree-nested.c: Likewise.
1901 2004-08-23 Daniel Jacobowitz <dan@debian.org>
1903 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
1905 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
1907 2004-08-23 Eric Christopher <echristo@redhat.com>
1909 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
1910 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
1911 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
1913 * hooks.h: Include machmode.h.
1914 (hook_bool_mode_false): Declare.
1915 * hooks.c (hook_bool_mode_false): Define.
1916 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
1917 * stor-layout.c (layout_type): Ditto.
1918 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
1919 Define to target macro.
1920 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
1921 * config/arm/arm.c: Ditto. Use.
1922 * config/arm/arm.h: Ditto.
1923 * config/arm/arm-protos.h: Ditto.
1924 * config/i386/i386.c: Ditto.
1925 * config/i386/i386.h: Ditto.
1926 * config/rs6000/rs6000.c: Ditto.
1927 * config/rs6000/rs6000.h: Ditto.
1928 * config/sh/sh.c: Ditto.
1929 * config/sh/sh.h: Ditto.
1930 * config/sh/sh-protos.h: Ditto.
1931 * config/sh/sh.md: Use.
1932 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
1933 to TARGET_VECTOR_MODE_SUPPORTED_P.
1935 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
1937 * Makefile.in (BUILD_ERRORS): Set to build-errors.
1938 (errors.o): New target for host.
1939 (build-errors.o): New target for build.
1940 (genobjs): Replace errors.o with build-errors.
1941 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
1942 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
1943 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
1944 (fix-header.o): Add errors.h
1945 * collect2.c (fancy_abort): Add parameters.
1946 * collect2.h (fancy_abort): Don't declare.
1947 * errors.h (fancy_abort): Don't declare.
1948 * errors.c: Include either bconfig.h or config.h.
1949 (fancy_abort): Trim filename.
1950 * fix-header.c (v_fatal, fatal): Remove.
1951 (progname): Remove definition.
1952 (main): Set progname here.
1953 * gcc.c (fancy_abort): Add parameters.
1954 * gcc.h (fancy_abort): Remove declaration.
1955 * gcov.c (fancy_abort): Remove.
1956 * rtl.h (fancy_abort): Don't declare.
1957 (abort): Don't define.
1958 * tree.h (fancy_abort): Don't declare.
1959 (abort): Don't define.
1960 * system.h (fancy_abort): Declare.
1961 (abort): Define to fancy_abort.
1962 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
1964 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
1965 (usize_type, ubitsizetype): Remove.
1966 * stor-layout.c (set_sizetype): Don't initialize usizetype,
1968 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
1970 * tree.h (build_distinct_type_copy): New.
1971 (build_type_copy): ... here. Rename to ...
1972 (build_variant_type_copy): ... here.
1973 * tree.c (build_qualified_type): Rename build_type_copy call.
1974 (build_distinct_type_copy): New, broken out of ...
1975 (build_type_copy): ... here. Rename to ...
1976 (build_variant_type_copy): ... here. Use
1977 build_distinct_type_copy.
1978 (build_common_tree_nodes_2): Rename build_type_copy call.
1979 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
1981 (handle_packed_attribute, handle_unused_attribute,
1982 handle_transparanet_union_attribute, handle_aligned_attribute,
1983 handle_deprecated_attribute): Likewise.
1984 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
1986 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
1987 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
1988 build_distinct_type_copy.
1990 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
1992 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
1995 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
1997 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
1999 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
2000 formerly unnamed patterns. Redefine using :P for the address. Remove
2001 explicit length attributes.
2003 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2005 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
2007 (single_reachable_address): Use them.
2008 (schedule_sm): Add dump.
2009 (is_call_clobbered_ref): New function.
2010 (determine_lsm_reg): Check whether the reference is call clobbered.
2011 Only work for gimple_reg_type values.
2013 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2015 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
2016 $31 store insns. Redefine using :GPR.
2018 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2020 * config/mips/mips.md (P): New mode macro.
2021 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
2022 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
2023 Add mode attributes.
2025 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2027 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
2028 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
2029 later constants to cover the gap.
2030 (load, store): New mode attributes.
2031 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
2032 Use new unspec constants.
2034 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2036 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
2037 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
2038 to use register_operand rather than uns_arith_operand as the predicate
2039 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
2040 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
2041 Redefine using :GPR. Make same predicate change here. Extend the
2042 commutativity of operands 1 and 2 from the SImode version to the
2044 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
2045 but with no predicate changes.
2046 (*nor[sd]i3): Redefine using :GPR.
2048 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2050 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
2053 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2055 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
2056 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
2057 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
2058 rather than "%z2" (with a fake const0_rtx for operand 2).
2059 (ffs[sd]i2): Redefine using :GPR.
2060 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
2062 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2064 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
2066 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2068 * config/mips/mips.md (any_extend): New code macro.
2069 (u, su): New code attributes.
2070 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
2071 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
2072 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
2073 (*{s,u}mul_acc_di): Redefine using any_extend.
2074 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
2075 to reflect real insn names.
2076 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
2077 with an any_extend template.
2078 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
2081 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2083 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
2084 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
2085 (mul[sd]i3_r4000): Redefine using :GPR.
2086 (mulsi3_mult3): Don't check TARGET_MAD separately.
2087 (muldi3_mult3): Moved after mulsi_mult3.
2089 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2091 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
2092 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
2093 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
2094 (TARGET_GAS, TARGET_MIPS_AS): Delete.
2095 (TARGET_GPWORD): Define to true for n32 on IRIX.
2096 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
2097 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
2098 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
2099 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
2100 (MDEBUG_ASM_SPEC): Delete, folding into...
2101 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
2102 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
2103 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
2104 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
2105 to define asm_abi_default_spec.
2106 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
2107 (TARGET_ASM_SELECT_SECTION): Delete.
2108 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
2109 for non-mips16 code, removing previous workaround for SGI assemblers.
2110 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
2111 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
2112 (override_options): Remove !TARGET_GAS and !have_named_sections code.
2113 (print_operand): Fold TARGET_GAS conditionals into asm strings.
2114 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
2115 ASM_STABS_OP and ASM_STABN_OP.
2116 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
2117 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
2118 (mips_output_function_prologue): Remove !TARGET_GAS code.
2119 (mips_select_rtx_section): Remove !have_named_sections code.
2120 (mips_select_section): Delete.
2121 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
2122 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
2123 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
2124 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
2125 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
2126 * config/mips/windiss.h (ASM_SPEC): Likewise.
2128 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2130 * read-rtl.c (map_value, mapping, macro_group): New structures.
2131 (BELLWETHER_CODE): New macro.
2132 (modes, codes, bellwether_codes): New variables.
2133 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
2134 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
2135 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
2136 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
2137 (add_map_value, initialize_macros): New functions.
2138 (def_hash, def_hash_eq_p): Generalize to anything that points to,
2139 or starts with, a char * field.
2140 (find_macro, read_mapping, check_code_macro): New functions.
2141 (read_rtx_1): New, split out from read_rtx. Handle the new
2142 define_{mode,code}_{macro,attr} constructs. Use find_macro
2143 to parse the name of a code or mode. Use BELLWETHER_CODE to
2144 extract the format and to choose a suitable code for rtx_alloc.
2145 Modify recursive invocations to use read_rtx_1.
2146 (read_rtx): Call initialize_macros. Apply code and mode macros
2147 to the rtx returned by read_rtx_1. Cache everything after the
2148 first macro expansion for subsequent read_rtx calls.
2149 * doc/md.texi: Document new .md constructs.
2150 * config/mips/mips.md (GPR): New mode macro.
2151 (d, si8_di5): New mode attributes.
2152 (any_cond): New code macro.
2153 (add[sd]i3): Redefine using :GPR.
2154 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
2155 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
2156 previously unnamed MIPS16 patterns.
2157 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
2158 lines. Don't match (plus (const_int 0) ...).
2159 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
2160 Use a define_split to generate the addition.
2161 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
2162 (subsi3_internal): Delete.
2163 (*subsi3_extended): Renamed from subsi3_internal_2.
2164 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
2165 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
2166 using an any_cond template.
2168 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2170 * read-rtl.c (read_rtx): Tidy use of format_ptr.
2172 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
2174 * read-rtl.c (string_obstack): New file-scope variable.
2175 (read_string, read_quoted_string, read_braced_string)
2176 (read_escape): Remove obstack parameter and use string_obstack instead.
2177 (read_rtx): Remove function-local rtl_obstack and initialize
2178 string_obstack instead. Update call to read_string.
2180 2004-08-22 Andrew Pinski <apinski@apple.com>
2183 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
2184 expression is not constant.
2185 (c_finish_return): Do not go through INDIRECT_REF when looking
2186 for the inner expression of an ADDR_EXPR for warning about.
2188 2004-08-22 Richard Henderson <rth@redhat.com>
2191 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
2192 create new blocks and fall through.
2193 (expand_gimple_basic_block): Update to match.
2195 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2197 * reload.c (find_reloads_address): Make return value tri-state.
2198 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
2199 (find_reloads): Assume that reloaded addresses match 'o' or
2200 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
2201 returned 1 (not -1). Omit optional reloads for address operands
2202 only if find_reloads_address returned 1 (not -1).
2204 * config/s390/s390.c (legitimize_reload_address): New function.
2205 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
2206 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
2207 legitimize_reload_address.
2209 2004-08-22 Richard Hendersion <rth@redhat.com>
2211 * tree.h (SAVE_EXPR_RESOLVED_P): New.
2212 * gimplify.c (gimplify_save_expr): Use it.
2213 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
2214 on the temporary variable.
2216 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
2218 * fold-const.c (rtl_expr_nonnegative_p): Delete.
2219 * tree.h (rtl_expr_nonnegative_p): Remove.
2221 2004-08-22 Steven Bosscher <stevenb@suse.de>
2223 * config/i386/ppro.md (ppro_complex_insn): Add missing check
2224 for cpu==pentiumpro.
2226 * combine.c (struct reg_stat): Fix comment typo.
2228 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
2230 * c-tree.h (c_sizeof_nowarn): Remove.
2232 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
2234 * c-decl.c (set_array_declarator_type): Rename to
2235 set_array_declarator_inner.
2236 (build_c_parm, build_attrs_declarator, build_function_declarator):
2238 (make_pointer_declarator): Call build_attrs_declarator.
2239 * c-tree.h (set_array_declarator_type): Rename to
2240 set_array_declarator_inner.
2241 (build_c_parm, build_attrs_declarator, build_function_declarator):
2243 * c-parse.in (after_type_declarator,
2244 parm_declarator_starttypename, parm_declarator_nostarttypename,
2245 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
2246 firstparm): Use these functions
2248 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
2250 * c-decl.c (build_array_declarator, set_array_declarator_type,
2251 start_decl, grokdeclarator, grokparms): Change boolean parameters
2253 * c-tree.h (build_array_declarator, set_array_declarator_type,
2254 start_decl): Update prototypes.
2255 * c-decl.c, c-parse.in: All callers changed.
2257 2004-08-21 Mike Stump <mrs@apple.com>
2259 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
2260 (darwin_fix_and_continue): Likewise.
2261 (darwin_fix_and_continue_switch): Likewise.
2262 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
2263 (darwin_fix_and_continue): Likewise.
2264 (darwin_fix_and_continue_switch): Likewise.
2266 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
2269 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
2270 Remove, merging into ...
2271 (gen_stdcall_or_fastcall_suffix): New function, returning tree
2272 rather than const char*, and accepting additional parameter.
2273 Don't add suffix to '*'-prefixed symbols or variadic functions.
2274 (i386_pe_encode_section_info): Adjust for call to new function.
2275 Call change_decl_assembler_name.
2277 2004-08-20 Mike Stump <mrs@apple.com>
2279 * config/darwin.c (machopic_indirect_data_reference): Mark
2281 * config/386/386.c (darwin_local_data_pic): Add.
2282 (legitimate_constant_p): Reorder so that PLUS handling runs
2283 before darwin_local_data_pic to match the ordering in
2284 legitimate_pic_address_disp_p and so that MINUS runs after
2285 darwin_local_data_pic as otherwise the darwin_local_data_pic
2286 logic can be skipped, which would be very bad.
2287 (legitimate_pic_address_disp_p): Move from from here to
2288 darwin_local_data_pic so it can be reused.
2290 2004-08-21 Alan Modra <amodra@bigpond.net.au>
2292 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
2293 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
2294 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
2295 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
2296 (RS6000_ABI_NAME): Define as "linux".
2297 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
2298 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
2299 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
2300 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
2301 * config/rs6000/rs6000.c (dot_symbols): New global var.
2302 (rs6000_output_function_entry): New function, modified for
2304 (print_operand <case 'z'>): ..extracted from here.
2305 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
2306 (rs6000_output_function_epilogue): Likewise.
2307 (rs6000_elf_declare_function_name): Likewise.
2308 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
2309 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
2310 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
2311 * configure: Regenerate.
2312 * config.in: Regenerate.
2314 2004-08-20 Mark Mitchell <mark@codesourcery.com>
2316 * reload.c (find_reloads_address): Fix thinko in previous change.
2318 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
2321 2004-08-20 Jakub Jelinek <jakub@redhat.com>
2323 PR rtl-optimization/17099
2324 * combine.c (force_to_mode): Check if inner_mask has any bits set
2325 outside of GET_MODE (x) instead of op_mode.
2327 2004-08-20 Mark Mitchell <mark@codesourcery.com>
2329 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
2331 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
2332 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
2333 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
2335 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
2337 * config/arm/t-symbian: New file.
2339 2004-08-20 Andrew Pinski <apinski@apple.com>
2341 * regrename.c (kill_value_regno): ANSIfy.
2343 2004-08-20 Dale Johannesen <dalej@apple.com>
2345 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
2347 2004-08-20 Daniel Jacobowitz <dan@debian.org>
2349 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
2350 (kill_value_regno): New function, derived from kill_value.
2351 (kill_value): Update.
2352 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
2354 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
2356 Fix PR tree-optimization/17111
2357 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
2358 of non-value_handles.
2359 (bitmap_set_contains): All constants are in every set.
2361 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
2363 * fold-const.c (round_up, round_down): Use build_int_cst.
2364 Optimize common case.
2366 2004-08-20 Zack Weinberg <zack@codesourcery.com>
2367 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2369 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
2370 one_only_data_section): Rename to som_readonly_data_section,
2371 som_one_only_readonly_data_section and som_one_only_data_section.
2372 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
2373 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
2374 conditional defines.
2375 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
2376 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
2378 (pa_select_section): Use renamed section functions.
2379 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
2380 SOM_READONLY_DATA_SECTION_FUNCTION,
2381 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
2382 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
2384 * config/pa/som.h: ... not here.
2385 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
2386 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
2387 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
2388 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
2389 (READONLY_DATA_SECTION): Use som_readonly_data_section.
2391 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
2393 * fold-const.c (int_const_binop): Don't generate non-overflowing
2394 size-types specially.
2395 (fold_convert_const): Likewise.
2397 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
2398 clear cache on copied sizetype.
2400 2004-08-20 Ben Elliston <bje@au.ibm.com>
2402 * configure.ac: Don't escape apostrophe in --enable-coverage help.
2403 * configure: Regenerate.
2405 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
2408 * gcc.c (struct stat input_stat): Don't define if
2409 HOST_LACKS_INODE_NUMBERS
2410 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
2411 than stat to determine if temp file is same as input file.
2412 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
2413 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
2415 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
2417 * configure.ac (mips*-*-*): Print an error if not using GAS.
2418 * configure: Regenerated.
2419 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
2420 comments about buggy MIPSpro assemblers.
2421 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
2422 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
2423 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
2424 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
2425 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
2426 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
2427 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
2428 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
2429 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
2430 of more general IRIX 6 definitions.
2431 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
2432 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
2433 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
2434 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
2435 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
2436 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
2437 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
2438 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
2439 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
2440 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
2441 (LINK_SPEC): Move most of definition to iris.h.
2442 (SUBTARGET_LINK_SPEC): New macro.
2443 (IRIX_STARTFILE_SPEC): Fold into...
2444 (STARTFILE_SPEC): ...here.
2445 (IRIX_ENDFILE_SPEC): Fold into...
2446 (ENDFILE_SPEC): ...here.
2447 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
2448 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
2449 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
2450 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
2451 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
2452 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
2453 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
2454 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
2455 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
2456 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
2457 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
2458 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
2459 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
2460 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
2461 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
2462 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
2463 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
2464 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
2465 (TARGET_IRIX6): Define to 1.
2466 (DRIVER_SELF_SPECS): Define.
2467 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
2468 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
2469 (SUBTARGET_LINK_SPEC): New macro.
2470 (IRIX_STARTFILE_SPEC): Fold into...
2471 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
2472 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
2473 (LIB_SPEC, LIBGCC_SPEC): Use them.
2474 (LIB_SPEC): Remove !mabi=* case.
2475 (IRIX_ENDFILE_SPEC): Fold into...
2476 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
2477 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
2478 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
2479 (TARGET_IRIX6): New macro.
2480 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
2481 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
2482 (LABEL_AFTER_LOC): Delete.
2483 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
2484 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
2485 (mips_build_builtin_va_list): Check TARGET_IRIX6.
2486 (override_options): Remove TARGET_SGI_O32_AS-related code.
2487 (irix_output_external_libcall): Make static.
2488 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
2490 (mips_file_start): Tidy guard for ABI sections. Remove use of
2491 ABICALLS_ASM_OP; use .abicalls instead.
2492 (mips_output_aligned_decl_common, mips_declare_object_name)
2493 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
2494 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
2495 .globl foo .text directives.
2496 (irix_asm_named_section_1, irix_asm_named_section)
2497 (irix_section_align_entry, irix_section_align_htab)
2498 (irix_orig_asm_out_file, irix_section_align_entry_eq)
2499 (irix_section_align_entry_hash, irix_asm_output_align)
2500 (irix_file_start, irix_section_align_1, copy_file_data)
2501 (irix_file_end, irix_section_type_flags): Delete.
2502 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
2503 Use standard section syntax. Remove protective "jr $31".
2504 (__gcc_fini): Likewise .gcc_fini.
2505 * config/mips/irix-crtn.asm: Adjust sections accordingly.
2506 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
2508 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
2510 (EXTRA_MULTILIB_PARTS): Define.
2511 * config/mips/t-iris6: Remove bogus comment.
2512 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
2513 * config/mips/iris5gas.h, config/mips/iris5gld.h,
2514 config/mips/iris6gas.h, config/mips/iris6gld.h,
2515 config/mips/t-iris5-as, config/mips/t-iris5-gas
2516 config/mips/t-irix-gld: Delete.
2517 * config/mips/iris.h: New file.
2518 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
2520 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
2522 * postreload.c (reload_cse_move2add): Allow any condjump, but check
2523 that the implicit set isn't clobbered in the jump insn.
2525 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2527 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
2528 * optabs.c (init_optabs): Don't check it.
2529 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
2530 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
2532 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
2534 * config/s390/s390.md (s390_warn_framesize_string)
2535 (s390_warn_dynamic_string, s390_stack_size_string)
2536 (s390_stack_guard_string): New global string variables.
2537 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
2538 (s390_stack_guard): New global variables.
2539 (override_options): Added checks for the new options.
2540 (s390_emit_prologue): Emit stack check and trap code and perform
2541 compile time stack size checking.
2543 * config/s390/s390.h (TARGET_OPTIONS): Added new options
2544 "warn-framesize", "warn-dynamicstack", "stack-size" and
2547 * doc/invoke.texi: Added documentation for the new options.
2549 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
2551 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
2552 to eliminate warning.
2553 (linear_search_fdes): Declare p as unsigned.
2554 (binary_search_mixed_encoding_fdes): Likewise.
2555 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
2556 to eliminate warning.
2557 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
2560 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
2562 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
2563 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
2564 instead of one. Check for strictly legitimate address.
2565 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
2566 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
2568 2004-08-19 Eric Christopher <echristo@redhat.com>
2570 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
2571 * langhooks.h (unsave_expr_now): Ditto.
2572 * tree.h (unsave_expr_1): Remove prototype.
2573 (lhd_unsave_expr_now): Rename to unsave_expr_now.
2574 * tree-inline.c (unsave_expr_1): Move here
2575 from tree.c. Make static.
2576 (unsave_expr_now): Rename from lhd_unsave_expr_now.
2577 * tree-sra.c: Fix up for rename.
2578 * tree-ssa-copy.c: Ditto.
2580 * tree.c (unsave_expr_1): Move to tree-inline.c.
2582 2004-08-19 Caroline Tice <ctice@apple.com>
2584 * config/i386/cygming.h (switch_to_section): Fix typo (change
2585 in_unlikely_text_section to in_unlikely_executed_text).
2587 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
2589 * vec.h (VEC_lower_bound): New macro.
2591 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
2594 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
2595 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
2596 treat each ABI separately. Deal with n32/n64 complex float arguments.
2597 (function_arg): Add associated complex handling here.
2599 2004-08-19 Richard Henderson <rth@redhat.com>
2601 * config/arm/arm.c (arm_gen_load_multiple): Use
2602 adjust_automodify_address. Take base memory and offset instead
2603 of unchanging/struct/scalar bits.
2604 (arm_gen_store_multiple): Likewise.
2605 (arm_gen_movmemqi): Use adjust_automodify_address.
2606 * config/arm/arm-protos.h: Update decls.
2607 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
2608 (store_multiple): Similarly.
2610 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
2612 * regclass.c (globalize_reg): Update call_really_used_regs.
2614 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
2616 * doc/invoke.texi (integer-share-limit): Document.
2618 * tree.h (TYPE_CACHED_VALUES_P): New.
2619 (TYPE_CACHED_VALUES): New.
2620 (TYPE_ORIG_SIZE_TYPE): Adjust.
2621 * tree.def (INTEGER_CST): Update documentation.
2622 * tree.c: Inlcude params.h.
2623 (build_int_cst): Cache small values.
2624 (build_type_copy): Do not copy the value cache.
2625 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
2627 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
2628 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
2630 * fold-const.c (force_fit_type): Copy value when setting
2632 (int_const_binop): Likewise.
2633 * stor-layout.c: Include params.h
2634 (set_sizetype): Create values cache.
2635 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
2636 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
2637 * params.h (INTEGER_SHARE_LIMIT): New.
2638 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
2640 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
2642 * gimplify.c (gimplify_minimax_expr): Remove.
2643 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
2645 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
2647 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
2648 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
2650 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2652 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
2654 2004-08-18 Andrew Pinski <apinski@apple.com>
2656 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
2658 2004-08-18 Mark Mitchell <mark@codesourcery.com>
2660 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
2661 (__aeabi_ul2f): Likewise.
2663 2004-08-18 Richard Henderson <rth@redhat.com>
2665 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
2666 move to rtl completely.
2667 (struct meminsnbuf, xtensa_emit_block_move): Remove.
2668 (xtensa_find_mode_for_size): Remove.
2669 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
2670 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
2672 2004-08-18 Richard Henderson <rth@redhat.com>
2674 * config/mcore/mcore.c (mode_from_align): Remove DImode.
2675 (block_move_sequence): Rewrite to use adjust_address.
2676 (mcore_expand_block_move): Cleanup logic. Accept only operands.
2677 Return boolean indicating success/failure.
2678 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
2679 * config/mcore/mcore.md (movmemsi): Update to match.
2681 2004-08-18 Mike Stump <mrs@apple.com>
2683 * doc/invoke.texi (-mfix-and-continue): Add support for
2684 fast turn around debugging.
2685 (-ffix-and-continue): Likewise.
2686 (-mindirect-data): Likewise.
2687 (-findirect-data): Likewise.
2688 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
2689 (indirect_data): Likewise.
2690 (machopic_data_defined_p): Likewise.
2691 (machopic_output_indirection): Likewise.
2692 (darwin_encode_section_info): Likewise.
2693 (darwin_fix_and_continue): Likewise.
2694 (darwin_fix_and_continue_switch): Likewise.
2695 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
2696 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2697 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
2698 (SUBTARGET_OPTIONS): Likewise.
2699 (darwin_fix_and_continue): Likewise.
2700 (darwin_fix_and_continue_switch): Likewise.
2701 (TARGET_FIX_AND_CONTINUE): Likewise.
2702 * config/rs6000.c (rs6000_emit_prologue): Likewise.
2704 2004-08-19 Steven Bosscher <stevenb@suse.de>
2706 * basic-block.h (struct edge_def): Remove crossing_edge.
2707 (EDGE_CROSSING): New define.
2708 (EDGE_ALL_FLAGS): Update.
2709 * bb-reorder.c (find_traces_1_round, better_edge_p,
2710 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
2711 find_jump_block, fix_crossing_conditional_branches,
2712 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
2713 Replace all occurences of crossing_edge with an edge flag check
2715 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2716 try_crossjump_bb): Likewise.
2717 * cfglayout.c (fixup_reorder_chain): Likewise.
2718 * cfgrtl.c (force_nonfallthru_and_redirect,
2719 commit_one_edge_insertion): Likewise.
2721 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
2722 * tree-flow.h (compute_dominance_frontiers): Move prototype...
2723 * basic-block.h: ...here.
2724 * tree-cfg.c (compute_dominance_frontiers_1,
2725 compute_dominance_frontiers): Move from here...
2726 * cfganal.c: ...to here. Include timevar.h.
2728 2004-08-18 James E Wilson <wilson@specifixinc.com>
2730 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
2731 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
2733 * config/mips/mips.md (type): Add frdiv.
2734 (divsf3+1, divsf3+2): Change type to frdiv.
2735 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
2736 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
2738 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
2739 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
2740 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
2741 * config/mips/5000.md (r5k_fdiv_single): Likewise.
2742 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
2743 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
2744 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
2745 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
2746 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
2747 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
2749 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
2751 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
2753 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
2754 get regression tester working again.
2756 2004-08-18 Zack Weinberg <zack@codesourcery.com>
2758 * insn-notes.def, reg-notes.def: New files.
2759 * rtl.h: Use them to define enum insn_note and enum reg_note.
2760 * rtl.c: Use them to define note_insn_name and reg_note_name.
2761 * Makefile.in (RTL_BASE_H): Update.
2763 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
2764 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
2766 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
2768 * arm.c (arm_size_rtx_costs): New function.
2769 (arm_override_options): Use it if optimizing for space.
2771 2004-08-18 Richard Henderson <rth@redhat.com>
2773 * emit-rtl.c (gen_const_mem): New.
2774 * rtl.h (gen_const_mem): Declare.
2775 * expr.c (do_tablejump): Use it.
2776 * varasm.c (force_const_mem): Likewise.
2777 * config/darwin.c (machopic_indirect_data_reference): Likewise.
2778 (machopic_legitimize_pic_address): Likewise.
2779 * config/arm/arm.c (legitimize_pic_address): Likewise.
2780 * config/i386/i386.c (legitimize_pic_address): Likewise.
2781 (legitimize_tls_address): Likewise.
2782 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
2783 * config/ia64/ia64.md (load_fptr): Likewise.
2784 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
2785 * config/pa/pa.c (legitimize_pic_address): Likewise.
2786 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
2787 (rs6000_emit_move): Likewise.
2788 * config/s390/s390.c (legitimize_pic_address): Likewise.
2789 (legitimize_tls_address): Likewise.
2790 * config/s390/s390.md (casesi): Likewise.
2791 * config/sh/sh.c (sh_reorg): Likewise.
2792 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
2793 * config/v850/v850.md (casesi): Likewise.
2795 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
2796 * config/sh/sh.c (prepare_move_operands): Remove incorrect
2797 use of MEM_READONLY_P.
2799 2004-08-18 Steven Bosscher <stevenb@suse.de>
2801 * Makefile.in (OBJS-common): Add postreload-gcse.c.
2802 Add new postreload-gcse.o.
2803 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
2804 (lookup_as_function, insert, rehash_using_reg, use_related_value,
2805 equiv_constant): Use SAFE_HASH instead of safe_hash.
2806 (exp_equiv_p): Export. Add for_gcse argument when comparing
2808 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
2809 find_comparison_args, fold_rtx, cse_insn): Update callers.
2810 (hash_rtx): New function derived from old canon_hash and bits
2811 from gcse.c hash_expr_1.
2812 (canon_hash_string): Rename to hash_rtx_string.
2813 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
2814 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
2815 (cselib_lookup): Update this caller.
2816 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
2818 (hash_expr): Call hash_rtx.
2819 (ldst_entry): Likewise.
2820 (expr_equiv_p): Call exp_equiv_p.
2821 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
2822 reg_used_on_edge, reg_set_between_after_reload_p,
2823 reg_used_between_after_reload_p, get_avail_load_store_reg,
2824 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2825 get_bb_avail_insn, hash_scan_set_after_reload,
2826 compute_hash_table_after_reload,
2827 eliminate_partially_redundant_loads, gcse_after_reload,
2828 get_bb_avail_insn, gcse_after_reload_main): Remove.
2829 * postreload-gcse.c: New file, reincarnating most of the above.
2830 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
2831 (gcse_after_reload_main): Update prototype.
2832 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
2833 * passes.c (rest_of_handle_gcse2): Use it.
2835 2004-08-18 Diego Novillo <dnovillo@redhat.com>
2837 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
2838 (pass_loop_done): Likewise.
2840 2004-08-18 Andrew Pinski <apinski@apple.com>
2842 * config/rs6000/darwin.md: Delete the altivec patterns which are
2843 handled differently now.
2844 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
2845 (macho_correct_pic_di): Likewise.
2846 (call_indirect_nonlocal_darwin64): Likewise.
2847 Delete the save world/saveFP/saveVec patterns.
2849 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
2850 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
2851 * config/rs6000/rs6000.md: Include darwin.md.
2852 (builtin_setjmp_receiver): Add DImode case.
2853 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
2856 2004-08-18 Matt Austern <austern@apple.com>
2859 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
2860 * darwin.c (darwin_file_end): Mark file as potentially strippable.
2862 2004-08-18 Richard Henderson <rth@redhat.com>
2864 * alias.c (readonly_fields_p): Remove.
2865 (objects_must_conflict_p): Don't call it.
2866 * tree.h (readonly_fields_p): Remove.
2867 * langhooks.h (struct lang_hooks): Remove honor_readonly.
2868 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
2870 2004-08-18 Diego Novillo <dnovillo@redhat.com>
2872 * tree-dfa.c (add_referenced_var): Only global variables are
2874 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
2875 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
2876 all pointers dereferenced if the statement dereferences them.
2877 (create_name_tags): Do not create memory tags for pointers
2878 that have PT_ANYTHING set.
2879 Also check if PT_VARS is not empty before creating a name tag.
2880 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
2881 variables that share the same alias set with a pointer that
2883 (add_may_alias): Add FIXME comment to remove clobbering
2884 aliased variables and tags.
2885 (replace_may_alias): Likewise.
2886 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
2887 (merge_pointed_to_info): If the original variable has not
2888 points-to information, call set_pt_anything.
2889 (add_pointed_to_var): Do not prevent adding a pointed-to
2890 variable if the pointers is PT_ANYTHING.
2891 If the variable is a global, set PT_GLOBAL_MEM.
2892 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
2893 pointer type only come in PTR+OFFSET flavours.
2894 Always call merge_pointed_to_info on PHI arguments that are
2896 (get_nmt_for): Mark call-clobbered tags whose pointer points
2898 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
2900 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
2902 (add_stmt_operand): Abort if the caller tried to add a killing
2903 definition for a memory tag.
2904 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
2907 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
2909 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
2910 from call_used_regs. Update call_really_used_regs.
2911 (CALL_REALLY_USED_REGISTERS): Define.
2912 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
2913 Replace call_used_regs with call_really_used_regs.
2914 (calc_live_regs, sh_media_register_for_return): Likewise.
2915 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
2916 * sh.md (return_media): Likewise.
2918 2004-08-18 Andrew Pinski <apinski@apple.com>
2920 * config/darwin.c (machopic_legitimize_pic_address): Only set
2921 MEM_READONLY_P in the non TARGET_TOC case.
2923 2004-08-18 Zack Weinberg <zack@codesourcery.com>
2925 * rtl.def (NIL): Delete.
2926 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
2927 Tighten the syntax a little.
2929 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
2930 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
2931 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
2932 * config/i386/predicates.md, config/m32r/m32r.h
2933 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
2934 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
2935 * config/sparc/sparc.h, doc/tm.texi:
2936 Replace all occurrences of NIL with UNKNOWN.
2938 2004-08-18 Zack Weinberg <zack@codesourcery.com>
2940 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
2941 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
2942 sequence inline. Move drop_through_label code into this
2943 block, being the only place it is used. Adjust comments.
2945 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
2947 * config/rs6000/altivec.md: Add new patterns for calls to
2948 save_world/rest_world functions.
2950 * config/rs6000/rs6000-protos.h: (save_world_operation,
2951 restore_world_operation) new declarations.
2953 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
2955 (rs6000_stack_info): Set world_save_p field.
2956 (save_world_operation): New function.
2957 (restore_world_operation): New function.
2958 (compute_save_world_info): New function.
2959 (rs6000_stack_info): Call compute_save_world_info.
2960 (rs6000_emit_prologue): Check for world_save_p and generate
2961 pattern to call save_world for saving all non-volatile and
2963 (rs6000_emit_epilogue): Check for world_save_p and generate
2964 pattern to call rest_world to restore saved registers.
2966 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
2967 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
2968 (rs6000_reg_names): New entries added for save_world_operation and
2969 restore_world_operation.
2971 2004-08-18 Caroline Tice <ctice@apple.com>
2973 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
2974 "-freorder-blocks-and-partition" to the flags used in second
2975 stage of profiledbootstrap.
2976 * bb-reorder.c (push_to_next_round_p): Add new variable,
2977 next_round_is_last; set and use variable to make sure, when
2978 partitioning, that the last trace construction round consists
2979 of all (and only) cold basic blocks.
2980 (rotate_loop): Don't copy blocks that end in a section
2982 (copy_bb): Correctly initialize "partition" of duplicated bb.
2983 (add_unlikely_executed_notes): Add a comment.
2984 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
2985 to make sure, if function contains hot blocks, that the
2986 successors of ENTRY_BLOCK_PTR are hot; also, only look for
2987 crossing edges if the architecture supports named sections.
2988 (mark_bb_for_unlikely_executed_section): Modify to always
2989 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
2990 the basic block note insn.
2991 (fix_crossing_unconditional_branches): Remove extra space.
2992 (fix_edges_for_rarely_executed_code): Modify to only do
2993 partitioning work if the architecture supports named sections.
2994 (reorder_basic_blocks): Modify to only add
2995 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
2996 supports named sections.
2997 * c-common.c (handle_section_attribute): Initialize new global
2998 variable, user_defined_section_attribute, to true if user has
3000 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
3001 forward edges that cross section boundaries.
3002 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
3003 partitioning information if the architecture supports named
3005 * cfgrtl.c (target.h): Add statement to include this.
3006 (rtl_split_block): Make sure newly created bb gets correct
3008 (try_redirect_by_replacing_jump): Make sure redirection isn't
3009 attempting to cross section boundaries.
3010 (force_nonfallthru_and_redirect): Only do partition fix up if
3011 architecture supports named sections.
3012 (rtl_split_edge): Make sure newly created bb ends up in
3014 (commit_one_edge_insertion): Remove code that incorrectly
3015 updated basic block partition; Make sure partition fix up only
3016 happens if architecture supports named sections and it's not
3018 (rtl_verify_flow_info_1): Fix if-condition on test/error
3019 condition that fallthru edges are not allowed to cross section
3021 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
3022 * final.c (final_scan_insn): Remove redundant test from if-statement;
3023 change calls to text_section into calls to function_section; add code
3024 to only to partitioning fix up if architecture supports named
3026 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
3028 (if_convert): Add targetm.have_named_sections to test.
3029 * output.h (unlikely_section_label): Extern declaration for new global
3031 (unlikely_text_section_name): Likewise.
3032 * opts.c (decode_options): If both partitioning and DWARF debugging
3033 are turned on, issue a warning that this doesn't work, and change
3034 partitiong to basic block reordering (without hot/cold partitions).
3035 * passes.c (rest_of_handle_final): Re-set new global variable,
3036 user_defined_section_attribute, to false.
3037 (rest_of_compilation): Change options for calling partitioning
3038 function: Don't call if the user defined the section attribute, and
3039 don't call if DECL_ONE_ONLY is true for the current function.
3040 * predict.c (choose_function_section): Return immediately if we
3041 are doing hot/cold partitioning (i.e. let the basic block partitioning
3042 determine where the function belongs).
3043 * reg-stack.c (emit_swap_insn): Add condition to step over
3044 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
3045 * toplev.c (user_defined_section_attribute): New global variable.
3046 * toplev.h (user_defined_section_attribute): Extern declaration
3047 for new global variable.
3048 * varasm.c (unlikely_section_label): New global variable.
3049 (unlikely_text_section_name): New global variable.
3050 (unlikely_text_section): Add code to initialize
3051 unlikely_text_section_name if necessary; modify to use
3052 unlikely_text_section_name and unlikely_section_label; also to use
3053 named_section properly.
3054 (in_unlikely_text_section): Modify to work correctly with
3055 named_section and to use unlikely_text_section_name.
3056 (named_section): Add code to work properly with cold section.
3057 (function_section): Clean up if-statement.
3058 * config/darwin.c (darwin_asm_named_section): Return to original
3059 code, removing use of SECTION_FORMAT_STRING.
3060 * config/arm/pe.h (switch_to_section): Add case for
3061 in_unlikely_executed_text to switch statement.
3062 * config/i386/cygming.h (switch_to_section): Likewise.
3063 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
3064 (SECTION_FORMAT_STRING): Likewise.
3065 * config/mcore/mcore.h (switch_to_section): Likewise.
3066 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
3067 (SECTION_FORMAT_STRING): Remove.
3069 2004-08-18 Roger Sayle <roger@eyesopen.com>
3071 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
3072 -ffixed-reg safe, by preserving the meanings of zero and one.
3073 (CALL_USED_REGISTERS): Likewise.
3074 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
3076 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
3078 * config/sh/sh.c (split_branches): Check the result of
3080 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
3081 Call rtl_register_cfg_hooks.
3083 2004-08-18 Richard Henderson <rth@redhat.com>
3085 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
3086 * alias.c (true_dependence): Update to match new semantics.
3087 (canon_true_dependence, write_dependence_p): Likewise.
3088 (anti_dependence, output_dependence): Update write_dependence_p args.
3089 (unchanging_anti_dependence): Remove.
3090 * calls.c (purge_mem_unchanging_flag): Remove.
3091 (fixup_tail_calls): Don't call it.
3092 (expand_call): Don't add unchanging memory to function usage.
3093 * expr.c (emit_block_move_via_libcall): Likewise.
3094 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
3095 (get_subtarget): Don't use RTX_UNCHANGING_P.
3096 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
3097 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
3098 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
3099 * cse.c (insert): Don't use RTX_UNCHANGING_P.
3100 (cse_insn, canon_hash): Use MEM_READONLY_P.
3101 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
3102 instead of RTX_UNCHANGING_P.
3103 * explow.c (maybe_set_unchanging): Remove.
3104 * expr.h (maybe_set_unchanging): Remove.
3105 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
3106 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
3107 (assign_parm_setup_reg, expand_function_start): Likewise.
3108 * integrate.c (copy_rtx_and_substitute): Likewise.
3109 * ra-rewrite.c (emit_colors): Likewise.
3110 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
3111 (fixup_match_1): Likewise.
3112 * reload1.c (reload, alter_reg): Likewise.
3113 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
3114 not RTX_UNCHANGING_P.
3115 (equiv_init_varies_p): Likewise.
3116 * loop-invariant.c (check_maybe_invariant): Likewise.
3117 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
3118 * loop.c (note_addr_stored): Likewise.
3119 (prescan_loop): Likewise. Don't check function usage for clobbered
3121 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
3122 not RTX_UNCHANGING_P.
3123 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
3124 * varasm.c (force_const_mem): Likewise.
3125 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
3126 * web.c (entry_register): Likewise.
3127 * tree-gimple.h (get_base_address): Move decl ...
3129 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
3131 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
3132 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
3133 (alpha_set_memflags): Update to match.
3135 * config/darwin.c (machopic_indirect_data_reference): Set
3136 MEM_READONLY_P instead of RTX_UNCHANGING_P.
3137 (machopic_indirect_call_target): Likewise.
3138 (machopic_legitimize_pic_address): Likewise.
3139 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
3140 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
3141 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
3142 * config/frv/frv.md (symGOT2reg): Likewise.
3143 * config/i386/i386.c (legitimize_pic_address,
3144 legitimize_tls_address, ix86_split_to_parts): Likewise.
3145 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
3146 * config/ia64/ia64.md (load_fptr): Likewise.
3147 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
3148 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
3149 * config/mcore/mcore.c (block_move_sequence): Likewise.
3150 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
3151 * config/pa/pa.c (legitimize_pic_address): Likewise.
3152 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3153 (rs6000_emit_move): Likewise.
3154 * config/s390/s390.c (legitimize_pic_address): Likewise.
3155 (legitimize_tls_address): Likewise.
3156 * config/s390/s390.md (casesi): Likewise.
3157 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
3158 * config/sh/sh.md (symGOT2reg): Likewise.
3159 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
3160 * config/v850/v850.md (casesi): Likewise.
3162 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
3163 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
3164 * config/mips/mips.c (mips_restore_gp): Likewise.
3165 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
3166 * config/sh/sh.c (sh_reorg): Likewise.
3168 2004-08-18 Richard Henderson <rth@redhat.com>
3170 * tree.h (struct tree_decl): Add gimple_formal_temp.
3171 (DECL_GIMPLE_FORMAL_TEMP_P): New.
3172 * gimplify.c (pop_gimplify_context): Clear it.
3173 (lookup_tmp_var): Set it, if is_formal.
3174 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
3175 Use is_gimple_val for VECTOR. Simplify return value.
3176 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
3177 (gimplify_expr): Likewise.
3178 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
3179 is_gimple_tmp_rhs for clarity. Update all callers.
3180 (is_gimple_reg_rhs): Simplify logic.
3181 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
3182 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
3183 (is_gimple_formal_tmp_reg): Similarly.
3184 * tree-gimple.h: Update decls.
3185 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
3186 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
3187 * tree-ssa-live.c (var_union, type_var_init): Likewise.
3189 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
3191 * c4x.c (legitimize_operands): Remove calls to
3192 preserve_subexpressions_p.
3194 2004-08-18 David Edelsohn <edelsohn@gnu.org>
3196 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
3197 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
3199 2004-08-18 Ziemowit Laski <zlaski@apple.com>
3201 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
3202 Objective-C++ extensions.
3203 * gengtype.c (get_file_basename): Match entire subdirectory name
3204 ('cp', 'objc', 'objcp') rather than just its suffix.
3205 (get_base_file_bitmap): Allow for files to belong to more than one
3207 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
3208 used by more than one front-end.
3210 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
3212 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
3213 avoid use of preserve_subexpressions_p.
3215 2004-08-17 Richard Henderson <rth@redhat.com>
3218 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
3220 2004-08-17 DJ Delorie <dj@redhat.com>
3222 * doc/extend.texi: Document new xstormy16 attribute.
3224 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
3225 (xstormy16_splittable_below100_or_register): New.
3227 (xstormy16_reorg): New.
3228 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3230 * config/stormy16/stormy16.md (movqi_internal): Make name public.
3231 (movhi_internal): Likewise.
3232 (cbhranchhi): Likewise.
3233 (cbhranchhi_neg): Likewise.
3234 (andhi3): Only allow splittable below100 operands.
3236 (peephole2): New and/zero_extend->and peephole.
3237 (peephole2): New load/ior/save->set1 peephole.
3238 (peephole2): New load/and/save->clr1 peephole.
3239 (bclrx, bclrx2, bclr7, bclr15): New.
3240 (bsetx, bsetx2, bset7, bset15): New.
3242 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
3243 liberal about acceptable 'B' masks.
3245 * config/stormy16/stormy16-protos.h
3246 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
3247 xstormy16_below100_operand, xstormy16_below100_or_register,
3248 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
3249 (PREDICATE_CODES): Add new predicates.
3251 * config/stormy16/stormy16.c
3252 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
3253 xstormy16_below100_operand, xstormy16_below100_or_register,
3254 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
3255 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
3256 (xstormy16_legitimate_address_p): Allow below100 symbols.
3257 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
3258 (xstormy16_expand_move): Leave below100 operands as-is.
3259 (xstormy16_encode_section_info): Encode below100 symbols.
3260 (xstormy16_strip_name_encoding): New.
3261 (xstormy16_print_operand): Print 'b' as shift mask.
3262 (xstormy16_attribute_table): Add below100 attributes.
3263 (xstormy16_handle_below100_attribute): New.
3265 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
3266 (XSTORMY16_SECTION_FUNCTION): New.
3267 (EXTRA_SECTION_FUNCTIONS): Define using the above.
3268 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3269 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
3270 (ASM_OUTPUT_LABELREF): Define.
3272 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
3273 (movhi_internal): Add below100 support.
3274 (andhi3): Add below100 support.
3275 (iorhi3): Add below100 support.
3276 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
3278 2004-08-17 James E Wilson <wilson@specifixinc.com>
3280 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
3281 of VOIDmode for comparison code mode.
3282 * config/mips/mips.md: For conditional move patterns, use mode of
3283 first compare operand for comparison mode, instead of VOIDmode.
3285 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
3286 normal and -ffast-math code.
3288 2004-08-17 Mark Mitchell <mark@codesourcery.com>
3291 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
3293 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
3295 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
3297 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
3299 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
3300 for non Darwin targets.
3301 (*call_value_nonlocal_darwin64): Likewise.
3303 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
3305 * config/rs6000/rs6000.c (rs6000_function_value): Check for
3306 altivec mode for altivec return register.
3308 2004-08-17 David Edelsohn <edelsohn@gnu.org>
3310 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
3311 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
3312 * config/rs6000/rs6000.md: Include darwin.md.
3313 (builtin_setjmp_receiver): Add DImode case.
3314 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
3317 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
3319 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
3321 * tree-vectorizer.h: New File: Same.
3322 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
3323 * common.opt (ftree-vectorize): New flag to enable vectorization.
3324 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
3326 * tree-data-ref.h (init_data_ref): Additional argument.
3327 (array_base_name_differ_p): Moved to tree-data-ref.c.
3328 * tree-data-ref.c (array_base_name_differ_p): Revised.
3329 (initialize_data_dependence_relation): Call array_base_name_differ_p
3330 with an extra argument.
3331 (analyze_all_data_dependences): Same.
3332 (init_data_ref): Additional argument is_read to set DR_IS_READ.
3333 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
3335 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
3336 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
3337 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
3339 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
3340 (tree_ssa_loop_done): Call scev_finalize.
3341 (tree_vectorize): Define the new vectorization pass.
3342 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
3343 size of the vector they support (until support for multiple vector
3344 sizes is added to the vectorizer).
3345 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
3346 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
3347 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
3350 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
3352 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
3354 (generate_protocol_list, handle_impent): Likewise.
3356 2004-08-17 Roger Sayle <roger@eyesopen.com>
3358 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
3359 ensure that call_used_regs is a superset of both fixed_regs and
3360 call_really_used_regs.
3362 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
3365 * arm.md (addsi3_cbranch_scratch): Correct case labels.
3367 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
3370 * fold-const.c (fold): Check for integer operand when
3371 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
3372 Pinski <pinskia@physics.uc.edu>.
3374 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
3376 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
3377 No need to check if in a cross configuration.
3378 * configure: Regenerate.
3380 * calls.c (precompute_register_parameters):
3381 Inline preserve_subexpressions_p ().
3382 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
3383 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
3385 * expr.c (get_subtarget): Likewise.
3386 * rtl.h (preserve_subexpressions_p): Remove.
3387 * stmt.c (preserve_subexpressions_p): Remove.
3389 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
3390 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
3391 Abort on gimplified cases.
3393 2004-08-16 James E Wilson <wilson@specifixinc.com>
3395 * tree.h (VECTOR_FLOAT_TYPE_P): New.
3396 (FLOAT_TYPE_P): Use it.
3397 * c-typeck.c (build_binary_op): After convert calls, check for
3398 check for ERROR_MARK operands.
3400 2004-08-16 Zack Weinberg <zack@codesourcery.com>
3402 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
3403 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
3404 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
3405 (genobjs static pattern rule): Remove %.c dependency.
3406 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
3407 Rename rules; delete commands; fix dependencies.
3408 (mostlyclean): Do not delete temporary source copies.
3409 * configure.ac: Delete all references to BUILD_PREFIX and
3411 * configure: Regenerate.
3413 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
3414 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
3415 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
3416 with #ifndef GENERATOR_FILE so that nothing from those headers
3419 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
3421 2004-08-16 Adam Nemet <anemet@lnxw.com>
3423 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
3425 2004-08-16 Andrew Pinski <apinski@apple.com>
3427 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
3428 extraneous semicolon.
3430 2004-08-16 Devang Patel <dpatel@apple.com>
3432 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
3433 * print-tree.c (print_node): Print DECL_PRESERVE_P.
3434 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
3435 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
3436 * target.h (struct gcc_target): New member, mark_decl_preserved.
3437 * hooks.c (hook_void_charptr): Rename to ...
3438 (hook_void_constcharptr): ... new name.
3439 * hooks.h (hook_void_charptr): Rename to ..
3440 (hook_void_constcharptr): ... new name.
3441 * tree.h (DECL_PRESERVE_P): New #define.
3442 (struct tree_decl): New member, preserve_flag.
3443 * varasm.c (assemble_start_function): Mark decl preserved.
3444 (assemble_variable): Same.
3445 * darwin.c (darwin_mark_decl_preserved): New function.
3446 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
3447 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
3448 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
3450 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
3452 * c-decl.c (grokdeclarator): Allow for function definition where
3453 innermost declarator has attributes.
3455 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
3457 * except.c (get_exception_filter, build_post_landing_pads,
3458 dw2_build_landing_pads): Use target-specific mode for 'filter'.
3459 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
3460 * target.h (eh_return_filter_mode): New field added.
3461 * targhooks.c (default_eh_return_filter_mode): Defined.
3462 * targhooks.h (default_eh_return_filter_mode): Declared.
3463 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
3465 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
3467 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
3468 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
3469 * configure: Regenerate.
3471 2004-08-16 Stan Shebs <shebs@apple.com>
3473 Basic support for 64-bit Darwin.
3474 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
3475 (machopic_legitimize_pic_address): Similarly, plus use Pmode
3477 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
3478 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
3479 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
3480 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
3481 (PROCESSOR_DEFAULT64): Define.
3482 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
3484 * config/rs6000/rs6000.md: Include darwin.md.
3485 (builtin_setjmp_receiver): Add DImode case.
3486 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
3488 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
3489 (rs6000_emit_move): Add DImode case to Darwin bits.
3490 (machopic_output_stub): Use .quad if 64-bit.
3491 * invoke.texi: Document -m32 and -m64.
3493 2004-08-16 Janis Johnson <janis187@us.ibm.com>
3495 * doc/extend.texi (AltiVec builtins): Document additional differences
3496 from the Motorola AltiVec PIM.
3498 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
3500 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
3501 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
3502 (struct tree_common): Update public_flag documentation.
3504 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
3506 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
3507 Check for artificial variables, not is_gimple_tmp_var.
3508 * tree-ssa-live.c (var_union): Likewise.
3510 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
3512 * calls.c (load_register_parameters): Remove spurious FIXME token.
3514 2004-08-15 Ziemowit Laski <zlaski@apple.com>
3516 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
3517 (c-lang.o): Depend on c-objc-common.h.
3518 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
3519 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
3520 * c-lang.c: Include c-objc-common.h.
3521 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
3522 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
3523 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
3524 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
3525 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
3526 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
3527 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
3528 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
3529 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
3530 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3531 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
3532 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
3533 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3534 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
3535 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
3536 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
3537 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
3538 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
3539 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
3540 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
3541 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
3542 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
3543 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
3544 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
3545 Move to c-objc-common.h.
3546 * c-objc-common.c: Include c-objc-common.h.
3547 * c-objc-common.h: New file.
3549 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
3550 Andrew Pinski <pinskia@physics.uc.edu>
3553 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
3556 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
3558 * tree.h (build_int_cst): New.
3559 (build_int_2): Remove.
3560 * tree.c (build_int_2): Remove.
3561 (build_int_cst): New.
3562 (make_vector_type, build_common_tree_nodes,
3563 build_common_tree_nodes_2): Use build_int_cst.
3564 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
3565 expand_builtin_strpbrk, expand_builtin_fputs,
3566 build_string_literal, expand_builtin_printf,
3567 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
3568 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
3569 fold_builtin_isdigit, simplify_builtin_strstr,
3570 simplify_builtin_strpbrk, fold_builtin_fputs,
3571 simplify_builtin_sprintf): Use build_int_cst.
3572 * c-common.c (start_fname_decls, fix_string_type,
3573 c_common_nodes_and_builtins, c_init_attributes,
3574 shorten_compare): Likewise.
3575 * c-decl.c (complete_array_type,
3576 check_bitfield_type_and_width): Likewise.
3577 * c-lex.c (interpret_integer, lex_charconst): Likewise.
3578 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
3579 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3580 * c-typeck.c (really_start_incremental_init, push_init_level,
3581 set_nonincremental_init_from_string): Likewise.
3582 * calls.c (load_register_parameters): Likewise.
3583 * convert.c (convert_to_pointer): Likewise.
3584 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
3585 build_fn_info_type, build_ctr_info_value, build_gcov_info):
3587 * except.c (init_eh, assign_filter_values, assign_filter_values):
3589 * expmed.c (store_fixed_bit_field, extract_bit_field,
3590 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
3591 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
3592 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
3593 * expr.c (convert_move, emit_group_load, emit_group_store,
3594 expand_assignment, store_constructor, store_field,
3595 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
3596 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
3597 invert_truthvalue, optimize_bit_field_compare,
3598 decode_field_reference, all_ones_mask_p, constant_boolean_node,
3599 fold_div_compare, fold, fold_read_from_constant_string,
3600 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
3601 * function.c (assign_parm_setup_block): Likewise.
3602 * stmt.c (shift_return_value, expand_end_case_type,
3603 estimate_case_costs): Likewise.
3604 * stor-layout.c (layout_type, initialize_sizetypes,
3605 set_min_and_max_values_for_integral_type): Likewise.
3606 * tree-chrec.c (chrec_fold_multiply_poly_poly,
3607 reset_evolution_in_loop): Likewise.
3608 * tree-chrec.h (build_polynomial_chrec): Likewise.
3609 * tree-complex.c (build_replicated_const): Likewise.
3610 * tree-eh.c (honor_protect_cleanup_actions,
3611 lower_try_finally_onedest, lower_try_finally_copy,
3612 lower_try_finally_switch): Likewise.
3613 * tree-mudflap.c (mf_build_string, mx_register_decls,
3614 mudflap_register_call, mudflap_enqueue_constant): Likewise.
3615 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
3616 * tree-pretty-print.c (dump_generic_node): Likewise.
3617 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
3619 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
3620 * tree-ssa-loop-niter.c (number_of_iterations_cond,
3621 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
3624 * config/alpha/alpha.c (alpha_initialize_trampoline,
3625 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
3626 * config/arm/arm.c (arm_get_cookie_size): Likewise.
3627 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
3628 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
3629 * config/i860/i860.c (i860_va_start): Likewise.
3630 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
3631 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
3632 mips_gimplify_va_arg_expr): Likewise.
3633 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
3634 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
3635 add_compiler_branch_island): Likewise.
3636 * config/s390/s390.c (s390_va_start): Likewise.
3637 * config/sh/sh.c (sh_va_start): Likewise.
3638 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
3640 * config/xtensa/xtensa.c (xtensa_va_start,
3641 xtensa_gimplify_va_arg_expr): Likewise.
3643 * objc/objc-act.c (build_objc_string_object,
3644 build_objc_symtab_template, init_def_list, init_objc_symtab,
3645 init_module_descriptor, generate_static_references,
3646 build_selector_translation_table, get_proto_encoding,
3647 build_typed_selector_reference, build_selector_reference,
3648 build_next_objc_exception_stuff,
3649 build_method_prototype_list_template, generate_descriptor_table,
3650 generate_protocols, build_protocol_initializer,
3651 build_ivar_list_template, build_method_list_template,
3652 build_ivar_list_initializer, generate_ivars_list,
3653 generate_dispatch_table, generate_protocol_list,
3654 build_category_initializer, build_shared_structure_initializer,
3655 generate_shared_structures, handle_impent,
3656 generate_objc_image_info): Use build_int_cst.
3658 2004-08-15 Ben Elliston <bje@au.ibm.com>
3660 * vec.h: Comment improvements.
3662 2004-08-14 Roger Sayle <roger@eyesopen.com>
3664 * c-common.c (shorten_compare, pointer_int_sum,
3665 c_common_truthvalue_conversion, boolean_increment): Replace calls
3666 to build with calls to buildN.
3667 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
3668 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
3669 gimplify_switch_stmt): Likewise.
3670 * c-typeck.c (default_function_array_conversion,
3671 build_component_ref, build_array_ref, build_function_call,
3672 pointer_diff, build_unary_op, build_conditional_expr,
3673 build_compound_expr, build_modify_expr, c_finish_goto_label,
3674 c_finish_goto_ptr, c_finish_return, c_finish_loop,
3675 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
3676 build_binary_op): Likewise.
3678 2004-08-15 Steven Bosscher <stevenb@suse.de>
3680 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
3682 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3684 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
3685 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
3686 * fixinc/fixincl.x: Rebuilt.
3688 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
3690 * config/mips/mips-protos.h (mips_symbolic_constant_p)
3691 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
3692 (mips_small_data_pattern_p): Declare.
3693 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
3694 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
3695 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
3696 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
3697 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
3698 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
3699 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
3700 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
3701 (pc_or_label_operand, call_insn_operand, move_operand)
3702 (consttable_operand, symbolic_operand, general_symbolic_operand)
3703 (global_got_operand, local_got_operand, stack_operand)
3704 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
3705 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
3706 (mips_small_data_pattern_p): Replace previous small_data_pattern
3707 predicate. Turn into a bool () (rtx) function.
3708 * config/mips/predicates.md: New file.
3709 * config/mips/mips.md: Include it. Use the target-independent
3710 comparison_operator instead of cmp_op. Rename trap_cmp_op to
3711 trap_comparison_operator and equality_op to equality_operator.
3712 Replace uses of small_int with the equivalent const_arith_operand.
3713 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
3714 const_float_1_operand to const_1_operand. Rename fcc_register_operand
3715 to fcc_reload_operand.
3716 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
3718 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3720 PR libstdc++/17005 partial fix.
3721 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
3722 except when generating ANSI/C89 code.
3724 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
3726 * c-common.c (shorten_compare): Use force_fit_type directly.
3728 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
3729 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
3730 Dave Korn <dk@artimi.com>
3732 * doc/install.texi (Building): Avoid duplicate reference to GNU
3734 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
3736 2004-08-14 Richard Henderson <rth@redhat.com>
3738 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
3739 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
3741 2004-08-13 Richard Henderson <rth@redhat.com>
3743 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
3744 for constant_call_address_operand.
3745 (call_value_pop_1, call_value_1): Likewise.
3746 (sibcall_value_1, call_value_1_rex64): Likewise.
3748 2004-08-13 James E Wilson <wilson@specifixinc.com>
3750 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
3751 Correct mode from SFmode to DFmode.
3753 2004-08-13 Ziemowit Laski <zlaski@apple.com>
3755 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
3756 __cstring_object and __image_info sections with the no_dead_strip
3759 2004-08-13 Roger Sayle <roger@eyesopen.com>
3760 David Billinghurst <David.Billinghurst@riotinto.com>
3762 PR libgfortran/15930
3763 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
3764 * fixinc/fixincl.x: Regenerate.
3765 * fixinc/tests/base/internal/math_core.h: New file.
3767 2004-08-13 Richard Henderson <rth@redhat.com>
3769 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
3770 (dbxout_function_end): Remove ifdefs for it.
3771 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
3773 2004-08-13 Richard Henderson <rth@redhat.com>
3775 * Makefile.in (insn-preds.o): Depend on TREE_H.
3776 * genpreds.c (write_insn_preds_c): Include tree.h.
3777 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
3778 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
3779 const48_operand, and_operand, or_operand, mode_width_operand,
3780 mode_mask_operand, mul8_operand, const0_operand,
3781 hard_fp_register_operand, hard_int_register_operand,
3782 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
3783 samegp_function_operand, direct_call_operand, small_symbolic_operand,
3784 global_symbolic_operand, call_operand, symbolic_operand,
3785 dtp16_symbolic_operand, dtp32_symbolic_operand,
3786 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
3787 gottp_symbolic_operand, alpha_comparison_operator,
3788 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
3789 signed_comparison_operator, alpha_fp_comparison_operator,
3790 divmod_operator, fix_operator, aligned_memory_operand,
3791 unaligned_memory_operand, reg_or_unaligned_mem_operand,
3792 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
3793 reg_no_subreg_operand, addition_operation): Move to predicates.md.
3794 (reg_or_const_int_operand): Remove. Replace all users with
3795 reg_or_cint_operand.
3796 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
3797 (resolve_reload_operand): Split out of aligned_memory_operand.
3798 * config/alpha/alpha-protos.h: Update for exports.
3799 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
3800 * config/alpha/alpha.md: Include predicates.md.
3801 * config/alpha/predicates.md: New file.
3803 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
3805 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
3806 fields with a pointer to the instruction definition.
3807 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
3808 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
3809 (write_attr_case, write_const_num_delay_slots): Update accordingly.
3810 (write_attr_case, write_const_num_delay_slots): Write the name of
3811 an insn next to its case statement.
3812 * genoutput.c (data): Add a filename field.
3813 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
3814 (output_insn_data): Print the location of each insn definition.
3815 * genrecog.c (write_action): Print the name of an insn above
3816 the statement that returns its code.
3818 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
3820 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
3821 * config/libgloss.h: Likewise.
3822 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
3823 * c4x/c4x-modes.def: Likewise.
3824 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
3825 (c4x_rptb_nop_p): Likewise.
3826 (c4x_rptb_valid_p): Likewise.
3827 (c4x_rptb_insert): Likewise.
3828 (c4x_address_conflict): Likewise.
3829 * config/c4x/c4x.md: Likewise.
3830 * config/frv/frv.md: Likewise.
3831 * config/i386/athlon.md: Likewise.
3832 * config/i386/i386.md: Likewise.
3833 * config/i386/predicates.md: Likewise.
3834 * config/ia64/ia64.c: Likewise.
3835 * config/ia64/itanium1.md: Likewise.
3836 * config/ia64/itanium2.md: Likewise.
3837 * config/iq2000/iq2000.md: Likewise.
3838 * config/mcore/mcore.c: Likewise.
3839 * config/mips/mips.c: Likewise.
3840 * config/mips/r3900.h: Likewise.
3841 * config/mips/sb1.md: Likewise.
3842 * config/pa/milli64.S: Likewise.
3843 * config/pa/pa.c: Likewise.
3844 * config/pa/pa.h: Likewise.
3845 * config/rs6000/8540.md: Likewise.
3847 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
3849 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
3851 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
3853 * sh.md (cbranch define_delay) Use cond_delay_slot for
3854 non-anulled condition too.
3856 2004-08-12 David Edelsohn <edelsohn@gnu.org>
3858 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
3859 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
3860 any_parallel_operand, lmw_operation, stmw_operation,
3861 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
3862 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
3863 any_parallel_operand.
3864 (return_and_restore_fpregs_{si,di}): Same.
3866 2004-08-12 Zack Weinberg <zack@codesourcery.com>
3868 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
3869 if pred->singleton != PARALLEL, issue a warning and pretend it was.
3870 Also issue a warning for any predicate we don't know about.
3872 2004-08-12 Richard Henderson <rth@redhat.com>
3874 * config/i386/i386.c (internal_label_prefix): Export.
3875 (internal_label_prefix_len, struct ix86_address,
3876 ix86_decompose_address, maybe_get_pool_constant,
3877 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
3878 memory_address_length): Export.
3879 (any_fp_register_operand, fp_register_operand,
3880 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
3881 x86_64_general_operand, x86_64_szext_general_operand,
3882 x86_64_nonmemory_operand, x86_64_movabs_operand,
3883 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
3884 x86_64_zext_immediate_operand, const_int_1_31_operand,
3885 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
3886 tls_symbolic_operand, global_dynamic_symbolic_operand,
3887 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
3888 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
3889 constant_call_address_operand, const0_operand, const1_operand,
3890 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
3891 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
3892 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
3893 general_no_elim_operand, nonmemory_no_elim_operand,
3894 index_register_operand, q_regs_operand, flags_reg_operand,
3895 non_q_regs_operand, zero_extended_scalar_load_operand,
3896 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
3897 ix86_comparison_operator, ix86_carry_flag_operator,
3898 fcmov_comparison_operator, promotable_binary_operator,
3899 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
3900 mult_operator, div_operator, arith_or_logical_operator,
3901 memory_displacement_operand, cmpsi_operand, long_memory_operand,
3902 aligned_operand): Move to predicates.md as define_predicates.
3903 (tls_symbolic_operand_1): Remove.
3904 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
3905 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
3906 (legitimize_address): Merge tls_symbolic_operand contents.
3907 (ix86_expand_move): Likewise.
3908 * config/i386/i386-protos.h: Update for exports.
3909 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
3910 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
3911 * config/i386/i386.md: Include predicates.md.
3912 * config/i386/predicates.md: New file.
3914 2004-08-13 Mark Mitchell <mark@codesourcery.com>
3917 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
3919 (i386_pe_mark_dllimport): Likewise.
3920 (i386_pe_encode_section_info): Likewise, when overriding
3921 dllimport attribute.
3923 2004-08-12 Geoffrey Keating <geoffk@apple.com>
3925 * configure.ac: When testing for flex, nm, ar, and bison, check
3926 that they will actually be built.
3927 * configure: Regenerate.
3929 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
3931 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
3932 (MOVE_MAX_PIECES): Define.
3934 2004-08-12 Devang patel <dpatel@apple.com>