]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
configure.host: Use -fno-use-divide-subroutine for mips*-*-linux*.
[gcc.git] / gcc / ChangeLog
CommitLineData
9dec91d4
SE
12004-09-03 Steve Ellcey <sje@cup.hp.com>
2
3 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
4 is only one reg.
5 (ia64_function_value): Ditto.
6
467cecf3
JB
72004-09-03 Jan Beulich <jbeulich@novell.com>
8
9 PR c/7054
10 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
11 * tree.h (initial_max_fld_align): Declare
12 * stor-layout.c (initial_max_fld_align): Define and initialize.
13 (maximum_field_alignment): Initialize to the same value.
14 * common.opt: Add -fpack-struct= variant of switch.
15 * opts.c: Handle -fpack-struct= variant of switch.
16 * c-pragma.c: Change #pragma pack() handling so that it becomes
17 compatible to other compilers: accept individual 'push' argument,
18 make final pop restore (command line) default, correct interaction
19 of push/pop and sole specification of a new alignment (so that the
20 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
21 to #pragma pack(push, <n>).
22 * doc/extend.texi: New node "Structure-Packing Pragmas" under
23 "Pragmas", describing #pragma pack.
24 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
25 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
26 Document new TARGET_DEFAULT_PACK_STRUCT.
27
90300b8c
DP
282004-09-03 Devang Patel <dpatel@apple.com>
29
30 * dwarf2out.c (gen_field_die). Equate decl number to die.
31
d6df6ae2
VM
322004-09-03 Vladimir Makarov <vmakarov@redhat.com>
33
34 PR target/15832
35 * global.c (modify_reg_pav): New function.
36 (make_accurate_live_analysis): Call the new function. Move pavin
37 modification by earlyclobber set into the new function.
38
25c99d8f
AS
392004-09-03 Andreas Schwab <schwab@suse.de>
40
41 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
42 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
43 extended.
44
7f148c2f
JB
452004-09-02 Jan Beulich <jbeulich@novell.com>
46
47 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
48 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
49 not unwind code specific ones.
50 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
51 Remove unwind code specific dependencies.
52 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
53 Remove gbl-ctors.h.
54 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
55 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
56 * tsystem.h: Declare memcpy and memset when inhibit_libc.
57
9e42ab3e
RZ
582004-09-02 Roman Zippel <zippel@linux-m68k.org>
59
60 * combine.c (try_combine): Delay modifying of insns which cannot
61 be easily undone.
62
1b08d87d
DB
632004-09-02 Daniel Berlin <dberlin@dberlin.org>
64
65 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
66 tree-loop-im.
67 * gcc/tree-ssa-loop.c: Ditto
68 * gcc/tree-ssa-loop-ivcanon.c: Ditto
69 * gcc/doc/invoke.texi: Ditto.
70
d4e43dff
ZL
712004-09-02 Ziemowit Laski <zlaski@apple.com>
72
73 * c-decl.c (store_parm_decls_newstyle): Make static.
74 (store_parm_decls_from): New function.
75 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
76 (store_parm_decls_from): New prototype.
77
cd7d9ca4
DE
782004-09-02 David Edelsohn <edelsohn@gnu.org>
79
80 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
81 HImode with STRICT_ALIGNMENT.
82
40a1c5cb
MM
832004-09-02 Mark Mitchell <mark@codesourcery.com>
84
85 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
86 (TARGET_OS_CPP_BUILTINS): Likewise.
87 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
88 TARGET_BPABI_CPP_BUILTINS.
89
b54567e2
RZ
902004-09-02 Roman Zippel <zippel@linux-m68k.org>
91
92 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
93
5906d013
EC
942004-09-02 Eric Christopher <echristo@redhat.com>
95
96 * builtins.c (expand_builtin_cabs): Delete.
97 (expand_builtin): If unable to fold the values do a normal
98 library call for builtin_cab*.
99 (fold_builtin_cabs): Depend on optimize and optimize_size.
100 * optabs.c (expand_cmplxdiv_straight): Delete.
101 (expand_cmplxdiv_wide): Ditto.
102 (expand_vector_binop): Ditto.
103 (expand_vector_unop): Ditto.
104 (expand_complex_abs): Delete.
105 (expand_binop): Remove calls to above functions.
106 Remove open coding of complex arithmetic.
107 (expand_unop): Ditto.
108 * optabs.h: Remove prototypes.
109
3041390d
ZL
1102004-09-02 Ziemowit Laski <zlaski@apple.com>
111
112 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
113 * c-tree.h (store_parm_decls_newstyle): New prototype.
114
5514620a
GK
1152004-09-02 Geoffrey Keating <geoffk@apple.com>
116
117 * config/rs6000/rs6000.c (expand_block_clear): Use vector
118 instructions if available.
119 (expand_block_move): Likewise.
120
02f14c38
JH
1212004-09-03 Jan Hubicka <jh@suse.cz>
122
123 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
124
19dc705e
MM
1252004-09-02 Mark Mitchell <mark@codesourcery.com>
126
127 * config/arm/symbian.h (LIB_SPEC): Define to empty.
128 * config/arm/t-symbian (SHLIB_LC): Likewise.
129
24112ed0
PB
1302004-09-02 Paul Brook <paul@codesourcery.com>
131
132 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
133
7ad769fe
RS
1342004-09-02 Richard Sandiford <rsandifo@redhat.com>
135
136 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
137 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
138 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
139 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
140 (mips_issue_rate): Remove unreachable abort.
141 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
142 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
143 (mips_block_move_straight, print_operand_address, mips_file_start)
144 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
145 (mips_output_conditional_branch, mips_expand_builtin_direct)
146 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
147 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
148 with gcc_assert.
149
9f09b415
RS
1502004-09-02 Richard Sandiford <rsandifo@redhat.com>
151
152 * config/mips/mips.md (*lea_high64): Change split condition to
153 flow2_completed. Add a peephole2 to generate a more parallel version.
154
07724022
JH
1552004-09-02 Jan Hubicka <jh@suse.cz>
156
157 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
158 GGC.
159
160 * ggc-page.c: include tree-flow.h.
161 (extra_order_size_table): Add stmt_ann_d.
162 (STAT_LABEL): Rename from ....
163 (LABEL): ... this one.
164 * Makefile.in (ggc-page.o): Add dependency.
165
166 * ggc-common.c (ggc_force_collect): New global variable.
167 (loc_description): Add fields "freed", "collected"
168 (ptr_hash): New static hash
169 (ptr_hash_entry): New structure.
170 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
171 (ggc_record_overhead): Take ptr argument, record it
172 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
173 (cmp_statistics): Imrove sorting.
174 (dump_ggc_loc_statistics): Output newly collected statistics
175 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
176 (ggc_free): Call ggc_free_overhead.
177 (ggc_collect): Force collection when asked to be forced.
178 (ggc_collect): Call ggc_prune_overhead_list.
179 * ggc.h (ggc_force_collect): Declare
180 (ggc_record_overhead): Update prototype.
181 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
182
10060b83
JW
1832004-09-02 James E Wilson <wilson@specifixinc.com>
184
185 * common.opt (ftrapping-math): Default to on.
186
9d2da95b
RE
1872004-09-02 Richard Earnshaw <rearnsha@arm.com>
188
189 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
190
3f1f9228
DC
1912004-09-02 Denis Chertykov <denisc@overta.ru>
192
193 PR target/16884
194 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
195 match_scratch.
196 (*movmemqi_insn): Likewise.
197 (*movmemhi): Likewise.
198 (clrmemhi): Likewise.
199 (*clrmemqi): Likewise.
200 (*clrmemhi): Likewise.
201
e6fc6c9b
PB
2022004-09-02 Paul Brook <paul@codesourcery.com>
203
204 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
205 default_use_cxa_atexit=yes.
206
d86c1b91
AM
2072004-09-02 Alan Modra <amodra@bigpond.net.au>
208
209 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
210 (struct kernel_old_ucontext): Delete.
211 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
212 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
213 when IN_LIGGCC2.
214
3806400d
RS
2152004-09-02 Richard Sandiford <rsandifo@redhat.com>
216
217 * toplev.c (process_options): Fix typo.
218
9969aaf6
RH
2192004-09-01 Richard Henderson <rth@redhat.com>
220
221 PR middle-end/17258
222 * calls.c (initialize_argument_information): Tighten pass-through
223 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
224 Use build_fold_addr_expr.
225 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
226 that assumes ADDR_EXPR allocates stack space.
227 * fold-const.c (build_fold_addr_expr_with_type): Look through
228 WITH_SIZE_EXPR.
229
1e8964cf
DN
2302004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
231
232 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
233 * ggc.h (ggc_alloc_rtx): Delete.
234
26276705
RS
2352004-09-01 Roger Sayle <roger@eyesopen.com>
236
237 * expmed.c (enum alg_code): Remove long unused enumeration values.
7f148c2f 238 (struct mult_cost): New structure to hold the "score" of a synthetic
26276705
RS
239 multiply sequence, including both a rtx_cost and a latency field.
240 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
241 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
242 (struct algorithm): Change type of cost field to be mult_cost.
243 (synth_mult): Change type of cost_limit argument to be a
244 pointer to a mult_cost. Update all cost comparisons to use the
5906d013 245 new mult_cost infrastructure. For alg_add_factor and
26276705
RS
246 alg_sub_factor operations, latency is lower than the rtx_cost.
247 (choose_mult_variant): Update calls to synth_mult. Perform
248 cost comparisons using the new mult_cost infrastructure.
249 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
250 to optain the total rtx_cost of a synth_mult "algorithm".
251
594a3565
DE
2522004-09-01 David Edelsohn <edelsohn@gnu.org>
253
254 * config/rs6000/power4.md: Increase store latency to 12.
255 * config/rs6000/power5.md: Same.
256
130d5426
JW
2572004-09-01 James E Wilson <wilson@specifixinc.com>
258
259 PR target/14064
260 * config/avr/avr.c (avr_unique_section): Delete prototype and
261 definition.
262 (TARGET_ASM_UNIQUE_SECTION): Delete.
263
57a6af27
ZL
2642004-09-01 Ziemowit Laski <zlaski@apple.com>
265
266 * c-parse.in (primary): Call objc_build_message_expr(),
267 objc_build_selector_expr(), objc_build_protocol_expr(),
268 objc_build_encode_expr() and objc_build_string_object() instead of
269 build_message_expr(), build_selector_expr(), build_protocol_expr(),
270 build_encode_expr() and build_objc_string_object(), respectively.
271 (component_decl_list2): Call objc_get_class_ivars() instead of
272 get_class_ivars_from_name().
273 (keyworddecl): Call objc_build_keyword_decl() instead of
274 build_keyword_decl().
275 (receiver): Call objc_get_class_reference() instead of
276 get_class_reference().
277 (reswords): Add blank line before @@ifobjc section, for clarity.
278
5ec214fc
FJ
2792002-09-01 Fariborz Jahanian <fjahanian@apple.com>
280
281 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
282 to Altivec vetors.
283
40219f96
WY
2842004-09-01 Wu Yongwei <adah@sh163.net>
285 Danny Smith <dannysmith@users.sourceforge.net>
286
287 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
288 not Windows 'DWORD'.
289 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
290 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
291 (__gthr_win32_recursive_mutex_init_function): Add prototype for
292 __GTHREAD_HIDE_WIN32API case..
293 (__gthr_win32_recursive_mutex_lock): Likewise.
294 (__gthr_win32_recursive_mutex_trylock): Likewise.
295 (__gthr_win32_recursive_mutex_unlock): Likewise.
296 (__gthread_recursive_mutex_init_function); Add definition for
297 __GTHREAD_HIDE_WIN32API case.
298 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
299 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
300 call to InterlockedDecrement.
301
78ad8fbe
RK
3022004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
303
ba2e294d
RK
304 * tree-tailcall.c (find_tail_calls): Also fail is statement has
305 volatile operands.
306
0705d602
RK
307 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
308
78ad8fbe
RK
309 * doc/c-tree.texi: Document new operands for ARRAY_REF and
310 COMPONENT_REF.
311
6d9901e7
ZD
3122004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
313
314 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
315 * common.opt (fspeculative-prefetching): New.
316 * flags.h (flag_speculative_prefetching_set): Declare.
317 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
318 values.
319 * opts.c (flag_sepculative_prefetching_set): New variable.
320 (common_handle_option): Handle -fspeculative-prefetching.
321 * passes.c (rest_of_compilation): Ditto.
322 * profile.c (instrument_values, compute_value_histograms, branch_prob):
323 Use vectors instead of arrays.
324 * toplev.c (process_options): Handle -fspeculative-prefetching.
325 * rtl-profile.c: Include ggc.h.
326 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
327 rtl_gen_one_value_profiler_no_edge_manipulation,
328 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
329 argument changed.
330 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
331 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
332 argument changed.
333 * value-prof.c: Include ggc.h.
334 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
335 macros.
336 (insn_prefetch_values_to_profile, find_mem_reference_1,
337 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
338 speculative_prefetching_transform): New.
339 (value_profile_transformations): Call speculative_prefetching_transform.
340 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
341 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
342 tree_find_values_to_profile, find_values to profile): Use vectors
343 instead of arrays.
344 (free_profiled_values): Removed.
345 * value-prof.h (struct histogram_value): Renamed to
346 struct histogram_value_t.
347 (histogram_value, histogram_values): New types.
348 (find_values_to_profile): Declaration changed.
349 (free_profiled_values): Removed.
350 (struct profile_hooks): Type of argument of the hooks changed to
351 histogram_value.
352 * doc/invoke.texi (-fspeculative-prefetching): Document.
353
d7fe1183
ZD
3542004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
355
356 PR rtl-optimization/16408
357 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
358
938e234b
RH
3592004-09-01 Richard Henderson <rth@redhat.com>
360
7f148c2f
JB
361 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
362 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
938e234b 363
d0879c98
JJ
3642004-09-01 Jakub Jelinek <jakub@redhat.com>
365
366 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
367
156a126c
MS
3682004-09-01 Mike Stump <mrs@apple.com>
369
370 * config/darwin.c (machopic_symbol_defined_p): In addition to
371 being SYMBOL_REF_LOCAL_P, a symbol must also be
372 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
373 defined in this output file, or translation unit in the case
374 of IMA not being used.
375 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
376 never need .indirect_symbol when indirecting.
377
a5d8b097
JJ
3782004-09-01 Jakub Jelinek <jakub@redhat.com>
379
380 * Makefile.in (bb-reorder.o): Add several dependencies.
381
266bff3a
JJ
3822004-09-01 Jakub Jelinek <jakub@redhat.com>
383
384 * fold-const.c (operand_equal_p): Require equal sign also for
385 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
386
32078532
RE
3872004-09-01 Richard Earnshaw <rearnsha@arm.com>
388
389 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
390 for use in configargs.h. Put the cname in a separate variable. Use
391 that to set target_cpu_default2.
392
c0311627
R
3932004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
394 Nick Clifton <nickc@redhat.com>
395
396 * config/sh/sh.md ("length"): Increase branch length when
397 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
398 constant, 2 byte for aligning the constant.
399
d98a72fd
RE
4002004-09-01 Richard Earnshaw <rearnsha@arm.com>
401
402 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
403 CPU.
404 (arm7tdmi-s): New CPU name.
405 * arm/arm.c (ARM_CORE): Update for new format.
406 * arm/arm.h (ARM_CORE): Likewise.
407 * arm/gentune.sh: Update for extra field.
408 * config.gcc: Likewise.
409 * arm/arm-tune.md: Regenerate.
410 * doc/invoke.texi: Document the real processor names for ARM cpus.
411
0a1aa867
RE
4122004-09-01 Richard Earnshaw <rearnsha@arm.com>
413
414 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
415 (floatdidf): New functions.
416 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
417 (floatdisf): New functions.
418 * t-arm-elf: Use them.
419
bc095846
ZL
4202004-09-01 Ziemowit Laski <zlaski@apple.com>
421
422 * c-common.h (lookup_interface): Remove prototype.
423 (is_class_name): Rename to objc_is_class_name.
424 (lookup_objc_ivar): Rename to objc_lookup_ivar.
425 (get_current_scope): Rename to objc_get_current_scope.
426 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
427 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
428 (yylexname): Call objc_is_class_name() instead of is_class_name().
429 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
430 instead of lookup_objc_ivar().
431 * stub-objc.c (lookup_interface): Remove stub.
432 (is_class_name): Rename to objc_is_class_name.
433 (lookup_objc_ivar): Rename to objc_lookup_ivar.
434
14945fe6
MM
4352004-08-31 Mark Mitchell <mark@codesourcery.com>
436
437 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
438 * config/arm/lib1funcs.asm: Do not include supplemental .S files
439 when compiling for Symbian.
440 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
441 (TARGET_OS_CPP_BUILTINS): Likewise.
442 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
443
93415288
SS
4442004-08-31 Stan Shebs <shebs@apple.com>
445
446 * toplev.c (process_options): Ensure debug_hooks is initialized.
447
505970fc
MM
4482004-08-31 Mark Mitchell <mark@codesourcery.com>
449
450 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
451 * target.h (cxx): Add export_class_data.
452 * config/arm/arm.c (arm_cxx_export_class_data): New function.
453 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
dc40803a 454 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
5906d013 455
bee9efbc
KK
4562004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
457
458 * config/sh/sh.c (output_branch): Check the insn length possibly
459 in the delayed slot.
460
a4e9ffe5
RK
4612004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
462
a0ca8e0c
RK
463 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
464 blank after ')'.
465 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
466
a4e9ffe5
RK
467 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
468 (c_sizeof_of_alignof_type): Likewise.
469 * expr.c (array_ref_element_size): Likewise.
470 (highest_pow2_factor_for_target): Likewise.
471 * gimplify.c (canonicalize_addr_expr): Likewise.
472 (gimplify_compound_lval): Likewise.
473 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
474 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
475 * varasm.c (assemble_variable): Likewise.
476 (output_constant_def_contents): Alignments are unsigned.
477
631b67ce
RK
4782004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
479 Jeff Law <law@redhat.com>
480
481 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
482 gets modified.
483
af287697
MM
4842004-08-31 Mark Mitchell <mark@codesourcery.com>
485
486 * hooks.c (hook_bool_void_true): New function.
487 * hooks.h (hook_bool_void_true): Declare.
488 * target-def.h (TARGET_CXX): Add
489 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
490 * target.h (struct cxx): Add key_method_may_be_inline.
491 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
492 function.
493 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
494 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
495 __THUMB_INTERWORK.
5906d013 496
678584fc
DC
4972004-08-31 Denis Chertykov <denisc@overta.ru>
498
499 PR target/15417
500 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
501 frame pointer register only in Pmode while reload in progress.
502
c4c9b76e
SC
5032004-08-31 Stephane Carrez <stcarrez@nerim.fr>
504
505 PR target/15334
506 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
507 because it breaks the 32-bit shift patterns that rely on a match_dup.
508
c61eceeb
MA
5092004-08-31 Matt Austern <austern@apple.com>
510
511 * config/darwin.c (darwin_make_decl_one_only): Allocate section
512 names once per compilation, instead of once per symbol.
5906d013 513
71b5d516
PB
5142004-08-31 Paolo Bonzini <bonzini@gnu.org>
515
516 * Makefile.in (build_subdir): New substitution.
517 (fixinc.sh): Simplify heavily since fixincludes is already built.
518 (stmp-fixinc): Depend on specs.ready.
519 (install-mkheaders): Use new location of fixincludes.
520 (clean): Do not descend into fixinc.
521 (FORBUILD): Replace with ../$(build_subdir).
522 * configure.ac (build_subdir): Substitute.
523 (FORBUILD): Do not set.
524 (all_outputs): Remove fixinc/Makefile.
525 (default commands): Do not create links in fixinc.
526 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
527 the fixincludes configuration steps and substituting
528 @FIXINCL@ in fixinc.in.
529 * fixinc.in: New, from fixinc/fixincl.sh.
530
531 * fixinc/*: Removed.
5906d013 532
f7b0fb68
JM
5332004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
534
535 * attribs.c (strip_attrs): Remove.
536 (split_specs_attrs): Move ...
537 * c-decl.c: ... to here.
538 * tree.h (split_specs_attrs, strip_attrs): Remove.
539 * c-tree.h (split_specs_attrs): Declare.
540
f51a38b9
RS
5412004-08-31 Richard Sandiford <rsandifo@redhat.com>
542
543 * read-rtl.c: Disable RTL checking.
544 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
545
34ebf755
RS
5462004-08-31 Richard Sandiford <rsandifo@redhat.com>
547
548 * config/mips/mips.md (fcond): New code macro and attribute.
549 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
550 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
551 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
552
9b76aa3b
MM
5532004-08-30 Mark Mitchell <mark@codesourcery.com>
554
555 Revert:
556 2004-08-29 Mark Mitchell <mark@codesourcery.com>
557 PR rtl-optimization/16590
558 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
559
99fa8911
AP
5602004-08-30 Andrew Pinski <apinski@apple.com>
561
5906d013 562 * hard-reg-set.h:
992c944c
AP
563 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
564 * ChangeLog: Fix previous ChangeLog entry.
565
99fa8911 566 PR rtl-opt/13987
5906d013 567 * config.host (use_long_long_for_widest_fast_int): New, default is
99fa8911
AP
568 off.
569 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
570 * configure.ac: If use_long_long_for_widest_fast_int, then
571 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
572 * configure: Regenerate.
573 * config.in: Regenerate.
574 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
575 New: widest integer type supported efficiently in hardware for the
576 host.
577 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
578 HOST_BITS_PER_WIDEST_FAST_INT.
579 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
5906d013 580 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
99fa8911
AP
581 HOST_WIDEST_FAST_INT
582 instead of HOST_WIDE_INT.
583 (HARD_REG_SET_LONGS): Likewise.
584 (UHOST_BITS_PER_WIDE_INT): Likewise.
585 Change the checks for the fast cases to be based on
992c944c 586 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
99fa8911 587
f4c0250b
SB
5882004-08-30 Steven Bosscher <stevenb@suse.de>
589
590 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
591 not the pointers.
592
ff164b22
GK
5932004-08-30 Geoffrey Keating <geoffk@apple.com>
594
595 PR 12738
596 PR 17205
597 Radar 3460526
598 Radar 3775729
599 * c-decl.c (grokdeclarator): Produce error for 'static' on local
600 function declaration.
601
bc482be4
RH
6022004-08-30 Richard Henderson <rth@redhat.com>
603
604 * expr.c (array_ref_element_size): Force aligned_size back to
605 sizetype.
606 (component_ref_field_offset): Similarly for aligned_offset.
607 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
608 low-bound, element-size, field-offset fields rather than
609 computed values.
610
21611613
JM
6112004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
612
613 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
614 redundant code.
615
7b112487
JM
6162004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
617
618 * c-tree.h (struct language_function): Add arg_info element.
619 * c-decl.c (current_function_arg_info): New.
620 (grokdeclarator, store_parm_decls): Use it instead of
621 DECL_ARGUMENTS.
622 (c_push_function_context, c_pop_function_context): Save and
623 restore it.
624
5cc200fc
RH
6252004-08-30 Richard Henderson <rth@redhat.com>
626
5906d013 627 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
5cc200fc
RH
628 COMPONENT_REF to pointer arithmetic.
629 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
630 constant "c" as a valid constant initializer. Allow narrowing of
631 differences against the same base object, for any base object.
632
6377bb9a
RH
6332004-08-30 Richard Henderson <rth@redhat.com>
634
635 * expr.c (expand_expr_addr_expr): New.
636 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
637
308cd611
RS
6382004-08-30 Richard Sandiford <rsandifo@redhat.com>
639
640 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
641 (mips_fp_condition): New enum.
642 (mips_fp_conditions): New array.
643 (print_fcc_operand): Delete.
644 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
645 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
646 (builtin_description): Add "cond" field.
647 (DIRECT_BUILTIN): Initialize it.
648 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
649 into INSN and CODE. Initialize the "cond" field.
650 (CMP_BUILTINS): Update accordingly.
651 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
652 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
653 mips_fp_condition as argument. Make it the final operand of the
654 comparison instruction.
655 (mips_expand_builtin): Update accordingly.
656 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
657 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
658 the gaps.
659 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
660 Don't use the 'Q' operand prefix; just print the operand normally.
661 (mips_cabs_*, mips_c_*): Delete, replacing with...
662 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
663 patterns. Split the 4s versions into 2 ps patterns after reload.
664
88f19756
RH
6652004-08-30 Richard Henderson <rth@redhat.com>
666
667 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
668 assuming an ADDR_EXPR is non-null.
669
70008293
JM
6702004-08-30 Jason Merrill <jason@redhat.com>
671
d92a3b38 672 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
70008293 673
fc6633e0
NS
6742004-08-30 Nathan Sidwell <nathan@codesourcery.com>
675
e0448193
NS
676 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
677 * gcov.c (abort): Remove undef.
678
fc6633e0
NS
679 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
680 (struct tree_binfo): Remove primary field.
681
89b8abbf
PB
6822004-08-30 Paolo Bonzini <bonzini@gnu.org>
683
684 * fixinc/Makefile.in (machname.h): Remove.
685 (fixincl.x): Do not pass $@ to genfixes.
686 * fixinc/genfixes: Remove code to produce machname.h.
687 * fixinc/fixincl.sh: Move it here instead.
688 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
689 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
690 return a bool indicating whether pz_mn_name_pat is NULL.
691 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
692 Declare extern C variables for the ENV_TABLE.
693 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
694 instead use the result of mn_get_regexps.
695 * fixinc/fixtests.c: Likewise.
696
39880d37
PB
6972004-08-30 Paolo Bonzini <bonzini@gnu.org>
698
699 * configure.ac: Do not run fixincludes after stage1 during
700 toplevel bootstrap.
701 * configure: Regenerate.
702
a8b3643c
RE
7032004-08-30 Richard Earnshaw <rearnsha@arm.com>
704
705 * sched-deps.c (get_condition): Partially revert previous, by never
706 trying to extract the condition from a condjump.
707
fc6633e0
NS
7082004-08-30 Nathan Sidwell <nathan@codesourcery.com>
709
710 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
711 (handle_visibility_attribute, c_determine_visibility): Likewise.
712 * c-common.h (my_friendly_assert): Remove.
713
afa396ff
RS
7142004-08-30 Richard Sandiford <rsandifo@redhat.com>
715
716 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
717 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
718 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
719 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
720 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
721
ef6379fd
DN
7222004-08-30 Diego Novillo <dnovillo@redhat.com>
723
724 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
725 in COMPONENT_REF nodes.
726
7783b402
GDR
7272004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
728
729 PR c++/15378
730 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
731 global_dc->warning_as_error_requested.
732 * diagnostic.c (diagnostic_initialize): Tidy.
733 * diagnostic.h (diagnostic_context::x_data): Remove
734 (diagnostic_context::issue_warnings_are_errors_message): Rename
735 from warnings_are_errors_message.
736 (diagnostic_context::warning_as_error_requested): New.
737
adf968c7
RE
7382004-08-30 Richard Earnshaw <rearnsha@arm.com>
739
740 * sched-deps.c (get_condition): Fix breakage in previous patch.
741
999f4d5e
PB
7422004-08-30 Paul Brook <paul@codesourcery.com>
743
744 * doc/install.texi: Fix broken mpfr link.
745
5a0c2304
DB
7462004-08-29 David O'Brien <obrien@FreeBSD.org>
747
748 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
749 other FreeBSD platforms.
750
880873be
RE
7512004-08-29 Richard Earnshaw <rearnsha@arm.com>
752
753 * arm.h (REVERSE_CONDITION): Define.
754 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
755
15dce812
RE
7562004-08-29 Richard Earnshaw <rearnsha@arm.com>
757
758 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
759 just the codes, call reversed_comparison_code ().
760 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
761 (not_reg_cond): Use reversed_comparison_code.
762 (and_reg_cond): Likewise.
763 * ifcvt.c (cond_exec_process_if_block): Likewise.
764 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
765
6903ecd4
RE
7662004-08-29 Richard Earnshaw <rearnsha@arm.com>
767
768 * sched-deps.c (get_condition): Rewrite using jump support functions.
769 Use reversed_comparison_code.
770 (conditions_mutex_p): Use reversed_comparison_code.
771
ea9bfbf2
RS
7722004-08-29 Richard Sandiford <rsandifo@redhat.com>
773
774 * config/mips/mips.c (override_options): Disable hot/cold partitioning
775 for MIPS16.
776
4ca1f68f
RS
7772004-08-29 Richard Sandiford <rsandifo@redhat.com>
778
779 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
780 (mips_function_type): Move to mips.c.
781 * config/mips/mips.c (mips_builtin_type): New enum.
782 (builtin_description): Replace code and ftype with builtin_type
783 and function_type.
784 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
785 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
786 (CODE_FOR_mips_abs_ps): Define.
787 (mips_bdesc): Use new macros.
788 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
789 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
790 (mips_expand_builtin_direct): New function.
791 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
792 builtin. Replace boolean parameter with builtin_type.
793 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
794 (mips_expand_4s_compare_builtin): Delete, replacing with...
795 (mips_expand_builtin_compare): ...this new function.
796
5e9f78cc
MM
7972004-08-29 Mark Mitchell <mark@codesourcery.com>
798
799 PR rtl-optimization/16590
800 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
801
766ff1b1
DN
8022004-08-29 Diego Novillo <dnovillo@redhat.com>
803
804 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
805 * tree-ssa-propagate.c: Fix documentation.
806
2435c4c1
RS
8072004-08-29 Richard Sandiford <rsandifo@redhat.com>
808
809 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
810 (mov[sd]fcc): Likewise.
811
53d9ac3b
RS
8122004-08-29 Richard Sandiford <rsandifo@redhat.com>
813
814 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
815
93898c8b
RS
8162004-08-29 Richard Sandiford <rsandifo@redhat.com>
817
818 * config/mips/mips.md (divide_condition): New mode attribute.
819 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
820 (sqrt[sd]f3): Redefine using SCALARF.
821 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
822 patterns.
823
aae0609c
RS
8242004-08-29 Richard Sandiford <rsandifo@redhat.com>
825
826 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
827 (loadx, storex, fmt, UNITMODE): New mode attributes.
828 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
829 (mul[sd]f3): Redefine using :SCALARF.
830 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
831 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
832 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
833 Check TARGET_FUSED_MADD for V2SF too.
834 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
835 were already named.
836 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
837 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
838
74fc61d1
RS
8392004-08-29 Richard Sandiford <rsandifo@redhat.com>
840
841 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
842 V2SF_type_node if it will be needed.
843
ff55fb9c
RS
8442004-08-29 Richard Sandiford <rsandifo@redhat.com>
845
846 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
847 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
848 (mips_prepare_builtin_target): New function.
849 (mips_expand_builtin): Use them. Update calls to subroutines.
850 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
851 cmp_choice with a boolean argument to select between movt and movf.
852 Take the comparison's icode as an argument, not the function's fcode.
853 (mips_expand_compare_builtin): New function. Rename existing function
854 to mips_expand_scalar_compare_builtin.
855 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
856 (mips_expand_ps_compare_builtin): Use the new functions. Take the
857 comparison's icode as an argument, not the builtin's fcode.
858
f691c4e3
RS
8592004-08-29 Richard Sandiford <rsandifo@redhat.com>
860
861 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
862 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
863 registers are false and -1 if all registers are true.
864 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
865 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
866 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
867 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
868 (bc1any2t, bc1any2f): Likewise CCV2.
869 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
870
49135706
RS
8712004-08-29 Richard Sandiford <rsandifo@redhat.com>
872
873 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
874 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
875 UNSPEC rather than an IF_THEN_ELSE.
876 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
877 mips_cond_move_tf_ps by name.
878
06a4ab70
CF
8792004-08-29 Chao-ying Fu <fu@mips.com>
880 James E Wilson <wilson@specifixinc.com>
5906d013 881
06a4ab70
CF
882 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
883 8 byte size and alignment. Give CCV4 16 byte size and alignment.
884 * config/mips/mips-ps-3d.md: New file.
885 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
886 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
887 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
888 (mips_output_move): Emit "mov.ps" for V2SFmode.
889 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
890 MODE_VECTOR_FLOAT.
891 (override_options): Check if TARGET_MIPS3D and there was an explicit
892 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
893 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
894 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
895 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
896 and allow CCV2 and CCV4 to occupy two and four CC registers.
897 (print_fcc_operand): New function.
898 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
899 %Z to call print_fcc_operand.
900 (mips_function_value): Handle MODE_VECTOR_FLOAT.
901 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
902 (mips_vector_mode_supported_p): New function.
903 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
904 (builtin_description): New struct.
905 (mips_bdesc): New array of struct builtin_description.
906 (mips_expand_builtin, mips_init_builtins,
907 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
908 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
909 functions.
910 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
911 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
912 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
913 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
914 "-mips3d", and "-mno-mips3d".
915 (ASM_SPEC): Map -mips3d to -mips3d in gas.
916 (EXTRA_CONSTRAINT_Y): New macro.
917 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
918 multi-letter constraint 'Y'.
919 (CONSTRAINT_LEN): New macro.
920 (enum mips_builtins): New for MIPS builtin functions.
921 (enum mips_function_type): New for the types of MIPS builtin functions.
922 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
5906d013 923 * config/mips/mips.md: New constants for paired single and MIPS-3D
06a4ab70
CF
924 instructions. Include the new mips-ps-3d.md file.
925 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
926 movv2sf_hardfloat_64bit): New named patterns.
927 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
928 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
929 sdxc1_v2sf_di): New unnamed patterns.
930 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
931 const_vector support.
932 (const_0_or_1_operand): New predicate.
933 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
934
750628d8
DN
9352004-08-29 Diego Novillo <dnovillo@redhat.com>
936
937 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
938 (tree-ssa-propagate.o): New rule.
939 (GTFILES): Add tree-ssa-propagate.c.
940 * tree-flow.h (struct stmt_ann_d): Remove field
941 in_ccp_worklist.
942 * tree-ssa-propagate.c: New file.
943 * tree-ssa-propagate.h: New file.
944 * tree-ssa-ccp.c: Re-write to use the routines from
945 tree-ssa-propagate.c.
946
f108270b
AP
9472004-08-28 Andrew Pinski <apinski@apple.com>
948
949 * tree-ssa-loop.c: Remove extra include of basic-block.h.
950
e5a002e3
ZL
9512004-08-28 Ziemowit Laski <zlaski@apple.com>
952
953 * c-common.h: Update comments about ObjC/ObjC++ entry points.
954 (objc_is_reserved_word): New prototype.
955 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
956 separate section; these are call-backs.
957 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
958 ObjC/ObjC++ "@" keywords.
959 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
960 prototypes; they already live in c-common.h.
961 * stub-objc.c: Update copyright notice.
962 (objc_is_reserved_word): New stub.
963
2c46a62f
NS
9642004-08-28 Nathan Sidwell <nathan@codesourcery.com>
965
966 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
967 even when not checking.
968
40aac948
JM
9692004-08-27 Jason Merrill <jason@redhat.com>
970
971 PR c++/13684
972 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
973 (gimple_push_cleanup): Add eh_only parm.
974 (gimplify_target_expr): Pass it.
975 * c.opt (-fno-threadsafe-statics): New option.
976 * c-opts.c (c_common_handle_option): Handle it.
977 * c-common.h (flag_threadsafe_statics): Declare it.
978 * c-common.c (flag_threadsafe_statics): Record it.
979 * doc/invoke.texi: Document it.
980 * tsystem.h (_GNU_SOURCE): Define.
981 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
982 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
983 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
984 (__gthread_recursive_mutex_init_function): New fn.
985 (__gthread_recursive_mutex_lock): New fn.
986 (__gthread_recursive_mutex_trylock): New fn.
987 (__gthread_recursive_mutex_unlock): New fn.
988 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
989 * gthr-win32.h, gthr-vxworks.h: Likewise.
990 * gthr.h: Document.
991
1494c534
DE
9922004-08-27 David Edelsohn <edelsohn@gnu.org>
993
994 * config/rs6000/rs6000.c (rs6000_override_options): Increase
995 maximum skip to 15. Set function alignment, jump alignment, and
996 loop alignment to 16 for processors that form dispatch groups.
03e9c50a 997 (rs6000_rtx_costs): outer_code is used.
1494c534 998
ce552f75
NS
9992004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1000
e3861d2a
NS
1001 * stor-layout.c (sizetype_set): Remove.
1002 (set_sizetype): Don't test or set it.
1003
ce552f75
NS
1004 * tree.h (size_int_type): Remove.
1005 * fold-const.c: Do not #include gt-fold-const.h.
1006 (size_htab_hash, size_htab_eq): Remove.
1007 (size_int_kind): Use build_int_cst.
1008 (new_const, size_htab): Remove.
1009 (size_int_type): Remove.
1010 (round_up): Use build_int_cst.
1011 (round_down): Likewise. Remove spurious constant build.
1012
06c37c96
NS
10132004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1014
1015 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
1016 Add is_release variable, use it for --enable-werror and
1017 --enable-checking defaults.
1018 * system.h (gcc_assert, gcc_unreachable): New.
1019 * doc/install.texi (--enable-checking): Update.
1020 * configure, config.in: Rebuilt.
1021
57406c63
RS
10222004-08-26 Richard Sandiford <rsandifo@redhat.com>
1023
1024 * rtl.h (read_rtx): Change prototype.
1025 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
1026 line number. Return true on success.
1027 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
1028 callers accordingly.
1029
ee8a6a3e
RH
10302004-08-26 Richard Henderson <rth@redhat.com>
1031
1032 * c-typeck.c (build_offsetof): Remove.
1033 * c-tree.h (build_offsetof): Remove.
1034 * c-common.c (fold_offsetof_1, fold_offsetof): New.
1035 * c-common.h (fold_offsetof): Declare.
1036 * c-parse.in (offsetof_base): New.
1037 (offsetof_member_designator): Use it. Build references, not just
1038 a tree list.
1039 (primary): Use fold_offsetof, not build_offsetof.
1040
525c6bf5
RH
10412004-08-26 Richard Henderson <rth@redhat.com>
1042
1043 * tree.c (staticp): Return the static object.
1044 * tree.h (staticp): Update decl.
1045 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
1046 * langhooks.c (lhd_staticp): Return NULL_TREE.
1047 * langhooks-def.h (lhd_staticp): Update decl.
1048 * c-common.c (c_staticp): Return the static object.
1049 * c-common.h (c_staticp): Update decl.
1050
d416c0b3
RH
10512004-08-26 Richard Henderson <rth@redhat.com>
1052
1053 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
1054 modes.
1055
0b410f0b
JM
10562004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
1057
1058 PR c/13801
1059 * c-decl.c (struct c_binding): Add type and inner_comp fields.
1060 (bind): Set type and inner_comp fields.
1061 (pop_scope): Restore type of decl to the correct type from an
1062 outer scope. Give error when popping file scope for incomplete
1063 arrays completed incompatibly with default initialization in an
1064 inner scope.
1065 (diagnose_mismatched_decls): Handle externs with initializers at
1066 block scope.
1067 (pushdecl): Set type of external declaration at block scope based
1068 only on the visible declarations. Save type when changing the
1069 type of a declaration. Merge an external declaration at block
1070 scope with a visible static declaration at file scope.
1071 (implicitly_declare): Give recycled old declaration the new type
1072 except for incompatible declarations of built-in functions, saving
1073 the old type.
1074
b77c7437
ZL
10752004-08-26 Ziemowit Laski <zlaski@apple.com>
1076
1077 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
1078
a228baff
DB
10792004-08-26 Daniel Berlin <dberlin@dberlin.org>
1080
1081 * tree-alias-common.c (gate_pta): New function.
1082 (pass_build_pta): Use it.
1083 (pass_del_pta): Use it.
1084 (delete_alias_vars): Don't check flag_tree_points_to.
1085
2e6c9641
FJ
10862004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1087
5906d013 1088 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
2e6c9641
FJ
1089 TFmode as additional register mode cloberred by call.
1090
10912004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1092
1093 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
1094 parallel pattern for library call returning DImode in
1095 mixed mode.
1096
10972004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1098
1099 * config/rs6000/rs6000.c (function_arg): Generate parallel
1100 pattern for more split args.
1101
11022004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1103
1104 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
1105 either gen_movdi_di_update or gen_movdi_si_update depending on
1106 target mode.
1107 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
1108 to generate two versions.
5906d013 1109
36d59cf7
DB
11102004-08-26 Daniel Berlin <dberlin@dberlin.org>
1111
1112 * Makefile.in (lambda-code.o): New.
1113 (lambda-trans.o): Ditto.
1114 (TREE_DATA_REF_H): Ditto.
1115 (LAMBDA_H): Ditto.
1116 (lambda-mat.o): Use LAMBDA_H.
1117 (tree-data-ref.o): Ditto.
1118 * lambda-code.c: New file. Lambda code generation algorithm.
1119 * lambda-trans.c: Ditto. Lambda transformation matrix support.
1120 * lambda.h: Add lambda loop structures.
1121 Add lambda loopnest structures.
1122 Add lambda body vector structure.
1123 Add lambda linear expression structures.
1124 Add prototypes for functions in new files.
1125 * lambda-mat.c: Include tree.h
1126
11272004-08-26 Daniel Berlin <dberlin@dberlin.org>
5906d013
EC
1128 Sebastian Pop <pop@cri.ensmp.fr>
1129
1130 * tree-data-ref.h: Include lambda.h
36d59cf7 1131 (free_dependence_relation): Declared here.
5906d013 1132 (free_dependence_relations): Ditto.
36d59cf7
DB
1133 (free_data_refs): Ditto.
1134 * tree-data-ref.c (free_dependence_relation): New function.
1135 (free_dependence_relations): Ditto.
1136 (free_data_refs): Ditot.
1137 (analyze_all_data_dependences): Free datarefs and dependence_relations.
1138 (build_classic_dist_vector): Store in the dependence_relations the
1139 information. Each arc in the dependence_relations graph is labelled
1140 with the distance and direction vectors.
1141 (build_classic_dir_vector): Ditto.
1142 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
1143 Now computes again the whole dependence graph including read-read
1144 relations.
1145 (compute_data_dependences_for_loop): Now dependence_relations contains
1146 all the data, and thus it doesn't need to initialize the classic_dir
1147 and classic_dist vectors.
1148 (analyze_all_data_dependences): Adjusted for using the new interface of
1149 compute_data_dependences_for_loop. Remove the statistics dump.
5906d013 1150
a46bbb5a
BW
11512004-08-26 Bob Wilson <bob.wilson@acm.org>
1152
1153 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
1154 (xtensa_expand_block_move): Update comment.
1155 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
1156
52351a5e
RE
11572004-08026 Richard Earnshaw <rearnsha@arm.com>
1158
1159 PR target/13506
1160 * toplev.c (crash_signal): If we crashed while emitting
1161 a user asm, then die more gracefully.
1162
b72e46f0
NC
11632004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1164
1165 PR target/17119.
1166 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
1167 checking for a valid constant, regardless of sign.
1168
fd9363bf
RH
11692004-08-25 Richard Henderson <rth@redhat.com>
1170
d416c0b3
RH
1171 PR target/16974
1172 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
1173 if the constant satisfies add_operand.
fd9363bf 1174
45f413e4 11752004-08-25 Richard Henderson <rth@redhat.com>
5906d013 1176
d416c0b3
RH
1177 PR debug/10695
1178 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
1179 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
1180 unwind info for >16-bit frames.
45f413e4 1181
7e233208
RK
11822004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
1183
1184 PR target/17171
1185 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
1186
04886dc0
RH
11872004-08-25 Richard Henderson <rth@redhat.com>
1188
d416c0b3
RH
1189 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
1190 (TARGET_CANNOT_FORCE_CONST_MEM): New.
04886dc0 1191
aca2bd7c
AM
11922004-08-25 Andrew MacLeod <amacleod@redhat.com>
1193
1194 * doc/tree-ssa.texi: Document new operand iterator.
1195
0423421f
AM
11962004-08-26 Alan Modra <amodra@bigpond.net.au>
1197
1198 PR target/16480
1199 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
1200 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
1201 as PLUS base regs.
1202
e4dc702c
PB
12032005-08-28 Paul Brook <paul@codesourcery.com>
1204
1205 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
1206 -mfpu=vfp -march=armv5t
37d5a9a5 1207 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
e4dc702c 1208
6dd53648
RH
12092004-08-25 Richard Henderson <rth@redhat.com>
1210
1211 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1212 * target.h (struct gcc_target): Add scalar_mode_supported_p.
1213 * targhooks.c (default_scalar_mode_supported_p): New.
1214 * targhooks.h (default_scalar_mode_supported_p): Declare.
1215 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
1216
1217 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
1218 before attempting to create types. Tidy.
1219 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
1220
1221 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
1222 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1223
bab2b22b
RH
12242004-08-25 Richard Henderson <rth@redhat.com>
1225
1226 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
1227 set REAL_MODE_FORMAT for TFmode.
1228
c34be55e
ZL
12292004-08-25 Ziemowit Laski <zlaski@apple.com>
1230
1231 * c-decl.c (grokparm): New function.
1232 * c-tree.h (grokparm): New prototype.
1233
4c124b4c
AM
12342004-08-25 Andrew MacLeod <amacleod@redhat.com>
1235
1236 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
1237 iterator controlling structure.
1238 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
1239 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
1240 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
1241 iterator flags.
1242 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
1243 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
1244 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
1245 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
5906d013 1246 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
4c124b4c
AM
1247 Empty operand pointers.
1248 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
1249 (op_iter_next_use): New. Return next use_operand_p.
1250 (op_iter_next_def): New. Return next def_operand_p.
1251 (op_iter_next_tree): New. Return next operands as a tree.
1252 (op_iter_init): New. Initialize an iterator structure.
1253 (op_iter_init_use): New. Initialize structure and get the first use.
1254 (op_iter_init_def): New. Initialize structure and get the first def.
1255 (op_iter_init_tree): New. Initialize structure and get the first tree.
1256 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
5906d013 1257 (op_iter_init_maydef): New. Initialize structure and get the first
4c124b4c
AM
1258 V_MAY_DEF operands.
1259 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
5906d013 1260 * tree-dfa.c (compute_immediate_uses_for_stmt,
4c124b4c
AM
1261 redirect_immediate_uses): Use new operand iterator.
1262 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
1263 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
1264 operands instead of using *_disappeared_p routines.
1265 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
1266 ssa_rewrite_stmt): Use new operand iterator.
1267 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
1268 rewrite_trees): Use new operand iterator.
1269 * tree-pretty-print.c (dump_vops): Use new operand iterator.
1270 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
5906d013 1271 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
4c124b4c 1272 dump_points_to_info): Use new operand iterator.
5906d013
EC
1273 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
1274 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
4c124b4c 1275 operand iterator.
5906d013 1276 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
4c124b4c
AM
1277 propagate_necessity): Use new operand iterator.
1278 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
1279 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
1280 a parameter instead of a stmt_ann_t.
1281 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
1282 build_tree_conflict_graph): Use new operand iterator.
1283 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
1284 rewrite_mem_refs): Use new operand iterator.
5906d013 1285 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
4c124b4c
AM
1286 check_loop_closed_ssa_use): Use new operand iterator.
1287 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
1288 * tree-ssanames.c (release_defs): Use new operand iterator.
1289 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
1290
4185f1ce
AN
12912004-08-25 Adam Nemet <anemet@lnxw.com>
1292
1293 * tlink.c (initial_cwd): New variable.
1294 (tlink_init): Initialize it.
1295 (recompile_files): Use tlink_execute() instead of system(). Don't
1296 duplicate verbose output of collect_execute. Restore initial_cwd.
1297 Update comment before the function.
1298
700686fa
ZL
12992004-08-25 Ziemowit Laski <zlaski@apple.com>
1300
1301 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
1302 accept) a cast from one Objective-C pointer type to another.
1303
7fb654ef
PC
13042004-08-25 Paolo Carlini <pcarlini@suse.de>
1305
1306 * doc/install.texi: Document that libstdc++-v3 requires
1307 now automake 1.9.1.
1308
8e8d5162
CT
13092004-08-25 Caroline Tice <ctice@apple.com>
1310
1311 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
1312 to comments at start of function.
1313 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
1314 comment.
5906d013
EC
1315 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1316 merge_blocks_move_predecessor_nojumps,
1317 merge_blocks_move_successor_nojumps, merge_blocks_move,
8e8d5162
CT
1318 try_crossjump_to_edge, try_crossjump_bb): Likewise.
1319 * cfglayout.c (fixup_reorder_chain): Likewise.
1320 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
1321 cfg_layout_can_merge_blocks_p): Likewise.
1322 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
5906d013 1323 * passes.c (rest_of_compilation): Update comments for calling
8e8d5162 1324 optimization that partitions hot/cold basic blocks.
5906d013 1325 * doc/invoke.texi: Update documentation of
8e8d5162 1326 freorder-blocks-and-partition flag.
5906d013 1327
41a21e1d
RS
13282004-08-25 Richard Sandiford <rsandifo@redhat.com>
1329
1330 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
1331 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
1332
e5f14571
RS
13332004-08-25 Richard Sandiford <rsandifo@redhat.com>
1334
1335 * config/mips/mips.md (any_shift): New code macro.
1336 (optab, insn): New code attributes.
1337 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
1338 Use the standard rather than internal patterns for the MIPS16
1339 double-shift optimization.
1340 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
1341 Redefine using :GPR and any_shift.
1342 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
1343 to cover all three shifts.
1344 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
1345 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
1346 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
1347
bbbb79d4
GK
13482004-08-24 Geoffrey Keating <geoffk@apple.com>
1349
1350 * gimplify.c (lookup_tmp_var): Separate temporaries when not
1351 optimizing.
1352
d711cf67
JDA
13532004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1354
1355 PR libstdc++/17005 (fix for HP-UX 11.11)
1356 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
1357 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
5906d013 1358 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
d711cf67
JDA
1359 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
1360 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
1361 (LINK_SPEC): Handle march=1.0 option.
1362 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
1363 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
1364 (SUBTARGET_OPTIONS): New define.
1365 (LINK_SPEC): Handle march=1.0 option.
1366 (STARTFILE_SPEC): New define.
1367 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
1368 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
1369 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
1370 (SUBTARGET_OPTIONS): New define.
1371 (LINK_SPEC): Handle march=1.0 option.
1372 (STARTFILE_SPEC): New define.
1373 * config/pa/pa.c (override_options): Add code to process -munix= option.
1374 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
1375 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
1376 defines.
1377 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
1378 (SUBTARGET_OPTIONS): Provide default define.
1379 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
1380 STANDARD_STARTFILE_PREFIX_2): New defines.
1381 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
1382 (ENDFILE_SPEC): Use %O.
1383 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
1384 Mention issue caused by changing namespace and runtime to UNIX 95/98.
1385 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
1386 Document -munix=std option.
1387
5affca01
SB
13882004-08-25 Steven Bosscher <stevenb@suse.de>
1389
1390 * cse.c (cse_around_loop, cse_check_loop_start,
1391 cse_set_around_loop): Remove.
1392 (cse_basic_block): Remove the around_loop argument.
1393 (cse_end_of_basic_block): Remove the after_loop argument.
1394 (cse_main): Likewise.
1395 * rtl.h (cse_main): Update prototype.
1396 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
1397 rest_of_handle_gcse): Update cse_main calls.
1398
7d60be94
NS
13992004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1400
1401 * tree.h (build_int_cst): New, sign extended constant.
1402 (build_int_cstu): New, zero extended constant.
1403 (build_int_cst_wide): Renamed from build_int_cst.
1404 * tree.c (build_int_cst, build_int_cstu): New.
1405 (build_int_cst_wide): Renamed from build_int_cst.
1406 (make_vector_type, build_common_tree_nodes,
1407 build_common_tree_nodes_2): Adjust build_int_cst calls.
1408 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
1409 expand_builtin_strpbrk, expand_builtin_fputs,
1410 build_string_literal, expand_builtin_printf,
1411 expand_builtin_sprintf, fold_builtin_classify_type,
1412 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
1413 fold_builtin_toascii, fold_builtin_isdigit,
1414 simplify_builtin_strstr, simplify_builtin_strpbrk,
1415 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
1416 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
1417 DEF_ATTR_INT): Likewise.
1418 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
1419 Likewise.
1420 * c-lex.c (interpret_integer, lex_charconst): Likewise.
1421 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
1422 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1423 * c-typeck.c (really_start_incremental_init, push_init_level,
1424 set_nonincremental_init_from_string): Likewise.
1425 * calls.c (load_register_parameters): Likewise.
1426 convert.c (convert_to_pointer): Likewise.
1427 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
1428 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
1429 build_gcov_info): Likewise.
1430 * except.c (init_eh, assign_filter_values): Likewise.
1431 * expmed.c (store_fixed_bit_field, extract_bit_field,
1432 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
1433 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
1434 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
1435 * expr.c (convert_move, emit_group_load, emit_group_store,
1436 expand_assignment, store_constructor, store_field,
1437 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1438 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
1439 invert_truthvalue, optimize_bit_field_compare,
1440 decode_field_reference, all_ones_mask_p, constant_boolean_node,
1441 fold_div_compare, fold, fold_read_from_constant_string,
1442 fold_negate_const, fold_abs_const, fold_not_const, round_up,
1443 round_down): Likewise.
1444 * function.c (assign_parm_setup_block): Likewise.
1445 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
1446 Likewise.
1447 * stor-layout.c (layout_type, initialize_sizetypes,
1448 set_min_and_max_values_for_integral_type): Likewise.
1449 * tree-chrec.c (chrec_fold_multiply_poly_poly,
1450 reset_evolution_in_loop): Likewise.
1451 * tree-chrec.h (build_polynomial_chrec): Likewise.
1452 * tree-complex.c (build_replicated_const): Likewise.
1453 * tree-eh.c (honor_protect_cleanup_actions,
1454 lower_try_finally_onedest, lower_try_finally_copy,
1455 lower_try_finally_switch): Likewise.
1456 * tree-mudflap.c (mf_build_string, mx_register_decls,
1457 mudflap_register_call, mudflap_enqueue_constant): Likewise.
1458 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
1459 * tree-pretty-print.c (dump_generic_node): Likewise.
1460 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
1461 Likewise.
1462 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
1463 * tree-ssa-loop-niter.c (number_of_iterations_cond,
1464 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
1465 Likewise.
1466 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
1467 canonicalize_loop_induction_variables): Likewise.
1468 * tree-vectorizer.c (vect_create_index_for_array_ref,
1469 vect_transform_loop_bound, vect_compute_data_ref_alignment):
1470 Likewise.
1471
1472 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
1473 alpha_gimplify_va_arg_1): Likewise.
1474 * config/arm/arm.c (arm_get_cookie_size): Likewise.
1475 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
1476 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1477 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1478 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
1479 mips_gimplify_va_arg_expr): Likewise.
1480 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1481 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
1482 add_compiler_branch_island): Likewise.
1483 * config/s390/s390.c (s390_va_start): Likewise.
1484 * config/sh/sh.c (sh_va_start): Likewise.
1485 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1486 Likewise.
1487 * config/xtensa/xtensa.c (xtensa_va_start,
1488 xtensa_gimplify_va_arg_expr): Likewise.
5906d013 1489
7d60be94
NS
1490 * objc/objc-act.c (build_objc_string_object,
1491 build_objc_symtab_template, init_def_list, init_objc_symtab,
1492 init_module_descriptor, generate_static_references,
1493 build_selector_translation_table, get_proto_encoding,
1494 build_typed_selector_reference, build_selector_reference,
1495 build_next_objc_exception_stuff,
1496 build_method_prototype_list_template, generate_descriptor_table,
1497 generate_protocols, build_protocol_initializer,
1498 build_ivar_list_template, build_method_list_template,
1499 build_ivar_list_initializer, generate_ivars_list,
1500 generate_dispatch_table, generate_protocol_list,
1501 build_category_initializer, build_shared_structure_initializer,
1502 generate_shared_structures, handle_impent,
1503 generate_objc_image_info): Likewise.
1504
8b63d0e5
PB
15052004-04-25 Paolo Bonzini <bonzini@gnu.org>
1506
1507 * cfglayout.c (duplicate_insn_chain): Remove references to
1508 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
1509 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
1510 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
1511 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
1512 and NOTE_INSN_LOOP_CONT.
1513 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
1514 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
1515 and NOTE_INSN_LOOP_CONT.
1516 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
1517 check_dbra_loop, loop_dump_aux): Remove references to removed notes
1518 and fields.
1519 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
1520 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
1521 references to removed notes and fields.
1522 (subtract_reg_term, ujump_to_loop_cont): Remove.
1523
078e3ffe
PB
15242004-08-25 Paolo Bonzini <bonzini@gnu.org>
1525
8b63d0e5 1526 * doc/install.texi: Document that libcpp does not require
078e3ffe
PB
1527 Automake any longer. Document that Automake 1.9.1 should
1528 work everywhere.
1529
f8ca7e49
ZW
15302004-08-25 Zack Weinberg <zack@codesourcery.com>
1531
1532 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
1533 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
1534 DWARF_DEBUGGING_INFO from choice-of-definition chain;
1535 restructure using C89 features (#elif, #error).
1536 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
1537 * config/sh/sh.h: Remove references to DWARF_DEBUG.
1538 * doc/invoke.texi: Remove references to DWARF version 1;
1539 clarify why -gdwarf-2<n> doesn't work.
1540
51a904c9
ZW
15412004-08-25 Zack Weinberg <zack@codesourcery.com>
1542
1543 * basic-block.h (BB_SET_PARTITION): Clear old value first.
1544 * cfg.c (clear_bb_flags): Don't clear partition setting.
69b9b0d2 1545 * ifcvt.c (find_if_case_1): Remove ??? comment.
51a904c9 1546
e548ead9
AM
15472004-08-25 Alan Modra <amodra@bigpond.net.au>
1548
1549 PR target/17052
1550 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
1551 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
1552 current_function_stdarg in place of sysv_varargs_p.
1553 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
1554 sysv_varargs_p.
1555
1e19ac74
RH
15562004-08-24 Richard Henderson <rth@redhat.com>
1557
1558 PR target/16298
1559 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
1560 random codes within CONST.
1561
c61225e7
JW
15622004-08-24 James E Wilson <wilson@specifixinc.com>
1563
1564 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
1565 -freorder-blocks-and-partition.
1566
37840132
JDA
15672004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1568
1569 PR middle-end/17044
1570 * tree-ssa-threadupdate.c (redirection_data): Make static.
1571 (thread_block): Use ggc_alloc_cleared to allocate struct
1572 redirection_data. Don't free elements in redirection_data.
1573
cf1d880b
RS
15742004-08-24 Richard Sandiford <rsandifo@redhat.com>
1575
1576 * config/mips/predicates.md (small_data_pattern): Match prefetches.
1577
b3393f1f
ZD
15782004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1579
1580 PR tree-optimization/17016
1581 * tree-ssa-loop-niter.c (number_of_iterations_cond,
1582 number_of_iterations_exit): Use POINTER_TYPE_P instead
1583 of testing for POINTER_TYPE.
1584
82b85a85
ZD
15852004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1586
1587 * tree-ssa-loop-ivcanon.c: New file.
1588 * tree-ssa-loop-manip.c (create_iv): New function.
1589 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
1590 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
1591 * cfgloop.c (mark_single_exit_loops): New function.
1592 (verify_loop_structure): Verify single-exit loops.
1593 * cfgloop.h (struct loop): Add single_exit field.
1594 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
1595 (mark_single_exit_loops): Declare.
1596 (tree_num_loop_insns): Declare.
1597 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
1598 (duplicate_loop_to_header_edge): Use it.
1599 * common.opt (fivcanon): New flag.
1600 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
1601 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
1602 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
1603 (bsi_insert_on_edge_immediate): New function.
1604 * tree-flow.h (bsi_insert_on_edge_immediate,
1605 canonicalize_induction_variables, tree_unroll_loops_completely,
1606 create_iv): Declare.
1607 * tree-optimize.c (init_tree_optimization_passes): Add
1608 pass_iv_canon and pass_complete_unroll.
1609 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
1610 * tree-scalar-evolution.c (get_loop_exit_condition,
1611 get_exit_conditions_rec, number_of_iterations_in_loop,
1612 scev_initialize): Use single_exit information.
1613 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
1614 missing assumptions.
1615 (loop_niter_by_eval): Return number of iterations as unsigned
1616 int.
1617 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
1618 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
1619 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
1620 New passes.
1621 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
1622 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
1623 the defining statement is ready.
1624 * tree-vectorizer.c (vect_create_iv_simple): Removed.
1625 (vect_create_index_for_array_ref, vect_transform_loop_bound):
1626 Use create_iv.
1627 (vect_transform_loop_bound): Use single_exit information.
1628 (vect_analyze_loop_form): Cleanup bogus tests.
1629 (vectorize_loops): Do not call flow_loop_scan.
1630 * tree.h (may_negate_without_overflow_p): Declare.
1631 * fold-const.c (may_negate_without_overflow_p): Split out from ...
1632 (negate_expr_p): ... this function.
1633 (tree_expr_nonzero_p): Handle overflowed constants correctly.
1634 * doc/invoke.texi (-fivcanon): Document.
1635 * doc/passes.texi: Document canonical induction variable creation.
1636
b3c90666
RS
16372004-08-24 Richard Sandiford <rsandifo@redhat.com>
1638
1639 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
1640 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
1641 using the mode of the operand to decide between them.
1642 * config/mips/mips.md (MOVECC): New mode macro.
1643 (ccreg): New mode attribute.
1644 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
1645 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
1646 (mov[sd]icc): Redefine using :GPR.
1647
4767c570
RS
16482004-08-24 Richard Sandiford <rsandifo@redhat.com>
1649
04550232
RS
1650 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
1651 (mips_prefetch_cookie): New function.
1652 * config/mips/mips.c (print_operand_address): Fix handling of
1653 ADDRESS_CONST_INT.
1654 (mips_emit_prefetch): Delete.
1655 (mips_prefetch_cookie): New function.
1656 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
1657 mode of QImode for the address_operand. Use mips_prefetch_cookie
1658 to calculate the first "pref" operand.
1659 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
1660 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
4767c570 1661
a657c98a
RE
16622004-08-24 Richard Earnshaw <rearnsha@arm.com>
1663
1664 * arm.md: Include predicates.md.
1665 * predicates.md: New file.
1666 * arm.c (s_register_operand, arm_hard_register_operand)
1667 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
1668 (arm_immediate_operand, arm_neg_immediate_operand)
1669 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
1670 (arm_add_operand, arm_addimm_operand, arm_not_operand)
1671 (offsettable_memory_operand, alignable_memory_operand)
1672 (arm_reload_memory_operand, arm_float_rhs_operand)
1673 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
1674 (index_operand, shiftable_operator, logical_binary_operator)
1675 (shift_operator, equality_operator, arm_comparison_operator)
1676 (minmax_operator, cc_register, dominant_cc_register)
1677 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
1678 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
1679 (const_shift_operand, load_multiple_operation)
1680 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
1681 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
1682 (cirrus_register_operand, cirrus_fp_register)
1683 (cirrus_shift_const): Delete, replaced with equivalents in
1684 predicates.md.
1685 (shift_op): Handle ROTATE.
1686 * arm-protos.h: Delete declarations for above.
1687 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
1688 * t-arm (MD_INCLUDES): Add predicates.md.
1689 (s-preds): Depends on MD_INCLUDES.
1690
886ce862
RS
16912004-08-24 Richard Sandiford <rsandifo@redhat.com>
1692
1693 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
1694 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
1695 patterns. Redefine using :GPR. Give the match_operator a mode.
1696 Use '%2' rather than '%z2' for operand 2.
1697
be659abd
RS
16982004-08-24 Richard Sandiford <rsandifo@redhat.com>
1699
1700 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
1701 attribute.
1702
92dcb882
RS
17032004-08-24 Richard Sandiford <rsandifo@redhat.com>
1704
1705 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
1706 of internal patterns.
1707 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
1708 Redefine using :P.
1709 (tablejump): Use expand_binop to calculate address. Adjust names
1710 of internal patterns.
1711 (tablejump[sd]i): Renamed from tablejump_internal[12].
1712 Redefine using :P.
1713 (tablejump_mips16[12]): Delete.
1714
a0160289
RS
17152004-08-24 Richard Sandiford <rsandifo@redhat.com>
1716
1717 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
1718 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
1719 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
1720 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
1721 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
1722
2c4402f4
RS
17232004-08-24 Richard Sandiford <rsandifo@redhat.com>
1724
1725 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
1726 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
1727 using :GPR.
1728 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
1729 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
1730 (*branch_equality[sd]i_inverted): Likewise
1731 branch_equality{,_di}_inverted.
1732 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
1733 Redefine using :GPR.
1734
b5c2f1d1
ZW
17352004-08-24 Zack Weinberg <zack@codesourcery.com>
1736
1737 * rtl.def: Reorganize, placing all codes used only in machine
1738 descriptions at the end.
1739
9e995780
ZW
1740 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
1741 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
1742 rtx_name, rtx_format arrays by direct reference to rtl.def,
1743 first undefining GENERATOR_FILE. Define enum insn_note and
1744 note_insn_name array by direct reference to insn-notes.def.
1745 (adjust_field_rtx_def): Remove local definition of rtx_name.
1746 Use symbolic names for insn notes.
1747 * Makefile.in (gengtype.o): Update dependencies.
1748
076c7ab8
ZW
17492004-08-24 Zack Weinberg <zack@codesourcery.com>
1750
1751 * basic-block.h (struct basic_block_def): Reorder fields to
1752 eliminate interior padding. Remove 'partition' field.
1753 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
1754 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
1755 (BB_COPY_PARTITION): New macros.
1756 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
1757 Replace all references to the 'partition' field of a basic
1758 block with new macros.
1759
1760 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
1761 * final.c (final_scan_insn): Don't handle it.
1762 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
1763 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
1764 * sched-rgn.c (sched_is_disabled_for_current_region_p):
1765 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
1766
8c1d6d62
NS
17672004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1768
1769 * c-decl.c (c_init_decl_processing): Adjust
1770 build_common_tree_nodes call.
1771 * expmed.c (const_mult_add_overflow_p): Use
1772 build_distinct_type_copy.
1773 * stor-layout.c (early_type_list): Remove.
1774 (layout_type): Don't append to early_type_list.
1775 (initialize_sizetypes): Add signed_p argument.
1776 (set_sizetype): Overwrite the stub type nodes directly.
1777 * tree.c (copy_node_stat): Clear a type's value cache here ...
1778 (build_distinct_type): ... not here.
1779 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
1780 * tree.h (initialize_sizetypes): Add signed_p argument.
1781 (build_common_tree_nodes): Likewise.
1782
1783 * objc/objc-act.c (get_static_reference): Use
1784 build_variant_type_copy.
1785 (get_protocol_reference): Likewise.
1786 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
1787
97dc04b3 17882004-08-24 Richard Henderson <rth@redhat.com>
076c7ab8 1789 Andrew Pinski <apinski@apple.com>
97dc04b3
RH
1790
1791 * gimplify.c (gimplify_array_ref_to_plus): Delete.
1792 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
1793 for ARRAY_REF.
1794
1795 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
1796 ARRAY_REF also to get to the STRING_CST.
1797
72cdc543
PB
17982004-08-24 Paul Brook <paul@codesourcery.com>
1799
1800 * config/arm/arm.c (arm_override_options): Update error message.
1801 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
1802 TARGET_HARD_FLOAT_ABI.
1803 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
1804 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
1805
bd5ca07e
NC
18062004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1807
1808 PR target/17093
1809 * config/m32r.md (movsi_sda): Add SI mode specification to
1810 UNSPEC.
1811
18122004-08-24 Nick Clifton <nickc@redhat.com>
1813
1814 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
1815 of seth_add3_operand.
1816
d46cd2be
NS
18172004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1818
1819 * Makefile.in (PROTO_OBJS): Add errors.o.
1820 * protoize.c (fancy_abort): Remove.
1821 * mips-tfile.c (fancy_abort): Add parameters.
1822
748fa294
JW
18232004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
1824
1825 * doc/trouble.texi (C++ misunderstandings): Fix example code.
1826
4505f099
AT
18272004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
1828
1829 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
1830 (host-default.o): Add dependency on HOOKS_H.
1831 * config/x-linux: Likewise.
1832 * config/x-solaris: Likewise.
1833 * config/i386/x-mingw32: Likewise.
1834 * config/rs6000/x-darwin: Likewise.
1835
a2fe1975
JW
18362004-08-23 James E Wilson <wilson@specifixinc.com>
1837
1838 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
1839 DEF_REG_NOTE.
1840
c3f216e2
MM
18412004-08-23 Mark Mitchell <mark@codesourcery.com>
1842
1843 PR c/14492
1844 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
1845
2e6ae27f
DN
18462004-08-23 Diego Novillo <dnovillo@redhat.com>
1847
1848 * cfg.c (check_bb_profile): Fix typos.
1849 * function.c (assign_parm_is_stack_parm): Likewise.
1850 * tree-nested.c: Likewise.
1851
d685c974
DJ
18522004-08-23 Daniel Jacobowitz <dan@debian.org>
1853
1854 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
1855 Remove TYPECODE.
1856 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
1857
f676971a
EC
18582004-08-23 Eric Christopher <echristo@redhat.com>
1859
1860 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
1861 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
1862 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
1863 * target.h: Ditto.
1864 * hooks.h: Include machmode.h.
1865 (hook_bool_mode_false): Declare.
1866 * hooks.c (hook_bool_mode_false): Define.
1867 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
1868 * stor-layout.c (layout_type): Ditto.
1869 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
1870 Define to target macro.
1871 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
1872 * config/arm/arm.c: Ditto. Use.
1873 * config/arm/arm.h: Ditto.
1874 * config/arm/arm-protos.h: Ditto.
1875 * config/i386/i386.c: Ditto.
1876 * config/i386/i386.h: Ditto.
1877 * config/rs6000/rs6000.c: Ditto.
1878 * config/rs6000/rs6000.h: Ditto.
1879 * config/sh/sh.c: Ditto.
1880 * config/sh/sh.h: Ditto.
1881 * config/sh/sh-protos.h: Ditto.
1882 * config/sh/sh.md: Use.
1883 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
1884 to TARGET_VECTOR_MODE_SUPPORTED_P.
1885
8dd16ecc
NS
18862004-08-23 Nathan Sidwell <nathan@codesourcery.com>
1887
b3d1f5b4
NS
1888 * Makefile.in (BUILD_ERRORS): Set to build-errors.
1889 (errors.o): New target for host.
1890 (build-errors.o): New target for build.
1891 (genobjs): Replace errors.o with build-errors.
1892 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
1893 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
1894 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
1895 (fix-header.o): Add errors.h
1896 * collect2.c (fancy_abort): Add parameters.
1897 * collect2.h (fancy_abort): Don't declare.
1898 * errors.h (fancy_abort): Don't declare.
1899 * errors.c: Include either bconfig.h or config.h.
1900 (fancy_abort): Trim filename.
1901 * fix-header.c (v_fatal, fatal): Remove.
1902 (progname): Remove definition.
1903 (main): Set progname here.
1904 * gcc.c (fancy_abort): Add parameters.
1905 * gcc.h (fancy_abort): Remove declaration.
1906 * gcov.c (fancy_abort): Remove.
1907 * rtl.h (fancy_abort): Don't declare.
1908 (abort): Don't define.
1909 * tree.h (fancy_abort): Don't declare.
1910 (abort): Don't define.
1911 * system.h (fancy_abort): Declare.
1912 (abort): Define to fancy_abort.
1913 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
1914
be88a628
NS
1915 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
1916 (usize_type, ubitsizetype): Remove.
1917 * stor-layout.c (set_sizetype): Don't initialize usizetype,
1918 ubitsizetype.
1919 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
1920
8dd16ecc
NS
1921 * tree.h (build_distinct_type_copy): New.
1922 (build_type_copy): ... here. Rename to ...
1923 (build_variant_type_copy): ... here.
1924 * tree.c (build_qualified_type): Rename build_type_copy call.
1925 (build_distinct_type_copy): New, broken out of ...
1926 (build_type_copy): ... here. Rename to ...
1927 (build_variant_type_copy): ... here. Use
1928 build_distinct_type_copy.
1929 (build_common_tree_nodes_2): Rename build_type_copy call.
1930 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
1931 call.
1932 (handle_packed_attribute, handle_unused_attribute,
1933 handle_transparanet_union_attribute, handle_aligned_attribute,
1934 handle_deprecated_attribute): Likewise.
1935 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
1936 Likewise.
1937 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
1938 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
1939 build_distinct_type_copy.
1940
e8bf0f3b
RS
19412004-08-23 Richard Sandiford <rsandifo@redhat.com>
1942
1943 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
1944 attribute.
1945
4d06ed0a
RS
19462004-08-23 Richard Sandiford <rsandifo@redhat.com>
1947
1948 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
1949 loads and stores.
1950 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
1951 formerly unnamed patterns. Redefine using :P for the address. Remove
1952 explicit length attributes.
1953
a3631d97
ZD
19542004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1955
1956 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
1957 New functions.
1958 (single_reachable_address): Use them.
1959 (schedule_sm): Add dump.
1960 (is_call_clobbered_ref): New function.
1961 (determine_lsm_reg): Check whether the reference is call clobbered.
1962 Only work for gimple_reg_type values.
1963
b1f58428
RS
19642004-08-23 Richard Sandiford <rsandifo@redhat.com>
1965
1966 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
1967 $31 store insns. Redefine using :GPR.
1968
237b301e
RS
19692004-08-23 Richard Sandiford <rsandifo@redhat.com>
1970
1971 * config/mips/mips.md (P): New mode macro.
1972 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
1973 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
1974 Add mode attributes.
1975
c9081a92
RS
19762004-08-23 Richard Sandiford <rsandifo@redhat.com>
1977
1978 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
1979 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
1980 later constants to cover the gap.
1981 (load, store): New mode attributes.
1982 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
1983 Use new unspec constants.
1984
3d1f285d
RS
19852004-08-23 Richard Sandiford <rsandifo@redhat.com>
1986
1987 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
1988 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
1989 to use register_operand rather than uns_arith_operand as the predicate
1990 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
1991 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
1992 Redefine using :GPR. Make same predicate change here. Extend the
1993 commutativity of operands 1 and 2 from the SImode version to the
1994 DImode one.
1995 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
1996 but with no predicate changes.
1997 (*nor[sd]i3): Redefine using :GPR.
1998
c0e1b12f
ZD
19992004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2000
2001 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
2002 noreturn functions.
2003
400a9325
RS
20042004-08-23 Richard Sandiford <rsandifo@redhat.com>
2005
2006 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
2007 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
2008 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
2009 rather than "%z2" (with a fake const0_rtx for operand 2).
2010 (ffs[sd]i2): Redefine using :GPR.
2011 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
2012
2222da3a
RS
20132004-08-23 Richard Sandiford <rsandifo@redhat.com>
2014
2015 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
2016
15ac4ccf
RS
20172004-08-23 Richard Sandiford <rsandifo@redhat.com>
2018
2019 * config/mips/mips.md (any_extend): New code macro.
2020 (u, su): New code attributes.
2021 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
2022 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
2023 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
2024 (*{s,u}mul_acc_di): Redefine using any_extend.
2025 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
2026 to reflect real insn names.
2027 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
2028 with an any_extend template.
2029 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
2030 Add '*' to name.
2031
d46c971d
RS
20322004-08-23 Richard Sandiford <rsandifo@redhat.com>
2033
2034 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
2035 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
2036 (mul[sd]i3_r4000): Redefine using :GPR.
2037 (mulsi3_mult3): Don't check TARGET_MAD separately.
2038 (muldi3_mult3): Moved after mulsi_mult3.
2039
5811cb27
RS
20402004-08-23 Richard Sandiford <rsandifo@redhat.com>
2041
2042 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
2043 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
2044 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
2045 (TARGET_GAS, TARGET_MIPS_AS): Delete.
2046 (TARGET_GPWORD): Define to true for n32 on IRIX.
2047 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
2048 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
2049 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
2050 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
2051 (MDEBUG_ASM_SPEC): Delete, folding into...
2052 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
2053 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
2054 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
2055 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
2056 to define asm_abi_default_spec.
2057 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
2058 (TARGET_ASM_SELECT_SECTION): Delete.
2059 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
2060 for non-mips16 code, removing previous workaround for SGI assemblers.
2061 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
2062 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
2063 (override_options): Remove !TARGET_GAS and !have_named_sections code.
2064 (print_operand): Fold TARGET_GAS conditionals into asm strings.
2065 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
2066 ASM_STABS_OP and ASM_STABN_OP.
2067 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
2068 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
2069 (mips_output_function_prologue): Remove !TARGET_GAS code.
2070 (mips_select_rtx_section): Remove !have_named_sections code.
2071 (mips_select_section): Delete.
2072 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
2073 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
2074 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
2075 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
2076 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
2077 * config/mips/windiss.h (ASM_SPEC): Likewise.
2078
032e8348
RS
20792004-08-23 Richard Sandiford <rsandifo@redhat.com>
2080
2081 * read-rtl.c (map_value, mapping, macro_group): New structures.
2082 (BELLWETHER_CODE): New macro.
2083 (modes, codes, bellwether_codes): New variables.
2084 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
2085 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
2086 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
2087 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
2088 (add_map_value, initialize_macros): New functions.
2089 (def_hash, def_hash_eq_p): Generalize to anything that points to,
2090 or starts with, a char * field.
2091 (find_macro, read_mapping, check_code_macro): New functions.
2092 (read_rtx_1): New, split out from read_rtx. Handle the new
2093 define_{mode,code}_{macro,attr} constructs. Use find_macro
2094 to parse the name of a code or mode. Use BELLWETHER_CODE to
2095 extract the format and to choose a suitable code for rtx_alloc.
2096 Modify recursive invocations to use read_rtx_1.
2097 (read_rtx): Call initialize_macros. Apply code and mode macros
2098 to the rtx returned by read_rtx_1. Cache everything after the
2099 first macro expansion for subsequent read_rtx calls.
2100 * doc/md.texi: Document new .md constructs.
2101 * config/mips/mips.md (GPR): New mode macro.
2102 (d, si8_di5): New mode attributes.
2103 (any_cond): New code macro.
2104 (add[sd]i3): Redefine using :GPR.
2105 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
2106 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
2107 previously unnamed MIPS16 patterns.
2108 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
2109 lines. Don't match (plus (const_int 0) ...).
2110 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
2111 Use a define_split to generate the addition.
2112 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
2113 (subsi3_internal): Delete.
2114 (*subsi3_extended): Renamed from subsi3_internal_2.
2115 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
2116 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
2117 using an any_cond template.
2118
ecce923e
RS
21192004-08-23 Richard Sandiford <rsandifo@redhat.com>
2120
2121 * read-rtl.c (read_rtx): Tidy use of format_ptr.
2122
a269d6c8
RS
21232004-08-23 Richard Sandiford <rsandifo@redhat.com>
2124
2125 * read-rtl.c (string_obstack): New file-scope variable.
2126 (read_string, read_quoted_string, read_braced_string)
2127 (read_escape): Remove obstack parameter and use string_obstack instead.
2128 (read_rtx): Remove function-local rtl_obstack and initialize
2129 string_obstack instead. Update call to read_string.
2130
9fc3b39a
AP
21312004-08-22 Andrew Pinski <apinski@apple.com>
2132
2133 PR c/15262
2134 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
2135 expression is not constant.
2136 (c_finish_return): Do not go through INDIRECT_REF when looking
2137 for the inner expression of an ADDR_EXPR for warning about.
2138
cea49550
RH
21392004-08-22 Richard Henderson <rth@redhat.com>
2140
2141 PR 17075
2142 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
2143 create new blocks and fall through.
2144 (expand_gimple_basic_block): Update to match.
2145
0b540f12
UW
21462004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2147
2148 * reload.c (find_reloads_address): Make return value tri-state.
2149 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
2150 (find_reloads): Assume that reloaded addresses match 'o' or
2151 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
2152 returned 1 (not -1). Omit optional reloads for address operands
2153 only if find_reloads_address returned 1 (not -1).
2154
2155 * config/s390/s390.c (legitimize_reload_address): New function.
2156 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
2157 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
2158 legitimize_reload_address.
2159
7f5e6307
RH
21602004-08-22 Richard Hendersion <rth@redhat.com>
2161
2162 * tree.h (SAVE_EXPR_RESOLVED_P): New.
2163 * gimplify.c (gimplify_save_expr): Use it.
2164 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
2165 on the temporary variable.
2166
efd610a6
AP
21672004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
2168
2169 * fold-const.c (rtl_expr_nonnegative_p): Delete.
2170 * tree.h (rtl_expr_nonnegative_p): Remove.
2171
324a6c95
SB
21722004-08-22 Steven Bosscher <stevenb@suse.de>
2173
2174 * config/i386/ppro.md (ppro_complex_insn): Add missing check
2175 for cpu==pentiumpro.
2176
2177 * combine.c (struct reg_stat): Fix comment typo.
2178
41db8425
JM
21792004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
2180
2181 * c-tree.h (c_sizeof_nowarn): Remove.
2182
00325bce
JM
21832004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
2184
2185 * c-decl.c (set_array_declarator_type): Rename to
2186 set_array_declarator_inner.
2187 (build_c_parm, build_attrs_declarator, build_function_declarator):
2188 New functions.
2189 (make_pointer_declarator): Call build_attrs_declarator.
2190 * c-tree.h (set_array_declarator_type): Rename to
2191 set_array_declarator_inner.
2192 (build_c_parm, build_attrs_declarator, build_function_declarator):
2193 New prototypes.
2194 * c-parse.in (after_type_declarator,
2195 parm_declarator_starttypename, parm_declarator_nostarttypename,
2196 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
2197 firstparm): Use these functions
2198
60919bce
JM
21992004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
2200
2201 * c-decl.c (build_array_declarator, set_array_declarator_type,
2202 start_decl, grokdeclarator, grokparms): Change boolean parameters
2203 to type bool.
2204 * c-tree.h (build_array_declarator, set_array_declarator_type,
2205 start_decl): Update prototypes.
2206 * c-decl.c, c-parse.in: All callers changed.
2207
bdfd0ed4
MS
22082004-08-21 Mike Stump <mrs@apple.com>
2209
2210 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
2211 (darwin_fix_and_continue): Likewise.
2212 (darwin_fix_and_continue_switch): Likewise.
2213 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
2214 (darwin_fix_and_continue): Likewise.
2215 (darwin_fix_and_continue_switch): Likewise.
2216
35da8b56 22172004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
23d34220
DS
2218
2219 PR c++/16030
2220 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
2221 Remove, merging into ...
2222 (gen_stdcall_or_fastcall_suffix): New function, returning tree
2223 rather than const char*, and accepting additional parameter.
2224 Don't add suffix to '*'-prefixed symbols or variadic functions.
2225 (i386_pe_encode_section_info): Adjust for call to new function.
2226 Call change_decl_assembler_name.
2227
828a4fe4
MS
22282004-08-20 Mike Stump <mrs@apple.com>
2229
2230 * config/darwin.c (machopic_indirect_data_reference): Mark
2231 stubs as defined.
2232 * config/386/386.c (darwin_local_data_pic): Add.
2233 (legitimate_constant_p): Reorder so that PLUS handling runs
2234 before darwin_local_data_pic to match the ordering in
2235 legitimate_pic_address_disp_p and so that MINUS runs after
2236 darwin_local_data_pic as otherwise the darwin_local_data_pic
2237 logic can be skipped, which would be very bad.
2238 (legitimate_pic_address_disp_p): Move from from here to
2239 darwin_local_data_pic so it can be reused.
2240
85b776df
AM
22412004-08-21 Alan Modra <amodra@bigpond.net.au>
2242
2243 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
2244 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
2245 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
2246 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
2247 (RS6000_ABI_NAME): Define as "linux".
2248 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
2249 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
2250 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
2251 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
2252 * config/rs6000/rs6000.c (dot_symbols): New global var.
2253 (rs6000_output_function_entry): New function, modified for
2254 !DOT_SYMBOLS..
2255 (print_operand <case 'z'>): ..extracted from here.
2256 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
2257 (rs6000_output_function_epilogue): Likewise.
2258 (rs6000_elf_declare_function_name): Likewise.
2259 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
2260 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
2261 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
2262 * configure: Regenerate.
2263 * config.in: Regenerate.
2264
14d3dc34
MM
22652004-08-20 Mark Mitchell <mark@codesourcery.com>
2266
0e544c37
MM
2267 * reload.c (find_reloads_address): Fix thinko in previous change.
2268
14d3dc34
MM
2269 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
2270 a CONST_INT.
2271
f3b2657c
JJ
22722004-08-20 Jakub Jelinek <jakub@redhat.com>
2273
2274 PR rtl-optimization/17099
2275 * combine.c (force_to_mode): Check if inner_mask has any bits set
2276 outside of GET_MODE (x) instead of op_mode.
2277
d2294baa
MM
22782004-08-20 Mark Mitchell <mark@codesourcery.com>
2279
2280 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
2281 fragment.
2282 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
2283 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
2284 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
2285 architecture.
2286 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
2287 configurations.
2288 * config/arm/t-symbian: New file.
2289
753d0efa
AP
22902004-08-20 Andrew Pinski <apinski@apple.com>
2291
2292 * regrename.c (kill_value_regno): ANSIfy.
2293
627b6fe2
DJ
22942004-08-20 Dale Johannesen <dalej@apple.com>
2295
324a6c95 2296 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
627b6fe2 2297
d64d5e80
DJ
22982004-08-20 Daniel Jacobowitz <dan@debian.org>
2299
2300 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
2301 (kill_value_regno): New function, derived from kill_value.
2302 (kill_value): Update.
2303 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
2304
af75a7ea 23052004-08-20 Daniel Berlin <dberlin@dberlin.org>
f676971a 2306
af75a7ea
DB
2307 Fix PR tree-optimization/17111
2308 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
2309 of non-value_handles.
2310 (bitmap_set_contains): All constants are in every set.
2311
0a936b12
NS
23122004-08-20 Nathan Sidwell <nathan@codesourcery.com>
2313
2314 * fold-const.c (round_up, round_down): Use build_int_cst.
2315 Optimize common case.
2316
774acadf
ZW
23172004-08-20 Zack Weinberg <zack@codesourcery.com>
2318 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2319
324a6c95 2320 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
774acadf
ZW
2321 one_only_data_section): Rename to som_readonly_data_section,
2322 som_one_only_readonly_data_section and som_one_only_data_section.
324a6c95 2323 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
0a936b12
NS
2324 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
2325 conditional defines.
774acadf
ZW
2326 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
2327 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
2328 string values.
2329 (pa_select_section): Use renamed section functions.
2330 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
324a6c95 2331 SOM_READONLY_DATA_SECTION_FUNCTION,
774acadf 2332 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
324a6c95
SB
2333 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
2334 Define here ...
2335 * config/pa/som.h: ... not here.
2336 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
774acadf
ZW
2337 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
2338 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
324a6c95
SB
2339 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
2340 (READONLY_DATA_SECTION): Use som_readonly_data_section.
774acadf 2341
3224bead
NS
23422004-08-20 Nathan Sidwell <nathan@codesourcery.com>
2343
fabead06
NS
2344 * fold-const.c (int_const_binop): Don't generate non-overflowing
2345 size-types specially.
2346 (fold_convert_const): Likewise.
2347
3224bead
NS
2348 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
2349 clear cache on copied sizetype.
2350
fb38008e
BE
23512004-08-20 Ben Elliston <bje@au.ibm.com>
2352
2353 * configure.ac: Don't escape apostrophe in --enable-coverage help.
2354 * configure: Regenerate.
2355
a9024779
DS
23562004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
2357
2358 PR 5620
2359 * gcc.c (struct stat input_stat): Don't define if
2360 HOST_LACKS_INODE_NUMBERS
2361 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
2362 than stat to determine if temp file is same as input file.
2363 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
2364 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
2365
82563d35
RS
23662004-08-20 Richard Sandiford <rsandifo@redhat.com>
2367
2368 * configure.ac (mips*-*-*): Print an error if not using GAS.
2369 * configure: Regenerated.
2370 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
2371 comments about buggy MIPSpro assemblers.
2372 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
2373 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
2374 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
2375 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
2376 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
2377 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
2378 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
2379 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
2380 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
2381 of more general IRIX 6 definitions.
2382 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
2383 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
2384 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
2385 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
2386 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
2387 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
2388 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
2389 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
2390 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
2391 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
2392 (LINK_SPEC): Move most of definition to iris.h.
2393 (SUBTARGET_LINK_SPEC): New macro.
2394 (IRIX_STARTFILE_SPEC): Fold into...
2395 (STARTFILE_SPEC): ...here.
2396 (IRIX_ENDFILE_SPEC): Fold into...
2397 (ENDFILE_SPEC): ...here.
2398 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
2399 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
2400 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
2401 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
2402 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
2403 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
2404 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
2405 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
2406 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
2407 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
2408 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
2409 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
2410 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
2411 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
2412 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
2413 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
2414 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
2415 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
2416 (TARGET_IRIX6): Define to 1.
2417 (DRIVER_SELF_SPECS): Define.
2418 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
2419 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
2420 (SUBTARGET_LINK_SPEC): New macro.
2421 (IRIX_STARTFILE_SPEC): Fold into...
2422 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
2423 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
2424 (LIB_SPEC, LIBGCC_SPEC): Use them.
2425 (LIB_SPEC): Remove !mabi=* case.
2426 (IRIX_ENDFILE_SPEC): Fold into...
2427 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
2428 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
2429 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
2430 (TARGET_IRIX6): New macro.
2431 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
2432 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
2433 (LABEL_AFTER_LOC): Delete.
2434 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
2435 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
2436 (mips_build_builtin_va_list): Check TARGET_IRIX6.
2437 (override_options): Remove TARGET_SGI_O32_AS-related code.
2438 (irix_output_external_libcall): Make static.
2439 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
2440 LABEL_AFTER_LOC.
2441 (mips_file_start): Tidy guard for ABI sections. Remove use of
2442 ABICALLS_ASM_OP; use .abicalls instead.
2443 (mips_output_aligned_decl_common, mips_declare_object_name)
2444 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
2445 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
2446 .globl foo .text directives.
2447 (irix_asm_named_section_1, irix_asm_named_section)
2448 (irix_section_align_entry, irix_section_align_htab)
2449 (irix_orig_asm_out_file, irix_section_align_entry_eq)
2450 (irix_section_align_entry_hash, irix_asm_output_align)
2451 (irix_file_start, irix_section_align_1, copy_file_data)
2452 (irix_file_end, irix_section_type_flags): Delete.
2453 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
2454 Use standard section syntax. Remove protective "jr $31".
2455 (__gcc_fini): Likewise .gcc_fini.
2456 * config/mips/irix-crtn.asm: Adjust sections accordingly.
2457 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
2458 iris5gas.h.
2459 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
2460 from t-irix-gld.
2461 (EXTRA_MULTILIB_PARTS): Define.
2462 * config/mips/t-iris6: Remove bogus comment.
2463 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
2464 * config/mips/iris5gas.h, config/mips/iris5gld.h,
2465 config/mips/iris6gas.h, config/mips/iris6gld.h,
2466 config/mips/t-iris5-as, config/mips/t-iris5-gas
2467 config/mips/t-irix-gld: Delete.
2468 * config/mips/iris.h: New file.
2469 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
2470
c4cdb8e1
RE
24712004-08-20 Richard Earnshaw <rearnsha@arm.com>
2472
2473 * postreload.c (reload_cse_move2add): Allow any condjump, but check
2474 that the implicit set isn't clobbered in the jump insn.
2475
d55ab31d
MM
24762004-08-19 Mark Mitchell <mark@codesourcery.com>
2477
2478 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
2479 * optabs.c (init_optabs): Don't check it.
2480 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
2481 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
2482
d75f90f1
AK
24832004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
2484
2485 * config/s390/s390.md (s390_warn_framesize_string)
2486 (s390_warn_dynamic_string, s390_stack_size_string)
2487 (s390_stack_guard_string): New global string variables.
2488 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
2489 (s390_stack_guard): New global variables.
2490 (override_options): Added checks for the new options.
2491 (s390_emit_prologue): Emit stack check and trap code and perform
2492 compile time stack size checking.
f676971a
EC
2493
2494 * config/s390/s390.h (TARGET_OPTIONS): Added new options
d75f90f1
AK
2495 "warn-framesize", "warn-dynamicstack", "stack-size" and
2496 "stack-guard".
2497
2498 * doc/invoke.texi: Added documentation for the new options.
2499
ca29916b
UW
25002004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
2501
2502 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
2503 to eliminate warning.
2504 (linear_search_fdes): Declare p as unsigned.
2505 (binary_search_mixed_encoding_fdes): Likewise.
2506 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
2507 to eliminate warning.
2508 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
2509 type cast.
2510
e1d5ee28
UW
25112004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
2512
2513 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
2514 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
2515 instead of one. Check for strictly legitimate address.
2516 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
2517 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
2518
19114537
EC
25192004-08-19 Eric Christopher <echristo@redhat.com>
2520
2521 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
2522 * langhooks.h (unsave_expr_now): Ditto.
2523 * tree.h (unsave_expr_1): Remove prototype.
2524 (lhd_unsave_expr_now): Rename to unsave_expr_now.
2525 * tree-inline.c (unsave_expr_1): Move here
2526 from tree.c. Make static.
2527 (unsave_expr_now): Rename from lhd_unsave_expr_now.
2528 * tree-sra.c: Fix up for rename.
2529 * tree-ssa-copy.c: Ditto.
2530 * tree-eh.c: Ditto.
2531 * tree.c (unsave_expr_1): Move to tree-inline.c.
2532
d5bfecf2
CT
25332004-08-19 Caroline Tice <ctice@apple.com>
2534
324a6c95
SB
2535 * config/i386/cygming.h (switch_to_section): Fix typo (change
2536 in_unlikely_text_section to in_unlikely_executed_text).
19114537 2537
58152808
DB
25382004-08-19 Daniel Berlin <dberlin@dberlin.org>
2539
2540 * vec.h (VEC_lower_bound): New macro.
19114537 2541
ae043003
RS
25422004-08-19 Richard Sandiford <rsandifo@redhat.com>
2543
2544 PR target/16446
2545 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
2546 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
2547 treat each ABI separately. Deal with n32/n64 complex float arguments.
2548 (function_arg): Add associated complex handling here.
2549
50ed9cea
RH
25502004-08-19 Richard Henderson <rth@redhat.com>
2551
2552 * config/arm/arm.c (arm_gen_load_multiple): Use
2553 adjust_automodify_address. Take base memory and offset instead
2554 of unchanging/struct/scalar bits.
2555 (arm_gen_store_multiple): Likewise.
2556 (arm_gen_movmemqi): Use adjust_automodify_address.
2557 * config/arm/arm-protos.h: Update decls.
2558 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
2559 (store_multiple): Similarly.
2560
74ae207d
R
25612004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
2562
2563 * regclass.c (globalize_reg): Update call_really_used_regs.
2564
89b0433e
NS
25652004-08-19 Nathan Sidwell <nathan@codesourcery.com>
2566
31ebd7c8
NS
2567 * doc/invoke.texi (integer-share-limit): Document.
2568
89b0433e
NS
2569 * tree.h (TYPE_CACHED_VALUES_P): New.
2570 (TYPE_CACHED_VALUES): New.
2571 (TYPE_ORIG_SIZE_TYPE): Adjust.
2572 * tree.def (INTEGER_CST): Update documentation.
2573 * tree.c: Inlcude params.h.
2574 (build_int_cst): Cache small values.
2575 (build_type_copy): Do not copy the value cache.
2576 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
2577 unneeded zeroing.
2578 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
2579 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
2580 cache.
2581 * fold-const.c (force_fit_type): Copy value when setting
2582 overflows.
2583 (int_const_binop): Likewise.
2584 * stor-layout.c: Include params.h
2585 (set_sizetype): Create values cache.
2586 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
2587 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
2588 * params.h (INTEGER_SHARE_LIMIT): New.
2589 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
19114537 2590
c2504783
PB
25912004-08-19 Paolo Bonzini <bonzini@gnu.org>
2592
2593 * gimplify.c (gimplify_minimax_expr): Remove.
2594 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
2595
7a8554ce
DN
25962004-08-19 Dorit Naishlos <dorit@il.ibm.com>
2597
19114537 2598 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
7a8554ce
DN
2599 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
2600
1905f33d
MM
26012004-08-19 Mark Mitchell <mark@codesourcery.com>
2602
2603 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
2604
f1732751
AP
26052004-08-18 Andrew Pinski <apinski@apple.com>
2606
2607 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
2608
8c78a388
MM
26092004-08-18 Mark Mitchell <mark@codesourcery.com>
2610
2611 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
2612 (__aeabi_ul2f): Likewise.
2613
7eda7cda
RH
26142004-08-18 Richard Henderson <rth@redhat.com>
2615
2616 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
2617 move to rtl completely.
2618 (struct meminsnbuf, xtensa_emit_block_move): Remove.
2619 (xtensa_find_mode_for_size): Remove.
2620 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
2621 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
2622
88042663
RH
26232004-08-18 Richard Henderson <rth@redhat.com>
2624
2625 * config/mcore/mcore.c (mode_from_align): Remove DImode.
2626 (block_move_sequence): Rewrite to use adjust_address.
2627 (mcore_expand_block_move): Cleanup logic. Accept only operands.
2628 Return boolean indicating success/failure.
2629 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
2630 * config/mcore/mcore.md (movmemsi): Update to match.
2631
699c914a
MS
26322004-08-18 Mike Stump <mrs@apple.com>
2633
2634 * doc/invoke.texi (-mfix-and-continue): Add support for
2635 fast turn around debugging.
2636 (-ffix-and-continue): Likewise.
2637 (-mindirect-data): Likewise.
2638 (-findirect-data): Likewise.
2639 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
2640 (indirect_data): Likewise.
2641 (machopic_data_defined_p): Likewise.
2642 (machopic_output_indirection): Likewise.
2643 (darwin_encode_section_info): Likewise.
2644 (darwin_fix_and_continue): Likewise.
2645 (darwin_fix_and_continue_switch): Likewise.
2646 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
2647 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2648 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
2649 (SUBTARGET_OPTIONS): Likewise.
2650 (darwin_fix_and_continue): Likewise.
2651 (darwin_fix_and_continue_switch): Likewise.
2652 (TARGET_FIX_AND_CONTINUE): Likewise.
2653 * config/rs6000.c (rs6000_emit_prologue): Likewise.
2654
26552004-08-19 Steven Bosscher <stevenb@suse.de>
bd454efd
SB
2656
2657 * basic-block.h (struct edge_def): Remove crossing_edge.
2658 (EDGE_CROSSING): New define.
2659 (EDGE_ALL_FLAGS): Update.
2660 * bb-reorder.c (find_traces_1_round, better_edge_p,
2661 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
2662 find_jump_block, fix_crossing_conditional_branches,
2663 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
2664 Replace all occurences of crossing_edge with an edge flag check
2665 or set/reset.
2666 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2667 try_crossjump_bb): Likewise.
2668 * cfglayout.c (fixup_reorder_chain): Likewise.
2669 * cfgrtl.c (force_nonfallthru_and_redirect,
2670 commit_one_edge_insertion): Likewise.
2671
2672 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
2673 * tree-flow.h (compute_dominance_frontiers): Move prototype...
2674 * basic-block.h: ...here.
2675 * tree-cfg.c (compute_dominance_frontiers_1,
2676 compute_dominance_frontiers): Move from here...
2677 * cfganal.c: ...to here. Include timevar.h.
2678
9ff6992e
JW
26792004-08-18 James E Wilson <wilson@specifixinc.com>
2680
c831f54b 2681 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
a1627d80
JW
2682 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
2683
9ff6992e
JW
2684 * config/mips/mips.md (type): Add frdiv.
2685 (divsf3+1, divsf3+2): Change type to frdiv.
2686 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
2687 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
19114537 2688
9ff6992e
JW
2689 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
2690 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
2691 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
2692 * config/mips/5000.md (r5k_fdiv_single): Likewise.
2693 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
2694 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
2695 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
2696 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
2697 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
2698 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
2699 Likewise.
2700 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
2701
c16eb900
RB
27022004-08-18 Robert Bowdidge <bowdidge@apple.com>
2703
2704 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
324a6c95 2705 get regression tester working again.
c16eb900 2706
826c9564
ZW
27072004-08-18 Zack Weinberg <zack@codesourcery.com>
2708
2709 * insn-notes.def, reg-notes.def: New files.
2710 * rtl.h: Use them to define enum insn_note and enum reg_note.
2711 * rtl.c: Use them to define note_insn_name and reg_note_name.
4b179e92 2712 * Makefile.in (RTL_BASE_H): Update.
826c9564
ZW
2713
2714 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
2715 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
2716
21b5653c
RE
27172004-08-18 Richard Earnshaw <rearnsha@arm.com>
2718
2719 * arm.c (arm_size_rtx_costs): New function.
2720 (arm_override_options): Use it if optimizing for space.
2721
542a8afa
RH
27222004-08-18 Richard Henderson <rth@redhat.com>
2723
2724 * emit-rtl.c (gen_const_mem): New.
2725 * rtl.h (gen_const_mem): Declare.
2726 * expr.c (do_tablejump): Use it.
2727 * varasm.c (force_const_mem): Likewise.
2728 * config/darwin.c (machopic_indirect_data_reference): Likewise.
2729 (machopic_legitimize_pic_address): Likewise.
2730 * config/arm/arm.c (legitimize_pic_address): Likewise.
2731 * config/i386/i386.c (legitimize_pic_address): Likewise.
2732 (legitimize_tls_address): Likewise.
2733 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
2734 * config/ia64/ia64.md (load_fptr): Likewise.
2735 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
2736 * config/pa/pa.c (legitimize_pic_address): Likewise.
2737 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
2738 (rs6000_emit_move): Likewise.
2739 * config/s390/s390.c (legitimize_pic_address): Likewise.
2740 (legitimize_tls_address): Likewise.
2741 * config/s390/s390.md (casesi): Likewise.
2742 * config/sh/sh.c (sh_reorg): Likewise.
2743 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
2744 * config/v850/v850.md (casesi): Likewise.
2745
2746 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
2747 * config/sh/sh.c (prepare_move_operands): Remove incorrect
2748 use of MEM_READONLY_P.
2749
0516f6fe
SB
27502004-08-18 Steven Bosscher <stevenb@suse.de>
2751
2752 * Makefile.in (OBJS-common): Add postreload-gcse.c.
2753 Add new postreload-gcse.o.
2754 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
2755 (lookup_as_function, insert, rehash_using_reg, use_related_value,
2756 equiv_constant): Use SAFE_HASH instead of safe_hash.
2757 (exp_equiv_p): Export. Add for_gcse argument when comparing
2758 for GCSE.
2759 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
2760 find_comparison_args, fold_rtx, cse_insn): Update callers.
2761 (hash_rtx): New function derived from old canon_hash and bits
2762 from gcse.c hash_expr_1.
2763 (canon_hash_string): Rename to hash_rtx_string.
2764 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
2765 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
2766 (cselib_lookup): Update this caller.
2767 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
2768 Make static.
2769 (hash_expr): Call hash_rtx.
2770 (ldst_entry): Likewise.
2771 (expr_equiv_p): Call exp_equiv_p.
2772 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
2773 reg_used_on_edge, reg_set_between_after_reload_p,
2774 reg_used_between_after_reload_p, get_avail_load_store_reg,
2775 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2776 get_bb_avail_insn, hash_scan_set_after_reload,
2777 compute_hash_table_after_reload,
2778 eliminate_partially_redundant_loads, gcse_after_reload,
2779 get_bb_avail_insn, gcse_after_reload_main): Remove.
2780 * postreload-gcse.c: New file, reincarnating most of the above.
2781 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
2782 (gcse_after_reload_main): Update prototype.
2783 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
2784 * passes.c (rest_of_handle_gcse2): Use it.
2785
95013377
DN
27862004-08-18 Diego Novillo <dnovillo@redhat.com>
2787
2788 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
2789 (pass_loop_done): Likewise.
2790
ac9e2cff
AP
27912004-08-18 Andrew Pinski <apinski@apple.com>
2792
826c9564 2793 * config/rs6000/darwin.md: Delete the altivec patterns which are
ac9e2cff
AP
2794 handled differently now.
2795 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
2796 (macho_correct_pic_di): Likewise.
2797 (call_indirect_nonlocal_darwin64): Likewise.
2798 Delete the save world/saveFP/saveVec patterns.
826c9564 2799
ac9e2cff 2800 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
826c9564
ZW
2801 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
2802 * config/rs6000/rs6000.md: Include darwin.md.
2803 (builtin_setjmp_receiver): Add DImode case.
2804 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
2805 Darwin bits.
ac9e2cff 2806
92b9a671
MA
28072004-08-18 Matt Austern <austern@apple.com>
2808
2809 Dead code stripping
2810 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
2811 * darwin.c (darwin_file_end): Mark file as potentially strippable.
826c9564 2812
4766261d
RH
28132004-08-18 Richard Henderson <rth@redhat.com>
2814
2815 * alias.c (readonly_fields_p): Remove.
2816 (objects_must_conflict_p): Don't call it.
2817 * tree.h (readonly_fields_p): Remove.
2818 * langhooks.h (struct lang_hooks): Remove honor_readonly.
2819 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
2820
50dc9a88
DN
28212004-08-18 Diego Novillo <dnovillo@redhat.com>
2822
2823 * tree-dfa.c (add_referenced_var): Only global variables are
2824 call-clobbered.
2825 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
2826 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
2827 all pointers dereferenced if the statement dereferences them.
2828 (create_name_tags): Do not create memory tags for pointers
2829 that have PT_ANYTHING set.
2830 Also check if PT_VARS is not empty before creating a name tag.
2831 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
2832 variables that share the same alias set with a pointer that
2833 may point anywhere.
2834 (add_may_alias): Add FIXME comment to remove clobbering
2835 aliased variables and tags.
2836 (replace_may_alias): Likewise.
2837 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
2838 (merge_pointed_to_info): If the original variable has not
2839 points-to information, call set_pt_anything.
2840 (add_pointed_to_var): Do not prevent adding a pointed-to
2841 variable if the pointers is PT_ANYTHING.
2842 If the variable is a global, set PT_GLOBAL_MEM.
2843 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
2844 pointer type only come in PTR+OFFSET flavours.
2845 Always call merge_pointed_to_info on PHI arguments that are
2846 SSA_NAMEs.
2847 (get_nmt_for): Mark call-clobbered tags whose pointer points
2848 to global memory.
2849 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
2850 values.
2851 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
2852 FLAGS.
2853 (add_stmt_operand): Abort if the caller tried to add a killing
2854 definition for a memory tag.
2855 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
2856 unnecessary checks.
2857
62164eb4
R
28582004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
2859
2860 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
2861 from call_used_regs. Update call_really_used_regs.
2862 (CALL_REALLY_USED_REGISTERS): Define.
2863 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
2864 Replace call_used_regs with call_really_used_regs.
2865 (calc_live_regs, sh_media_register_for_return): Likewise.
2866 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
2867 * sh.md (return_media): Likewise.
2868
f9b0ac3b
AP
28692004-08-18 Andrew Pinski <apinski@apple.com>
2870
826c9564 2871 * config/darwin.c (machopic_legitimize_pic_address): Only set
ac9e2cff 2872 MEM_READONLY_P in the non TARGET_TOC case.
f9b0ac3b 2873
f822d252
ZW
28742004-08-18 Zack Weinberg <zack@codesourcery.com>
2875
2876 * rtl.def (NIL): Delete.
2877 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
2878 Tighten the syntax a little.
2879
2880 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
2881 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
2882 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
2883 * config/i386/predicates.md, config/m32r/m32r.h
2884 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
2885 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
2886 * config/sparc/sparc.h, doc/tm.texi:
2887 Replace all occurrences of NIL with UNKNOWN.
2888
6aaf3dde
ZW
28892004-08-18 Zack Weinberg <zack@codesourcery.com>
2890
2891 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
2892 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
2893 sequence inline. Move drop_through_label code into this
2894 block, being the only place it is used. Adjust comments.
2895
d62294f5
FJ
28962004-08-18 Fariborz Jahanian <fjahanian@apple.com>
2897
6aaf3dde
ZW
2898 * config/rs6000/altivec.md: Add new patterns for calls to
2899 save_world/rest_world functions.
2900
2901 * config/rs6000/rs6000-protos.h: (save_world_operation,
2902 restore_world_operation) new declarations.
2903
2904 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
2905 field added.
2906 (rs6000_stack_info): Set world_save_p field.
2907 (save_world_operation): New function.
2908 (restore_world_operation): New function.
2909 (compute_save_world_info): New function.
2910 (rs6000_stack_info): Call compute_save_world_info.
2911 (rs6000_emit_prologue): Check for world_save_p and generate
2912 pattern to call save_world for saving all non-volatile and
2913 special registers.
2914 (rs6000_emit_epilogue): Check for world_save_p and generate
2915 pattern to call rest_world to restore saved registers.
2916
2917 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
2918 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
2919 (rs6000_reg_names): New entries added for save_world_operation and
2920 restore_world_operation.
d62294f5 2921
790ac0e1
CT
29222004-08-18 Caroline Tice <ctice@apple.com>
2923
6aaf3dde 2924 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
790ac0e1
CT
2925 "-freorder-blocks-and-partition" to the flags used in second
2926 stage of profiledbootstrap.
2927 * bb-reorder.c (push_to_next_round_p): Add new variable,
2928 next_round_is_last; set and use variable to make sure, when
2929 partitioning, that the last trace construction round consists
2930 of all (and only) cold basic blocks.
2931 (rotate_loop): Don't copy blocks that end in a section
2932 crossing jump.
2933 (copy_bb): Correctly initialize "partition" of duplicated bb.
2934 (add_unlikely_executed_notes): Add a comment.
2935 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
2936 to make sure, if function contains hot blocks, that the
2937 successors of ENTRY_BLOCK_PTR are hot; also, only look for
2938 crossing edges if the architecture supports named sections.
2939 (mark_bb_for_unlikely_executed_section): Modify to always
2940 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
2941 the basic block note insn.
2942 (fix_crossing_unconditional_branches): Remove extra space.
2943 (fix_edges_for_rarely_executed_code): Modify to only do
2944 partitioning work if the architecture supports named sections.
2945 (reorder_basic_blocks): Modify to only add
2946 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
2947 supports named sections.
2948 * c-common.c (handle_section_attribute): Initialize new global
2949 variable, user_defined_section_attribute, to true if user has
2950 specified one.
2951 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
2952 forward edges that cross section boundaries.
2953 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
2954 partitioning information if the architecture supports named
2955 sections.
2956 * cfgrtl.c (target.h): Add statement to include this.
2957 (rtl_split_block): Make sure newly created bb gets correct
2958 partition.
2959 (try_redirect_by_replacing_jump): Make sure redirection isn't
2960 attempting to cross section boundaries.
2961 (force_nonfallthru_and_redirect): Only do partition fix up if
2962 architecture supports named sections.
2963 (rtl_split_edge): Make sure newly created bb ends up in
2964 correct partition.
2965 (commit_one_edge_insertion): Remove code that incorrectly
2966 updated basic block partition; Make sure partition fix up only
2967 happens if architecture supports named sections and it's not
2968 already done.
2969 (rtl_verify_flow_info_1): Fix if-condition on test/error
2970 condition that fallthru edges are not allowed to cross section
2971 boundaries.
2972 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
2973 * final.c (final_scan_insn): Remove redundant test from if-statement;
2974 change calls to text_section into calls to function_section; add code
2975 to only to partitioning fix up if architecture supports named
2976 sections.
2977 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
2978 partition.
2979 (if_convert): Add targetm.have_named_sections to test.
2980 * output.h (unlikely_section_label): Extern declaration for new global
2981 variable.
2982 (unlikely_text_section_name): Likewise.
2983 * opts.c (decode_options): If both partitioning and DWARF debugging
2984 are turned on, issue a warning that this doesn't work, and change
2985 partitiong to basic block reordering (without hot/cold partitions).
6aaf3dde 2986 * passes.c (rest_of_handle_final): Re-set new global variable,
790ac0e1
CT
2987 user_defined_section_attribute, to false.
2988 (rest_of_compilation): Change options for calling partitioning
2989 function: Don't call if the user defined the section attribute, and
2990 don't call if DECL_ONE_ONLY is true for the current function.
2991 * predict.c (choose_function_section): Return immediately if we
2992 are doing hot/cold partitioning (i.e. let the basic block partitioning
2993 determine where the function belongs).
2994 * reg-stack.c (emit_swap_insn): Add condition to step over
2995 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
2996 * toplev.c (user_defined_section_attribute): New global variable.
89b0433e
NS
2997 * toplev.h (user_defined_section_attribute): Extern declaration
2998 for new global variable.
790ac0e1
CT
2999 * varasm.c (unlikely_section_label): New global variable.
3000 (unlikely_text_section_name): New global variable.
89b0433e
NS
3001 (unlikely_text_section): Add code to initialize
3002 unlikely_text_section_name if necessary; modify to use
3003 unlikely_text_section_name and unlikely_section_label; also to use
3004 named_section properly.
3005 (in_unlikely_text_section): Modify to work correctly with
3006 named_section and to use unlikely_text_section_name.
790ac0e1
CT
3007 (named_section): Add code to work properly with cold section.
3008 (function_section): Clean up if-statement.
89b0433e
NS
3009 * config/darwin.c (darwin_asm_named_section): Return to original
3010 code, removing use of SECTION_FORMAT_STRING.
6aaf3dde 3011 * config/arm/pe.h (switch_to_section): Add case for
790ac0e1
CT
3012 in_unlikely_executed_text to switch statement.
3013 * config/i386/cygming.h (switch_to_section): Likewise.
3014 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
3015 (SECTION_FORMAT_STRING): Likewise.
3016 * config/mcore/mcore.h (switch_to_section): Likewise.
3017 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
3018 (SECTION_FORMAT_STRING): Remove.
3019
3a4416fb
RS
30202004-08-18 Roger Sayle <roger@eyesopen.com>
3021
3022 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
3023 -ffixed-reg safe, by preserving the meanings of zero and one.
3024 (CALL_USED_REGISTERS): Likewise.
3025 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
3026
03904fb3
KK
30272004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
3028
3029 * config/sh/sh.c (split_branches): Check the result of
3030 next_active_insn.
3031 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
3032 Call rtl_register_cfg_hooks.
3033
389fdba0
RH
30342004-08-18 Richard Henderson <rth@redhat.com>
3035
3036 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
3037 * alias.c (true_dependence): Update to match new semantics.
3038 (canon_true_dependence, write_dependence_p): Likewise.
3039 (anti_dependence, output_dependence): Update write_dependence_p args.
3040 (unchanging_anti_dependence): Remove.
3041 * calls.c (purge_mem_unchanging_flag): Remove.
3042 (fixup_tail_calls): Don't call it.
3043 (expand_call): Don't add unchanging memory to function usage.
3044 * expr.c (emit_block_move_via_libcall): Likewise.
3045 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
3046 (get_subtarget): Don't use RTX_UNCHANGING_P.
3047 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
3048 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
3049 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
3050 * cse.c (insert): Don't use RTX_UNCHANGING_P.
3051 (cse_insn, canon_hash): Use MEM_READONLY_P.
3052 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
3053 instead of RTX_UNCHANGING_P.
3054 * explow.c (maybe_set_unchanging): Remove.
3055 * expr.h (maybe_set_unchanging): Remove.
3056 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
3057 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
3058 (assign_parm_setup_reg, expand_function_start): Likewise.
3059 * integrate.c (copy_rtx_and_substitute): Likewise.
3060 * ra-rewrite.c (emit_colors): Likewise.
3061 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
3062 (fixup_match_1): Likewise.
3063 * reload1.c (reload, alter_reg): Likewise.
3064 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
3065 not RTX_UNCHANGING_P.
3066 (equiv_init_varies_p): Likewise.
3067 * loop-invariant.c (check_maybe_invariant): Likewise.
3068 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
3069 * loop.c (note_addr_stored): Likewise.
3070 (prescan_loop): Likewise. Don't check function usage for clobbered
3071 unchanging memory.
3072 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
6aaf3dde 3073 not RTX_UNCHANGING_P.
389fdba0
RH
3074 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
3075 * varasm.c (force_const_mem): Likewise.
3076 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
3077 * web.c (entry_register): Likewise.
3078 * tree-gimple.h (get_base_address): Move decl ...
3079 * tree.h: ... here.
3080 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
3081
3082 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
3083 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
3084 (alpha_set_memflags): Update to match.
3085
3086 * config/darwin.c (machopic_indirect_data_reference): Set
3087 MEM_READONLY_P instead of RTX_UNCHANGING_P.
3088 (machopic_indirect_call_target): Likewise.
3089 (machopic_legitimize_pic_address): Likewise.
6aaf3dde 3090 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
389fdba0
RH
3091 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
3092 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
3093 * config/frv/frv.md (symGOT2reg): Likewise.
3094 * config/i386/i386.c (legitimize_pic_address,
3095 legitimize_tls_address, ix86_split_to_parts): Likewise.
3096 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
3097 * config/ia64/ia64.md (load_fptr): Likewise.
3098 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
3099 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
3100 * config/mcore/mcore.c (block_move_sequence): Likewise.
3101 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
3102 * config/pa/pa.c (legitimize_pic_address): Likewise.
3103 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3104 (rs6000_emit_move): Likewise.
3105 * config/s390/s390.c (legitimize_pic_address): Likewise.
3106 (legitimize_tls_address): Likewise.
3107 * config/s390/s390.md (casesi): Likewise.
3108 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
3109 * config/sh/sh.md (symGOT2reg): Likewise.
3110 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
3111 * config/v850/v850.md (casesi): Likewise.
3112
3113 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
3114 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
3115 * config/mips/mips.c (mips_restore_gp): Likewise.
3116 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
3117 * config/sh/sh.c (sh_reorg): Likewise.
3118
17ad5b5e
RH
31192004-08-18 Richard Henderson <rth@redhat.com>
3120
3121 * tree.h (struct tree_decl): Add gimple_formal_temp.
3122 (DECL_GIMPLE_FORMAL_TEMP_P): New.
3123 * gimplify.c (pop_gimplify_context): Clear it.
3124 (lookup_tmp_var): Set it, if is_formal.
3125 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
3126 Use is_gimple_val for VECTOR. Simplify return value.
3127 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
3128 (gimplify_expr): Likewise.
3129 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
3130 is_gimple_tmp_rhs for clarity. Update all callers.
3131 (is_gimple_reg_rhs): Simplify logic.
3132 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
3133 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
3134 (is_gimple_formal_tmp_reg): Similarly.
3135 * tree-gimple.h: Update decls.
3136 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
3137 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
3138 * tree-ssa-live.c (var_union, type_var_init): Likewise.
3139
5b0eba61
PB
31402004-08-18 Paolo Bonzini <bonzini@gnu.org>
3141
3142 * c4x.c (legitimize_operands): Remove calls to
3143 preserve_subexpressions_p.
3144
07e15286
DE
31452004-08-18 David Edelsohn <edelsohn@gnu.org>
3146
3147 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
3148 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
3149
ad8c162b
ZL
31502004-08-18 Ziemowit Laski <zlaski@apple.com>
3151
3152 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
3153 Objective-C++ extensions.
3154 * gengtype.c (get_file_basename): Match entire subdirectory name
3155 ('cp', 'objc', 'objcp') rather than just its suffix.
3156 (get_base_file_bitmap): Allow for files to belong to more than one
3157 language.
3158 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
3159 used by more than one front-end.
3160
d56993f2
RE
31612004-08-18 Richard Earnshaw <rearnsha@arm.com>
3162
3163 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
3164 avoid use of preserve_subexpressions_p.
3165
504c0e4f
RH
31662004-08-17 Richard Henderson <rth@redhat.com>
3167
3168 PR 17051
3169 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
3170
54e9a19d
DD
31712004-08-17 DJ Delorie <dj@redhat.com>
3172
3173 * doc/extend.texi: Document new xstormy16 attribute.
3174
3175 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
3176 (xstormy16_splittable_below100_or_register): New.
3177 (combine_bnp): New.
3178 (xstormy16_reorg): New.
3179 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3180
54e9a19d
DD
3181 * config/stormy16/stormy16.md (movqi_internal): Make name public.
3182 (movhi_internal): Likewise.
3183 (cbhranchhi): Likewise.
3184 (cbhranchhi_neg): Likewise.
3185 (andhi3): Only allow splittable below100 operands.
3186 (iorhi3): Likewise.
3187 (peephole2): New and/zero_extend->and peephole.
3188 (peephole2): New load/ior/save->set1 peephole.
3189 (peephole2): New load/and/save->clr1 peephole.
3190 (bclrx, bclrx2, bclr7, bclr15): New.
3191 (bsetx, bsetx2, bset7, bset15): New.
3192
3193 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
3194 liberal about acceptable 'B' masks.
3195
3196 * config/stormy16/stormy16-protos.h
3197 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
3198 xstormy16_below100_operand, xstormy16_below100_or_register,
3199 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
3200 (PREDICATE_CODES): Add new predicates.
6aaf3dde 3201
54e9a19d
DD
3202 * config/stormy16/stormy16.c
3203 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
3204 xstormy16_below100_operand, xstormy16_below100_or_register,
3205 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
3206 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
3207 (xstormy16_legitimate_address_p): Allow below100 symbols.
3208 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
3209 (xstormy16_expand_move): Leave below100 operands as-is.
3210 (xstormy16_encode_section_info): Encode below100 symbols.
3211 (xstormy16_strip_name_encoding): New.
3212 (xstormy16_print_operand): Print 'b' as shift mask.
3213 (xstormy16_attribute_table): Add below100 attributes.
3214 (xstormy16_handle_below100_attribute): New.
3215
3216 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
3217 (XSTORMY16_SECTION_FUNCTION): New.
3218 (EXTRA_SECTION_FUNCTIONS): Define using the above.
3219 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3220 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
3221 (ASM_OUTPUT_LABELREF): Define.
3222
3223 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
3224 (movhi_internal): Add below100 support.
3225 (andhi3): Add below100 support.
3226 (iorhi3): Add below100 support.
3227 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
3228
4ef47bd8
JW
32292004-08-17 James E Wilson <wilson@specifixinc.com>
3230
3231 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
3232 of VOIDmode for comparison code mode.
3233 * config/mips/mips.md: For conditional move patterns, use mode of
3234 first compare operand for comparison mode, instead of VOIDmode.
e17c734b
JW
3235
3236 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
3237 normal and -ffast-math code.
3238
1a10290c
MM
32392004-08-17 Mark Mitchell <mark@codesourcery.com>
3240
3241 PR c++/15871
3242 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
3243
f4e736dd 32442004-08-17 Robert Bowdidge <bowdidge@apple.com>
6aaf3dde
ZW
3245
3246 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
f4e736dd 3247
13a98f14
AT
32482004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
3249
3250 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
3251 for non Darwin targets.
3252 (*call_value_nonlocal_darwin64): Likewise.
3253
d0b2079e
FJ
32542004-08-17 Fariborz Jahanian <fjahanian@apple.com>
3255
3256 * config/rs6000/rs6000.c (rs6000_function_value): Check for
3257 altivec mode for altivec return register.
3258
feb3dc8b
DE
32592004-08-17 David Edelsohn <edelsohn@gnu.org>
3260
3261 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
ef0e2729 3262 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
feb3dc8b
DE
3263 * config/rs6000/rs6000.md: Include darwin.md.
3264 (builtin_setjmp_receiver): Add DImode case.
3265 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
3266 Darwin bits.
3267
79fe1b3b
DN
32682004-08-17 Dorit Naishlos <dorit@il.ibm.com>
3269
89b0433e
NS
3270 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
3271 trees.
79fe1b3b
DN
3272 * tree-vectorizer.h: New File: Same.
3273 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
3274 * common.opt (ftree-vectorize): New flag to enable vectorization.
89b0433e
NS
3275 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
3276 vectorization pass.
79fe1b3b
DN
3277 * tree-data-ref.h (init_data_ref): Additional argument.
3278 (array_base_name_differ_p): Moved to tree-data-ref.c.
3279 * tree-data-ref.c (array_base_name_differ_p): Revised.
3280 (initialize_data_dependence_relation): Call array_base_name_differ_p
3281 with an extra argument.
3282 (analyze_all_data_dependences): Same.
3283 (init_data_ref): Additional argument is_read to set DR_IS_READ.
89b0433e
NS
3284 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
3285 file.
79fe1b3b
DN
3286 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
3287 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
6aaf3dde 3288 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
79fe1b3b
DN
3289 vectorization pass.
3290 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
3291 (tree_ssa_loop_done): Call scev_finalize.
3292 (tree_vectorize): Define the new vectorization pass.
89b0433e
NS
3293 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
3294 size of the vector they support (until support for multiple vector
3295 sizes is added to the vectorizer).
79fe1b3b
DN
3296 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
3297 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
3298 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
3299 documentation.
3300
e15987c1
NS
33012004-08-17 Nathan Sidwell <nathan@codesourcery.com>
3302
3303 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
3304 usage.
3305 (generate_protocol_list, handle_impent): Likewise.
3306
e3cadb61
RS
33072004-08-17 Roger Sayle <roger@eyesopen.com>
3308
3309 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
3310 ensure that call_used_regs is a superset of both fixed_regs and
3311 call_really_used_regs.
3312
108a579c
DB
33132004-08-17 Daniel Bornstein <danfuzz@milk.com>
3314
3315 PR target/17019
3316 * arm.md (addsi3_cbranch_scratch): Correct case labels.
3317
62fc1d7d
PB
33182004-08-17 Paolo Bonzini <bonzini@gnu.org>
3319
3320 PR middle-end/17036
3321 * fold-const.c (fold): Check for integer operand when
3322 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
3323 Pinski <pinskia@physics.uc.edu>.
3324
7c27e184
PB
33252004-08-17 Paolo Bonzini <bonzini@gnu.org>
3326
3327 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
3328 No need to check if in a cross configuration.
3329 * configure: Regenerate.
3330
3331 * calls.c (precompute_register_parameters):
3332 Inline preserve_subexpressions_p ().
3333 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
3334 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
3335 Likewise.
3336 * expr.c (get_subtarget): Likewise.
3337 * rtl.h (preserve_subexpressions_p): Remove.
3338 * stmt.c (preserve_subexpressions_p): Remove.
3339
3340 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
3341 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
3342 Abort on gimplified cases.
3343
d97c6333
JW
33442004-08-16 James E Wilson <wilson@specifixinc.com>
3345
3346 * tree.h (VECTOR_FLOAT_TYPE_P): New.
3347 (FLOAT_TYPE_P): Use it.
3348 * c-typeck.c (build_binary_op): After convert calls, check for
3349 check for ERROR_MARK operands.
3350
45c8116d
ZW
33512004-08-16 Zack Weinberg <zack@codesourcery.com>
3352
3353 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
3354 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
3355 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
3356 (genobjs static pattern rule): Remove %.c dependency.
3357 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
3358 Rename rules; delete commands; fix dependencies.
3359 (mostlyclean): Do not delete temporary source copies.
3360 * configure.ac: Delete all references to BUILD_PREFIX and
3361 BUILD_PREFIX_1.
3362 * configure: Regenerate.
3363
3364 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
3365 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
3366 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
3367 with #ifndef GENERATOR_FILE so that nothing from those headers
3368 is used.
3369
3370 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
3371
4d73e20b
AN
33722004-08-16 Adam Nemet <anemet@lnxw.com>
3373
3374 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
6aaf3dde 3375
62114438
AP
33762004-08-16 Andrew Pinski <apinski@apple.com>
3377
3378 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
3379 extraneous semicolon.
3380
8e3e233b
DP
33812004-08-16 Devang Patel <dpatel@apple.com>
3382
3383 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
3384 * print-tree.c (print_node): Print DECL_PRESERVE_P.
3385 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
3386 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
3387 * target.h (struct gcc_target): New member, mark_decl_preserved.
45c8116d
ZW
3388 * hooks.c (hook_void_charptr): Rename to ...
3389 (hook_void_constcharptr): ... new name.
3390 * hooks.h (hook_void_charptr): Rename to ..
3391 (hook_void_constcharptr): ... new name.
8e3e233b
DP
3392 * tree.h (DECL_PRESERVE_P): New #define.
3393 (struct tree_decl): New member, preserve_flag.
3394 * varasm.c (assemble_start_function): Mark decl preserved.
3395 (assemble_variable): Same.
3396 * darwin.c (darwin_mark_decl_preserved): New function.
3397 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
3398 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
3399 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
3400
580b3958
JM
34012004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
3402
3403 * c-decl.c (grokdeclarator): Allow for function definition where
3404 innermost declarator has attributes.
3405
93f90be6
FJ
34062004-08-16 Fariborz Jahanian <fjahanian@apple.com>
3407
3408 * except.c (get_exception_filter, build_post_landing_pads,
3409 dw2_build_landing_pads): Use target-specific mode for 'filter'.
3410 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
3411 * target.h (eh_return_filter_mode): New field added.
3412 * targhooks.c (default_eh_return_filter_mode): Defined.
3413 * targhooks.h (default_eh_return_filter_mode): Declared.
3414 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
3415
392765bf
NN
34162004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
3417
3418 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
3419 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
3420 * configure: Regenerate.
3421
49bd1d27
SS
34222004-08-16 Stan Shebs <shebs@apple.com>
3423
3424 Basic support for 64-bit Darwin.
3425 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
3426 (machopic_legitimize_pic_address): Similarly, plus use Pmode
3427 instead of SImode.
3428 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
3429 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
3430 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
3431 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
3432 (PROCESSOR_DEFAULT64): Define.
3433 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
3434 Darwin.
3435 * config/rs6000/rs6000.md: Include darwin.md.
3436 (builtin_setjmp_receiver): Add DImode case.
3437 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
3438 Darwin.
3439 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
3440 (rs6000_emit_move): Add DImode case to Darwin bits.
3441 (machopic_output_stub): Use .quad if 64-bit.
3442 * invoke.texi: Document -m32 and -m64.
3443
4e6e4e4c
JJ
34442004-08-16 Janis Johnson <janis187@us.ibm.com>
3445
3446 * doc/extend.texi (AltiVec builtins): Document additional differences
3447 from the Motorola AltiVec PIM.
3448
092313ae
NS
34492004-08-16 Nathan Sidwell <nathan@codesourcery.com>
3450
3451 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
3452 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
3453 (struct tree_common): Update public_flag documentation.
3454
dffc9ae5
NN
34552004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
3456
3457 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
62fc1d7d 3458 Check for artificial variables, not is_gimple_tmp_var.
dffc9ae5
NN
3459 * tree-ssa-live.c (var_union): Likewise.
3460
16e9be4c
NS
34612004-08-16 Nathan Sidwell <nathan@codesourcery.com>
3462
3463 * calls.c (load_register_parameters): Remove spurious FIXME token.
3464
9a4d6480
ZL
34652004-08-15 Ziemowit Laski <zlaski@apple.com>
3466
3467 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
3468 (c-lang.o): Depend on c-objc-common.h.
45c8116d 3469 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
9a4d6480
ZL
3470 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
3471 * c-lang.c: Include c-objc-common.h.
3472 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
3473 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
3474 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
45c8116d
ZW
3475 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
3476 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
9a4d6480
ZL
3477 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
3478 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
45c8116d 3479 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
9a4d6480
ZL
3480 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
3481 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3482 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
3483 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
3484 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3485 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
3486 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
3487 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
3488 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
3489 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
3490 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
3491 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
3492 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
3493 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
3494 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
3495 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
3496 Move to c-objc-common.h.
3497 * c-objc-common.c: Include c-objc-common.h.
3498 * c-objc-common.h: New file.
3499
869464ba
AT
35002004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
3501 Andrew Pinski <pinskia@physics.uc.edu>
3502
3503 PR target/14931
3504 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
3505 style.
3506
4a90aeeb
NS
35072004-08-15 Nathan Sidwell <nathan@codesourcery.com>
3508
3509 * tree.h (build_int_cst): New.
3510 (build_int_2): Remove.
3511 * tree.c (build_int_2): Remove.
3512 (build_int_cst): New.
3513 (make_vector_type, build_common_tree_nodes,
3514 build_common_tree_nodes_2): Use build_int_cst.
3515 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
3516 expand_builtin_strpbrk, expand_builtin_fputs,
3517 build_string_literal, expand_builtin_printf,
3518 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
3519 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
3520 fold_builtin_isdigit, simplify_builtin_strstr,
3521 simplify_builtin_strpbrk, fold_builtin_fputs,
3522 simplify_builtin_sprintf): Use build_int_cst.
3523 * c-common.c (start_fname_decls, fix_string_type,
3524 c_common_nodes_and_builtins, c_init_attributes,
3525 shorten_compare): Likewise.
3526 * c-decl.c (complete_array_type,
3527 check_bitfield_type_and_width): Likewise.
3528 * c-lex.c (interpret_integer, lex_charconst): Likewise.
3529 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
3530 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3531 * c-typeck.c (really_start_incremental_init, push_init_level,
3532 set_nonincremental_init_from_string): Likewise.
3533 * calls.c (load_register_parameters): Likewise.
3534 * convert.c (convert_to_pointer): Likewise.
3535 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
3536 build_fn_info_type, build_ctr_info_value, build_gcov_info):
3537 Likewise.
3538 * except.c (init_eh, assign_filter_values, assign_filter_values):
3539 Likewise.
3540 * expmed.c (store_fixed_bit_field, extract_bit_field,
3541 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
3542 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
3543 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
3544 * expr.c (convert_move, emit_group_load, emit_group_store,
3545 expand_assignment, store_constructor, store_field,
3546 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
3547 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
3548 invert_truthvalue, optimize_bit_field_compare,
3549 decode_field_reference, all_ones_mask_p, constant_boolean_node,
3550 fold_div_compare, fold, fold_read_from_constant_string,
3551 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
3552 * function.c (assign_parm_setup_block): Likewise.
3553 * stmt.c (shift_return_value, expand_end_case_type,
3554 estimate_case_costs): Likewise.
3555 * stor-layout.c (layout_type, initialize_sizetypes,
3556 set_min_and_max_values_for_integral_type): Likewise.
3557 * tree-chrec.c (chrec_fold_multiply_poly_poly,
3558 reset_evolution_in_loop): Likewise.
3559 * tree-chrec.h (build_polynomial_chrec): Likewise.
3560 * tree-complex.c (build_replicated_const): Likewise.
3561 * tree-eh.c (honor_protect_cleanup_actions,
3562 lower_try_finally_onedest, lower_try_finally_copy,
3563 lower_try_finally_switch): Likewise.
3564 * tree-mudflap.c (mf_build_string, mx_register_decls,
3565 mudflap_register_call, mudflap_enqueue_constant): Likewise.
3566 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
3567 * tree-pretty-print.c (dump_generic_node): Likewise.
3568 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
3569 Likewise.
3570 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
3571 * tree-ssa-loop-niter.c (number_of_iterations_cond,
3572 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
3573 Likewise.
45c8116d 3574
4a90aeeb
NS
3575 * config/alpha/alpha.c (alpha_initialize_trampoline,
3576 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
3577 * config/arm/arm.c (arm_get_cookie_size): Likewise.
3578 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
3579 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
3580 * config/i860/i860.c (i860_va_start): Likewise.
3581 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
3582 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
3583 mips_gimplify_va_arg_expr): Likewise.
3584 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
3585 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
3586 add_compiler_branch_island): Likewise.
3587 * config/s390/s390.c (s390_va_start): Likewise.
3588 * config/sh/sh.c (sh_va_start): Likewise.
3589 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
3590 Likewise.
3591 * config/xtensa/xtensa.c (xtensa_va_start,
3592 xtensa_gimplify_va_arg_expr): Likewise.
45c8116d 3593
4a90aeeb
NS
3594 * objc/objc-act.c (build_objc_string_object,
3595 build_objc_symtab_template, init_def_list, init_objc_symtab,
3596 init_module_descriptor, generate_static_references,
3597 build_selector_translation_table, get_proto_encoding,
3598 build_typed_selector_reference, build_selector_reference,
3599 build_next_objc_exception_stuff,
3600 build_method_prototype_list_template, generate_descriptor_table,
3601 generate_protocols, build_protocol_initializer,
3602 build_ivar_list_template, build_method_list_template,
3603 build_ivar_list_initializer, generate_ivars_list,
3604 generate_dispatch_table, generate_protocol_list,
3605 build_category_initializer, build_shared_structure_initializer,
3606 generate_shared_structures, handle_impent,
3607 generate_objc_image_info): Use build_int_cst.
3608
2a68a7de
BE
36092004-08-15 Ben Elliston <bje@au.ibm.com>
3610
3611 * vec.h: Comment improvements.
3612
53fb4de3
RS
36132004-08-14 Roger Sayle <roger@eyesopen.com>
3614
3615 * c-common.c (shorten_compare, pointer_int_sum,
3616 c_common_truthvalue_conversion, boolean_increment): Replace calls
3617 to build with calls to buildN.
3618 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
3619 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
3620 gimplify_switch_stmt): Likewise.
3621 * c-typeck.c (default_function_array_conversion,
3622 build_component_ref, build_array_ref, build_function_call,
3623 pointer_diff, build_unary_op, build_conditional_expr,
3624 build_compound_expr, build_modify_expr, c_finish_goto_label,
3625 c_finish_goto_ptr, c_finish_return, c_finish_loop,
3626 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
3627 build_binary_op): Likewise.
3628
254b17dd
SB
36292004-08-15 Steven Bosscher <stevenb@suse.de>
3630
3631 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
3632
a5252c84
JDA
36332004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3634
3635 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
3636 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
3637 * fixinc/fixincl.x: Rebuilt.
3638
96a30b18
RS
36392004-08-14 Richard Sandiford <rsandifo@redhat.com>
3640
3641 * config/mips/mips-protos.h (mips_symbolic_constant_p)
3642 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
3643 (mips_small_data_pattern_p): Declare.
3644 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
3645 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
3646 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
3647 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
3648 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
3649 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
3650 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
3651 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
3652 (pc_or_label_operand, call_insn_operand, move_operand)
3653 (consttable_operand, symbolic_operand, general_symbolic_operand)
3654 (global_got_operand, local_got_operand, stack_operand)
3655 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
3656 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
3657 (mips_small_data_pattern_p): Replace previous small_data_pattern
3658 predicate. Turn into a bool () (rtx) function.
3659 * config/mips/predicates.md: New file.
3660 * config/mips/mips.md: Include it. Use the target-independent
3661 comparison_operator instead of cmp_op. Rename trap_cmp_op to
3662 trap_comparison_operator and equality_op to equality_operator.
3663 Replace uses of small_int with the equivalent const_arith_operand.
3664 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
3665 const_float_1_operand to const_1_operand. Rename fcc_register_operand
3666 to fcc_reload_operand.
3667 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
3668
e41c9fcb
JDA
36692004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3670
3671 PR libstdc++/17005 partial fix.
3672 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
3673 except when generating ANSI/C89 code.
3674
af9c6659
NS
36752004-08-14 Nathan Sidwell <nathan@codesourcery.com>
3676
3677 * c-common.c (shorten_compare): Use force_fit_type directly.
3678
37de1373
GP
36792004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
3680 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
3681 Dave Korn <dk@artimi.com>
3682
3683 * doc/install.texi (Building): Avoid duplicate reference to GNU
3684 make requirement.
3685 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
3686
06d69cd3
RH
36872004-08-14 Richard Henderson <rth@redhat.com>
3688
3689 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
3690 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
3691
e427abbf
RH
36922004-08-13 Richard Henderson <rth@redhat.com>
3693
3694 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
3695 for constant_call_address_operand.
3696 (call_value_pop_1, call_value_1): Likewise.
3697 (sibcall_value_1, call_value_1_rex64): Likewise.
3698
2b407936
JW
36992004-08-13 James E Wilson <wilson@specifixinc.com>
3700
3701 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
3702 Correct mode from SFmode to DFmode.
3703
3e0d5ae2
ZL
37042004-08-13 Ziemowit Laski <zlaski@apple.com>
3705
3706 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
3707 __cstring_object and __image_info sections with the no_dead_strip
3708 attribute.
3709
e0704143
RS
37102004-08-13 Roger Sayle <roger@eyesopen.com>
3711 David Billinghurst <David.Billinghurst@riotinto.com>
3712
3713 PR libgfortran/15930
3714 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
3715 * fixinc/fixincl.x: Regenerate.
3716 * fixinc/tests/base/internal/math_core.h: New file.
3717
8768c655
RH
37182004-08-13 Richard Henderson <rth@redhat.com>
3719
3720 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
3721 (dbxout_function_end): Remove ifdefs for it.
3722 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
3723
201312c2
RH
37242004-08-13 Richard Henderson <rth@redhat.com>
3725
3726 * Makefile.in (insn-preds.o): Depend on TREE_H.
3727 * genpreds.c (write_insn_preds_c): Include tree.h.
3728 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
3729 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
3730 const48_operand, and_operand, or_operand, mode_width_operand,
3731 mode_mask_operand, mul8_operand, const0_operand,
3732 hard_fp_register_operand, hard_int_register_operand,
3733 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
3734 samegp_function_operand, direct_call_operand, small_symbolic_operand,
45c8116d 3735 global_symbolic_operand, call_operand, symbolic_operand,
201312c2
RH
3736 dtp16_symbolic_operand, dtp32_symbolic_operand,
3737 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
3738 gottp_symbolic_operand, alpha_comparison_operator,
3739 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
3740 signed_comparison_operator, alpha_fp_comparison_operator,
3741 divmod_operator, fix_operator, aligned_memory_operand,
3742 unaligned_memory_operand, reg_or_unaligned_mem_operand,
3743 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
3744 reg_no_subreg_operand, addition_operation): Move to predicates.md.
3745 (reg_or_const_int_operand): Remove. Replace all users with
3746 reg_or_cint_operand.
3747 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
3748 (resolve_reload_operand): Split out of aligned_memory_operand.
3749 * config/alpha/alpha-protos.h: Update for exports.
3750 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
3751 * config/alpha/alpha.md: Include predicates.md.
3752 * config/alpha/predicates.md: New file.
3753
1e9c8405
RS
37542004-08-13 Richard Sandiford <rsandifo@redhat.com>
3755
3756 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
3757 fields with a pointer to the instruction definition.
3758 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
3759 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
3760 (write_attr_case, write_const_num_delay_slots): Update accordingly.
3761 (write_attr_case, write_const_num_delay_slots): Write the name of
3762 an insn next to its case statement.
3763 * genoutput.c (data): Add a filename field.
3764 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
3765 (output_insn_data): Print the location of each insn definition.
3766 * genrecog.c (write_action): Print the name of an insn above
3767 the statement that returns its code.
3768
1e5f1716
AP
37692004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
3770
3771 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
3772 * config/libgloss.h: Likewise.
3773 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
3774 * c4x/c4x-modes.def: Likewise.
3775 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
3776 (c4x_rptb_nop_p): Likewise.
3777 (c4x_rptb_valid_p): Likewise.
3778 (c4x_rptb_insert): Likewise.
3779 (c4x_address_conflict): Likewise.
3780 * config/c4x/c4x.md: Likewise.
3781 * config/frv/frv.md: Likewise.
3782 * config/i386/athlon.md: Likewise.
3783 * config/i386/i386.md: Likewise.
3784 * config/i386/predicates.md: Likewise.
3785 * config/ia64/ia64.c: Likewise.
3786 * config/ia64/itanium1.md: Likewise.
3787 * config/ia64/itanium2.md: Likewise.
3788 * config/iq2000/iq2000.md: Likewise.
3789 * config/mcore/mcore.c: Likewise.
3790 * config/mips/mips.c: Likewise.
3791 * config/mips/r3900.h: Likewise.
3792 * config/mips/sb1.md: Likewise.
3793 * config/pa/milli64.S: Likewise.
3794 * config/pa/pa.c: Likewise.
3795 * config/pa/pa.h: Likewise.
3796 * config/rs6000/8540.md: Likewise.
3797
9bcc9490
DB
37982004-08-13 Daniel Berlin <dberlin@dberlin.org>
3799
3800 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
3801
68fe56fc
R
38022004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
3803
3804 * sh.md (cbranch define_delay) Use cond_delay_slot for
3805 non-anulled condition too.
3806
85d346f1
DE
38072004-08-12 David Edelsohn <edelsohn@gnu.org>
3808
3809 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
3810 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
3811 any_parallel_operand, lmw_operation, stmw_operation,
a688b3ac 3812 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
85d346f1
DE
3813 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
3814 any_parallel_operand.
3815 (return_and_restore_fpregs_{si,di}): Same.
3816
47d2cee5
ZW
38172004-08-12 Zack Weinberg <zack@codesourcery.com>
3818
3819 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
3820 if pred->singleton != PARALLEL, issue a warning and pretend it was.
3821 Also issue a warning for any predicate we don't know about.
3822
8fe75e43
RH
38232004-08-12 Richard Henderson <rth@redhat.com>
3824
3825 * config/i386/i386.c (internal_label_prefix): Export.
3826 (internal_label_prefix_len, struct ix86_address,
3827 ix86_decompose_address, maybe_get_pool_constant,
3828 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
3829 memory_address_length): Export.
47d2cee5 3830 (any_fp_register_operand, fp_register_operand,
8fe75e43 3831 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
47d2cee5 3832 x86_64_general_operand, x86_64_szext_general_operand,
8fe75e43
RH
3833 x86_64_nonmemory_operand, x86_64_movabs_operand,
3834 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
3835 x86_64_zext_immediate_operand, const_int_1_31_operand,
3836 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
3837 tls_symbolic_operand, global_dynamic_symbolic_operand,
3838 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
3839 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
3840 constant_call_address_operand, const0_operand, const1_operand,
3841 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
3842 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
3843 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
3844 general_no_elim_operand, nonmemory_no_elim_operand,
3845 index_register_operand, q_regs_operand, flags_reg_operand,
3846 non_q_regs_operand, zero_extended_scalar_load_operand,
3847 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
47d2cee5 3848 ix86_comparison_operator, ix86_carry_flag_operator,
8fe75e43
RH
3849 fcmov_comparison_operator, promotable_binary_operator,
3850 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
47d2cee5 3851 mult_operator, div_operator, arith_or_logical_operator,
8fe75e43
RH
3852 memory_displacement_operand, cmpsi_operand, long_memory_operand,
3853 aligned_operand): Move to predicates.md as define_predicates.
3854 (tls_symbolic_operand_1): Remove.
3855 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
3856 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
3857 (legitimize_address): Merge tls_symbolic_operand contents.
3858 (ix86_expand_move): Likewise.
3859 * config/i386/i386-protos.h: Update for exports.
3860 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
3861 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
3862 * config/i386/i386.md: Include predicates.md.
3863 * config/i386/predicates.md: New file.
3864
ea3d83a7
MM
38652004-08-13 Mark Mitchell <mark@codesourcery.com>
3866
3867 PR c++/16924
3868 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
3869 SYMBOL_REF_DECL.
3870 (i386_pe_mark_dllimport): Likewise.
3871 (i386_pe_encode_section_info): Likewise, when overriding
3872 dllimport attribute.
3873
414adbdd
GK
38742004-08-12 Geoffrey Keating <geoffk@apple.com>
3875
3876 * configure.ac: When testing for flex, nm, ar, and bison, check
3877 that they will actually be built.
3878 * configure: Regenerate.
3879
c5443745
UW
38802004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
3881
3882 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
3883 (MOVE_MAX_PIECES): Define.
3884
8fa5469d
DP
38852004-08-12 Devang patel <dpatel@apple.com>
3886
3887 * dbxout.c (dbxout_begin_prologue): New function.
3888 (dbx_debug_hooks): Use new begin prologue hook.
3889 (dbxout_function_end): Emit N_ENSYM.
3890 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
47d2cee5 3891
b0b343db
JJ
38922004-08-12 Janis Johnson <janis187@us.ibm.com>
3893
e390eb0a
JJ
3894 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
3895 argument is float*.
3896
e34b6648
JJ
3897 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
3898 for vec_dss.
3899
b0b343db
JJ
3900 * doc/extend.texi (AltiVec builtins): Fix description for recent
3901 changes. Update operation list to match current support.
3902
adf39f8f
AK
39032004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3904
3905 * config/s390/s390.c (struct s390_frame_layout): New struct as element
3906 of struct machine_function.
3907 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
3908 changed all uses.
3909 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
3910 changed all uses.
3911 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
3912 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
3913 (s390_frame_area, s390_register_info): New functions.
3914 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
3915 for base register.
3916 (s390_return_addr_rtx, s390_return_address_offset)
3917 (s390_va_start, s390_gimplify_va_arg)
3918 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
3919 layouts.
3920 (s390_frame_info): Functionality partly moved to s390_register_info.
3921 Made adaptions for new stack layout.
3922 (save_gprs, restore_gprs): Changed meaning of second parameter and
3923 adapted all callers.
3924
3925 * config/s390/s390.h (s390_backchain_string): New global variable.
3926 (MASK_BACKCHAIN): Removed definition.
3927 (TARGET_BACKCHAIN): Changed check.
3928 (TARGET_KERNEL_BACKCHAIN): New macro.
3929 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
3930 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
3931 "kernel-backchain".
3932 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
3933
3934 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
3935 as condition. Adjusted for new stack layout.
3936
3937 * doc/invoke.texi: Added documentation for new option
3938 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
3939 "-mno-backchain".
3940
db151e9d
PB
39412004-08-12 Paul Brook <paul@codesourcery.com>
3942
3943 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
3944 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
3945
02b75262
DD
39462004-08-12 David Daney <ddaney@avtrex.com>
3947
db151e9d 3948 * java/gcj.texi: Add subsection on signal usage.
02b75262 3949
f64d6991
DE
39502004-08-12 David Edelsohn <edelsohn@gnu.org>
3951
3952 * expr.c (move_by_pieces): Set alignment for move to minimum of
3953 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
3954 alignment, but not less than the original alignment.
3955 (move_by_pieces_ninsns): Same.
3956 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
3957 (store_by_pieces_1): Same.
3958
c597ef4e
DN
39592004-08-12 Diego Novillo <dnovillo@redhat.com>
3960
3961 PR tree-optimization/16867
3962 * tree.c (is_global_var): New function.
3963 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
3964 Call is_global_var.
3965 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
3966 Update all users.
3967 (is_global_var): Declare.
3968 * tree-dfa.c (dump_variable): Display global and addressable
3969 attributes.
3970 (add_referenced_var): Clarify documentation when marking
3971 variables call-clobbered.
3972 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
3973 instead of needs_to_live_in_memory.
3974 (mark_call_clobbered): If the variable is a tag, mark it
3975 DECL_EXTERNAL.
3976 * tree-gimple.c (is_gimple_reg): Don't check for
3977 TREE_ADDRESSABLE.
3978 (is_gimple_non_addressable): Likewise.
3979 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
3980 needs to be marked call-clobbered.
3981 (setup_pointers_and_addressables): Call is_global_var instead
3982 of needs_to_live_in_memory.
3983 * tree-ssa-dce.c (need_to_preserve_store): Remove.
3984 Update all users with is_global_var.
3985 (mark_stmt_if_obviously_necessary): Fix processing of aliased
3986 stores. Don't check the virtual definitions. Rather, check
3987 whether the store is going into global memory.
3988 (find_obviously_necessary_stmts): Get the symbol from the PHI
3989 result.
3990 * tree-ssa-operands.c (get_call_expr_operands): Do not add
3991 clobbering may-defs if the call does not have side effects.
3992
ab5c8549
JJ
39932004-08-12 Jakub Jelinek <jakub@redhat.com>
3994
3995 PR c++/16276
3996 * output.h (default_function_rodata_section,
3997 default_no_function_rodata_section): New prototypes.
3998 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
3999 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
4000 (TARGET_ASM_OUT): Add it.
4001 * varasm.c (default_function_rodata_section,
4002 default_no_function_rodata_section): New functions.
4003 * final.c (final_scan_insn): Call
4004 targetm.asm_out.function_rodata_section instead of
4005 readonly_data_section.
4006 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
4007 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4008 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4009 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
4010 Likewise.
4011 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4012 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
4013 Likewise.
4014 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
4015 Likewise.
4016 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4017 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4018 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
4019
5cf58f28
PB
40202004-08-12 Paul Brook <paul@codesourcery.com>
4021
4022 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
4023 frame info.
4024 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
4025 DWARF2_UNWIND_INFO.
4026
87e184d1
BE
40272004-08-12 Ben Elliston <bje@au.ibm.com>
4028
4029 PR target/16286
4030 * config/rs6000/altivec.h: Change vector to __vector throughout.
4031 (Except for the `vector' macro itself).
4032
e543e219
ZW
40332004-08-12 Zack Weinberg <zack@codesourcery.com>
4034
4035 * genpreds.c: Add capability to generate predicate bodies as
4036 well as function prototypes. Write function prototypes for
4037 the generic predicates too.
4038 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
4039 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
4040 (write_match_code, write_predicate_expr, write_one_predicate_function)
4041 (parse_option): New functions.
4042 (output_predicate_decls): Delete.
4043 (main): Read the machine description, process DEFINE_PREDICATE or
4044 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
4045 as appropriate.
4046
4047 * genrecog.c (struct decision_test): Replace index with
4048 struct pred_data pointer.
4049 (next_index): Remove, unused.
4050 (pred_table, preds, special_mode_pred_table): Delete.
4051 (compute_predicate_codes, process_define_predicate): New functions.
4052 (validate_pattern, add_to_sequence, write_switch): Update for
4053 new data structures.
4054 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
4055 Check both error_count and have_error.
4056
4057 * gensupport.c (in_fname, first_predicate): New globals.
4058 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
4059 (predicate_table, last_predicate, old_pred_table)
4060 (old_special_pred_table): New statics.
4061 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
4062 (add_predicate, init_predicate_table): New functions.
4063 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
4064 (init_md_reader_args_cb): Use the global in_fname. No need to zero
4065 it or max_include_len. Call init_predicate_table.
4066 (read_rtx): Run the predicate queue after the attribute queue
4067 but before all the others.
4068 * gensupport.h (in_fname, struct pred_data, first_predicate)
4069 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
4070 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
4071 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
4072 * dummy-conditions.c: Don't include bconfig.h, system.h,
4073 coretypes.h, tm.h, or system.h. Do include stddef.h.
4074 Duplicate declaration of struct c_test from gensupport.h.
4075
4076 * Makefile.in (OBJS-common): Add insn-preds.o.
4077 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
4078 (insn-preds.c, insn-preds.o): New rules.
4079 (s-preds): Also generate insn-preds.c.
4080 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
4081 Update dependencies.
4082 (print-rtl.o, print-rtl1.o): Correct dependencies.
4083
4084 * recog.h: Delete prototypes of predicate functions.
4085
4086 * doc/md.texi (Predicates): New section with complete
4087 documentation of operand/operator predicates. Remove some
4088 incomplete documentation of predicates from other places.
4089 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
4090 PREDICATE_CODES; indicate that both are deprecated in favor
4091 of define_predicate/define_special_predicate.
4092
4093 * config/ia64/ia64.c: All predicate function definitions moved
4094 to ia64.md, except
4095 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
4096 (ia64_expand_load_address, ia64_expand_move):
4097 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
4098
4099 * config/ia64/ia64.md: All predicates now defined here.
4100 (symbolic_operand): Is now a special predicate.
4101
4102 * config/ia64/ia64.h: Declare ia64_section_threshold.
4103 (PREDICATE_CODES): Delete.
4104
174283a3
RH
41052004-08-12 Richard Henderson <rth@redhat.com>
4106
4107 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
4108 * c-semantics.c (add_stmt): Set it.
4109 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
4110 before instantiating a variable sized type.
4111
15931954
RH
41122004-08-12 Richard Henderson <rth@redhat.com>
4113
4114 * stor-layout.c (round_up, round_down): Move ...
e543e219 4115 * fold-const.c (round_up, round_down): ... here. Use
15931954
RH
4116 multiple_of_p to avoid any arithmetic at all.
4117
57d1dd87
RH
41182004-08-12 Richard Henderson <rth@redhat.com>
4119
4120 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
4121 (gimplify_init_ctor_preeval_1): New.
4122 (gimplify_init_ctor_preeval): New.
4123 (gimplify_init_ctor_eval): New.
4124 (gimplify_init_constructor): Use them. Always gimplify the LHS
4125 object first.
4126
46e34f96
ZL
41272004-08-12 Ziemowit Laski <zlaski@apple.com>
4128
4129 (This patch is part of merge of objc-improvements-branch
4130 into mainline.)
4131
4132 * doc/frontends.texi: Mention Objective-C++ in addition to
4133 Objective-C.
4134 * doc/install.texi: Add 'obj-c++' to list of configurable
4135 languages.
4136 * doc/invoke.texi: Rename Objective-C option headings to
4137 indicate they also apply to Objective-C++. List file
4138 extensions for Objective-C++ sources. Mention that
4139 ObjC and ObjC++ compilations may also use C and C++ options,
4140 respectively. Point users to doc/standards.texi for
4141 further info on ObjC and ObjC++.
4142 * doc/sourcebuild.texi: Mention the objcp/ directory and
4143 the Objective-C++ sources it contains.
4144 * doc/standards.texi: Update link to Apple ObjC site;
4145 add link to gcc readings.html WWW doc.
4146
07f12d8b
AM
41472004-08-12 Alan Modra <amodra@bigpond.net.au>
4148
4149 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
4150 and 2004-07-14 changes.
4151
89aa5a20
PB
41522004-08-12 Paul Brook <paul@codesourcery.com>
4153
4154 * doc/invoke.texi: Fix typo.
4155
5079843a
DP
41562004-08-11 Devang Patel <dpatel@apple.com>
4157
4158 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
4159 and -no_dead_strip_inits_and_terms.
4160 (LINK_SPEC): Same.
4161 * doc/invoke.texi (Darwin Options): Document -dead_strip and
4162 -no_dead_strip_inits_and_terms.
e543e219 4163
876f13b0
PB
41642004-08-11 Paul Brook <paul@codesourcery.com>
4165
4166 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
4167 (arm_load_pic_register): ... to this.
4168 * config/arm/arm.c (arm_finalize_pic): Rename ...
4169 (arm_load_pic_register): ... to this. Always output insns at the
4170 current location. Load via low reg in thumb mode.
4171 (arm_expand_prologue): Call arm_load_pic_register.
4172 (thumb_expand_prologue): Ditto.
4173 * config/arm/arm.h (FINALIZE_PIC): Remove.
4174 * config/arm/arm.md (builtin_setjmp_receiver): Call
4175 arm_load_pic_register.
4176
57934c39
PB
41772004-08-11 Paul Brook <paul@codesourcery.com>
4178
4179 * arm.c (thumb_force_lr_save): Add prototype.
4180 (thumb_compute_save_reg_mask): New function.
4181 (thumb_find_work_register): New function.
4182 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
4183 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
4184 Don't clobber r3 when removing pretend args.
4185 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
4186 (thumb_output_function_prologue): Use new functions.
4187 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
4188 * arm.h (THUMB_REG_PUSHED_P): Remove.
4189
af874237
JW
41902004-08-11 James E Wilson <wilson@specifixinc.com>
4191
4192 PR rtl-optimization/16490
4193 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
4194 global_live_at_end for new basic block if already set for other blocks.
4195
c1618c0c
DE
41962004-08-11 David Edelsohn <edelsohn@gnu.org>
4197
4198 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
4199
4200 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
4201 (mfcr rlwinm rlwinm patterns): Set length to 12.
4202
1a24f92f
AM
42032004-08-11 Andrew MacLeod <amacleod@redhat.com>
4204
4205 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
4206 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
4207 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
4208 (start_ssa_stmt_operands): Delete.
e543e219 4209 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
1a24f92f
AM
4210 struct stmt_operands_d.
4211 (build_ssa_operands): New extern entry point.
e543e219 4212 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
1a24f92f
AM
4213 building code, replace with create_ssa_artficial_load_stmt().
4214 * tree-ssa-operands.c (struct voperands_d): Delete.
4215 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
4216 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
e543e219 4217 (free_uses, free_defs, free_vuses, free_v_may_defs,
1a24f92f
AM
4218 free_v_must_defs): Remove dealloc parameter.
4219 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
4220 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
4221 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
4222 vector comparisons, ssa_name reuse, and allocations here.
4223 (verify_start_operands): Delete.
4224 (finalize_ssa_stmt_operands): Set new operands by calling finalize
4225 routines.
4226 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
4227 (append_def, append_usei): Simplify to simple accumulation.
4228 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
4229 duplicates and simple accumulation.
4230 (free_ssa_operands): Free vectors in a stmt_operand structure.
4231 (build_ssa_operands): New. Create a new stmt_operand structure from
e543e219 4232 a stmt and an old set of stmt_operands.
1a24f92f
AM
4233 (get_stmt_operands): Simplify and call build_ssa_operands.
4234 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
4235 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
4236 add_call_read_ops): Don't pass prev_vops around anymore.
4237 (note_addressable): Return if no stmt annotation.
4238 (copy_virtual_operands): Access v_may_def operands through a struct.
4239 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
4240 hash tables without treating the stmt as a real stmt.
4241 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
4242 v_may_def def and use through a struct instead of 2 array elements.
4243 (struct v_may_def_optype_d): Use v_may_def_operand_type.
4244 (struct stmt_operands_d): New. Struct for storing all operand vectors.
4245
a77655b1
NC
42462004-08-11 Nick Clifton <nickc@redhat.com>
4247
4248 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
4249 this funciton's behaviour. Return true when the current function
4250 has a section attribute and -mlong-calls is in effect.
4251 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
4252 short-call marker when -mlong-calls is in effect and the function
4253 has a section attribute.
4254
6f4a43e0
ZW
42552004-08-10 Zack Weinberg <zack@codesourcery.com>
4256
4257 * stmt.c (expand_return): If asked to return the RESULT_DECL,
4258 just call expand_value_return on result_rtl.
4259
1a186ec5
RH
42602004-08-10 Richard Henderson <rth@redhat.com>
4261
4262 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
4263 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
4264 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
4265 (add_location_or_const_value_attribute): ... not here. Use
4266 loc_descriptor_from_tree if possible.
4267 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
4268 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
4269 values specially.
4270 (loc_descriptor_from_tree): New. Update callers.
4271 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
4272 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
4273 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
4274 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
4275 and BUILT_IN_STACK_RESTORE.
4276 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
4277 * stmt.c (expand_stack_alloc): Remove.
4278 * tree-mudflap.c (mx_register_decls): Don't look for
4279 BUILT_IN_STACK_ALLOC.
4280 * tree-nested.c (convert_local_reference): Likewise.
4281 * tree.h (DECL_VALUE_EXPR): New.
4282
7109c195
RH
42832004-08-10 Richard Henderson <rth@redhat.com>
4284
bf4ccdd6
RH
4285 * stor-layout.c (round_up): Check for 0/1 before dividing.
4286 (round_down): Likewise.
4287
7109c195
RH
4288 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
4289
b3f8d95d
MM
42902004-08-09 Mark Mitchell <mark@codesourcery.com>
4291
4292 * config.gcc (arm*-*-eabi*): New target.
4293 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
4294 (TARGET_LIB_INT_CMP_BIASED): Likewise.
4295 * expmed.c (expand_divmod): Try a two-valued divmod function as a
4296 last resort.
4297 * gthr.h: Remove bogus tokens at end of #pragma.
4298 * optabs.c (expand_twoval_binop_libfunc): New function.
4299 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
4300 (prepare_float_lib_cmp): Try reversing the condition.
4301 (debug_optab_libfuncs): New function.
4302 * optabs.h (expand_twoval_binop_libfunc): Declare.
4303 * config/arm/arm.c (arm_init_libfuncs): New function.
4304 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
4305 (TARGET_INIT_LIBFUNCS): Define it.
4306 * config/arm/arm.h (TARGET_BPABI): New macro.
4307 * config/arm/arm-protos.h
4308 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
4309 * config/arm/bpabi.S: New file.
4310 * config/arm/bpabi.c: Likewise.
4311 * config/arm/bpabi.h: Likewise.
4312 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
4313 (__aeabi_drsub): Likewise.
4314 (__aeabi_dsub): Likewise.
4315 (__aeabi_dadd): Likewise.
4316 (__aeabi_ui2d): Likewise.
4317 (__aeabi_i2d): Likewise.
4318 (__aeabi_f2d): Likewise.
4319 (__aeabi_dmul): Likewise.
4320 (__aeabi_ddiv): Likewise.
4321 (__aeabi_cdrcmple): Likewise.
4322 (__aeabi_cdcmpeq): Likewise.
4323 (__aeabi_cdcmple): Likewise.
4324 (__aeabi_dcmpeq): Likewise.
4325 (__aeabi_dcmplt): Likewise.
4326 (__aeabi_dcmple): Likewise.
4327 (__aeabi_dcmpge): Likewise.
4328 (__aeabi_dcmpgt): Likewise.
4329 (__aeabi_dcmpun): Likewise.
4330 (__aeabi_d2iz): Likewise.
4331 (__aeabi_d2uiz): Likewise.
4332 (__aeabi_d2f): Likewise.
4333 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
4334 (__aeabi_frsub): Likewise.
4335 (__aeabi_fsub): Likewise.
4336 (__aeabi_fadd): Likewise.
4337 (__aeabi_ui2f): Likewise.
4338 (__aeabi_i2f): Likewise.
4339 (__aeabi_fmul): Likewise.
4340 (__aeabi_fdiv): Likewise.
4341 (__aeabi_cfrcmple): Likewise.
4342 (__aeabi_cfcmpeq): Likewise.
4343 (__aeabi_cfcmple): Likewise.
4344 (__aeabi_fcmpeq): Likewise.
4345 (__aeabi_fcmplt): Likewise.
4346 (__aeabi_fcmple): Likewise.
4347 (__aeabi_fcmpge): Likewise.
4348 (__aeabi_fcmpgt): Likewise.
4349 (__aeabi_fcmpun): Likewise.
4350 (__aeabi_f2iz): Likewise.
4351 (__aeabi_f2uiz): Likewise.
4352 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
4353 (__aeabi_uidivmod): New function or alias.
4354 (__aeabi_idivmod): Likewise.
4355 (__aeabi_idiv0): Likewise.
4356 (__aeabi_ldiv0): Likewise.
4357 (__aeabi_llsr): Likewise.
4358 (__aeabi_lasr): Likewise.
4359 (__aeabi_llsl): Likewise.
4360 (bpabi.S): Include it.
4361 * config/arm/libgcc-bpabi.ver: New file.
4362 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
4363 (LINK_SPEC): Remove.
4364 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
4365 __aeabi_ulcmp.
4366 * config/arm/t-bpabi: New file.
4367 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
4368 (TARGET_LIB_INT_CMP_BIASED): Likewise.
6f4a43e0 4369
fba73eb1
DE
43702004-08-10 David Edelsohn <edelsohn@gnu.org>
4371
4372 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
4373 * config/rs6000/rs6000.md (clrmemsi): New pattern.
4374 * config/rs6000/rs6000.c (expand_block_clear): New function.
4375 (expand_block_move): Convert alignment to bits. Use SImode and
4376 HImode for unaligned addresses if not STRICT_ALIGNMENT.
4377
43782004-08-10 Caroline Tice <ctice@apple.com>
c295317d
CT
4379
4380 * varasm.c (unlikely_section_label): New global variable.
4381 (unlikely_text_section_name): New global variable.
4382 (text_section): Remove alignment statement.
6f4a43e0 4383 (unlikely_text_section): Remove alignment statement; use
c295317d
CT
4384 unlikely_section_label rather than hard-coded string.
4385 (assemble_start_function): Initialize unlikely_section_label and
4386 unlikely_text_section_name; make sure cold section is properly
4387 aligned at start of function; output unlikely_section_label if
4388 appropriate.
4389
68f9c5e2
UW
43902004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
4391
4392 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
4393 * config/s390/s390.c (s390_canonicalize_comparison): New function.
4394 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
4395 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
4396 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
4397 ("*tmqi_mem"): Remove SUBREG from pattern.
4398 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
4399 ("*andsi3_cconly"): Likewise.
6f4a43e0 4400
22116d84
L
44012004-08-10 H.J. Lu <hongjiu.lu@intel.com>
4402
4403 PR target/16909
4404 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
4405
c75095b2
JJ
44062004-08-10 Janis Johnson <janis187@us.ibm.com>
4407
4408 * doc/sourcebuild.texi (compat testing): Document available test
4409 framework commands. Use the preferred spelling of DejaGnu.
4410
98975653
DB
44112004-08-10 Daniel Berlin <dberlin@dberlin.org>
4412
4413 * lambda.h: Add matrix type, and prototypes for remainder of
4414 matrix and vector functions.
4415 (lambda_vector_mult_const): New function.
4416 (lambda_vector_negate): Ditto.
4417 (lambda_vector_add): Ditto.
4418 (lambda_vector_add_mc): Ditto.
4419 (lambda_vector_copy): Ditto.
4420 (lambda_vector_zerop): Ditto.
4421 (lambda_vector_equal): Ditto.
4422 (lambda_vector_min_nz): Ditto.
4423 (lambda_vector_first_nz): Ditto.
4424 (lambda_vector_matrix_mult): Ditto.
4425 * lambda-mat.c: New file.
4426 * Makefile.in (lambda-mat.o): New.
4427
68b9f53b
AM
44282004-08-10 Andrew MacLeod <amacleod@redhat.com>
4429
4430 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
4431 after linking stmt into the program.
4432 (bsi_remove): Don't call modify_stmt.
6f4a43e0 4433 * tree-complex.c (update_complex_assignment,
68b9f53b 4434 expand_complex_comparison): Call modify_stmt after changing the stmt.
6f4a43e0 4435 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
68b9f53b
AM
4436 removing the stmt.
4437 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
4438 the stmt, and only if needed.
4439 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
4440 expression.
4441 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
4442 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
4443 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
6f4a43e0 4444 (eliminate_redundant_computations): Don't pass an annotation. Call
68b9f53b
AM
4445 modify_stmt rather than setting the annotation directly.
4446 (record_equivalences_from_stmt): Remove unused local 'j'.
4447 (cprop_operand): Take a stmt rather than an annotation as a parameter.
4448 Call modify_stmt.
4449 (cprop_into_stmt): Pass stmt rather than annotation.
4450 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
6f4a43e0 4451 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
68b9f53b
AM
4452 modify_stmt.
4453 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
4454
01c98570
JM
44552004-08-10 Jason Merrill <jason@redhat.com>
4456
6c9c4526 4457 PR middle-end/16948
01c98570
JM
4458 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
4459 the RESULT_DECL.
4460
b2ddaebb
GK
44612004-08-10 Geoffrey Keating <geoffk@apple.com>
4462
4463 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
4464 hash function.
4465
23657388
RS
44662004-08-10 Roger Sayle <roger@eyesopen.com>
4467
4468 * config/mips/mips.md: New reciprocal square root patterns that
4469 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
4470
c9ca9b88
PB
44712004-08-10 Paul Brook <paul@codesourcery.com>
4472
4473 * config/arm/arm-protos.h (arm_set_return_address,
4474 thumb_set_return_address): Add prototypes.
4475 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
4476 * config/arm/arm.c (arm_compute_func_type,
4477 use_return_insn, arm_compute_save_reg0_reg12_mask,
4478 arm_compute_save_reg_mask, arm_output_function_prologue,
4479 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
4480 current_function_calls_eh_return.
4481 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
4482 old eh code.
4483 (arm_set_return_address, thumb_set_return_address): New functions.
4484 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
4485 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
4486 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
4487 (epilogue): Use the stackadj register.
4488 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
4489
45d78e7f
JJ
44902004-08-10 Jakub Jelinek <jakub@redhat.com>
4491
4492 PR target/3144
4493 * expr.c (move_by_pieces_ninsns): Add max_size argument.
4494 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
4495 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
4496 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
4497 but using MOVE_RATIO.
4498 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
4499 (can_store_by_pieces): Change max_size type to unsigned int.
4500 (store_by_pieces_1): Likewise. Pass max_size to
4501 move_by_pieces_ninsns.
4502 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
4503 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
4504 to move_by_pieces_ninsns.
4505 (STORE_BY_PIECES_P): Define.
4506 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
4507 to move_by_pieces_ninsns.
4508 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
4509
4510 * config/i386/i386.h (CLEAR_RATIO): Define.
4511
25f3e06c
PB
45122004-08-09 Paolo Bonzini <bonzini@gnu.org>
4513
4514 * expr.c (expand_expr_real_1): Add back code that was not dead.
4515
6a3203c8
AP
45162004-08-09 Andrew Pinski <apinski@apple.com>
4517
4518 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
4519 which is found to be compatible before returning the aliasing set.
4520
b9bfca81
DJ
45212004-08-09 Daniel Jacobowitz <dan@debian.org>
4522
4523 * ggc-zone.c (struct alloc_zone): Add statistics counters.
4524 (always_collect): New flag.
4525 (ggc_alloc_zone_1): Update statistics support. Don't include
4526 overhead in allocated counter.
4527 (sweep_pages): Update allocated counter for large pages. Don'y
4528 include overhead.
4529 (ggc_collect_1): Always collect.
4530 (ggc_collect): Honor always_collect flag. Sum all zones to decide
4531 whether to collect.
4532 (SCALE, LABEL): New macros.
4533 (ggc_print_statistics): Add statistics support.
4534
fdded401
RS
45352004-08-09 Roger Sayle <roger@eyesopen.com>
4536
4537 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
4538 (init_expmed): Fix potential overrun problem with "all.reg".
4539 (expand_sdiv2_pow2): Add an alternate implementation for signed
4540 division, if the target provides a suitable conditional move insn.
4541
9d8646d7
PB
45422004-08-09 Paul Brook <paul@codesourcery.com>
4543 Richard Henderson <rth@redhat.com>
4544
4545 * unwind-dw2.c (uw_install_context_1): Update target saved stack
4546 pointer.
4547
d37e6b50
GK
45482004-08-09 Geoffrey Keating <geoffk@apple.com>
4549
4550 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
4551 Check DATA limit only if there's no AS limit. Ignore insanely
4552 low DATA limits.
4553 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
4554 but take care that the AS limit isn't overrun.
4555 * doc/invoke.texi: Update documentation of min-heapsize parameter.
4556
56b043c8
JL
45572004-08-09 Jeff Law <law@redhat.com>
4558
4559 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
4560 (tree-ssa-threadupdate.o): Add dependencies.
4561 * tree-ssa-threadupdate.c: New file.
4562 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
4563 (rewrite_vars_out_of_ssa): Remove prototype.
4564 (cleanup_tree_cfg): Returns a bool.
4565 * tree.h (thread_through_all_blocks): Prototype.
4566 * tree-outof-ssa.c (SSANORM_*): Move into here.
4567 (remove_ssa_form): Now static.
4568 (rewrite_vars_out_of_ssa): Kill.
4569 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
4570 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
4571 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
4572 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
4573 anything was changed.
4574 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
4575 from the PHI's annotation rather than the edge associated with
4576 the new argument.
4577 * tree-ssa-dom.c (redirection_edges): Kill.
4578 (redirect_edges_and_update_ssa_graph): Kill.
4579 (tree_ssa_dominator_optimize): Do not reset forwardable flag
4580 for blocks anymore. Do not initialize redirection_edges.
4581 Call thread_through_all_blocks. Simplify code for cleanup
4582 of the CFG and iterating. No longer call cleanup_tree_cfg
4583 outside the iteration loop.
4584 (thread_across_edge): No longer mess with forwardable blocks.
4585
9b305d55
ZW
45862004-08-09 Zack Weinberg <zack@codesourcery.com>
4587
4588 * explow.c (memory_address): Use memory_address_p.
4589 * recog.c (general_operand): Likewise.
4590 * regrename.c: No need to define REG_OK_STRICT.
4591
27fb79ad
SB
45922004-08-09 Steven Bosscher <stevenb@suse.de>
4593
4594 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
4595 New timers.
4596 * gcse.c: Include timevar.h.
4597 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
4598 and global_copy_prop_count.
4599 (local_const_prop_count, local_copy_prop_count): New static globals.
4600 (gcse_main): Set the right timevar for each pass.
4601 (cprop_jump): Increment global_const_prop_count when a constant is
4602 propagated. Add "GLOBAL" to dump output.
4603 (cprop_insn): Increment global_const_prop_count when a constant is
4604 propagated, or global_copy_prop_count when a copy is propagated.
4605 (do_local_cprop): Likewise for local_const_prop_count and
4606 local_copy_prop_count.
4607 (one_cprop_pass): Initialize const/cprop counters to zero.
4608 Print out results of local and global const/cprop separately.
4609 (bypass_block): Break over-length line.
702d4b73
SB
4610 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
4611 for bb-reorder.o and tracer.o.
27fb79ad 4612
7efcb746
PB
46132004-08-09 Paolo Bonzini <bonzini@gnu.org>
4614
4615 * Makefile.in (GTFILES): Remove stmt.c
4616 (stmt.o): Do not depend on gt-stmt.h.
4617 * emit-rtl.c (emit_line_note): Do not call
4618 set_file_and_line_for_stmt.
4619 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
4620 do everything.
4621 * function.c (free_after_parsing): Do not free STMT field.
4622 (allocate_struct_function): Do not call init_stmt_for_function.
4623 (assign_stack_temp_for_type): Do not accept values of keep
4624 other than 0 or 1.
4625 (init_temp_slots): Do not initialize removed variables.
4626 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
4627 and X_VAR_TEMP_SLOT_LEVEL fields.
4628 * rtl.h (set_file_and_line_for_stmt): Remove.
4629 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
4630 struct stmt_status, cond_stack, case_stack, nesting_stack,
4631 nesting_depth, emit_locus, set_file_and_line_for_stmt,
4632 same_case_target_p, init_stmt_for_function, emit_nop,
4633 expand_start_cond, expand_start_elseif, expand_start_else,
4634 expand_elseif, expand_end_cond): Remove.
4635 (preserve_subexpressions_p): Remove references to CFUN->STMT.
4636 (expand_start_case, expand_end_case_type): Remove, merge into...
4637 (expand_case): ... this one, including other bits from
4638 expand_expr_real_1. Inline same_case_target_p. Turn members
4639 of CASE_STACK into local variables.
4640 (emit_case_bit_tests): Inline same_case_target_p.
4641 (add_case_node): Add HEAD argument, return new head of the list,
4642 do not handle default label here.
4643 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
4644 expand_start_elseif, current_nesting_level, expand_start_case,
4645 expand_end_case_type, expand_end_case, add_case_node,
4646 init_stmt_for_function, expand_elseif): Remove prototypes.
4647 (expand_case): Add prototype.
4648
c4d70ce3
PB
46492004-08-09 Paolo Bonzini <bonzini@gnu.org>
4650
4651 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
4652
46532004-08-09 Paolo Bonzini <bonzini@gnu.org>
e5bacf32
PB
4654
4655 * expr.c (var_rtx): Remove.
4656 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
4657 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
4658 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
4659 Abort.
4660 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
4661 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
4662 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
4663
d72372e4
MH
46642004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
4665 Ayal Zaks <zaks@il.ibm.com>
4666
4667 * common.opt (freschedule-modulo-scheduled-loops): New flag.
4668 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
4669 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
4670 when -freschedule-modulo-scheduled-loops flag is not specified.
4671 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
4672 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
4673 More accurate placing of insn in row of partial schedule.
4674 (ps_insn_find_column): New function.
4675 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
4676 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
4677 (schedule_region): Use sched_is_disabled_for_current_region_p.
4678 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
4679
0737fbff
L
46802004-08-07 H.J. Lu <hongjiu.lu@intel.com>
4681
4682 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
4683 change.
4684
11c4576f
L
46852004-08-07 H.J. Lu <hongjiu.lu@intel.com>
4686
4687 * config/i386/i386.c (ix86_expand_clrmem): Properly call
4688 gen_strset for 64bit target.
4689
34def210
OH
46902004-08-07 Olivier Hainque <hainque@act-europe.fr>
4691
4692 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
4693
5201931e
JM
46942004-08-07 Jason Merrill <jason@redhat.com>
4695
cc77ae10
JM
4696 Make return in memory explicit.
4697 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
4698 (assign_parm_find_data_types): Remove code for old front end
4699 invisible reference handling.
4700 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
4701 (expand_function_end): Likewise.
4702 * gimplify.c (gimplify_return_expr): Handle a dereferenced
4703 RESULT_DECL.
4704 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
4705 (declare_return_variable): Handle DECL_BY_REFERENCE.
4706 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
4707 (cp_genericize_r): Use convert_from_reference.
4708 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
4709 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
4710
5201931e
JM
4711 * c-common.c (c_warn_unused_result): Check TREE_USED before
4712 warning about a CALL_EXPR with an unused value.
4713
2ed9e527
MM
47142004-08-06 Mark Mitchell <mark@codesourcery.com>
4715
4716 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
4717 to the compiler. Use -fshort-wchar by default.
4718
12183e0f
PH
47192004-08-06 Pat Haugen <pthaugen@us.ibm.com>
4720
4721 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
4722 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
4723 threshhold.
4724 * doc/invoke.texi (param): Document min-crossjump-insns.
4725
eaac4679
RS
47262004-08-06 Richard Sandiford <rsandifo@redhat.com>
4727
4728 PR c/13282
4729 * c.opt (Wmissing-field-initializers): New option.
4730 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
4731 * c-typeck.c (pop_init_level): Guard the missing field warning with
4732 warn_missing_field_initializers rather than extra_warnings.
4733 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
4734 some of the explanation from...
4735 (-Wextra): ...here. Say that the missing field warning can be
4736 seperately controlled by -Wmissing-field-initializers.
4737
caad9f81
PB
47382004-08-06 Paolo Bonzini <bonzini@gnu.org>
4739
4740 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
4741 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
4742 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
4743 * tree.def (ENTRY_VALUE_EXPR): Remove.
4744
6b32b628
JJ
47452004-08-06 Jakub Jelinek <jakub@redhat.com>
4746
4747 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
4748 the places where it is actually needed. Don't use repz; stosb
4749 for -Os with sufficiently small constant sizes.
4750 For sufficiently small repz; stos{l,q} repeat counts use a sequence
4751 of stos{l,q} instructions instead.
4752
6797f908
ZD
47532004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4754
4755 PR tree-optimization/16807
4756 * loop-iv.c (dump_iv_info): Dump invariants correctly.
4757 (iv_subreg, iv_extend): Express value of invariant purely in
4758 base field.
4759
866cf037
MM
47602004-08-06 Mark Mitchell <mark@codesourcery.com>
4761
4762 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
4763 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
4764
9652c531 47652004-08-06 Roman Zippel <zippel@linux-m68k.org>
9b305d55 4766
27fb79ad
SB
4767 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
4768 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
4769 pre_dec_operand.
4770 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
4771 pattern until reload is finished to allow better code generation
4772 and split them completely into separate instrunctions.
4773 (*andsi3_split): New pattern.
9652c531 4774
b2ca3702
MM
47752004-08-05 Mark Mitchell <mark@codesourcery.com>
4776
4777 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
4778 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
4779 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
4780 * tree.h (handle_dll_attribute): Declare. Test
4781 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
4782 * c-common.h (c_determine_visibility): Declare.
4783 * c-common.c (c_determine_visibility): New function.
4784 * c-decl.c (finish_decl): Use it.
4785 (finish_function): Likewise.
4786 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
4787 zero, by default. Use #if, not #ifdef, to test it.
4788 * config/arm/arm.c (arm_attribute_table): Use
4789 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
4790 #if.
4791 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
4792 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
4793 to 1.
4794 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
4795 * config/i386/i386.c (ix86_attribute_table): Use
4796 handle_dll_attribute for dllimport/dllexport. Test
4797 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
4798 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
4799 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
4800 it to 1.
4801 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
4802 with #if.
4803 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
4804 it to 1.
4805 * doc/extend.texi (dllexport): Clarify and correct documentation.
4806 (dllimport): Likewise.
4807 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
4808 handle_dll_attribute.
9b305d55 4809
c913f08a
ZD
48102004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4811
4812 * tree-ssa-loop-manip.c: New file.
4813 * Makefile.in (tree-ssa-loop-manip.o): Add.
4814 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
4815 Declare.
4816 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
4817 form.
4818 (tree_ssa_loop_done): Verify loop closed ssa form.
4819 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
4820
d4482715
JDA
48212004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4822
4823 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
4824 pa_asm_output_aligned_local): New functions.
4825 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
4826 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
4827 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
4828 pa_asm_output_aligned_common.
4829 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
4830 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
4831 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
4832 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
4833 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
4834 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
4835 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
4836 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
4837 common data.
4838
21149a79
AP
48392004-08-05 Andrew Pinski <apinski@apple.com>
4840
4841 * objc/objc-act.c (build_objc_string_object): Mark the address
4842 expression as constant.
4843
d5861a7a
DE
48442004-08-05 David Edelsohn <edelsohn@gnu.org>
4845
4846 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
4847 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
4848 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
4849
0a2b72a6
JM
48502004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
4851
4852 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
4853 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
4854 out, and associated obsolete comments.
4855
ca7a3bd7
NS
48562004-08-05 Nathan Sidwell <nathan@codesourcery.com>
4857
4858 * tree.h (force_fit_type): Return a tree, take three flags.
4859 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
4860 TREE_CONSTANT_OVERFLOW here.
4861 (int_const_binop, const_binop): Adjust.
4862 (size_int_type): Do sign extension here.
4863 (fold_convert_const, optimize_bit_field_compare,
4864 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
4865 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
4866 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
4867
d36837f4
ZD
48682004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4869
4870 PR tree-optimization/16864
4871 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
4872 for ssa names without default_def.
4873
ea5f7a19
RS
48742004-08-05 Richard Sandiford <rsandifo@redhat.com>
4875
4876 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
4877 frame pointer, restore eax with an ebp-relative address.
4878
0e6df31e
GK
48792004-08-04 Geoffrey Keating <geoffk@apple.com>
4880
4881 PR 14516
4882 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
4883 * c-common.h (make_rtl_for_local_static): Delete.
4884 * c-decl.c (shadow_tag_warned): Clean up comment.
4885 (finish_decl): Clean up spacing. Use set_user_assembler_name when
4886 appropriate. Don't pass asmspec to rest_of_decl_compilation.
4887 * c-semantics.c (make_rtl_for_local_static): Delete.
4888 * expr.c (init_block_move_fn): Use set_user_assembler_name.
4889 (init_block_clear_fn): Likewise.
4890 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
4891 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
4892 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
4893 * tree.h (make_decl_rtl): Remove second parameter.
4894 (set_user_assembler_name): New.
4895 * varasm.c (set_user_assembler_name): New.
4896 (make_decl_rtl): Remove second parameter. Update callers in many
4897 files.
4898
4f587cb0
AN
48992004-08-05 Adam Nemet <anemet@lnxw.com>
4900
4901 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
4902 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
4903 to LynxOS 4.0.
4904 * gthr-lynx.h: New file.
4905 * config/lynx-ng.h: Remove file.
4906 * config/lynx.h: Update to LynxOS 4.0.
4907 * config/t-lynx: New file.
4908 * config/i386/lynx-ng.h: Remove file.
4909 * config/i386/lynx.h: Update to LynxOS 4.0.
4910 * config/rs6000/lynxbase.h: Remove file.
4911 * config/rs6000/lynx.h: Update to LynxOS 4.0.
4912 * config/rs6000/t-lynx: New file.
4913 * doc/install.texi (Options specification): Remove reference to
4914 LynxOS from systems where --with-gnu-as makes a difference.
4915
85291069
JM
49162004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
4917
4918 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
4919 __UINTMAX_TYPE__.
4920 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
4921 __INTMAX_MAX__.
4922 (c_cpp_builtins): Call it.
4923 * doc/cpp.texi: Update.
4924
30a555d9
DE
49252004-08-04 David Edelsohn <edelsohn@gnu.org>
4926
4927 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
4928 cost.
4929
878f99d2
JH
49302004-08-04 Jan Hubicka <jh@suse.cz>
4931
4932 * basic-block.h (profile_staus): New global variable.
4933 * cfg.c (profile_status): Declare.
4934 (check_bb_profile): Break out from ....; use profile_status
4935 (dump_flow_info): ... here.
4936 * cfgbuild.c (find_basic_blocks): Set profile_status.
4937 * cfgexpand.c (tree_expand_cfg): Likewise.
4938 * predict.c (estimate_probability): Likewise.
4939 * profile.c (branch_prob): Likewise.
4940 * tree-cfg.c (build_tree_cfg): Likewise.
4941 (dump_function_to_file): Use check_bb_profile.
4942 * tree-pretty-print (dump_bb_header): Likewise.
4943 * tree-profile.c (do_tree_profiling): Cleanup.
4944
7e7ec48e
ZW
49452004-08-04 Zack Weinberg <zack@codesourcery.com>
4946
4947 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
4948 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
4949 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
4950 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
4951 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
4952 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
4953 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
4954 (ggc-none.o, errors.o): Move rule to generators section;
4955 correct dependencies.
4956 (min-insn-modes.o): Move rule to generators section; remove
4957 unnecessary explicit command; correct dependencies.
4958 (print-rtl.o, print-rtl1.o): Correct dependencies.
4959 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
4960 (mostlyclean): Update.
4961
4962 * errors.c: Include bconfig.h not config.h. Correct comment.
4963 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
4964 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
4965 * print-rtl.c: Don't include tm_p.h.
4966
4967 * rtl.h: Move forward-decl of struct function down where it's
4968 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
4969 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
4970
b0382c67
ZD
49712004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4972 Jeff Law <law@redhat.com>
4973
4974 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
4975 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
4976 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
4977 manipulate the duplicated ssa names.
4978 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
4979 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
4980 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
4981 New functions.
4982 (release_ssa_name): Do not release ssa names that may have multiple
4983 definitions.
4984 * tree.h (release_ssa_name_force, mark_for_rewrite,
4985 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
4986 marked_ssa_names): Declare.
4987 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
4988 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
4989 Update call to rewrite_ssa_into_ssa.
4990
63c5b495
MM
49912004-08-04 Mark Mitchell <mark@codesourcery.com>
4992
4993 * defaults.h (TARGET_DECLSPEC): New macro.
4994 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
4995 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
b2ca3702 4996 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
63c5b495
MM
4997 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
4998 __declspec support.
4999 (TARGET_DECLSPEC): Define.
5000 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
5001 __declspec support.
5002 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
5003 __declspec support.
5004 (TARGET_DECLSPEC): Define.
5005 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
5006 __declspec support.
5007 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
5008 support.
5009 * doc/tm.texi (TARGET_DECLSPEC): Document.
5010
5011 * doc/extend.texi: Fix typo in comment.
5012
44d10c10
PB
50132004-08-04 Paul Brook <paul@codesourcery.com>
5014
5015 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
5016 (TARGET_CXX): Use it.
5017 * target.h (struct gcc_target): Add cdtor_returns_this.
5018 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
5019 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
5020 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
5021
5e9754af
NS
50222004-08-03 Nathan Sidwell <nathan@codesourcery.com>
5023
5024 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
5025 low/high pair. Do range checking directly.
5026 (interpret_integer): Adjust.
5027
2acc29bd
NC
50282004-08-04 Nick Clifton <nickc@redhat.com>
5029
5030 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
5031 GCC ABI.
5032 * doc/invoke.texi: Document this new switch and also the -mrenesas
5033 switch.
5034
2496942a
NS
50352004-08-04 Nathan Sidwell <nathan@codesourcery.com>
5036
5037 * cfglayout.c (insn_locators_initialize): Update the current
5038 location before initializing a location.
5039
7e2e8179
ZW
50402004-08-03 Zack Weinberg <zack@codesourcery.com>
5041
403f8503
ZW
5042 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
5043 (dbxout_function_end): Return after emitting the "Lscope" symbol
5044 under the same conditions that this function formerly wasn't called.
5045 Add explanatory comments.
5046
bcc7f708 5047 PR 14860
ca043393
ZW
5048 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
5049 on the new decl.
5050
bcc7f708 5051 PR 13956
7e2e8179
ZW
5052 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
5053 functions, broken out of dbxout_block.
5054 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
5055 stabs too, if it contains symbols. Use the begin_label and
5056 the Lscope label (emitted by dbxout_function_end) for the
5057 range of this block.
5058
5d75ba94
NN
50592004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
5060
5061 * doc/install.texi: Update autoconf version requirements.
5062
2e4e72b1
ZW
50632004-08-03 Zack Weinberg <zack@codesourcery.com>
5064
5065 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
5066 * recog.c (general_operand, immediate_operand, nonmemory_operand)
5067 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
5068 * regclass.c (record_reg_classes): Likewise.
5069 * reload.c (find_reloads): Likewise.
5070 * reload1.c (reload): Likewise.
5071
f9942f4e
ZW
50722004-08-03 Zack Weinberg <zack@codesourcery.com>
5073
5074 * gensupport.c (init_md_reader_args_cb): Renamed from
5075 init_md_reader_args. Add third option, callback function for
5076 parsing program-specific options. Add diagnosis of incorrect
5077 number of input files.
5078 (init_md_reader): Fold into init_md_reader_args_cb.
5079 (init_md_reader_args): Now a thin wrapper around
5080 init_md_reader_args_cb.
5081 * gensupport.h: Update prototypes.
5082
5083 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
5084 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
5085 * genrecog.c: No need to diagnose lack of an input file;
5086 init_md_reader_args will handle it.
5087 * genconditions.c: Likewise, and use init_md_reader_args.
5088 * genconstants.c: Likewise, and no need to call read_md_rtx.
5089
9cbe78fb
JM
50902004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
5091
5092 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
5093 declarations.
5094
3e558e80
MS
50952004-08-03 Mike Stump <mrs@apple.com>
5096
5097 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
5098 for frameworks.
5099 * doc/invoke.texi (Darwin Options): Update to reflect above.
5100
a0fac73d
RS
51012004-08-03 Roger Sayle <roger@eyesopen.com>
5102
5103 PR middle-end/16790
5104 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
5105 truncations, not just global truncations.
5106
cddbddb7
AP
51072004-08-03 Andrew Pinski <apinski@apple.com>
5108
5109 PR bootstrap/16865
5110 * loop-iv.c (simplify_using_assignment): Initialize lhs.
5111
bebf829d
PB
51122004-08-03 Paul Brook <paul@codesourcery.com>
5113
5114 * gcc/doc/install.texi: Document MPFR requirement.
5115
cddbddb7 51162004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
3b0727a0 5117
f9942f4e
ZW
5118 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
5119 and mmap() explicitly instead of relying on preset autoconf cache
3b0727a0
MR
5120 variables.
5121 * configure: Regenerate.
5122
f6bc51cb
L
51232004-08-03 H.J. Lu <hongjiu.lu@intel.com>
5124
5125 PR target/16570
5126 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
5127 to tmake_file.
5128 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
5129 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
5130 to tmake_file.
5131
5132 * config/i386/t-gmm_malloc: New file.
5133 * config/i386/t-pmm_malloc: Likewise.
f9942f4e 5134
f6bc51cb
L
5135 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
5136
51372004-08-03 H.J. Lu <hongjiu.lu@intel.com>
d46cd2be 5138