]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
Daily bump.
[gcc.git] / gcc / ChangeLog
CommitLineData
f4c0250b
SB
12004-08-30 Steven Bosscher <stevenb@suse.de>
2
3 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
4 not the pointers.
5
ff164b22
GK
62004-08-30 Geoffrey Keating <geoffk@apple.com>
7
8 PR 12738
9 PR 17205
10 Radar 3460526
11 Radar 3775729
12 * c-decl.c (grokdeclarator): Produce error for 'static' on local
13 function declaration.
14
bc482be4
RH
152004-08-30 Richard Henderson <rth@redhat.com>
16
17 * expr.c (array_ref_element_size): Force aligned_size back to
18 sizetype.
19 (component_ref_field_offset): Similarly for aligned_offset.
20 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
21 low-bound, element-size, field-offset fields rather than
22 computed values.
23
21611613
JM
242004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
25
26 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
27 redundant code.
28
7b112487
JM
292004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
30
31 * c-tree.h (struct language_function): Add arg_info element.
32 * c-decl.c (current_function_arg_info): New.
33 (grokdeclarator, store_parm_decls): Use it instead of
34 DECL_ARGUMENTS.
35 (c_push_function_context, c_pop_function_context): Save and
36 restore it.
37
5cc200fc
RH
382004-08-30 Richard Henderson <rth@redhat.com>
39
40 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
41 COMPONENT_REF to pointer arithmetic.
42 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
43 constant "c" as a valid constant initializer. Allow narrowing of
44 differences against the same base object, for any base object.
45
6377bb9a
RH
462004-08-30 Richard Henderson <rth@redhat.com>
47
48 * expr.c (expand_expr_addr_expr): New.
49 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
50
308cd611
RS
512004-08-30 Richard Sandiford <rsandifo@redhat.com>
52
53 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
54 (mips_fp_condition): New enum.
55 (mips_fp_conditions): New array.
56 (print_fcc_operand): Delete.
57 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
58 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
59 (builtin_description): Add "cond" field.
60 (DIRECT_BUILTIN): Initialize it.
61 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
62 into INSN and CODE. Initialize the "cond" field.
63 (CMP_BUILTINS): Update accordingly.
64 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
65 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
66 mips_fp_condition as argument. Make it the final operand of the
67 comparison instruction.
68 (mips_expand_builtin): Update accordingly.
69 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
70 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
71 the gaps.
72 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
73 Don't use the 'Q' operand prefix; just print the operand normally.
74 (mips_cabs_*, mips_c_*): Delete, replacing with...
75 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
76 patterns. Split the 4s versions into 2 ps patterns after reload.
77
88f19756
RH
782004-08-30 Richard Henderson <rth@redhat.com>
79
80 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
81 assuming an ADDR_EXPR is non-null.
82
70008293
JM
832004-08-30 Jason Merrill <jason@redhat.com>
84
d92a3b38 85 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
70008293 86
fc6633e0
NS
872004-08-30 Nathan Sidwell <nathan@codesourcery.com>
88
e0448193
NS
89 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
90 * gcov.c (abort): Remove undef.
91
fc6633e0
NS
92 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
93 (struct tree_binfo): Remove primary field.
94
89b8abbf
PB
952004-08-30 Paolo Bonzini <bonzini@gnu.org>
96
97 * fixinc/Makefile.in (machname.h): Remove.
98 (fixincl.x): Do not pass $@ to genfixes.
99 * fixinc/genfixes: Remove code to produce machname.h.
100 * fixinc/fixincl.sh: Move it here instead.
101 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
102 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
103 return a bool indicating whether pz_mn_name_pat is NULL.
104 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
105 Declare extern C variables for the ENV_TABLE.
106 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
107 instead use the result of mn_get_regexps.
108 * fixinc/fixtests.c: Likewise.
109
39880d37
PB
1102004-08-30 Paolo Bonzini <bonzini@gnu.org>
111
112 * configure.ac: Do not run fixincludes after stage1 during
113 toplevel bootstrap.
114 * configure: Regenerate.
115
a8b3643c
RE
1162004-08-30 Richard Earnshaw <rearnsha@arm.com>
117
118 * sched-deps.c (get_condition): Partially revert previous, by never
119 trying to extract the condition from a condjump.
120
fc6633e0
NS
1212004-08-30 Nathan Sidwell <nathan@codesourcery.com>
122
123 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
124 (handle_visibility_attribute, c_determine_visibility): Likewise.
125 * c-common.h (my_friendly_assert): Remove.
126
afa396ff
RS
1272004-08-30 Richard Sandiford <rsandifo@redhat.com>
128
129 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
130 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
131 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
132 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
133 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
134
ef6379fd
DN
1352004-08-30 Diego Novillo <dnovillo@redhat.com>
136
137 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
138 in COMPONENT_REF nodes.
139
7783b402
GDR
1402004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
141
142 PR c++/15378
143 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
144 global_dc->warning_as_error_requested.
145 * diagnostic.c (diagnostic_initialize): Tidy.
146 * diagnostic.h (diagnostic_context::x_data): Remove
147 (diagnostic_context::issue_warnings_are_errors_message): Rename
148 from warnings_are_errors_message.
149 (diagnostic_context::warning_as_error_requested): New.
150
adf968c7
RE
1512004-08-30 Richard Earnshaw <rearnsha@arm.com>
152
153 * sched-deps.c (get_condition): Fix breakage in previous patch.
154
999f4d5e
PB
1552004-08-30 Paul Brook <paul@codesourcery.com>
156
157 * doc/install.texi: Fix broken mpfr link.
158
5a0c2304
DB
1592004-08-29 David O'Brien <obrien@FreeBSD.org>
160
161 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
162 other FreeBSD platforms.
163
880873be
RE
1642004-08-29 Richard Earnshaw <rearnsha@arm.com>
165
166 * arm.h (REVERSE_CONDITION): Define.
167 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
168
15dce812
RE
1692004-08-29 Richard Earnshaw <rearnsha@arm.com>
170
171 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
172 just the codes, call reversed_comparison_code ().
173 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
174 (not_reg_cond): Use reversed_comparison_code.
175 (and_reg_cond): Likewise.
176 * ifcvt.c (cond_exec_process_if_block): Likewise.
177 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
178
6903ecd4
RE
1792004-08-29 Richard Earnshaw <rearnsha@arm.com>
180
181 * sched-deps.c (get_condition): Rewrite using jump support functions.
182 Use reversed_comparison_code.
183 (conditions_mutex_p): Use reversed_comparison_code.
184
ea9bfbf2
RS
1852004-08-29 Richard Sandiford <rsandifo@redhat.com>
186
187 * config/mips/mips.c (override_options): Disable hot/cold partitioning
188 for MIPS16.
189
4ca1f68f
RS
1902004-08-29 Richard Sandiford <rsandifo@redhat.com>
191
192 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
193 (mips_function_type): Move to mips.c.
194 * config/mips/mips.c (mips_builtin_type): New enum.
195 (builtin_description): Replace code and ftype with builtin_type
196 and function_type.
197 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
198 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
199 (CODE_FOR_mips_abs_ps): Define.
200 (mips_bdesc): Use new macros.
201 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
202 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
203 (mips_expand_builtin_direct): New function.
204 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
205 builtin. Replace boolean parameter with builtin_type.
206 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
207 (mips_expand_4s_compare_builtin): Delete, replacing with...
208 (mips_expand_builtin_compare): ...this new function.
209
5e9f78cc
MM
2102004-08-29 Mark Mitchell <mark@codesourcery.com>
211
212 PR rtl-optimization/16590
213 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
214
766ff1b1
DN
2152004-08-29 Diego Novillo <dnovillo@redhat.com>
216
217 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
218 * tree-ssa-propagate.c: Fix documentation.
219
2435c4c1
RS
2202004-08-29 Richard Sandiford <rsandifo@redhat.com>
221
222 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
223 (mov[sd]fcc): Likewise.
224
53d9ac3b
RS
2252004-08-29 Richard Sandiford <rsandifo@redhat.com>
226
227 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
228
93898c8b
RS
2292004-08-29 Richard Sandiford <rsandifo@redhat.com>
230
231 * config/mips/mips.md (divide_condition): New mode attribute.
232 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
233 (sqrt[sd]f3): Redefine using SCALARF.
234 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
235 patterns.
236
aae0609c
RS
2372004-08-29 Richard Sandiford <rsandifo@redhat.com>
238
239 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
240 (loadx, storex, fmt, UNITMODE): New mode attributes.
241 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
242 (mul[sd]f3): Redefine using :SCALARF.
243 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
244 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
245 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
246 Check TARGET_FUSED_MADD for V2SF too.
247 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
248 were already named.
249 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
250 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
251
74fc61d1
RS
2522004-08-29 Richard Sandiford <rsandifo@redhat.com>
253
254 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
255 V2SF_type_node if it will be needed.
256
ff55fb9c
RS
2572004-08-29 Richard Sandiford <rsandifo@redhat.com>
258
259 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
260 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
261 (mips_prepare_builtin_target): New function.
262 (mips_expand_builtin): Use them. Update calls to subroutines.
263 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
264 cmp_choice with a boolean argument to select between movt and movf.
265 Take the comparison's icode as an argument, not the function's fcode.
266 (mips_expand_compare_builtin): New function. Rename existing function
267 to mips_expand_scalar_compare_builtin.
268 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
269 (mips_expand_ps_compare_builtin): Use the new functions. Take the
270 comparison's icode as an argument, not the builtin's fcode.
271
f691c4e3
RS
2722004-08-29 Richard Sandiford <rsandifo@redhat.com>
273
274 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
275 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
276 registers are false and -1 if all registers are true.
277 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
278 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
279 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
280 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
281 (bc1any2t, bc1any2f): Likewise CCV2.
282 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
283
49135706
RS
2842004-08-29 Richard Sandiford <rsandifo@redhat.com>
285
286 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
287 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
288 UNSPEC rather than an IF_THEN_ELSE.
289 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
290 mips_cond_move_tf_ps by name.
291
06a4ab70
CF
2922004-08-29 Chao-ying Fu <fu@mips.com>
293 James E Wilson <wilson@specifixinc.com>
294
295 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
296 8 byte size and alignment. Give CCV4 16 byte size and alignment.
297 * config/mips/mips-ps-3d.md: New file.
298 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
299 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
300 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
301 (mips_output_move): Emit "mov.ps" for V2SFmode.
302 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
303 MODE_VECTOR_FLOAT.
304 (override_options): Check if TARGET_MIPS3D and there was an explicit
305 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
306 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
307 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
308 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
309 and allow CCV2 and CCV4 to occupy two and four CC registers.
310 (print_fcc_operand): New function.
311 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
312 %Z to call print_fcc_operand.
313 (mips_function_value): Handle MODE_VECTOR_FLOAT.
314 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
315 (mips_vector_mode_supported_p): New function.
316 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
317 (builtin_description): New struct.
318 (mips_bdesc): New array of struct builtin_description.
319 (mips_expand_builtin, mips_init_builtins,
320 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
321 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
322 functions.
323 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
324 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
325 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
326 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
327 "-mips3d", and "-mno-mips3d".
328 (ASM_SPEC): Map -mips3d to -mips3d in gas.
329 (EXTRA_CONSTRAINT_Y): New macro.
330 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
331 multi-letter constraint 'Y'.
332 (CONSTRAINT_LEN): New macro.
333 (enum mips_builtins): New for MIPS builtin functions.
334 (enum mips_function_type): New for the types of MIPS builtin functions.
335 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
336 * config/mips/mips.md: New constants for paired single and MIPS-3D
337 instructions. Include the new mips-ps-3d.md file.
338 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
339 movv2sf_hardfloat_64bit): New named patterns.
340 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
341 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
342 sdxc1_v2sf_di): New unnamed patterns.
343 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
344 const_vector support.
345 (const_0_or_1_operand): New predicate.
346 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
347
750628d8
DN
3482004-08-29 Diego Novillo <dnovillo@redhat.com>
349
350 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
351 (tree-ssa-propagate.o): New rule.
352 (GTFILES): Add tree-ssa-propagate.c.
353 * tree-flow.h (struct stmt_ann_d): Remove field
354 in_ccp_worklist.
355 * tree-ssa-propagate.c: New file.
356 * tree-ssa-propagate.h: New file.
357 * tree-ssa-ccp.c: Re-write to use the routines from
358 tree-ssa-propagate.c.
359
f108270b
AP
3602004-08-28 Andrew Pinski <apinski@apple.com>
361
362 * tree-ssa-loop.c: Remove extra include of basic-block.h.
363
e5a002e3
ZL
3642004-08-28 Ziemowit Laski <zlaski@apple.com>
365
366 * c-common.h: Update comments about ObjC/ObjC++ entry points.
367 (objc_is_reserved_word): New prototype.
368 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
369 separate section; these are call-backs.
370 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
371 ObjC/ObjC++ "@" keywords.
372 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
373 prototypes; they already live in c-common.h.
374 * stub-objc.c: Update copyright notice.
375 (objc_is_reserved_word): New stub.
376
2c46a62f
NS
3772004-08-28 Nathan Sidwell <nathan@codesourcery.com>
378
379 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
380 even when not checking.
381
40aac948
JM
3822004-08-27 Jason Merrill <jason@redhat.com>
383
384 PR c++/13684
385 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
386 (gimple_push_cleanup): Add eh_only parm.
387 (gimplify_target_expr): Pass it.
388 * c.opt (-fno-threadsafe-statics): New option.
389 * c-opts.c (c_common_handle_option): Handle it.
390 * c-common.h (flag_threadsafe_statics): Declare it.
391 * c-common.c (flag_threadsafe_statics): Record it.
392 * doc/invoke.texi: Document it.
393 * tsystem.h (_GNU_SOURCE): Define.
394 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
395 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
396 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
397 (__gthread_recursive_mutex_init_function): New fn.
398 (__gthread_recursive_mutex_lock): New fn.
399 (__gthread_recursive_mutex_trylock): New fn.
400 (__gthread_recursive_mutex_unlock): New fn.
401 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
402 * gthr-win32.h, gthr-vxworks.h: Likewise.
403 * gthr.h: Document.
404
1494c534
DE
4052004-08-27 David Edelsohn <edelsohn@gnu.org>
406
407 * config/rs6000/rs6000.c (rs6000_override_options): Increase
408 maximum skip to 15. Set function alignment, jump alignment, and
409 loop alignment to 16 for processors that form dispatch groups.
03e9c50a 410 (rs6000_rtx_costs): outer_code is used.
1494c534 411
ce552f75
NS
4122004-08-27 Nathan Sidwell <nathan@codesourcery.com>
413
e3861d2a
NS
414 * stor-layout.c (sizetype_set): Remove.
415 (set_sizetype): Don't test or set it.
416
ce552f75
NS
417 * tree.h (size_int_type): Remove.
418 * fold-const.c: Do not #include gt-fold-const.h.
419 (size_htab_hash, size_htab_eq): Remove.
420 (size_int_kind): Use build_int_cst.
421 (new_const, size_htab): Remove.
422 (size_int_type): Remove.
423 (round_up): Use build_int_cst.
424 (round_down): Likewise. Remove spurious constant build.
425
06c37c96
NS
4262004-08-27 Nathan Sidwell <nathan@codesourcery.com>
427
428 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
429 Add is_release variable, use it for --enable-werror and
430 --enable-checking defaults.
431 * system.h (gcc_assert, gcc_unreachable): New.
432 * doc/install.texi (--enable-checking): Update.
433 * configure, config.in: Rebuilt.
434
57406c63
RS
4352004-08-26 Richard Sandiford <rsandifo@redhat.com>
436
437 * rtl.h (read_rtx): Change prototype.
438 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
439 line number. Return true on success.
440 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
441 callers accordingly.
442
ee8a6a3e
RH
4432004-08-26 Richard Henderson <rth@redhat.com>
444
445 * c-typeck.c (build_offsetof): Remove.
446 * c-tree.h (build_offsetof): Remove.
447 * c-common.c (fold_offsetof_1, fold_offsetof): New.
448 * c-common.h (fold_offsetof): Declare.
449 * c-parse.in (offsetof_base): New.
450 (offsetof_member_designator): Use it. Build references, not just
451 a tree list.
452 (primary): Use fold_offsetof, not build_offsetof.
453
525c6bf5
RH
4542004-08-26 Richard Henderson <rth@redhat.com>
455
456 * tree.c (staticp): Return the static object.
457 * tree.h (staticp): Update decl.
458 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
459 * langhooks.c (lhd_staticp): Return NULL_TREE.
460 * langhooks-def.h (lhd_staticp): Update decl.
461 * c-common.c (c_staticp): Return the static object.
462 * c-common.h (c_staticp): Update decl.
463
d416c0b3
RH
4642004-08-26 Richard Henderson <rth@redhat.com>
465
466 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
467 modes.
468
0b410f0b
JM
4692004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
470
471 PR c/13801
472 * c-decl.c (struct c_binding): Add type and inner_comp fields.
473 (bind): Set type and inner_comp fields.
474 (pop_scope): Restore type of decl to the correct type from an
475 outer scope. Give error when popping file scope for incomplete
476 arrays completed incompatibly with default initialization in an
477 inner scope.
478 (diagnose_mismatched_decls): Handle externs with initializers at
479 block scope.
480 (pushdecl): Set type of external declaration at block scope based
481 only on the visible declarations. Save type when changing the
482 type of a declaration. Merge an external declaration at block
483 scope with a visible static declaration at file scope.
484 (implicitly_declare): Give recycled old declaration the new type
485 except for incompatible declarations of built-in functions, saving
486 the old type.
487
b77c7437
ZL
4882004-08-26 Ziemowit Laski <zlaski@apple.com>
489
490 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
491
a228baff
DB
4922004-08-26 Daniel Berlin <dberlin@dberlin.org>
493
494 * tree-alias-common.c (gate_pta): New function.
495 (pass_build_pta): Use it.
496 (pass_del_pta): Use it.
497 (delete_alias_vars): Don't check flag_tree_points_to.
498
2e6c9641
FJ
4992004-08-26 Fariborz Jahanian <fjahanian@apple.com>
500
501 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
502 TFmode as additional register mode cloberred by call.
503
5042004-08-26 Fariborz Jahanian <fjahanian@apple.com>
505
506 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
507 parallel pattern for library call returning DImode in
508 mixed mode.
509
5102004-08-26 Fariborz Jahanian <fjahanian@apple.com>
511
512 * config/rs6000/rs6000.c (function_arg): Generate parallel
513 pattern for more split args.
514
5152004-08-26 Fariborz Jahanian <fjahanian@apple.com>
516
517 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
518 either gen_movdi_di_update or gen_movdi_si_update depending on
519 target mode.
520 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
521 to generate two versions.
522
36d59cf7
DB
5232004-08-26 Daniel Berlin <dberlin@dberlin.org>
524
525 * Makefile.in (lambda-code.o): New.
526 (lambda-trans.o): Ditto.
527 (TREE_DATA_REF_H): Ditto.
528 (LAMBDA_H): Ditto.
529 (lambda-mat.o): Use LAMBDA_H.
530 (tree-data-ref.o): Ditto.
531 * lambda-code.c: New file. Lambda code generation algorithm.
532 * lambda-trans.c: Ditto. Lambda transformation matrix support.
533 * lambda.h: Add lambda loop structures.
534 Add lambda loopnest structures.
535 Add lambda body vector structure.
536 Add lambda linear expression structures.
537 Add prototypes for functions in new files.
538 * lambda-mat.c: Include tree.h
539
5402004-08-26 Daniel Berlin <dberlin@dberlin.org>
541 Sebastian Pop <pop@cri.ensmp.fr>
542
543 * tree-data-ref.h: Include lambda.h
544 (free_dependence_relation): Declared here.
545 (free_dependence_relations): Ditto.
546 (free_data_refs): Ditto.
547 * tree-data-ref.c (free_dependence_relation): New function.
548 (free_dependence_relations): Ditto.
549 (free_data_refs): Ditot.
550 (analyze_all_data_dependences): Free datarefs and dependence_relations.
551 (build_classic_dist_vector): Store in the dependence_relations the
552 information. Each arc in the dependence_relations graph is labelled
553 with the distance and direction vectors.
554 (build_classic_dir_vector): Ditto.
555 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
556 Now computes again the whole dependence graph including read-read
557 relations.
558 (compute_data_dependences_for_loop): Now dependence_relations contains
559 all the data, and thus it doesn't need to initialize the classic_dir
560 and classic_dist vectors.
561 (analyze_all_data_dependences): Adjusted for using the new interface of
562 compute_data_dependences_for_loop. Remove the statistics dump.
563
a46bbb5a
BW
5642004-08-26 Bob Wilson <bob.wilson@acm.org>
565
566 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
567 (xtensa_expand_block_move): Update comment.
568 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
569
52351a5e
RE
5702004-08026 Richard Earnshaw <rearnsha@arm.com>
571
572 PR target/13506
573 * toplev.c (crash_signal): If we crashed while emitting
574 a user asm, then die more gracefully.
575
b72e46f0
NC
5762004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
577
578 PR target/17119.
579 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
580 checking for a valid constant, regardless of sign.
581
fd9363bf
RH
5822004-08-25 Richard Henderson <rth@redhat.com>
583
d416c0b3
RH
584 PR target/16974
585 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
586 if the constant satisfies add_operand.
fd9363bf 587
45f413e4
RH
5882004-08-25 Richard Henderson <rth@redhat.com>
589
d416c0b3
RH
590 PR debug/10695
591 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
592 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
593 unwind info for >16-bit frames.
45f413e4 594
7e233208
RK
5952004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
596
597 PR target/17171
598 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
599
04886dc0
RH
6002004-08-25 Richard Henderson <rth@redhat.com>
601
d416c0b3
RH
602 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
603 (TARGET_CANNOT_FORCE_CONST_MEM): New.
04886dc0 604
aca2bd7c
AM
6052004-08-25 Andrew MacLeod <amacleod@redhat.com>
606
607 * doc/tree-ssa.texi: Document new operand iterator.
608
0423421f
AM
6092004-08-26 Alan Modra <amodra@bigpond.net.au>
610
611 PR target/16480
612 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
613 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
614 as PLUS base regs.
615
e4dc702c
PB
6162005-08-28 Paul Brook <paul@codesourcery.com>
617
618 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
619 -mfpu=vfp -march=armv5t
37d5a9a5 620 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
e4dc702c 621
6dd53648
RH
6222004-08-25 Richard Henderson <rth@redhat.com>
623
624 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
625 * target.h (struct gcc_target): Add scalar_mode_supported_p.
626 * targhooks.c (default_scalar_mode_supported_p): New.
627 * targhooks.h (default_scalar_mode_supported_p): Declare.
628 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
629
630 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
631 before attempting to create types. Tidy.
632 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
633
634 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
635 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
636
bab2b22b
RH
6372004-08-25 Richard Henderson <rth@redhat.com>
638
639 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
640 set REAL_MODE_FORMAT for TFmode.
641
c34be55e
ZL
6422004-08-25 Ziemowit Laski <zlaski@apple.com>
643
644 * c-decl.c (grokparm): New function.
645 * c-tree.h (grokparm): New prototype.
646
4c124b4c
AM
6472004-08-25 Andrew MacLeod <amacleod@redhat.com>
648
649 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
650 iterator controlling structure.
651 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
652 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
653 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
654 iterator flags.
655 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
656 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
657 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
658 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
659 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
660 Empty operand pointers.
661 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
662 (op_iter_next_use): New. Return next use_operand_p.
663 (op_iter_next_def): New. Return next def_operand_p.
664 (op_iter_next_tree): New. Return next operands as a tree.
665 (op_iter_init): New. Initialize an iterator structure.
666 (op_iter_init_use): New. Initialize structure and get the first use.
667 (op_iter_init_def): New. Initialize structure and get the first def.
668 (op_iter_init_tree): New. Initialize structure and get the first tree.
669 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
670 (op_iter_init_maydef): New. Initialize structure and get the first
671 V_MAY_DEF operands.
672 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
673 * tree-dfa.c (compute_immediate_uses_for_stmt,
674 redirect_immediate_uses): Use new operand iterator.
675 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
676 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
677 operands instead of using *_disappeared_p routines.
678 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
679 ssa_rewrite_stmt): Use new operand iterator.
680 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
681 rewrite_trees): Use new operand iterator.
682 * tree-pretty-print.c (dump_vops): Use new operand iterator.
683 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
684 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
685 dump_points_to_info): Use new operand iterator.
686 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
687 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
688 operand iterator.
689 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
690 propagate_necessity): Use new operand iterator.
691 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
692 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
693 a parameter instead of a stmt_ann_t.
694 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
695 build_tree_conflict_graph): Use new operand iterator.
696 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
697 rewrite_mem_refs): Use new operand iterator.
698 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
699 check_loop_closed_ssa_use): Use new operand iterator.
700 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
701 * tree-ssanames.c (release_defs): Use new operand iterator.
702 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
703
4185f1ce
AN
7042004-08-25 Adam Nemet <anemet@lnxw.com>
705
706 * tlink.c (initial_cwd): New variable.
707 (tlink_init): Initialize it.
708 (recompile_files): Use tlink_execute() instead of system(). Don't
709 duplicate verbose output of collect_execute. Restore initial_cwd.
710 Update comment before the function.
711
700686fa
ZL
7122004-08-25 Ziemowit Laski <zlaski@apple.com>
713
714 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
715 accept) a cast from one Objective-C pointer type to another.
716
7fb654ef
PC
7172004-08-25 Paolo Carlini <pcarlini@suse.de>
718
719 * doc/install.texi: Document that libstdc++-v3 requires
720 now automake 1.9.1.
721
8e8d5162
CT
7222004-08-25 Caroline Tice <ctice@apple.com>
723
724 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
725 to comments at start of function.
726 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
727 comment.
728 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
729 merge_blocks_move_predecessor_nojumps,
730 merge_blocks_move_successor_nojumps, merge_blocks_move,
731 try_crossjump_to_edge, try_crossjump_bb): Likewise.
732 * cfglayout.c (fixup_reorder_chain): Likewise.
733 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
734 cfg_layout_can_merge_blocks_p): Likewise.
735 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
736 * passes.c (rest_of_compilation): Update comments for calling
737 optimization that partitions hot/cold basic blocks.
738 * doc/invoke.texi: Update documentation of
739 freorder-blocks-and-partition flag.
740
41a21e1d
RS
7412004-08-25 Richard Sandiford <rsandifo@redhat.com>
742
743 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
744 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
745
e5f14571
RS
7462004-08-25 Richard Sandiford <rsandifo@redhat.com>
747
748 * config/mips/mips.md (any_shift): New code macro.
749 (optab, insn): New code attributes.
750 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
751 Use the standard rather than internal patterns for the MIPS16
752 double-shift optimization.
753 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
754 Redefine using :GPR and any_shift.
755 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
756 to cover all three shifts.
757 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
758 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
759 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
760
bbbb79d4
GK
7612004-08-24 Geoffrey Keating <geoffk@apple.com>
762
763 * gimplify.c (lookup_tmp_var): Separate temporaries when not
764 optimizing.
765
d711cf67
JDA
7662004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
767
768 PR libstdc++/17005 (fix for HP-UX 11.11)
769 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
770 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
771 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
772 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
773 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
774 (LINK_SPEC): Handle march=1.0 option.
775 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
776 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
777 (SUBTARGET_OPTIONS): New define.
778 (LINK_SPEC): Handle march=1.0 option.
779 (STARTFILE_SPEC): New define.
780 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
781 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
782 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
783 (SUBTARGET_OPTIONS): New define.
784 (LINK_SPEC): Handle march=1.0 option.
785 (STARTFILE_SPEC): New define.
786 * config/pa/pa.c (override_options): Add code to process -munix= option.
787 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
788 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
789 defines.
790 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
791 (SUBTARGET_OPTIONS): Provide default define.
792 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
793 STANDARD_STARTFILE_PREFIX_2): New defines.
794 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
795 (ENDFILE_SPEC): Use %O.
796 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
797 Mention issue caused by changing namespace and runtime to UNIX 95/98.
798 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
799 Document -munix=std option.
800
5affca01
SB
8012004-08-25 Steven Bosscher <stevenb@suse.de>
802
803 * cse.c (cse_around_loop, cse_check_loop_start,
804 cse_set_around_loop): Remove.
805 (cse_basic_block): Remove the around_loop argument.
806 (cse_end_of_basic_block): Remove the after_loop argument.
807 (cse_main): Likewise.
808 * rtl.h (cse_main): Update prototype.
809 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
810 rest_of_handle_gcse): Update cse_main calls.
811
7d60be94
NS
8122004-08-25 Nathan Sidwell <nathan@codesourcery.com>
813
814 * tree.h (build_int_cst): New, sign extended constant.
815 (build_int_cstu): New, zero extended constant.
816 (build_int_cst_wide): Renamed from build_int_cst.
817 * tree.c (build_int_cst, build_int_cstu): New.
818 (build_int_cst_wide): Renamed from build_int_cst.
819 (make_vector_type, build_common_tree_nodes,
820 build_common_tree_nodes_2): Adjust build_int_cst calls.
821 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
822 expand_builtin_strpbrk, expand_builtin_fputs,
823 build_string_literal, expand_builtin_printf,
824 expand_builtin_sprintf, fold_builtin_classify_type,
825 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
826 fold_builtin_toascii, fold_builtin_isdigit,
827 simplify_builtin_strstr, simplify_builtin_strpbrk,
828 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
829 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
830 DEF_ATTR_INT): Likewise.
831 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
832 Likewise.
833 * c-lex.c (interpret_integer, lex_charconst): Likewise.
834 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
835 * c-pretty-print.c (pp_c_integer_constant): Likewise.
836 * c-typeck.c (really_start_incremental_init, push_init_level,
837 set_nonincremental_init_from_string): Likewise.
838 * calls.c (load_register_parameters): Likewise.
839 convert.c (convert_to_pointer): Likewise.
840 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
841 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
842 build_gcov_info): Likewise.
843 * except.c (init_eh, assign_filter_values): Likewise.
844 * expmed.c (store_fixed_bit_field, extract_bit_field,
845 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
846 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
847 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
848 * expr.c (convert_move, emit_group_load, emit_group_store,
849 expand_assignment, store_constructor, store_field,
850 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
851 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
852 invert_truthvalue, optimize_bit_field_compare,
853 decode_field_reference, all_ones_mask_p, constant_boolean_node,
854 fold_div_compare, fold, fold_read_from_constant_string,
855 fold_negate_const, fold_abs_const, fold_not_const, round_up,
856 round_down): Likewise.
857 * function.c (assign_parm_setup_block): Likewise.
858 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
859 Likewise.
860 * stor-layout.c (layout_type, initialize_sizetypes,
861 set_min_and_max_values_for_integral_type): Likewise.
862 * tree-chrec.c (chrec_fold_multiply_poly_poly,
863 reset_evolution_in_loop): Likewise.
864 * tree-chrec.h (build_polynomial_chrec): Likewise.
865 * tree-complex.c (build_replicated_const): Likewise.
866 * tree-eh.c (honor_protect_cleanup_actions,
867 lower_try_finally_onedest, lower_try_finally_copy,
868 lower_try_finally_switch): Likewise.
869 * tree-mudflap.c (mf_build_string, mx_register_decls,
870 mudflap_register_call, mudflap_enqueue_constant): Likewise.
871 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
872 * tree-pretty-print.c (dump_generic_node): Likewise.
873 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
874 Likewise.
875 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
876 * tree-ssa-loop-niter.c (number_of_iterations_cond,
877 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
878 Likewise.
879 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
880 canonicalize_loop_induction_variables): Likewise.
881 * tree-vectorizer.c (vect_create_index_for_array_ref,
882 vect_transform_loop_bound, vect_compute_data_ref_alignment):
883 Likewise.
884
885 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
886 alpha_gimplify_va_arg_1): Likewise.
887 * config/arm/arm.c (arm_get_cookie_size): Likewise.
888 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
889 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
890 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
891 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
892 mips_gimplify_va_arg_expr): Likewise.
893 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
894 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
895 add_compiler_branch_island): Likewise.
896 * config/s390/s390.c (s390_va_start): Likewise.
897 * config/sh/sh.c (sh_va_start): Likewise.
898 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
899 Likewise.
900 * config/xtensa/xtensa.c (xtensa_va_start,
901 xtensa_gimplify_va_arg_expr): Likewise.
902
903 * objc/objc-act.c (build_objc_string_object,
904 build_objc_symtab_template, init_def_list, init_objc_symtab,
905 init_module_descriptor, generate_static_references,
906 build_selector_translation_table, get_proto_encoding,
907 build_typed_selector_reference, build_selector_reference,
908 build_next_objc_exception_stuff,
909 build_method_prototype_list_template, generate_descriptor_table,
910 generate_protocols, build_protocol_initializer,
911 build_ivar_list_template, build_method_list_template,
912 build_ivar_list_initializer, generate_ivars_list,
913 generate_dispatch_table, generate_protocol_list,
914 build_category_initializer, build_shared_structure_initializer,
915 generate_shared_structures, handle_impent,
916 generate_objc_image_info): Likewise.
917
8b63d0e5
PB
9182004-04-25 Paolo Bonzini <bonzini@gnu.org>
919
920 * cfglayout.c (duplicate_insn_chain): Remove references to
921 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
922 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
923 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
924 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
925 and NOTE_INSN_LOOP_CONT.
926 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
927 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
928 and NOTE_INSN_LOOP_CONT.
929 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
930 check_dbra_loop, loop_dump_aux): Remove references to removed notes
931 and fields.
932 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
933 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
934 references to removed notes and fields.
935 (subtract_reg_term, ujump_to_loop_cont): Remove.
936
078e3ffe
PB
9372004-08-25 Paolo Bonzini <bonzini@gnu.org>
938
8b63d0e5 939 * doc/install.texi: Document that libcpp does not require
078e3ffe
PB
940 Automake any longer. Document that Automake 1.9.1 should
941 work everywhere.
942
f8ca7e49
ZW
9432004-08-25 Zack Weinberg <zack@codesourcery.com>
944
945 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
946 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
947 DWARF_DEBUGGING_INFO from choice-of-definition chain;
948 restructure using C89 features (#elif, #error).
949 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
950 * config/sh/sh.h: Remove references to DWARF_DEBUG.
951 * doc/invoke.texi: Remove references to DWARF version 1;
952 clarify why -gdwarf-2<n> doesn't work.
953
51a904c9
ZW
9542004-08-25 Zack Weinberg <zack@codesourcery.com>
955
956 * basic-block.h (BB_SET_PARTITION): Clear old value first.
957 * cfg.c (clear_bb_flags): Don't clear partition setting.
69b9b0d2 958 * ifcvt.c (find_if_case_1): Remove ??? comment.
51a904c9 959
e548ead9
AM
9602004-08-25 Alan Modra <amodra@bigpond.net.au>
961
962 PR target/17052
963 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
964 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
965 current_function_stdarg in place of sysv_varargs_p.
966 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
967 sysv_varargs_p.
968
1e19ac74
RH
9692004-08-24 Richard Henderson <rth@redhat.com>
970
971 PR target/16298
972 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
973 random codes within CONST.
974
c61225e7
JW
9752004-08-24 James E Wilson <wilson@specifixinc.com>
976
977 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
978 -freorder-blocks-and-partition.
979
37840132
JDA
9802004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
981
982 PR middle-end/17044
983 * tree-ssa-threadupdate.c (redirection_data): Make static.
984 (thread_block): Use ggc_alloc_cleared to allocate struct
985 redirection_data. Don't free elements in redirection_data.
986
cf1d880b
RS
9872004-08-24 Richard Sandiford <rsandifo@redhat.com>
988
989 * config/mips/predicates.md (small_data_pattern): Match prefetches.
990
b3393f1f
ZD
9912004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
992
993 PR tree-optimization/17016
994 * tree-ssa-loop-niter.c (number_of_iterations_cond,
995 number_of_iterations_exit): Use POINTER_TYPE_P instead
996 of testing for POINTER_TYPE.
997
82b85a85
ZD
9982004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
999
1000 * tree-ssa-loop-ivcanon.c: New file.
1001 * tree-ssa-loop-manip.c (create_iv): New function.
1002 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
1003 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
1004 * cfgloop.c (mark_single_exit_loops): New function.
1005 (verify_loop_structure): Verify single-exit loops.
1006 * cfgloop.h (struct loop): Add single_exit field.
1007 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
1008 (mark_single_exit_loops): Declare.
1009 (tree_num_loop_insns): Declare.
1010 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
1011 (duplicate_loop_to_header_edge): Use it.
1012 * common.opt (fivcanon): New flag.
1013 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
1014 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
1015 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
1016 (bsi_insert_on_edge_immediate): New function.
1017 * tree-flow.h (bsi_insert_on_edge_immediate,
1018 canonicalize_induction_variables, tree_unroll_loops_completely,
1019 create_iv): Declare.
1020 * tree-optimize.c (init_tree_optimization_passes): Add
1021 pass_iv_canon and pass_complete_unroll.
1022 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
1023 * tree-scalar-evolution.c (get_loop_exit_condition,
1024 get_exit_conditions_rec, number_of_iterations_in_loop,
1025 scev_initialize): Use single_exit information.
1026 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
1027 missing assumptions.
1028 (loop_niter_by_eval): Return number of iterations as unsigned
1029 int.
1030 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
1031 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
1032 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
1033 New passes.
1034 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
1035 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
1036 the defining statement is ready.
1037 * tree-vectorizer.c (vect_create_iv_simple): Removed.
1038 (vect_create_index_for_array_ref, vect_transform_loop_bound):
1039 Use create_iv.
1040 (vect_transform_loop_bound): Use single_exit information.
1041 (vect_analyze_loop_form): Cleanup bogus tests.
1042 (vectorize_loops): Do not call flow_loop_scan.
1043 * tree.h (may_negate_without_overflow_p): Declare.
1044 * fold-const.c (may_negate_without_overflow_p): Split out from ...
1045 (negate_expr_p): ... this function.
1046 (tree_expr_nonzero_p): Handle overflowed constants correctly.
1047 * doc/invoke.texi (-fivcanon): Document.
1048 * doc/passes.texi: Document canonical induction variable creation.
1049
b3c90666
RS
10502004-08-24 Richard Sandiford <rsandifo@redhat.com>
1051
1052 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
1053 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
1054 using the mode of the operand to decide between them.
1055 * config/mips/mips.md (MOVECC): New mode macro.
1056 (ccreg): New mode attribute.
1057 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
1058 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
1059 (mov[sd]icc): Redefine using :GPR.
1060
4767c570
RS
10612004-08-24 Richard Sandiford <rsandifo@redhat.com>
1062
04550232
RS
1063 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
1064 (mips_prefetch_cookie): New function.
1065 * config/mips/mips.c (print_operand_address): Fix handling of
1066 ADDRESS_CONST_INT.
1067 (mips_emit_prefetch): Delete.
1068 (mips_prefetch_cookie): New function.
1069 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
1070 mode of QImode for the address_operand. Use mips_prefetch_cookie
1071 to calculate the first "pref" operand.
1072 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
1073 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
4767c570 1074
a657c98a
RE
10752004-08-24 Richard Earnshaw <rearnsha@arm.com>
1076
1077 * arm.md: Include predicates.md.
1078 * predicates.md: New file.
1079 * arm.c (s_register_operand, arm_hard_register_operand)
1080 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
1081 (arm_immediate_operand, arm_neg_immediate_operand)
1082 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
1083 (arm_add_operand, arm_addimm_operand, arm_not_operand)
1084 (offsettable_memory_operand, alignable_memory_operand)
1085 (arm_reload_memory_operand, arm_float_rhs_operand)
1086 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
1087 (index_operand, shiftable_operator, logical_binary_operator)
1088 (shift_operator, equality_operator, arm_comparison_operator)
1089 (minmax_operator, cc_register, dominant_cc_register)
1090 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
1091 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
1092 (const_shift_operand, load_multiple_operation)
1093 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
1094 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
1095 (cirrus_register_operand, cirrus_fp_register)
1096 (cirrus_shift_const): Delete, replaced with equivalents in
1097 predicates.md.
1098 (shift_op): Handle ROTATE.
1099 * arm-protos.h: Delete declarations for above.
1100 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
1101 * t-arm (MD_INCLUDES): Add predicates.md.
1102 (s-preds): Depends on MD_INCLUDES.
1103
886ce862
RS
11042004-08-24 Richard Sandiford <rsandifo@redhat.com>
1105
1106 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
1107 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
1108 patterns. Redefine using :GPR. Give the match_operator a mode.
1109 Use '%2' rather than '%z2' for operand 2.
1110
be659abd
RS
11112004-08-24 Richard Sandiford <rsandifo@redhat.com>
1112
1113 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
1114 attribute.
1115
92dcb882
RS
11162004-08-24 Richard Sandiford <rsandifo@redhat.com>
1117
1118 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
1119 of internal patterns.
1120 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
1121 Redefine using :P.
1122 (tablejump): Use expand_binop to calculate address. Adjust names
1123 of internal patterns.
1124 (tablejump[sd]i): Renamed from tablejump_internal[12].
1125 Redefine using :P.
1126 (tablejump_mips16[12]): Delete.
1127
a0160289
RS
11282004-08-24 Richard Sandiford <rsandifo@redhat.com>
1129
1130 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
1131 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
1132 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
1133 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
1134 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
1135
2c4402f4
RS
11362004-08-24 Richard Sandiford <rsandifo@redhat.com>
1137
1138 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
1139 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
1140 using :GPR.
1141 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
1142 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
1143 (*branch_equality[sd]i_inverted): Likewise
1144 branch_equality{,_di}_inverted.
1145 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
1146 Redefine using :GPR.
1147
b5c2f1d1
ZW
11482004-08-24 Zack Weinberg <zack@codesourcery.com>
1149
1150 * rtl.def: Reorganize, placing all codes used only in machine
1151 descriptions at the end.
1152
9e995780
ZW
1153 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
1154 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
1155 rtx_name, rtx_format arrays by direct reference to rtl.def,
1156 first undefining GENERATOR_FILE. Define enum insn_note and
1157 note_insn_name array by direct reference to insn-notes.def.
1158 (adjust_field_rtx_def): Remove local definition of rtx_name.
1159 Use symbolic names for insn notes.
1160 * Makefile.in (gengtype.o): Update dependencies.
1161
076c7ab8
ZW
11622004-08-24 Zack Weinberg <zack@codesourcery.com>
1163
1164 * basic-block.h (struct basic_block_def): Reorder fields to
1165 eliminate interior padding. Remove 'partition' field.
1166 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
1167 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
1168 (BB_COPY_PARTITION): New macros.
1169 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
1170 Replace all references to the 'partition' field of a basic
1171 block with new macros.
1172
1173 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
1174 * final.c (final_scan_insn): Don't handle it.
1175 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
1176 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
1177 * sched-rgn.c (sched_is_disabled_for_current_region_p):
1178 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
1179
8c1d6d62
NS
11802004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1181
1182 * c-decl.c (c_init_decl_processing): Adjust
1183 build_common_tree_nodes call.
1184 * expmed.c (const_mult_add_overflow_p): Use
1185 build_distinct_type_copy.
1186 * stor-layout.c (early_type_list): Remove.
1187 (layout_type): Don't append to early_type_list.
1188 (initialize_sizetypes): Add signed_p argument.
1189 (set_sizetype): Overwrite the stub type nodes directly.
1190 * tree.c (copy_node_stat): Clear a type's value cache here ...
1191 (build_distinct_type): ... not here.
1192 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
1193 * tree.h (initialize_sizetypes): Add signed_p argument.
1194 (build_common_tree_nodes): Likewise.
1195
1196 * objc/objc-act.c (get_static_reference): Use
1197 build_variant_type_copy.
1198 (get_protocol_reference): Likewise.
1199 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
1200
97dc04b3 12012004-08-24 Richard Henderson <rth@redhat.com>
076c7ab8 1202 Andrew Pinski <apinski@apple.com>
97dc04b3
RH
1203
1204 * gimplify.c (gimplify_array_ref_to_plus): Delete.
1205 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
1206 for ARRAY_REF.
1207
1208 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
1209 ARRAY_REF also to get to the STRING_CST.
1210
72cdc543
PB
12112004-08-24 Paul Brook <paul@codesourcery.com>
1212
1213 * config/arm/arm.c (arm_override_options): Update error message.
1214 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
1215 TARGET_HARD_FLOAT_ABI.
1216 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
1217 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
1218
bd5ca07e
NC
12192004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1220
1221 PR target/17093
1222 * config/m32r.md (movsi_sda): Add SI mode specification to
1223 UNSPEC.
1224
12252004-08-24 Nick Clifton <nickc@redhat.com>
1226
1227 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
1228 of seth_add3_operand.
1229
d46cd2be
NS
12302004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1231
1232 * Makefile.in (PROTO_OBJS): Add errors.o.
1233 * protoize.c (fancy_abort): Remove.
1234 * mips-tfile.c (fancy_abort): Add parameters.
1235
748fa294
JW
12362004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
1237
1238 * doc/trouble.texi (C++ misunderstandings): Fix example code.
1239
4505f099
AT
12402004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
1241
1242 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
1243 (host-default.o): Add dependency on HOOKS_H.
1244 * config/x-linux: Likewise.
1245 * config/x-solaris: Likewise.
1246 * config/i386/x-mingw32: Likewise.
1247 * config/rs6000/x-darwin: Likewise.
1248
a2fe1975
JW
12492004-08-23 James E Wilson <wilson@specifixinc.com>
1250
1251 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
1252 DEF_REG_NOTE.
1253
c3f216e2
MM
12542004-08-23 Mark Mitchell <mark@codesourcery.com>
1255
1256 PR c/14492
1257 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
1258
2e6ae27f
DN
12592004-08-23 Diego Novillo <dnovillo@redhat.com>
1260
1261 * cfg.c (check_bb_profile): Fix typos.
1262 * function.c (assign_parm_is_stack_parm): Likewise.
1263 * tree-nested.c: Likewise.
1264
d685c974
DJ
12652004-08-23 Daniel Jacobowitz <dan@debian.org>
1266
1267 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
1268 Remove TYPECODE.
1269 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
1270
f676971a
EC
12712004-08-23 Eric Christopher <echristo@redhat.com>
1272
1273 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
1274 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
1275 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
1276 * target.h: Ditto.
1277 * hooks.h: Include machmode.h.
1278 (hook_bool_mode_false): Declare.
1279 * hooks.c (hook_bool_mode_false): Define.
1280 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
1281 * stor-layout.c (layout_type): Ditto.
1282 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
1283 Define to target macro.
1284 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
1285 * config/arm/arm.c: Ditto. Use.
1286 * config/arm/arm.h: Ditto.
1287 * config/arm/arm-protos.h: Ditto.
1288 * config/i386/i386.c: Ditto.
1289 * config/i386/i386.h: Ditto.
1290 * config/rs6000/rs6000.c: Ditto.
1291 * config/rs6000/rs6000.h: Ditto.
1292 * config/sh/sh.c: Ditto.
1293 * config/sh/sh.h: Ditto.
1294 * config/sh/sh-protos.h: Ditto.
1295 * config/sh/sh.md: Use.
1296 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
1297 to TARGET_VECTOR_MODE_SUPPORTED_P.
1298
8dd16ecc
NS
12992004-08-23 Nathan Sidwell <nathan@codesourcery.com>
1300
b3d1f5b4
NS
1301 * Makefile.in (BUILD_ERRORS): Set to build-errors.
1302 (errors.o): New target for host.
1303 (build-errors.o): New target for build.
1304 (genobjs): Replace errors.o with build-errors.
1305 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
1306 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
1307 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
1308 (fix-header.o): Add errors.h
1309 * collect2.c (fancy_abort): Add parameters.
1310 * collect2.h (fancy_abort): Don't declare.
1311 * errors.h (fancy_abort): Don't declare.
1312 * errors.c: Include either bconfig.h or config.h.
1313 (fancy_abort): Trim filename.
1314 * fix-header.c (v_fatal, fatal): Remove.
1315 (progname): Remove definition.
1316 (main): Set progname here.
1317 * gcc.c (fancy_abort): Add parameters.
1318 * gcc.h (fancy_abort): Remove declaration.
1319 * gcov.c (fancy_abort): Remove.
1320 * rtl.h (fancy_abort): Don't declare.
1321 (abort): Don't define.
1322 * tree.h (fancy_abort): Don't declare.
1323 (abort): Don't define.
1324 * system.h (fancy_abort): Declare.
1325 (abort): Define to fancy_abort.
1326 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
1327
be88a628
NS
1328 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
1329 (usize_type, ubitsizetype): Remove.
1330 * stor-layout.c (set_sizetype): Don't initialize usizetype,
1331 ubitsizetype.
1332 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
1333
8dd16ecc
NS
1334 * tree.h (build_distinct_type_copy): New.
1335 (build_type_copy): ... here. Rename to ...
1336 (build_variant_type_copy): ... here.
1337 * tree.c (build_qualified_type): Rename build_type_copy call.
1338 (build_distinct_type_copy): New, broken out of ...
1339 (build_type_copy): ... here. Rename to ...
1340 (build_variant_type_copy): ... here. Use
1341 build_distinct_type_copy.
1342 (build_common_tree_nodes_2): Rename build_type_copy call.
1343 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
1344 call.
1345 (handle_packed_attribute, handle_unused_attribute,
1346 handle_transparanet_union_attribute, handle_aligned_attribute,
1347 handle_deprecated_attribute): Likewise.
1348 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
1349 Likewise.
1350 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
1351 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
1352 build_distinct_type_copy.
1353
e8bf0f3b
RS
13542004-08-23 Richard Sandiford <rsandifo@redhat.com>
1355
1356 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
1357 attribute.
1358
4d06ed0a
RS
13592004-08-23 Richard Sandiford <rsandifo@redhat.com>
1360
1361 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
1362 loads and stores.
1363 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
1364 formerly unnamed patterns. Redefine using :P for the address. Remove
1365 explicit length attributes.
1366
a3631d97
ZD
13672004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1368
1369 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
1370 New functions.
1371 (single_reachable_address): Use them.
1372 (schedule_sm): Add dump.
1373 (is_call_clobbered_ref): New function.
1374 (determine_lsm_reg): Check whether the reference is call clobbered.
1375 Only work for gimple_reg_type values.
1376
b1f58428
RS
13772004-08-23 Richard Sandiford <rsandifo@redhat.com>
1378
1379 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
1380 $31 store insns. Redefine using :GPR.
1381
237b301e
RS
13822004-08-23 Richard Sandiford <rsandifo@redhat.com>
1383
1384 * config/mips/mips.md (P): New mode macro.
1385 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
1386 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
1387 Add mode attributes.
1388
c9081a92
RS
13892004-08-23 Richard Sandiford <rsandifo@redhat.com>
1390
1391 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
1392 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
1393 later constants to cover the gap.
1394 (load, store): New mode attributes.
1395 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
1396 Use new unspec constants.
1397
3d1f285d
RS
13982004-08-23 Richard Sandiford <rsandifo@redhat.com>
1399
1400 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
1401 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
1402 to use register_operand rather than uns_arith_operand as the predicate
1403 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
1404 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
1405 Redefine using :GPR. Make same predicate change here. Extend the
1406 commutativity of operands 1 and 2 from the SImode version to the
1407 DImode one.
1408 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
1409 but with no predicate changes.
1410 (*nor[sd]i3): Redefine using :GPR.
1411
c0e1b12f
ZD
14122004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1413
1414 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
1415 noreturn functions.
1416
400a9325
RS
14172004-08-23 Richard Sandiford <rsandifo@redhat.com>
1418
1419 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
1420 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
1421 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
1422 rather than "%z2" (with a fake const0_rtx for operand 2).
1423 (ffs[sd]i2): Redefine using :GPR.
1424 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
1425
2222da3a
RS
14262004-08-23 Richard Sandiford <rsandifo@redhat.com>
1427
1428 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
1429
15ac4ccf
RS
14302004-08-23 Richard Sandiford <rsandifo@redhat.com>
1431
1432 * config/mips/mips.md (any_extend): New code macro.
1433 (u, su): New code attributes.
1434 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
1435 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
1436 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
1437 (*{s,u}mul_acc_di): Redefine using any_extend.
1438 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
1439 to reflect real insn names.
1440 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
1441 with an any_extend template.
1442 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
1443 Add '*' to name.
1444
d46c971d
RS
14452004-08-23 Richard Sandiford <rsandifo@redhat.com>
1446
1447 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
1448 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
1449 (mul[sd]i3_r4000): Redefine using :GPR.
1450 (mulsi3_mult3): Don't check TARGET_MAD separately.
1451 (muldi3_mult3): Moved after mulsi_mult3.
1452
5811cb27
RS
14532004-08-23 Richard Sandiford <rsandifo@redhat.com>
1454
1455 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
1456 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
1457 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
1458 (TARGET_GAS, TARGET_MIPS_AS): Delete.
1459 (TARGET_GPWORD): Define to true for n32 on IRIX.
1460 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
1461 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
1462 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
1463 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
1464 (MDEBUG_ASM_SPEC): Delete, folding into...
1465 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
1466 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
1467 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
1468 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
1469 to define asm_abi_default_spec.
1470 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
1471 (TARGET_ASM_SELECT_SECTION): Delete.
1472 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
1473 for non-mips16 code, removing previous workaround for SGI assemblers.
1474 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
1475 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
1476 (override_options): Remove !TARGET_GAS and !have_named_sections code.
1477 (print_operand): Fold TARGET_GAS conditionals into asm strings.
1478 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
1479 ASM_STABS_OP and ASM_STABN_OP.
1480 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
1481 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
1482 (mips_output_function_prologue): Remove !TARGET_GAS code.
1483 (mips_select_rtx_section): Remove !have_named_sections code.
1484 (mips_select_section): Delete.
1485 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
1486 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
1487 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
1488 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
1489 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
1490 * config/mips/windiss.h (ASM_SPEC): Likewise.
1491
032e8348
RS
14922004-08-23 Richard Sandiford <rsandifo@redhat.com>
1493
1494 * read-rtl.c (map_value, mapping, macro_group): New structures.
1495 (BELLWETHER_CODE): New macro.
1496 (modes, codes, bellwether_codes): New variables.
1497 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
1498 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
1499 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
1500 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
1501 (add_map_value, initialize_macros): New functions.
1502 (def_hash, def_hash_eq_p): Generalize to anything that points to,
1503 or starts with, a char * field.
1504 (find_macro, read_mapping, check_code_macro): New functions.
1505 (read_rtx_1): New, split out from read_rtx. Handle the new
1506 define_{mode,code}_{macro,attr} constructs. Use find_macro
1507 to parse the name of a code or mode. Use BELLWETHER_CODE to
1508 extract the format and to choose a suitable code for rtx_alloc.
1509 Modify recursive invocations to use read_rtx_1.
1510 (read_rtx): Call initialize_macros. Apply code and mode macros
1511 to the rtx returned by read_rtx_1. Cache everything after the
1512 first macro expansion for subsequent read_rtx calls.
1513 * doc/md.texi: Document new .md constructs.
1514 * config/mips/mips.md (GPR): New mode macro.
1515 (d, si8_di5): New mode attributes.
1516 (any_cond): New code macro.
1517 (add[sd]i3): Redefine using :GPR.
1518 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
1519 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
1520 previously unnamed MIPS16 patterns.
1521 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
1522 lines. Don't match (plus (const_int 0) ...).
1523 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
1524 Use a define_split to generate the addition.
1525 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
1526 (subsi3_internal): Delete.
1527 (*subsi3_extended): Renamed from subsi3_internal_2.
1528 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
1529 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
1530 using an any_cond template.
1531
ecce923e
RS
15322004-08-23 Richard Sandiford <rsandifo@redhat.com>
1533
1534 * read-rtl.c (read_rtx): Tidy use of format_ptr.
1535
a269d6c8
RS
15362004-08-23 Richard Sandiford <rsandifo@redhat.com>
1537
1538 * read-rtl.c (string_obstack): New file-scope variable.
1539 (read_string, read_quoted_string, read_braced_string)
1540 (read_escape): Remove obstack parameter and use string_obstack instead.
1541 (read_rtx): Remove function-local rtl_obstack and initialize
1542 string_obstack instead. Update call to read_string.
1543
9fc3b39a
AP
15442004-08-22 Andrew Pinski <apinski@apple.com>
1545
1546 PR c/15262
1547 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
1548 expression is not constant.
1549 (c_finish_return): Do not go through INDIRECT_REF when looking
1550 for the inner expression of an ADDR_EXPR for warning about.
1551
cea49550
RH
15522004-08-22 Richard Henderson <rth@redhat.com>
1553
1554 PR 17075
1555 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
1556 create new blocks and fall through.
1557 (expand_gimple_basic_block): Update to match.
1558
0b540f12
UW
15592004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1560
1561 * reload.c (find_reloads_address): Make return value tri-state.
1562 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
1563 (find_reloads): Assume that reloaded addresses match 'o' or
1564 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
1565 returned 1 (not -1). Omit optional reloads for address operands
1566 only if find_reloads_address returned 1 (not -1).
1567
1568 * config/s390/s390.c (legitimize_reload_address): New function.
1569 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
1570 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
1571 legitimize_reload_address.
1572
7f5e6307
RH
15732004-08-22 Richard Hendersion <rth@redhat.com>
1574
1575 * tree.h (SAVE_EXPR_RESOLVED_P): New.
1576 * gimplify.c (gimplify_save_expr): Use it.
1577 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
1578 on the temporary variable.
1579
efd610a6
AP
15802004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
1581
1582 * fold-const.c (rtl_expr_nonnegative_p): Delete.
1583 * tree.h (rtl_expr_nonnegative_p): Remove.
1584
324a6c95
SB
15852004-08-22 Steven Bosscher <stevenb@suse.de>
1586
1587 * config/i386/ppro.md (ppro_complex_insn): Add missing check
1588 for cpu==pentiumpro.
1589
1590 * combine.c (struct reg_stat): Fix comment typo.
1591
41db8425
JM
15922004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
1593
1594 * c-tree.h (c_sizeof_nowarn): Remove.
1595
00325bce
JM
15962004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
1597
1598 * c-decl.c (set_array_declarator_type): Rename to
1599 set_array_declarator_inner.
1600 (build_c_parm, build_attrs_declarator, build_function_declarator):
1601 New functions.
1602 (make_pointer_declarator): Call build_attrs_declarator.
1603 * c-tree.h (set_array_declarator_type): Rename to
1604 set_array_declarator_inner.
1605 (build_c_parm, build_attrs_declarator, build_function_declarator):
1606 New prototypes.
1607 * c-parse.in (after_type_declarator,
1608 parm_declarator_starttypename, parm_declarator_nostarttypename,
1609 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
1610 firstparm): Use these functions
1611
60919bce
JM
16122004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
1613
1614 * c-decl.c (build_array_declarator, set_array_declarator_type,
1615 start_decl, grokdeclarator, grokparms): Change boolean parameters
1616 to type bool.
1617 * c-tree.h (build_array_declarator, set_array_declarator_type,
1618 start_decl): Update prototypes.
1619 * c-decl.c, c-parse.in: All callers changed.
1620
bdfd0ed4
MS
16212004-08-21 Mike Stump <mrs@apple.com>
1622
1623 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
1624 (darwin_fix_and_continue): Likewise.
1625 (darwin_fix_and_continue_switch): Likewise.
1626 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
1627 (darwin_fix_and_continue): Likewise.
1628 (darwin_fix_and_continue_switch): Likewise.
1629
35da8b56 16302004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
23d34220
DS
1631
1632 PR c++/16030
1633 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
1634 Remove, merging into ...
1635 (gen_stdcall_or_fastcall_suffix): New function, returning tree
1636 rather than const char*, and accepting additional parameter.
1637 Don't add suffix to '*'-prefixed symbols or variadic functions.
1638 (i386_pe_encode_section_info): Adjust for call to new function.
1639 Call change_decl_assembler_name.
1640
828a4fe4
MS
16412004-08-20 Mike Stump <mrs@apple.com>
1642
1643 * config/darwin.c (machopic_indirect_data_reference): Mark
1644 stubs as defined.
1645 * config/386/386.c (darwin_local_data_pic): Add.
1646 (legitimate_constant_p): Reorder so that PLUS handling runs
1647 before darwin_local_data_pic to match the ordering in
1648 legitimate_pic_address_disp_p and so that MINUS runs after
1649 darwin_local_data_pic as otherwise the darwin_local_data_pic
1650 logic can be skipped, which would be very bad.
1651 (legitimate_pic_address_disp_p): Move from from here to
1652 darwin_local_data_pic so it can be reused.
1653
85b776df
AM
16542004-08-21 Alan Modra <amodra@bigpond.net.au>
1655
1656 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
1657 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
1658 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
1659 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
1660 (RS6000_ABI_NAME): Define as "linux".
1661 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
1662 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
1663 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
1664 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
1665 * config/rs6000/rs6000.c (dot_symbols): New global var.
1666 (rs6000_output_function_entry): New function, modified for
1667 !DOT_SYMBOLS..
1668 (print_operand <case 'z'>): ..extracted from here.
1669 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
1670 (rs6000_output_function_epilogue): Likewise.
1671 (rs6000_elf_declare_function_name): Likewise.
1672 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
1673 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
1674 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
1675 * configure: Regenerate.
1676 * config.in: Regenerate.
1677
14d3dc34
MM
16782004-08-20 Mark Mitchell <mark@codesourcery.com>
1679
0e544c37
MM
1680 * reload.c (find_reloads_address): Fix thinko in previous change.
1681
14d3dc34
MM
1682 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
1683 a CONST_INT.
1684
f3b2657c
JJ
16852004-08-20 Jakub Jelinek <jakub@redhat.com>
1686
1687 PR rtl-optimization/17099
1688 * combine.c (force_to_mode): Check if inner_mask has any bits set
1689 outside of GET_MODE (x) instead of op_mode.
1690
d2294baa
MM
16912004-08-20 Mark Mitchell <mark@codesourcery.com>
1692
1693 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
1694 fragment.
1695 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
1696 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
1697 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
1698 architecture.
1699 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
1700 configurations.
1701 * config/arm/t-symbian: New file.
1702
753d0efa
AP
17032004-08-20 Andrew Pinski <apinski@apple.com>
1704
1705 * regrename.c (kill_value_regno): ANSIfy.
1706
627b6fe2
DJ
17072004-08-20 Dale Johannesen <dalej@apple.com>
1708
324a6c95 1709 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
627b6fe2 1710
d64d5e80
DJ
17112004-08-20 Daniel Jacobowitz <dan@debian.org>
1712
1713 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
1714 (kill_value_regno): New function, derived from kill_value.
1715 (kill_value): Update.
1716 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
1717
af75a7ea 17182004-08-20 Daniel Berlin <dberlin@dberlin.org>
f676971a 1719
af75a7ea
DB
1720 Fix PR tree-optimization/17111
1721 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
1722 of non-value_handles.
1723 (bitmap_set_contains): All constants are in every set.
1724
0a936b12
NS
17252004-08-20 Nathan Sidwell <nathan@codesourcery.com>
1726
1727 * fold-const.c (round_up, round_down): Use build_int_cst.
1728 Optimize common case.
1729
774acadf
ZW
17302004-08-20 Zack Weinberg <zack@codesourcery.com>
1731 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1732
324a6c95 1733 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
774acadf
ZW
1734 one_only_data_section): Rename to som_readonly_data_section,
1735 som_one_only_readonly_data_section and som_one_only_data_section.
324a6c95 1736 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
0a936b12
NS
1737 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
1738 conditional defines.
774acadf
ZW
1739 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
1740 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
1741 string values.
1742 (pa_select_section): Use renamed section functions.
1743 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
324a6c95 1744 SOM_READONLY_DATA_SECTION_FUNCTION,
774acadf 1745 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
324a6c95
SB
1746 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
1747 Define here ...
1748 * config/pa/som.h: ... not here.
1749 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
774acadf
ZW
1750 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
1751 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
324a6c95
SB
1752 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
1753 (READONLY_DATA_SECTION): Use som_readonly_data_section.
774acadf 1754
3224bead
NS
17552004-08-20 Nathan Sidwell <nathan@codesourcery.com>
1756
fabead06
NS
1757 * fold-const.c (int_const_binop): Don't generate non-overflowing
1758 size-types specially.
1759 (fold_convert_const): Likewise.
1760
3224bead
NS
1761 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
1762 clear cache on copied sizetype.
1763
fb38008e
BE
17642004-08-20 Ben Elliston <bje@au.ibm.com>
1765
1766 * configure.ac: Don't escape apostrophe in --enable-coverage help.
1767 * configure: Regenerate.
1768
a9024779
DS
17692004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
1770
1771 PR 5620
1772 * gcc.c (struct stat input_stat): Don't define if
1773 HOST_LACKS_INODE_NUMBERS
1774 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
1775 than stat to determine if temp file is same as input file.
1776 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
1777 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
1778
82563d35
RS
17792004-08-20 Richard Sandiford <rsandifo@redhat.com>
1780
1781 * configure.ac (mips*-*-*): Print an error if not using GAS.
1782 * configure: Regenerated.
1783 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
1784 comments about buggy MIPSpro assemblers.
1785 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
1786 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
1787 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
1788 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
1789 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
1790 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
1791 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
1792 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
1793 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
1794 of more general IRIX 6 definitions.
1795 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
1796 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
1797 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
1798 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
1799 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
1800 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
1801 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
1802 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
1803 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
1804 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
1805 (LINK_SPEC): Move most of definition to iris.h.
1806 (SUBTARGET_LINK_SPEC): New macro.
1807 (IRIX_STARTFILE_SPEC): Fold into...
1808 (STARTFILE_SPEC): ...here.
1809 (IRIX_ENDFILE_SPEC): Fold into...
1810 (ENDFILE_SPEC): ...here.
1811 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
1812 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
1813 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
1814 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
1815 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
1816 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
1817 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
1818 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
1819 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
1820 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
1821 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
1822 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
1823 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
1824 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
1825 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
1826 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
1827 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
1828 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
1829 (TARGET_IRIX6): Define to 1.
1830 (DRIVER_SELF_SPECS): Define.
1831 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
1832 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
1833 (SUBTARGET_LINK_SPEC): New macro.
1834 (IRIX_STARTFILE_SPEC): Fold into...
1835 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
1836 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
1837 (LIB_SPEC, LIBGCC_SPEC): Use them.
1838 (LIB_SPEC): Remove !mabi=* case.
1839 (IRIX_ENDFILE_SPEC): Fold into...
1840 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
1841 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
1842 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
1843 (TARGET_IRIX6): New macro.
1844 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
1845 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
1846 (LABEL_AFTER_LOC): Delete.
1847 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
1848 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
1849 (mips_build_builtin_va_list): Check TARGET_IRIX6.
1850 (override_options): Remove TARGET_SGI_O32_AS-related code.
1851 (irix_output_external_libcall): Make static.
1852 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
1853 LABEL_AFTER_LOC.
1854 (mips_file_start): Tidy guard for ABI sections. Remove use of
1855 ABICALLS_ASM_OP; use .abicalls instead.
1856 (mips_output_aligned_decl_common, mips_declare_object_name)
1857 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
1858 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
1859 .globl foo .text directives.
1860 (irix_asm_named_section_1, irix_asm_named_section)
1861 (irix_section_align_entry, irix_section_align_htab)
1862 (irix_orig_asm_out_file, irix_section_align_entry_eq)
1863 (irix_section_align_entry_hash, irix_asm_output_align)
1864 (irix_file_start, irix_section_align_1, copy_file_data)
1865 (irix_file_end, irix_section_type_flags): Delete.
1866 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
1867 Use standard section syntax. Remove protective "jr $31".
1868 (__gcc_fini): Likewise .gcc_fini.
1869 * config/mips/irix-crtn.asm: Adjust sections accordingly.
1870 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
1871 iris5gas.h.
1872 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
1873 from t-irix-gld.
1874 (EXTRA_MULTILIB_PARTS): Define.
1875 * config/mips/t-iris6: Remove bogus comment.
1876 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
1877 * config/mips/iris5gas.h, config/mips/iris5gld.h,
1878 config/mips/iris6gas.h, config/mips/iris6gld.h,
1879 config/mips/t-iris5-as, config/mips/t-iris5-gas
1880 config/mips/t-irix-gld: Delete.
1881 * config/mips/iris.h: New file.
1882 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
1883
c4cdb8e1
RE
18842004-08-20 Richard Earnshaw <rearnsha@arm.com>
1885
1886 * postreload.c (reload_cse_move2add): Allow any condjump, but check
1887 that the implicit set isn't clobbered in the jump insn.
1888
d55ab31d
MM
18892004-08-19 Mark Mitchell <mark@codesourcery.com>
1890
1891 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
1892 * optabs.c (init_optabs): Don't check it.
1893 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
1894 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
1895
d75f90f1
AK
18962004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
1897
1898 * config/s390/s390.md (s390_warn_framesize_string)
1899 (s390_warn_dynamic_string, s390_stack_size_string)
1900 (s390_stack_guard_string): New global string variables.
1901 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
1902 (s390_stack_guard): New global variables.
1903 (override_options): Added checks for the new options.
1904 (s390_emit_prologue): Emit stack check and trap code and perform
1905 compile time stack size checking.
f676971a
EC
1906
1907 * config/s390/s390.h (TARGET_OPTIONS): Added new options
d75f90f1
AK
1908 "warn-framesize", "warn-dynamicstack", "stack-size" and
1909 "stack-guard".
1910
1911 * doc/invoke.texi: Added documentation for the new options.
1912
ca29916b
UW
19132004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
1914
1915 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
1916 to eliminate warning.
1917 (linear_search_fdes): Declare p as unsigned.
1918 (binary_search_mixed_encoding_fdes): Likewise.
1919 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
1920 to eliminate warning.
1921 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
1922 type cast.
1923
e1d5ee28
UW
19242004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
1925
1926 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
1927 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
1928 instead of one. Check for strictly legitimate address.
1929 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
1930 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
1931
19114537
EC
19322004-08-19 Eric Christopher <echristo@redhat.com>
1933
1934 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
1935 * langhooks.h (unsave_expr_now): Ditto.
1936 * tree.h (unsave_expr_1): Remove prototype.
1937 (lhd_unsave_expr_now): Rename to unsave_expr_now.
1938 * tree-inline.c (unsave_expr_1): Move here
1939 from tree.c. Make static.
1940 (unsave_expr_now): Rename from lhd_unsave_expr_now.
1941 * tree-sra.c: Fix up for rename.
1942 * tree-ssa-copy.c: Ditto.
1943 * tree-eh.c: Ditto.
1944 * tree.c (unsave_expr_1): Move to tree-inline.c.
1945
d5bfecf2
CT
19462004-08-19 Caroline Tice <ctice@apple.com>
1947
324a6c95
SB
1948 * config/i386/cygming.h (switch_to_section): Fix typo (change
1949 in_unlikely_text_section to in_unlikely_executed_text).
19114537 1950
58152808
DB
19512004-08-19 Daniel Berlin <dberlin@dberlin.org>
1952
1953 * vec.h (VEC_lower_bound): New macro.
19114537 1954
ae043003
RS
19552004-08-19 Richard Sandiford <rsandifo@redhat.com>
1956
1957 PR target/16446
1958 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
1959 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
1960 treat each ABI separately. Deal with n32/n64 complex float arguments.
1961 (function_arg): Add associated complex handling here.
1962
50ed9cea
RH
19632004-08-19 Richard Henderson <rth@redhat.com>
1964
1965 * config/arm/arm.c (arm_gen_load_multiple): Use
1966 adjust_automodify_address. Take base memory and offset instead
1967 of unchanging/struct/scalar bits.
1968 (arm_gen_store_multiple): Likewise.
1969 (arm_gen_movmemqi): Use adjust_automodify_address.
1970 * config/arm/arm-protos.h: Update decls.
1971 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
1972 (store_multiple): Similarly.
1973
74ae207d
R
19742004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
1975
1976 * regclass.c (globalize_reg): Update call_really_used_regs.
1977
89b0433e
NS
19782004-08-19 Nathan Sidwell <nathan@codesourcery.com>
1979
31ebd7c8
NS
1980 * doc/invoke.texi (integer-share-limit): Document.
1981
89b0433e
NS
1982 * tree.h (TYPE_CACHED_VALUES_P): New.
1983 (TYPE_CACHED_VALUES): New.
1984 (TYPE_ORIG_SIZE_TYPE): Adjust.
1985 * tree.def (INTEGER_CST): Update documentation.
1986 * tree.c: Inlcude params.h.
1987 (build_int_cst): Cache small values.
1988 (build_type_copy): Do not copy the value cache.
1989 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
1990 unneeded zeroing.
1991 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
1992 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
1993 cache.
1994 * fold-const.c (force_fit_type): Copy value when setting
1995 overflows.
1996 (int_const_binop): Likewise.
1997 * stor-layout.c: Include params.h
1998 (set_sizetype): Create values cache.
1999 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
2000 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
2001 * params.h (INTEGER_SHARE_LIMIT): New.
2002 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
19114537 2003
c2504783
PB
20042004-08-19 Paolo Bonzini <bonzini@gnu.org>
2005
2006 * gimplify.c (gimplify_minimax_expr): Remove.
2007 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
2008
7a8554ce
DN
20092004-08-19 Dorit Naishlos <dorit@il.ibm.com>
2010
19114537 2011 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
7a8554ce
DN
2012 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
2013
1905f33d
MM
20142004-08-19 Mark Mitchell <mark@codesourcery.com>
2015
2016 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
2017
f1732751
AP
20182004-08-18 Andrew Pinski <apinski@apple.com>
2019
2020 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
2021
8c78a388
MM
20222004-08-18 Mark Mitchell <mark@codesourcery.com>
2023
2024 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
2025 (__aeabi_ul2f): Likewise.
2026
7eda7cda
RH
20272004-08-18 Richard Henderson <rth@redhat.com>
2028
2029 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
2030 move to rtl completely.
2031 (struct meminsnbuf, xtensa_emit_block_move): Remove.
2032 (xtensa_find_mode_for_size): Remove.
2033 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
2034 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
2035
88042663
RH
20362004-08-18 Richard Henderson <rth@redhat.com>
2037
2038 * config/mcore/mcore.c (mode_from_align): Remove DImode.
2039 (block_move_sequence): Rewrite to use adjust_address.
2040 (mcore_expand_block_move): Cleanup logic. Accept only operands.
2041 Return boolean indicating success/failure.
2042 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
2043 * config/mcore/mcore.md (movmemsi): Update to match.
2044
699c914a
MS
20452004-08-18 Mike Stump <mrs@apple.com>
2046
2047 * doc/invoke.texi (-mfix-and-continue): Add support for
2048 fast turn around debugging.
2049 (-ffix-and-continue): Likewise.
2050 (-mindirect-data): Likewise.
2051 (-findirect-data): Likewise.
2052 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
2053 (indirect_data): Likewise.
2054 (machopic_data_defined_p): Likewise.
2055 (machopic_output_indirection): Likewise.
2056 (darwin_encode_section_info): Likewise.
2057 (darwin_fix_and_continue): Likewise.
2058 (darwin_fix_and_continue_switch): Likewise.
2059 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
2060 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2061 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
2062 (SUBTARGET_OPTIONS): Likewise.
2063 (darwin_fix_and_continue): Likewise.
2064 (darwin_fix_and_continue_switch): Likewise.
2065 (TARGET_FIX_AND_CONTINUE): Likewise.
2066 * config/rs6000.c (rs6000_emit_prologue): Likewise.
2067
20682004-08-19 Steven Bosscher <stevenb@suse.de>
bd454efd
SB
2069
2070 * basic-block.h (struct edge_def): Remove crossing_edge.
2071 (EDGE_CROSSING): New define.
2072 (EDGE_ALL_FLAGS): Update.
2073 * bb-reorder.c (find_traces_1_round, better_edge_p,
2074 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
2075 find_jump_block, fix_crossing_conditional_branches,
2076 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
2077 Replace all occurences of crossing_edge with an edge flag check
2078 or set/reset.
2079 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2080 try_crossjump_bb): Likewise.
2081 * cfglayout.c (fixup_reorder_chain): Likewise.
2082 * cfgrtl.c (force_nonfallthru_and_redirect,
2083 commit_one_edge_insertion): Likewise.
2084
2085 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
2086 * tree-flow.h (compute_dominance_frontiers): Move prototype...
2087 * basic-block.h: ...here.
2088 * tree-cfg.c (compute_dominance_frontiers_1,
2089 compute_dominance_frontiers): Move from here...
2090 * cfganal.c: ...to here. Include timevar.h.
2091
9ff6992e
JW
20922004-08-18 James E Wilson <wilson@specifixinc.com>
2093
c831f54b 2094 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
a1627d80
JW
2095 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
2096
9ff6992e
JW
2097 * config/mips/mips.md (type): Add frdiv.
2098 (divsf3+1, divsf3+2): Change type to frdiv.
2099 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
2100 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
19114537 2101
9ff6992e
JW
2102 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
2103 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
2104 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
2105 * config/mips/5000.md (r5k_fdiv_single): Likewise.
2106 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
2107 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
2108 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
2109 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
2110 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
2111 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
2112 Likewise.
2113 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
2114
c16eb900
RB
21152004-08-18 Robert Bowdidge <bowdidge@apple.com>
2116
2117 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
324a6c95 2118 get regression tester working again.
c16eb900 2119
826c9564
ZW
21202004-08-18 Zack Weinberg <zack@codesourcery.com>
2121
2122 * insn-notes.def, reg-notes.def: New files.
2123 * rtl.h: Use them to define enum insn_note and enum reg_note.
2124 * rtl.c: Use them to define note_insn_name and reg_note_name.
4b179e92 2125 * Makefile.in (RTL_BASE_H): Update.
826c9564
ZW
2126
2127 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
2128 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
2129
21b5653c
RE
21302004-08-18 Richard Earnshaw <rearnsha@arm.com>
2131
2132 * arm.c (arm_size_rtx_costs): New function.
2133 (arm_override_options): Use it if optimizing for space.
2134
542a8afa
RH
21352004-08-18 Richard Henderson <rth@redhat.com>
2136
2137 * emit-rtl.c (gen_const_mem): New.
2138 * rtl.h (gen_const_mem): Declare.
2139 * expr.c (do_tablejump): Use it.
2140 * varasm.c (force_const_mem): Likewise.
2141 * config/darwin.c (machopic_indirect_data_reference): Likewise.
2142 (machopic_legitimize_pic_address): Likewise.
2143 * config/arm/arm.c (legitimize_pic_address): Likewise.
2144 * config/i386/i386.c (legitimize_pic_address): Likewise.
2145 (legitimize_tls_address): Likewise.
2146 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
2147 * config/ia64/ia64.md (load_fptr): Likewise.
2148 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
2149 * config/pa/pa.c (legitimize_pic_address): Likewise.
2150 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
2151 (rs6000_emit_move): Likewise.
2152 * config/s390/s390.c (legitimize_pic_address): Likewise.
2153 (legitimize_tls_address): Likewise.
2154 * config/s390/s390.md (casesi): Likewise.
2155 * config/sh/sh.c (sh_reorg): Likewise.
2156 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
2157 * config/v850/v850.md (casesi): Likewise.
2158
2159 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
2160 * config/sh/sh.c (prepare_move_operands): Remove incorrect
2161 use of MEM_READONLY_P.
2162
0516f6fe
SB
21632004-08-18 Steven Bosscher <stevenb@suse.de>
2164
2165 * Makefile.in (OBJS-common): Add postreload-gcse.c.
2166 Add new postreload-gcse.o.
2167 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
2168 (lookup_as_function, insert, rehash_using_reg, use_related_value,
2169 equiv_constant): Use SAFE_HASH instead of safe_hash.
2170 (exp_equiv_p): Export. Add for_gcse argument when comparing
2171 for GCSE.
2172 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
2173 find_comparison_args, fold_rtx, cse_insn): Update callers.
2174 (hash_rtx): New function derived from old canon_hash and bits
2175 from gcse.c hash_expr_1.
2176 (canon_hash_string): Rename to hash_rtx_string.
2177 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
2178 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
2179 (cselib_lookup): Update this caller.
2180 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
2181 Make static.
2182 (hash_expr): Call hash_rtx.
2183 (ldst_entry): Likewise.
2184 (expr_equiv_p): Call exp_equiv_p.
2185 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
2186 reg_used_on_edge, reg_set_between_after_reload_p,
2187 reg_used_between_after_reload_p, get_avail_load_store_reg,
2188 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2189 get_bb_avail_insn, hash_scan_set_after_reload,
2190 compute_hash_table_after_reload,
2191 eliminate_partially_redundant_loads, gcse_after_reload,
2192 get_bb_avail_insn, gcse_after_reload_main): Remove.
2193 * postreload-gcse.c: New file, reincarnating most of the above.
2194 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
2195 (gcse_after_reload_main): Update prototype.
2196 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
2197 * passes.c (rest_of_handle_gcse2): Use it.
2198
95013377
DN
21992004-08-18 Diego Novillo <dnovillo@redhat.com>
2200
2201 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
2202 (pass_loop_done): Likewise.
2203
ac9e2cff
AP
22042004-08-18 Andrew Pinski <apinski@apple.com>
2205
826c9564 2206 * config/rs6000/darwin.md: Delete the altivec patterns which are
ac9e2cff
AP
2207 handled differently now.
2208 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
2209 (macho_correct_pic_di): Likewise.
2210 (call_indirect_nonlocal_darwin64): Likewise.
2211 Delete the save world/saveFP/saveVec patterns.
826c9564 2212
ac9e2cff 2213 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
826c9564
ZW
2214 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
2215 * config/rs6000/rs6000.md: Include darwin.md.
2216 (builtin_setjmp_receiver): Add DImode case.
2217 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
2218 Darwin bits.
ac9e2cff 2219
92b9a671
MA
22202004-08-18 Matt Austern <austern@apple.com>
2221
2222 Dead code stripping
2223 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
2224 * darwin.c (darwin_file_end): Mark file as potentially strippable.
826c9564 2225
4766261d
RH
22262004-08-18 Richard Henderson <rth@redhat.com>
2227
2228 * alias.c (readonly_fields_p): Remove.
2229 (objects_must_conflict_p): Don't call it.
2230 * tree.h (readonly_fields_p): Remove.
2231 * langhooks.h (struct lang_hooks): Remove honor_readonly.
2232 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
2233
50dc9a88
DN
22342004-08-18 Diego Novillo <dnovillo@redhat.com>
2235
2236 * tree-dfa.c (add_referenced_var): Only global variables are
2237 call-clobbered.
2238 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
2239 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
2240 all pointers dereferenced if the statement dereferences them.
2241 (create_name_tags): Do not create memory tags for pointers
2242 that have PT_ANYTHING set.
2243 Also check if PT_VARS is not empty before creating a name tag.
2244 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
2245 variables that share the same alias set with a pointer that
2246 may point anywhere.
2247 (add_may_alias): Add FIXME comment to remove clobbering
2248 aliased variables and tags.
2249 (replace_may_alias): Likewise.
2250 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
2251 (merge_pointed_to_info): If the original variable has not
2252 points-to information, call set_pt_anything.
2253 (add_pointed_to_var): Do not prevent adding a pointed-to
2254 variable if the pointers is PT_ANYTHING.
2255 If the variable is a global, set PT_GLOBAL_MEM.
2256 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
2257 pointer type only come in PTR+OFFSET flavours.
2258 Always call merge_pointed_to_info on PHI arguments that are
2259 SSA_NAMEs.
2260 (get_nmt_for): Mark call-clobbered tags whose pointer points
2261 to global memory.
2262 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
2263 values.
2264 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
2265 FLAGS.
2266 (add_stmt_operand): Abort if the caller tried to add a killing
2267 definition for a memory tag.
2268 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
2269 unnecessary checks.
2270
62164eb4
R
22712004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
2272
2273 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
2274 from call_used_regs. Update call_really_used_regs.
2275 (CALL_REALLY_USED_REGISTERS): Define.
2276 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
2277 Replace call_used_regs with call_really_used_regs.
2278 (calc_live_regs, sh_media_register_for_return): Likewise.
2279 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
2280 * sh.md (return_media): Likewise.
2281
f9b0ac3b
AP
22822004-08-18 Andrew Pinski <apinski@apple.com>
2283
826c9564 2284 * config/darwin.c (machopic_legitimize_pic_address): Only set
ac9e2cff 2285 MEM_READONLY_P in the non TARGET_TOC case.
f9b0ac3b 2286
f822d252
ZW
22872004-08-18 Zack Weinberg <zack@codesourcery.com>
2288
2289 * rtl.def (NIL): Delete.
2290 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
2291 Tighten the syntax a little.
2292
2293 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
2294 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
2295 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
2296 * config/i386/predicates.md, config/m32r/m32r.h
2297 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
2298 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
2299 * config/sparc/sparc.h, doc/tm.texi:
2300 Replace all occurrences of NIL with UNKNOWN.
2301
6aaf3dde
ZW
23022004-08-18 Zack Weinberg <zack@codesourcery.com>
2303
2304 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
2305 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
2306 sequence inline. Move drop_through_label code into this
2307 block, being the only place it is used. Adjust comments.
2308
d62294f5
FJ
23092004-08-18 Fariborz Jahanian <fjahanian@apple.com>
2310
6aaf3dde
ZW
2311 * config/rs6000/altivec.md: Add new patterns for calls to
2312 save_world/rest_world functions.
2313
2314 * config/rs6000/rs6000-protos.h: (save_world_operation,
2315 restore_world_operation) new declarations.
2316
2317 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
2318 field added.
2319 (rs6000_stack_info): Set world_save_p field.
2320 (save_world_operation): New function.
2321 (restore_world_operation): New function.
2322 (compute_save_world_info): New function.
2323 (rs6000_stack_info): Call compute_save_world_info.
2324 (rs6000_emit_prologue): Check for world_save_p and generate
2325 pattern to call save_world for saving all non-volatile and
2326 special registers.
2327 (rs6000_emit_epilogue): Check for world_save_p and generate
2328 pattern to call rest_world to restore saved registers.
2329
2330 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
2331 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
2332 (rs6000_reg_names): New entries added for save_world_operation and
2333 restore_world_operation.
d62294f5 2334
790ac0e1
CT
23352004-08-18 Caroline Tice <ctice@apple.com>
2336
6aaf3dde 2337 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
790ac0e1
CT
2338 "-freorder-blocks-and-partition" to the flags used in second
2339 stage of profiledbootstrap.
2340 * bb-reorder.c (push_to_next_round_p): Add new variable,
2341 next_round_is_last; set and use variable to make sure, when
2342 partitioning, that the last trace construction round consists
2343 of all (and only) cold basic blocks.
2344 (rotate_loop): Don't copy blocks that end in a section
2345 crossing jump.
2346 (copy_bb): Correctly initialize "partition" of duplicated bb.
2347 (add_unlikely_executed_notes): Add a comment.
2348 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
2349 to make sure, if function contains hot blocks, that the
2350 successors of ENTRY_BLOCK_PTR are hot; also, only look for
2351 crossing edges if the architecture supports named sections.
2352 (mark_bb_for_unlikely_executed_section): Modify to always
2353 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
2354 the basic block note insn.
2355 (fix_crossing_unconditional_branches): Remove extra space.
2356 (fix_edges_for_rarely_executed_code): Modify to only do
2357 partitioning work if the architecture supports named sections.
2358 (reorder_basic_blocks): Modify to only add
2359 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
2360 supports named sections.
2361 * c-common.c (handle_section_attribute): Initialize new global
2362 variable, user_defined_section_attribute, to true if user has
2363 specified one.
2364 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
2365 forward edges that cross section boundaries.
2366 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
2367 partitioning information if the architecture supports named
2368 sections.
2369 * cfgrtl.c (target.h): Add statement to include this.
2370 (rtl_split_block): Make sure newly created bb gets correct
2371 partition.
2372 (try_redirect_by_replacing_jump): Make sure redirection isn't
2373 attempting to cross section boundaries.
2374 (force_nonfallthru_and_redirect): Only do partition fix up if
2375 architecture supports named sections.
2376 (rtl_split_edge): Make sure newly created bb ends up in
2377 correct partition.
2378 (commit_one_edge_insertion): Remove code that incorrectly
2379 updated basic block partition; Make sure partition fix up only
2380 happens if architecture supports named sections and it's not
2381 already done.
2382 (rtl_verify_flow_info_1): Fix if-condition on test/error
2383 condition that fallthru edges are not allowed to cross section
2384 boundaries.
2385 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
2386 * final.c (final_scan_insn): Remove redundant test from if-statement;
2387 change calls to text_section into calls to function_section; add code
2388 to only to partitioning fix up if architecture supports named
2389 sections.
2390 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
2391 partition.
2392 (if_convert): Add targetm.have_named_sections to test.
2393 * output.h (unlikely_section_label): Extern declaration for new global
2394 variable.
2395 (unlikely_text_section_name): Likewise.
2396 * opts.c (decode_options): If both partitioning and DWARF debugging
2397 are turned on, issue a warning that this doesn't work, and change
2398 partitiong to basic block reordering (without hot/cold partitions).
6aaf3dde 2399 * passes.c (rest_of_handle_final): Re-set new global variable,
790ac0e1
CT
2400 user_defined_section_attribute, to false.
2401 (rest_of_compilation): Change options for calling partitioning
2402 function: Don't call if the user defined the section attribute, and
2403 don't call if DECL_ONE_ONLY is true for the current function.
2404 * predict.c (choose_function_section): Return immediately if we
2405 are doing hot/cold partitioning (i.e. let the basic block partitioning
2406 determine where the function belongs).
2407 * reg-stack.c (emit_swap_insn): Add condition to step over
2408 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
2409 * toplev.c (user_defined_section_attribute): New global variable.
89b0433e
NS
2410 * toplev.h (user_defined_section_attribute): Extern declaration
2411 for new global variable.
790ac0e1
CT
2412 * varasm.c (unlikely_section_label): New global variable.
2413 (unlikely_text_section_name): New global variable.
89b0433e
NS
2414 (unlikely_text_section): Add code to initialize
2415 unlikely_text_section_name if necessary; modify to use
2416 unlikely_text_section_name and unlikely_section_label; also to use
2417 named_section properly.
2418 (in_unlikely_text_section): Modify to work correctly with
2419 named_section and to use unlikely_text_section_name.
790ac0e1
CT
2420 (named_section): Add code to work properly with cold section.
2421 (function_section): Clean up if-statement.
89b0433e
NS
2422 * config/darwin.c (darwin_asm_named_section): Return to original
2423 code, removing use of SECTION_FORMAT_STRING.
6aaf3dde 2424 * config/arm/pe.h (switch_to_section): Add case for
790ac0e1
CT
2425 in_unlikely_executed_text to switch statement.
2426 * config/i386/cygming.h (switch_to_section): Likewise.
2427 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
2428 (SECTION_FORMAT_STRING): Likewise.
2429 * config/mcore/mcore.h (switch_to_section): Likewise.
2430 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
2431 (SECTION_FORMAT_STRING): Remove.
2432
3a4416fb
RS
24332004-08-18 Roger Sayle <roger@eyesopen.com>
2434
2435 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
2436 -ffixed-reg safe, by preserving the meanings of zero and one.
2437 (CALL_USED_REGISTERS): Likewise.
2438 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
2439
03904fb3
KK
24402004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
2441
2442 * config/sh/sh.c (split_branches): Check the result of
2443 next_active_insn.
2444 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
2445 Call rtl_register_cfg_hooks.
2446
389fdba0
RH
24472004-08-18 Richard Henderson <rth@redhat.com>
2448
2449 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
2450 * alias.c (true_dependence): Update to match new semantics.
2451 (canon_true_dependence, write_dependence_p): Likewise.
2452 (anti_dependence, output_dependence): Update write_dependence_p args.
2453 (unchanging_anti_dependence): Remove.
2454 * calls.c (purge_mem_unchanging_flag): Remove.
2455 (fixup_tail_calls): Don't call it.
2456 (expand_call): Don't add unchanging memory to function usage.
2457 * expr.c (emit_block_move_via_libcall): Likewise.
2458 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
2459 (get_subtarget): Don't use RTX_UNCHANGING_P.
2460 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
2461 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
2462 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
2463 * cse.c (insert): Don't use RTX_UNCHANGING_P.
2464 (cse_insn, canon_hash): Use MEM_READONLY_P.
2465 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
2466 instead of RTX_UNCHANGING_P.
2467 * explow.c (maybe_set_unchanging): Remove.
2468 * expr.h (maybe_set_unchanging): Remove.
2469 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
2470 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
2471 (assign_parm_setup_reg, expand_function_start): Likewise.
2472 * integrate.c (copy_rtx_and_substitute): Likewise.
2473 * ra-rewrite.c (emit_colors): Likewise.
2474 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
2475 (fixup_match_1): Likewise.
2476 * reload1.c (reload, alter_reg): Likewise.
2477 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
2478 not RTX_UNCHANGING_P.
2479 (equiv_init_varies_p): Likewise.
2480 * loop-invariant.c (check_maybe_invariant): Likewise.
2481 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
2482 * loop.c (note_addr_stored): Likewise.
2483 (prescan_loop): Likewise. Don't check function usage for clobbered
2484 unchanging memory.
2485 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
6aaf3dde 2486 not RTX_UNCHANGING_P.
389fdba0
RH
2487 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
2488 * varasm.c (force_const_mem): Likewise.
2489 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
2490 * web.c (entry_register): Likewise.
2491 * tree-gimple.h (get_base_address): Move decl ...
2492 * tree.h: ... here.
2493 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
2494
2495 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
2496 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
2497 (alpha_set_memflags): Update to match.
2498
2499 * config/darwin.c (machopic_indirect_data_reference): Set
2500 MEM_READONLY_P instead of RTX_UNCHANGING_P.
2501 (machopic_indirect_call_target): Likewise.
2502 (machopic_legitimize_pic_address): Likewise.
6aaf3dde 2503 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
389fdba0
RH
2504 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
2505 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
2506 * config/frv/frv.md (symGOT2reg): Likewise.
2507 * config/i386/i386.c (legitimize_pic_address,
2508 legitimize_tls_address, ix86_split_to_parts): Likewise.
2509 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
2510 * config/ia64/ia64.md (load_fptr): Likewise.
2511 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
2512 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
2513 * config/mcore/mcore.c (block_move_sequence): Likewise.
2514 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
2515 * config/pa/pa.c (legitimize_pic_address): Likewise.
2516 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
2517 (rs6000_emit_move): Likewise.
2518 * config/s390/s390.c (legitimize_pic_address): Likewise.
2519 (legitimize_tls_address): Likewise.
2520 * config/s390/s390.md (casesi): Likewise.
2521 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
2522 * config/sh/sh.md (symGOT2reg): Likewise.
2523 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
2524 * config/v850/v850.md (casesi): Likewise.
2525
2526 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
2527 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
2528 * config/mips/mips.c (mips_restore_gp): Likewise.
2529 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
2530 * config/sh/sh.c (sh_reorg): Likewise.
2531
17ad5b5e
RH
25322004-08-18 Richard Henderson <rth@redhat.com>
2533
2534 * tree.h (struct tree_decl): Add gimple_formal_temp.
2535 (DECL_GIMPLE_FORMAL_TEMP_P): New.
2536 * gimplify.c (pop_gimplify_context): Clear it.
2537 (lookup_tmp_var): Set it, if is_formal.
2538 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
2539 Use is_gimple_val for VECTOR. Simplify return value.
2540 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
2541 (gimplify_expr): Likewise.
2542 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
2543 is_gimple_tmp_rhs for clarity. Update all callers.
2544 (is_gimple_reg_rhs): Simplify logic.
2545 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
2546 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
2547 (is_gimple_formal_tmp_reg): Similarly.
2548 * tree-gimple.h: Update decls.
2549 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
2550 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
2551 * tree-ssa-live.c (var_union, type_var_init): Likewise.
2552
5b0eba61
PB
25532004-08-18 Paolo Bonzini <bonzini@gnu.org>
2554
2555 * c4x.c (legitimize_operands): Remove calls to
2556 preserve_subexpressions_p.
2557
07e15286
DE
25582004-08-18 David Edelsohn <edelsohn@gnu.org>
2559
2560 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
2561 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
2562
ad8c162b
ZL
25632004-08-18 Ziemowit Laski <zlaski@apple.com>
2564
2565 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
2566 Objective-C++ extensions.
2567 * gengtype.c (get_file_basename): Match entire subdirectory name
2568 ('cp', 'objc', 'objcp') rather than just its suffix.
2569 (get_base_file_bitmap): Allow for files to belong to more than one
2570 language.
2571 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
2572 used by more than one front-end.
2573
d56993f2
RE
25742004-08-18 Richard Earnshaw <rearnsha@arm.com>
2575
2576 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
2577 avoid use of preserve_subexpressions_p.
2578
504c0e4f
RH
25792004-08-17 Richard Henderson <rth@redhat.com>
2580
2581 PR 17051
2582 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
2583
54e9a19d
DD
25842004-08-17 DJ Delorie <dj@redhat.com>
2585
2586 * doc/extend.texi: Document new xstormy16 attribute.
2587
2588 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
2589 (xstormy16_splittable_below100_or_register): New.
2590 (combine_bnp): New.
2591 (xstormy16_reorg): New.
2592 (TARGET_MACHINE_DEPENDENT_REORG): Define.
2593
54e9a19d
DD
2594 * config/stormy16/stormy16.md (movqi_internal): Make name public.
2595 (movhi_internal): Likewise.
2596 (cbhranchhi): Likewise.
2597 (cbhranchhi_neg): Likewise.
2598 (andhi3): Only allow splittable below100 operands.
2599 (iorhi3): Likewise.
2600 (peephole2): New and/zero_extend->and peephole.
2601 (peephole2): New load/ior/save->set1 peephole.
2602 (peephole2): New load/and/save->clr1 peephole.
2603 (bclrx, bclrx2, bclr7, bclr15): New.
2604 (bsetx, bsetx2, bset7, bset15): New.
2605
2606 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
2607 liberal about acceptable 'B' masks.
2608
2609 * config/stormy16/stormy16-protos.h
2610 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
2611 xstormy16_below100_operand, xstormy16_below100_or_register,
2612 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
2613 (PREDICATE_CODES): Add new predicates.
6aaf3dde 2614
54e9a19d
DD
2615 * config/stormy16/stormy16.c
2616 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
2617 xstormy16_below100_operand, xstormy16_below100_or_register,
2618 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
2619 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
2620 (xstormy16_legitimate_address_p): Allow below100 symbols.
2621 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
2622 (xstormy16_expand_move): Leave below100 operands as-is.
2623 (xstormy16_encode_section_info): Encode below100 symbols.
2624 (xstormy16_strip_name_encoding): New.
2625 (xstormy16_print_operand): Print 'b' as shift mask.
2626 (xstormy16_attribute_table): Add below100 attributes.
2627 (xstormy16_handle_below100_attribute): New.
2628
2629 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
2630 (XSTORMY16_SECTION_FUNCTION): New.
2631 (EXTRA_SECTION_FUNCTIONS): Define using the above.
2632 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2633 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
2634 (ASM_OUTPUT_LABELREF): Define.
2635
2636 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
2637 (movhi_internal): Add below100 support.
2638 (andhi3): Add below100 support.
2639 (iorhi3): Add below100 support.
2640 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
2641
4ef47bd8
JW
26422004-08-17 James E Wilson <wilson@specifixinc.com>
2643
2644 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
2645 of VOIDmode for comparison code mode.
2646 * config/mips/mips.md: For conditional move patterns, use mode of
2647 first compare operand for comparison mode, instead of VOIDmode.
e17c734b
JW
2648
2649 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
2650 normal and -ffast-math code.
2651
1a10290c
MM
26522004-08-17 Mark Mitchell <mark@codesourcery.com>
2653
2654 PR c++/15871
2655 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
2656
f4e736dd 26572004-08-17 Robert Bowdidge <bowdidge@apple.com>
6aaf3dde
ZW
2658
2659 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
f4e736dd 2660
13a98f14
AT
26612004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
2662
2663 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
2664 for non Darwin targets.
2665 (*call_value_nonlocal_darwin64): Likewise.
2666
d0b2079e
FJ
26672004-08-17 Fariborz Jahanian <fjahanian@apple.com>
2668
2669 * config/rs6000/rs6000.c (rs6000_function_value): Check for
2670 altivec mode for altivec return register.
2671
feb3dc8b
DE
26722004-08-17 David Edelsohn <edelsohn@gnu.org>
2673
2674 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
ef0e2729 2675 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
feb3dc8b
DE
2676 * config/rs6000/rs6000.md: Include darwin.md.
2677 (builtin_setjmp_receiver): Add DImode case.
2678 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
2679 Darwin bits.
2680
79fe1b3b
DN
26812004-08-17 Dorit Naishlos <dorit@il.ibm.com>
2682
89b0433e
NS
2683 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
2684 trees.
79fe1b3b
DN
2685 * tree-vectorizer.h: New File: Same.
2686 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
2687 * common.opt (ftree-vectorize): New flag to enable vectorization.
89b0433e
NS
2688 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
2689 vectorization pass.
79fe1b3b
DN
2690 * tree-data-ref.h (init_data_ref): Additional argument.
2691 (array_base_name_differ_p): Moved to tree-data-ref.c.
2692 * tree-data-ref.c (array_base_name_differ_p): Revised.
2693 (initialize_data_dependence_relation): Call array_base_name_differ_p
2694 with an extra argument.
2695 (analyze_all_data_dependences): Same.
2696 (init_data_ref): Additional argument is_read to set DR_IS_READ.
89b0433e
NS
2697 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
2698 file.
79fe1b3b
DN
2699 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
2700 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
6aaf3dde 2701 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
79fe1b3b
DN
2702 vectorization pass.
2703 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
2704 (tree_ssa_loop_done): Call scev_finalize.
2705 (tree_vectorize): Define the new vectorization pass.
89b0433e
NS
2706 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
2707 size of the vector they support (until support for multiple vector
2708 sizes is added to the vectorizer).
79fe1b3b
DN
2709 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
2710 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
2711 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
2712 documentation.
2713
e15987c1
NS
27142004-08-17 Nathan Sidwell <nathan@codesourcery.com>
2715
2716 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
2717 usage.
2718 (generate_protocol_list, handle_impent): Likewise.
2719
e3cadb61
RS
27202004-08-17 Roger Sayle <roger@eyesopen.com>
2721
2722 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
2723 ensure that call_used_regs is a superset of both fixed_regs and
2724 call_really_used_regs.
2725
108a579c
DB
27262004-08-17 Daniel Bornstein <danfuzz@milk.com>
2727
2728 PR target/17019
2729 * arm.md (addsi3_cbranch_scratch): Correct case labels.
2730
62fc1d7d
PB
27312004-08-17 Paolo Bonzini <bonzini@gnu.org>
2732
2733 PR middle-end/17036
2734 * fold-const.c (fold): Check for integer operand when
2735 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
2736 Pinski <pinskia@physics.uc.edu>.
2737
7c27e184
PB
27382004-08-17 Paolo Bonzini <bonzini@gnu.org>
2739
2740 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
2741 No need to check if in a cross configuration.
2742 * configure: Regenerate.
2743
2744 * calls.c (precompute_register_parameters):
2745 Inline preserve_subexpressions_p ().
2746 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
2747 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
2748 Likewise.
2749 * expr.c (get_subtarget): Likewise.
2750 * rtl.h (preserve_subexpressions_p): Remove.
2751 * stmt.c (preserve_subexpressions_p): Remove.
2752
2753 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
2754 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
2755 Abort on gimplified cases.
2756
d97c6333
JW
27572004-08-16 James E Wilson <wilson@specifixinc.com>
2758
2759 * tree.h (VECTOR_FLOAT_TYPE_P): New.
2760 (FLOAT_TYPE_P): Use it.
2761 * c-typeck.c (build_binary_op): After convert calls, check for
2762 check for ERROR_MARK operands.
2763
45c8116d
ZW
27642004-08-16 Zack Weinberg <zack@codesourcery.com>
2765
2766 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
2767 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
2768 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
2769 (genobjs static pattern rule): Remove %.c dependency.
2770 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
2771 Rename rules; delete commands; fix dependencies.
2772 (mostlyclean): Do not delete temporary source copies.
2773 * configure.ac: Delete all references to BUILD_PREFIX and
2774 BUILD_PREFIX_1.
2775 * configure: Regenerate.
2776
2777 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
2778 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
2779 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
2780 with #ifndef GENERATOR_FILE so that nothing from those headers
2781 is used.
2782
2783 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
2784
4d73e20b
AN
27852004-08-16 Adam Nemet <anemet@lnxw.com>
2786
2787 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
6aaf3dde 2788
62114438
AP
27892004-08-16 Andrew Pinski <apinski@apple.com>
2790
2791 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
2792 extraneous semicolon.
2793
8e3e233b
DP
27942004-08-16 Devang Patel <dpatel@apple.com>
2795
2796 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
2797 * print-tree.c (print_node): Print DECL_PRESERVE_P.
2798 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
2799 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
2800 * target.h (struct gcc_target): New member, mark_decl_preserved.
45c8116d
ZW
2801 * hooks.c (hook_void_charptr): Rename to ...
2802 (hook_void_constcharptr): ... new name.
2803 * hooks.h (hook_void_charptr): Rename to ..
2804 (hook_void_constcharptr): ... new name.
8e3e233b
DP
2805 * tree.h (DECL_PRESERVE_P): New #define.
2806 (struct tree_decl): New member, preserve_flag.
2807 * varasm.c (assemble_start_function): Mark decl preserved.
2808 (assemble_variable): Same.
2809 * darwin.c (darwin_mark_decl_preserved): New function.
2810 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
2811 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
2812 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
2813
580b3958
JM
28142004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
2815
2816 * c-decl.c (grokdeclarator): Allow for function definition where
2817 innermost declarator has attributes.
2818
93f90be6
FJ
28192004-08-16 Fariborz Jahanian <fjahanian@apple.com>
2820
2821 * except.c (get_exception_filter, build_post_landing_pads,
2822 dw2_build_landing_pads): Use target-specific mode for 'filter'.
2823 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
2824 * target.h (eh_return_filter_mode): New field added.
2825 * targhooks.c (default_eh_return_filter_mode): Defined.
2826 * targhooks.h (default_eh_return_filter_mode): Declared.
2827 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
2828
392765bf
NN
28292004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
2830
2831 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
2832 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
2833 * configure: Regenerate.
2834
49bd1d27
SS
28352004-08-16 Stan Shebs <shebs@apple.com>
2836
2837 Basic support for 64-bit Darwin.
2838 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
2839 (machopic_legitimize_pic_address): Similarly, plus use Pmode
2840 instead of SImode.
2841 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
2842 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
2843 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
2844 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
2845 (PROCESSOR_DEFAULT64): Define.
2846 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
2847 Darwin.
2848 * config/rs6000/rs6000.md: Include darwin.md.
2849 (builtin_setjmp_receiver): Add DImode case.
2850 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
2851 Darwin.
2852 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
2853 (rs6000_emit_move): Add DImode case to Darwin bits.
2854 (machopic_output_stub): Use .quad if 64-bit.
2855 * invoke.texi: Document -m32 and -m64.
2856
4e6e4e4c
JJ
28572004-08-16 Janis Johnson <janis187@us.ibm.com>
2858
2859 * doc/extend.texi (AltiVec builtins): Document additional differences
2860 from the Motorola AltiVec PIM.
2861
092313ae
NS
28622004-08-16 Nathan Sidwell <nathan@codesourcery.com>
2863
2864 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
2865 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
2866 (struct tree_common): Update public_flag documentation.
2867
dffc9ae5
NN
28682004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
2869
2870 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
62fc1d7d 2871 Check for artificial variables, not is_gimple_tmp_var.
dffc9ae5
NN
2872 * tree-ssa-live.c (var_union): Likewise.
2873
16e9be4c
NS
28742004-08-16 Nathan Sidwell <nathan@codesourcery.com>
2875
2876 * calls.c (load_register_parameters): Remove spurious FIXME token.
2877
9a4d6480
ZL
28782004-08-15 Ziemowit Laski <zlaski@apple.com>
2879
2880 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
2881 (c-lang.o): Depend on c-objc-common.h.
45c8116d 2882 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
9a4d6480
ZL
2883 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
2884 * c-lang.c: Include c-objc-common.h.
2885 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
2886 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
2887 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
45c8116d
ZW
2888 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
2889 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
9a4d6480
ZL
2890 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
2891 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
45c8116d 2892 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
9a4d6480
ZL
2893 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
2894 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2895 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
2896 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
2897 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2898 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
2899 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
2900 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
2901 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
2902 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
2903 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
2904 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
2905 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
2906 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
2907 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
2908 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
2909 Move to c-objc-common.h.
2910 * c-objc-common.c: Include c-objc-common.h.
2911 * c-objc-common.h: New file.
2912
869464ba
AT
29132004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
2914 Andrew Pinski <pinskia@physics.uc.edu>
2915
2916 PR target/14931
2917 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
2918 style.
2919
4a90aeeb
NS
29202004-08-15 Nathan Sidwell <nathan@codesourcery.com>
2921
2922 * tree.h (build_int_cst): New.
2923 (build_int_2): Remove.
2924 * tree.c (build_int_2): Remove.
2925 (build_int_cst): New.
2926 (make_vector_type, build_common_tree_nodes,
2927 build_common_tree_nodes_2): Use build_int_cst.
2928 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
2929 expand_builtin_strpbrk, expand_builtin_fputs,
2930 build_string_literal, expand_builtin_printf,
2931 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
2932 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
2933 fold_builtin_isdigit, simplify_builtin_strstr,
2934 simplify_builtin_strpbrk, fold_builtin_fputs,
2935 simplify_builtin_sprintf): Use build_int_cst.
2936 * c-common.c (start_fname_decls, fix_string_type,
2937 c_common_nodes_and_builtins, c_init_attributes,
2938 shorten_compare): Likewise.
2939 * c-decl.c (complete_array_type,
2940 check_bitfield_type_and_width): Likewise.
2941 * c-lex.c (interpret_integer, lex_charconst): Likewise.
2942 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
2943 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2944 * c-typeck.c (really_start_incremental_init, push_init_level,
2945 set_nonincremental_init_from_string): Likewise.
2946 * calls.c (load_register_parameters): Likewise.
2947 * convert.c (convert_to_pointer): Likewise.
2948 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
2949 build_fn_info_type, build_ctr_info_value, build_gcov_info):
2950 Likewise.
2951 * except.c (init_eh, assign_filter_values, assign_filter_values):
2952 Likewise.
2953 * expmed.c (store_fixed_bit_field, extract_bit_field,
2954 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
2955 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
2956 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
2957 * expr.c (convert_move, emit_group_load, emit_group_store,
2958 expand_assignment, store_constructor, store_field,
2959 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2960 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
2961 invert_truthvalue, optimize_bit_field_compare,
2962 decode_field_reference, all_ones_mask_p, constant_boolean_node,
2963 fold_div_compare, fold, fold_read_from_constant_string,
2964 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
2965 * function.c (assign_parm_setup_block): Likewise.
2966 * stmt.c (shift_return_value, expand_end_case_type,
2967 estimate_case_costs): Likewise.
2968 * stor-layout.c (layout_type, initialize_sizetypes,
2969 set_min_and_max_values_for_integral_type): Likewise.
2970 * tree-chrec.c (chrec_fold_multiply_poly_poly,
2971 reset_evolution_in_loop): Likewise.
2972 * tree-chrec.h (build_polynomial_chrec): Likewise.
2973 * tree-complex.c (build_replicated_const): Likewise.
2974 * tree-eh.c (honor_protect_cleanup_actions,
2975 lower_try_finally_onedest, lower_try_finally_copy,
2976 lower_try_finally_switch): Likewise.
2977 * tree-mudflap.c (mf_build_string, mx_register_decls,
2978 mudflap_register_call, mudflap_enqueue_constant): Likewise.
2979 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
2980 * tree-pretty-print.c (dump_generic_node): Likewise.
2981 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
2982 Likewise.
2983 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2984 * tree-ssa-loop-niter.c (number_of_iterations_cond,
2985 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
2986 Likewise.
45c8116d 2987
4a90aeeb
NS
2988 * config/alpha/alpha.c (alpha_initialize_trampoline,
2989 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
2990 * config/arm/arm.c (arm_get_cookie_size): Likewise.
2991 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2992 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2993 * config/i860/i860.c (i860_va_start): Likewise.
2994 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2995 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
2996 mips_gimplify_va_arg_expr): Likewise.
2997 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2998 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
2999 add_compiler_branch_island): Likewise.
3000 * config/s390/s390.c (s390_va_start): Likewise.
3001 * config/sh/sh.c (sh_va_start): Likewise.
3002 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
3003 Likewise.
3004 * config/xtensa/xtensa.c (xtensa_va_start,
3005 xtensa_gimplify_va_arg_expr): Likewise.
45c8116d 3006
4a90aeeb
NS
3007 * objc/objc-act.c (build_objc_string_object,
3008 build_objc_symtab_template, init_def_list, init_objc_symtab,
3009 init_module_descriptor, generate_static_references,
3010 build_selector_translation_table, get_proto_encoding,
3011 build_typed_selector_reference, build_selector_reference,
3012 build_next_objc_exception_stuff,
3013 build_method_prototype_list_template, generate_descriptor_table,
3014 generate_protocols, build_protocol_initializer,
3015 build_ivar_list_template, build_method_list_template,
3016 build_ivar_list_initializer, generate_ivars_list,
3017 generate_dispatch_table, generate_protocol_list,
3018 build_category_initializer, build_shared_structure_initializer,
3019 generate_shared_structures, handle_impent,
3020 generate_objc_image_info): Use build_int_cst.
3021
2a68a7de
BE
30222004-08-15 Ben Elliston <bje@au.ibm.com>
3023
3024 * vec.h: Comment improvements.
3025
53fb4de3
RS
30262004-08-14 Roger Sayle <roger@eyesopen.com>
3027
3028 * c-common.c (shorten_compare, pointer_int_sum,
3029 c_common_truthvalue_conversion, boolean_increment): Replace calls
3030 to build with calls to buildN.
3031 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
3032 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
3033 gimplify_switch_stmt): Likewise.
3034 * c-typeck.c (default_function_array_conversion,
3035 build_component_ref, build_array_ref, build_function_call,
3036 pointer_diff, build_unary_op, build_conditional_expr,
3037 build_compound_expr, build_modify_expr, c_finish_goto_label,
3038 c_finish_goto_ptr, c_finish_return, c_finish_loop,
3039 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
3040 build_binary_op): Likewise.
3041
254b17dd
SB
30422004-08-15 Steven Bosscher <stevenb@suse.de>
3043
3044 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
3045
a5252c84
JDA
30462004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3047
3048 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
3049 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
3050 * fixinc/fixincl.x: Rebuilt.
3051
96a30b18
RS
30522004-08-14 Richard Sandiford <rsandifo@redhat.com>
3053
3054 * config/mips/mips-protos.h (mips_symbolic_constant_p)
3055 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
3056 (mips_small_data_pattern_p): Declare.
3057 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
3058 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
3059 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
3060 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
3061 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
3062 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
3063 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
3064 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
3065 (pc_or_label_operand, call_insn_operand, move_operand)
3066 (consttable_operand, symbolic_operand, general_symbolic_operand)
3067 (global_got_operand, local_got_operand, stack_operand)
3068 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
3069 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
3070 (mips_small_data_pattern_p): Replace previous small_data_pattern
3071 predicate. Turn into a bool () (rtx) function.
3072 * config/mips/predicates.md: New file.
3073 * config/mips/mips.md: Include it. Use the target-independent
3074 comparison_operator instead of cmp_op. Rename trap_cmp_op to
3075 trap_comparison_operator and equality_op to equality_operator.
3076 Replace uses of small_int with the equivalent const_arith_operand.
3077 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
3078 const_float_1_operand to const_1_operand. Rename fcc_register_operand
3079 to fcc_reload_operand.
3080 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
3081
e41c9fcb
JDA
30822004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3083
3084 PR libstdc++/17005 partial fix.
3085 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
3086 except when generating ANSI/C89 code.
3087
af9c6659
NS
30882004-08-14 Nathan Sidwell <nathan@codesourcery.com>
3089
3090 * c-common.c (shorten_compare): Use force_fit_type directly.
3091
37de1373
GP
30922004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
3093 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
3094 Dave Korn <dk@artimi.com>
3095
3096 * doc/install.texi (Building): Avoid duplicate reference to GNU
3097 make requirement.
3098 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
3099
06d69cd3
RH
31002004-08-14 Richard Henderson <rth@redhat.com>
3101
3102 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
3103 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
3104
e427abbf
RH
31052004-08-13 Richard Henderson <rth@redhat.com>
3106
3107 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
3108 for constant_call_address_operand.
3109 (call_value_pop_1, call_value_1): Likewise.
3110 (sibcall_value_1, call_value_1_rex64): Likewise.
3111
2b407936
JW
31122004-08-13 James E Wilson <wilson@specifixinc.com>
3113
3114 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
3115 Correct mode from SFmode to DFmode.
3116
3e0d5ae2
ZL
31172004-08-13 Ziemowit Laski <zlaski@apple.com>
3118
3119 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
3120 __cstring_object and __image_info sections with the no_dead_strip
3121 attribute.
3122
e0704143
RS
31232004-08-13 Roger Sayle <roger@eyesopen.com>
3124 David Billinghurst <David.Billinghurst@riotinto.com>
3125
3126 PR libgfortran/15930
3127 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
3128 * fixinc/fixincl.x: Regenerate.
3129 * fixinc/tests/base/internal/math_core.h: New file.
3130
8768c655
RH
31312004-08-13 Richard Henderson <rth@redhat.com>
3132
3133 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
3134 (dbxout_function_end): Remove ifdefs for it.
3135 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
3136
201312c2
RH
31372004-08-13 Richard Henderson <rth@redhat.com>
3138
3139 * Makefile.in (insn-preds.o): Depend on TREE_H.
3140 * genpreds.c (write_insn_preds_c): Include tree.h.
3141 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
3142 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
3143 const48_operand, and_operand, or_operand, mode_width_operand,
3144 mode_mask_operand, mul8_operand, const0_operand,
3145 hard_fp_register_operand, hard_int_register_operand,
3146 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
3147 samegp_function_operand, direct_call_operand, small_symbolic_operand,
45c8116d 3148 global_symbolic_operand, call_operand, symbolic_operand,
201312c2
RH
3149 dtp16_symbolic_operand, dtp32_symbolic_operand,
3150 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
3151 gottp_symbolic_operand, alpha_comparison_operator,
3152 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
3153 signed_comparison_operator, alpha_fp_comparison_operator,
3154 divmod_operator, fix_operator, aligned_memory_operand,
3155 unaligned_memory_operand, reg_or_unaligned_mem_operand,
3156 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
3157 reg_no_subreg_operand, addition_operation): Move to predicates.md.
3158 (reg_or_const_int_operand): Remove. Replace all users with
3159 reg_or_cint_operand.
3160 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
3161 (resolve_reload_operand): Split out of aligned_memory_operand.
3162 * config/alpha/alpha-protos.h: Update for exports.
3163 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
3164 * config/alpha/alpha.md: Include predicates.md.
3165 * config/alpha/predicates.md: New file.
3166
1e9c8405
RS
31672004-08-13 Richard Sandiford <rsandifo@redhat.com>
3168
3169 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
3170 fields with a pointer to the instruction definition.
3171 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
3172 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
3173 (write_attr_case, write_const_num_delay_slots): Update accordingly.
3174 (write_attr_case, write_const_num_delay_slots): Write the name of
3175 an insn next to its case statement.
3176 * genoutput.c (data): Add a filename field.
3177 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
3178 (output_insn_data): Print the location of each insn definition.
3179 * genrecog.c (write_action): Print the name of an insn above
3180 the statement that returns its code.
3181
1e5f1716
AP
31822004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
3183
3184 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
3185 * config/libgloss.h: Likewise.
3186 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
3187 * c4x/c4x-modes.def: Likewise.
3188 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
3189 (c4x_rptb_nop_p): Likewise.
3190 (c4x_rptb_valid_p): Likewise.
3191 (c4x_rptb_insert): Likewise.
3192 (c4x_address_conflict): Likewise.
3193 * config/c4x/c4x.md: Likewise.
3194 * config/frv/frv.md: Likewise.
3195 * config/i386/athlon.md: Likewise.
3196 * config/i386/i386.md: Likewise.
3197 * config/i386/predicates.md: Likewise.
3198 * config/ia64/ia64.c: Likewise.
3199 * config/ia64/itanium1.md: Likewise.
3200 * config/ia64/itanium2.md: Likewise.
3201 * config/iq2000/iq2000.md: Likewise.
3202 * config/mcore/mcore.c: Likewise.
3203 * config/mips/mips.c: Likewise.
3204 * config/mips/r3900.h: Likewise.
3205 * config/mips/sb1.md: Likewise.
3206 * config/pa/milli64.S: Likewise.
3207 * config/pa/pa.c: Likewise.
3208 * config/pa/pa.h: Likewise.
3209 * config/rs6000/8540.md: Likewise.
3210
9bcc9490
DB
32112004-08-13 Daniel Berlin <dberlin@dberlin.org>
3212
3213 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
3214
68fe56fc
R
32152004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
3216
3217 * sh.md (cbranch define_delay) Use cond_delay_slot for
3218 non-anulled condition too.
3219
85d346f1
DE
32202004-08-12 David Edelsohn <edelsohn@gnu.org>
3221
3222 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
3223 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
3224 any_parallel_operand, lmw_operation, stmw_operation,
a688b3ac 3225 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
85d346f1
DE
3226 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
3227 any_parallel_operand.
3228 (return_and_restore_fpregs_{si,di}): Same.
3229
47d2cee5
ZW
32302004-08-12 Zack Weinberg <zack@codesourcery.com>
3231
3232 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
3233 if pred->singleton != PARALLEL, issue a warning and pretend it was.
3234 Also issue a warning for any predicate we don't know about.
3235
8fe75e43
RH
32362004-08-12 Richard Henderson <rth@redhat.com>
3237
3238 * config/i386/i386.c (internal_label_prefix): Export.
3239 (internal_label_prefix_len, struct ix86_address,
3240 ix86_decompose_address, maybe_get_pool_constant,
3241 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
3242 memory_address_length): Export.
47d2cee5 3243 (any_fp_register_operand, fp_register_operand,
8fe75e43 3244 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
47d2cee5 3245 x86_64_general_operand, x86_64_szext_general_operand,
8fe75e43
RH
3246 x86_64_nonmemory_operand, x86_64_movabs_operand,
3247 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
3248 x86_64_zext_immediate_operand, const_int_1_31_operand,
3249 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
3250 tls_symbolic_operand, global_dynamic_symbolic_operand,
3251 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
3252 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
3253 constant_call_address_operand, const0_operand, const1_operand,
3254 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
3255 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
3256 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
3257 general_no_elim_operand, nonmemory_no_elim_operand,
3258 index_register_operand, q_regs_operand, flags_reg_operand,
3259 non_q_regs_operand, zero_extended_scalar_load_operand,
3260 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
47d2cee5 3261 ix86_comparison_operator, ix86_carry_flag_operator,
8fe75e43
RH
3262 fcmov_comparison_operator, promotable_binary_operator,
3263 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
47d2cee5 3264 mult_operator, div_operator, arith_or_logical_operator,
8fe75e43
RH
3265 memory_displacement_operand, cmpsi_operand, long_memory_operand,
3266 aligned_operand): Move to predicates.md as define_predicates.
3267 (tls_symbolic_operand_1): Remove.
3268 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
3269 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
3270 (legitimize_address): Merge tls_symbolic_operand contents.
3271 (ix86_expand_move): Likewise.
3272 * config/i386/i386-protos.h: Update for exports.
3273 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
3274 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
3275 * config/i386/i386.md: Include predicates.md.
3276 * config/i386/predicates.md: New file.
3277
ea3d83a7
MM
32782004-08-13 Mark Mitchell <mark@codesourcery.com>
3279
3280 PR c++/16924
3281 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
3282 SYMBOL_REF_DECL.
3283 (i386_pe_mark_dllimport): Likewise.
3284 (i386_pe_encode_section_info): Likewise, when overriding
3285 dllimport attribute.
3286
414adbdd
GK
32872004-08-12 Geoffrey Keating <geoffk@apple.com>
3288
3289 * configure.ac: When testing for flex, nm, ar, and bison, check
3290 that they will actually be built.
3291 * configure: Regenerate.
3292
c5443745
UW
32932004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
3294
3295 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
3296 (MOVE_MAX_PIECES): Define.
3297
8fa5469d
DP
32982004-08-12 Devang patel <dpatel@apple.com>
3299
3300 * dbxout.c (dbxout_begin_prologue): New function.
3301 (dbx_debug_hooks): Use new begin prologue hook.
3302 (dbxout_function_end): Emit N_ENSYM.
3303 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
47d2cee5 3304
b0b343db
JJ
33052004-08-12 Janis Johnson <janis187@us.ibm.com>
3306
e390eb0a
JJ
3307 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
3308 argument is float*.
3309
e34b6648
JJ
3310 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
3311 for vec_dss.
3312
b0b343db
JJ
3313 * doc/extend.texi (AltiVec builtins): Fix description for recent
3314 changes. Update operation list to match current support.
3315
adf39f8f
AK
33162004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
3317
3318 * config/s390/s390.c (struct s390_frame_layout): New struct as element
3319 of struct machine_function.
3320 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
3321 changed all uses.
3322 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
3323 changed all uses.
3324 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
3325 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
3326 (s390_frame_area, s390_register_info): New functions.
3327 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
3328 for base register.
3329 (s390_return_addr_rtx, s390_return_address_offset)
3330 (s390_va_start, s390_gimplify_va_arg)
3331 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
3332 layouts.
3333 (s390_frame_info): Functionality partly moved to s390_register_info.
3334 Made adaptions for new stack layout.
3335 (save_gprs, restore_gprs): Changed meaning of second parameter and
3336 adapted all callers.
3337
3338 * config/s390/s390.h (s390_backchain_string): New global variable.
3339 (MASK_BACKCHAIN): Removed definition.
3340 (TARGET_BACKCHAIN): Changed check.
3341 (TARGET_KERNEL_BACKCHAIN): New macro.
3342 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
3343 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
3344 "kernel-backchain".
3345 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
3346
3347 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
3348 as condition. Adjusted for new stack layout.
3349
3350 * doc/invoke.texi: Added documentation for new option
3351 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
3352 "-mno-backchain".
3353
db151e9d
PB
33542004-08-12 Paul Brook <paul@codesourcery.com>
3355
3356 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
3357 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
3358
02b75262
DD
33592004-08-12 David Daney <ddaney@avtrex.com>
3360
db151e9d 3361 * java/gcj.texi: Add subsection on signal usage.
02b75262 3362
f64d6991
DE
33632004-08-12 David Edelsohn <edelsohn@gnu.org>
3364
3365 * expr.c (move_by_pieces): Set alignment for move to minimum of
3366 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
3367 alignment, but not less than the original alignment.
3368 (move_by_pieces_ninsns): Same.
3369 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
3370 (store_by_pieces_1): Same.
3371
c597ef4e
DN
33722004-08-12 Diego Novillo <dnovillo@redhat.com>
3373
3374 PR tree-optimization/16867
3375 * tree.c (is_global_var): New function.
3376 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
3377 Call is_global_var.
3378 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
3379 Update all users.
3380 (is_global_var): Declare.
3381 * tree-dfa.c (dump_variable): Display global and addressable
3382 attributes.
3383 (add_referenced_var): Clarify documentation when marking
3384 variables call-clobbered.
3385 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
3386 instead of needs_to_live_in_memory.
3387 (mark_call_clobbered): If the variable is a tag, mark it
3388 DECL_EXTERNAL.
3389 * tree-gimple.c (is_gimple_reg): Don't check for
3390 TREE_ADDRESSABLE.
3391 (is_gimple_non_addressable): Likewise.
3392 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
3393 needs to be marked call-clobbered.
3394 (setup_pointers_and_addressables): Call is_global_var instead
3395 of needs_to_live_in_memory.
3396 * tree-ssa-dce.c (need_to_preserve_store): Remove.
3397 Update all users with is_global_var.
3398 (mark_stmt_if_obviously_necessary): Fix processing of aliased
3399 stores. Don't check the virtual definitions. Rather, check
3400 whether the store is going into global memory.
3401 (find_obviously_necessary_stmts): Get the symbol from the PHI
3402 result.
3403 * tree-ssa-operands.c (get_call_expr_operands): Do not add
3404 clobbering may-defs if the call does not have side effects.
3405
ab5c8549
JJ
34062004-08-12 Jakub Jelinek <jakub@redhat.com>
3407
3408 PR c++/16276
3409 * output.h (default_function_rodata_section,
3410 default_no_function_rodata_section): New prototypes.
3411 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
3412 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
3413 (TARGET_ASM_OUT): Add it.
3414 * varasm.c (default_function_rodata_section,
3415 default_no_function_rodata_section): New functions.
3416 * final.c (final_scan_insn): Call
3417 targetm.asm_out.function_rodata_section instead of
3418 readonly_data_section.
3419 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
3420 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
3421 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
3422 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
3423 Likewise.
3424 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
3425 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
3426 Likewise.
3427 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
3428 Likewise.
3429 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
3430 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
3431 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
3432
5cf58f28
PB
34332004-08-12 Paul Brook <paul@codesourcery.com>
3434
3435 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
3436 frame info.
3437 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
3438 DWARF2_UNWIND_INFO.
3439
87e184d1
BE
34402004-08-12 Ben Elliston <bje@au.ibm.com>
3441
3442 PR target/16286
3443 * config/rs6000/altivec.h: Change vector to __vector throughout.
3444 (Except for the `vector' macro itself).
3445
e543e219
ZW
34462004-08-12 Zack Weinberg <zack@codesourcery.com>
3447
3448 * genpreds.c: Add capability to generate predicate bodies as
3449 well as function prototypes. Write function prototypes for
3450 the generic predicates too.
3451 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
3452 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
3453 (write_match_code, write_predicate_expr, write_one_predicate_function)
3454 (parse_option): New functions.
3455 (output_predicate_decls): Delete.
3456 (main): Read the machine description, process DEFINE_PREDICATE or
3457 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
3458 as appropriate.
3459
3460 * genrecog.c (struct decision_test): Replace index with
3461 struct pred_data pointer.
3462 (next_index): Remove, unused.
3463 (pred_table, preds, special_mode_pred_table): Delete.
3464 (compute_predicate_codes, process_define_predicate): New functions.
3465 (validate_pattern, add_to_sequence, write_switch): Update for
3466 new data structures.
3467 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
3468 Check both error_count and have_error.
3469
3470 * gensupport.c (in_fname, first_predicate): New globals.
3471 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
3472 (predicate_table, last_predicate, old_pred_table)
3473 (old_special_pred_table): New statics.
3474 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
3475 (add_predicate, init_predicate_table): New functions.
3476 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
3477 (init_md_reader_args_cb): Use the global in_fname. No need to zero
3478 it or max_include_len. Call init_predicate_table.
3479 (read_rtx): Run the predicate queue after the attribute queue
3480 but before all the others.
3481 * gensupport.h (in_fname, struct pred_data, first_predicate)
3482 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
3483 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
3484 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
3485 * dummy-conditions.c: Don't include bconfig.h, system.h,
3486 coretypes.h, tm.h, or system.h. Do include stddef.h.
3487 Duplicate declaration of struct c_test from gensupport.h.
3488
3489 * Makefile.in (OBJS-common): Add insn-preds.o.
3490 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
3491 (insn-preds.c, insn-preds.o): New rules.
3492 (s-preds): Also generate insn-preds.c.
3493 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
3494 Update dependencies.
3495 (print-rtl.o, print-rtl1.o): Correct dependencies.
3496
3497 * recog.h: Delete prototypes of predicate functions.
3498
3499 * doc/md.texi (Predicates): New section with complete
3500 documentation of operand/operator predicates. Remove some
3501 incomplete documentation of predicates from other places.
3502 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
3503 PREDICATE_CODES; indicate that both are deprecated in favor
3504 of define_predicate/define_special_predicate.
3505
3506 * config/ia64/ia64.c: All predicate function definitions moved
3507 to ia64.md, except
3508 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
3509 (ia64_expand_load_address, ia64_expand_move):
3510 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
3511
3512 * config/ia64/ia64.md: All predicates now defined here.
3513 (symbolic_operand): Is now a special predicate.
3514
3515 * config/ia64/ia64.h: Declare ia64_section_threshold.
3516 (PREDICATE_CODES): Delete.
3517
174283a3
RH
35182004-08-12 Richard Henderson <rth@redhat.com>
3519
3520 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
3521 * c-semantics.c (add_stmt): Set it.
3522 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
3523 before instantiating a variable sized type.
3524
15931954
RH
35252004-08-12 Richard Henderson <rth@redhat.com>
3526
3527 * stor-layout.c (round_up, round_down): Move ...
e543e219 3528 * fold-const.c (round_up, round_down): ... here. Use
15931954
RH
3529 multiple_of_p to avoid any arithmetic at all.
3530
57d1dd87
RH
35312004-08-12 Richard Henderson <rth@redhat.com>
3532
3533 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
3534 (gimplify_init_ctor_preeval_1): New.
3535 (gimplify_init_ctor_preeval): New.
3536 (gimplify_init_ctor_eval): New.
3537 (gimplify_init_constructor): Use them. Always gimplify the LHS
3538 object first.
3539
46e34f96
ZL
35402004-08-12 Ziemowit Laski <zlaski@apple.com>
3541
3542 (This patch is part of merge of objc-improvements-branch
3543 into mainline.)
3544
3545 * doc/frontends.texi: Mention Objective-C++ in addition to
3546 Objective-C.
3547 * doc/install.texi: Add 'obj-c++' to list of configurable
3548 languages.
3549 * doc/invoke.texi: Rename Objective-C option headings to
3550 indicate they also apply to Objective-C++. List file
3551 extensions for Objective-C++ sources. Mention that
3552 ObjC and ObjC++ compilations may also use C and C++ options,
3553 respectively. Point users to doc/standards.texi for
3554 further info on ObjC and ObjC++.
3555 * doc/sourcebuild.texi: Mention the objcp/ directory and
3556 the Objective-C++ sources it contains.
3557 * doc/standards.texi: Update link to Apple ObjC site;
3558 add link to gcc readings.html WWW doc.
3559
07f12d8b
AM
35602004-08-12 Alan Modra <amodra@bigpond.net.au>
3561
3562 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
3563 and 2004-07-14 changes.
3564
89aa5a20
PB
35652004-08-12 Paul Brook <paul@codesourcery.com>
3566
3567 * doc/invoke.texi: Fix typo.
3568
5079843a
DP
35692004-08-11 Devang Patel <dpatel@apple.com>
3570
3571 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
3572 and -no_dead_strip_inits_and_terms.
3573 (LINK_SPEC): Same.
3574 * doc/invoke.texi (Darwin Options): Document -dead_strip and
3575 -no_dead_strip_inits_and_terms.
e543e219 3576
876f13b0
PB
35772004-08-11 Paul Brook <paul@codesourcery.com>
3578
3579 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
3580 (arm_load_pic_register): ... to this.
3581 * config/arm/arm.c (arm_finalize_pic): Rename ...
3582 (arm_load_pic_register): ... to this. Always output insns at the
3583 current location. Load via low reg in thumb mode.
3584 (arm_expand_prologue): Call arm_load_pic_register.
3585 (thumb_expand_prologue): Ditto.
3586 * config/arm/arm.h (FINALIZE_PIC): Remove.
3587 * config/arm/arm.md (builtin_setjmp_receiver): Call
3588 arm_load_pic_register.
3589
57934c39
PB
35902004-08-11 Paul Brook <paul@codesourcery.com>
3591
3592 * arm.c (thumb_force_lr_save): Add prototype.
3593 (thumb_compute_save_reg_mask): New function.
3594 (thumb_find_work_register): New function.
3595 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
3596 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
3597 Don't clobber r3 when removing pretend args.
3598 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
3599 (thumb_output_function_prologue): Use new functions.
3600 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
3601 * arm.h (THUMB_REG_PUSHED_P): Remove.
3602
af874237
JW
36032004-08-11 James E Wilson <wilson@specifixinc.com>
3604
3605 PR rtl-optimization/16490
3606 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
3607 global_live_at_end for new basic block if already set for other blocks.
3608
c1618c0c
DE
36092004-08-11 David Edelsohn <edelsohn@gnu.org>
3610
3611 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
3612
3613 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
3614 (mfcr rlwinm rlwinm patterns): Set length to 12.
3615
1a24f92f
AM
36162004-08-11 Andrew MacLeod <amacleod@redhat.com>
3617
3618 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
3619 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
3620 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
3621 (start_ssa_stmt_operands): Delete.
e543e219 3622 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
1a24f92f
AM
3623 struct stmt_operands_d.
3624 (build_ssa_operands): New extern entry point.
e543e219 3625 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
1a24f92f
AM
3626 building code, replace with create_ssa_artficial_load_stmt().
3627 * tree-ssa-operands.c (struct voperands_d): Delete.
3628 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
3629 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
e543e219 3630 (free_uses, free_defs, free_vuses, free_v_may_defs,
1a24f92f
AM
3631 free_v_must_defs): Remove dealloc parameter.
3632 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
3633 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
3634 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
3635 vector comparisons, ssa_name reuse, and allocations here.
3636 (verify_start_operands): Delete.
3637 (finalize_ssa_stmt_operands): Set new operands by calling finalize
3638 routines.
3639 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
3640 (append_def, append_usei): Simplify to simple accumulation.
3641 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
3642 duplicates and simple accumulation.
3643 (free_ssa_operands): Free vectors in a stmt_operand structure.
3644 (build_ssa_operands): New. Create a new stmt_operand structure from
e543e219 3645 a stmt and an old set of stmt_operands.
1a24f92f
AM
3646 (get_stmt_operands): Simplify and call build_ssa_operands.
3647 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
3648 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
3649 add_call_read_ops): Don't pass prev_vops around anymore.
3650 (note_addressable): Return if no stmt annotation.
3651 (copy_virtual_operands): Access v_may_def operands through a struct.
3652 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
3653 hash tables without treating the stmt as a real stmt.
3654 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
3655 v_may_def def and use through a struct instead of 2 array elements.
3656 (struct v_may_def_optype_d): Use v_may_def_operand_type.
3657 (struct stmt_operands_d): New. Struct for storing all operand vectors.
3658
a77655b1
NC
36592004-08-11 Nick Clifton <nickc@redhat.com>
3660
3661 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
3662 this funciton's behaviour. Return true when the current function
3663 has a section attribute and -mlong-calls is in effect.
3664 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
3665 short-call marker when -mlong-calls is in effect and the function
3666 has a section attribute.
3667
6f4a43e0
ZW
36682004-08-10 Zack Weinberg <zack@codesourcery.com>
3669
3670 * stmt.c (expand_return): If asked to return the RESULT_DECL,
3671 just call expand_value_return on result_rtl.
3672
1a186ec5
RH
36732004-08-10 Richard Henderson <rth@redhat.com>
3674
3675 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
3676 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
3677 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
3678 (add_location_or_const_value_attribute): ... not here. Use
3679 loc_descriptor_from_tree if possible.
3680 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
3681 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
3682 values specially.
3683 (loc_descriptor_from_tree): New. Update callers.
3684 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
3685 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
3686 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
3687 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
3688 and BUILT_IN_STACK_RESTORE.
3689 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
3690 * stmt.c (expand_stack_alloc): Remove.
3691 * tree-mudflap.c (mx_register_decls): Don't look for
3692 BUILT_IN_STACK_ALLOC.
3693 * tree-nested.c (convert_local_reference): Likewise.
3694 * tree.h (DECL_VALUE_EXPR): New.
3695
7109c195
RH
36962004-08-10 Richard Henderson <rth@redhat.com>
3697
bf4ccdd6
RH
3698 * stor-layout.c (round_up): Check for 0/1 before dividing.
3699 (round_down): Likewise.
3700
7109c195
RH
3701 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
3702
b3f8d95d
MM
37032004-08-09 Mark Mitchell <mark@codesourcery.com>
3704
3705 * config.gcc (arm*-*-eabi*): New target.
3706 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
3707 (TARGET_LIB_INT_CMP_BIASED): Likewise.
3708 * expmed.c (expand_divmod): Try a two-valued divmod function as a
3709 last resort.
3710 * gthr.h: Remove bogus tokens at end of #pragma.
3711 * optabs.c (expand_twoval_binop_libfunc): New function.
3712 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
3713 (prepare_float_lib_cmp): Try reversing the condition.
3714 (debug_optab_libfuncs): New function.
3715 * optabs.h (expand_twoval_binop_libfunc): Declare.
3716 * config/arm/arm.c (arm_init_libfuncs): New function.
3717 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
3718 (TARGET_INIT_LIBFUNCS): Define it.
3719 * config/arm/arm.h (TARGET_BPABI): New macro.
3720 * config/arm/arm-protos.h
3721 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
3722 * config/arm/bpabi.S: New file.
3723 * config/arm/bpabi.c: Likewise.
3724 * config/arm/bpabi.h: Likewise.
3725 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
3726 (__aeabi_drsub): Likewise.
3727 (__aeabi_dsub): Likewise.
3728 (__aeabi_dadd): Likewise.
3729 (__aeabi_ui2d): Likewise.
3730 (__aeabi_i2d): Likewise.
3731 (__aeabi_f2d): Likewise.
3732 (__aeabi_dmul): Likewise.
3733 (__aeabi_ddiv): Likewise.
3734 (__aeabi_cdrcmple): Likewise.
3735 (__aeabi_cdcmpeq): Likewise.
3736 (__aeabi_cdcmple): Likewise.
3737 (__aeabi_dcmpeq): Likewise.
3738 (__aeabi_dcmplt): Likewise.
3739 (__aeabi_dcmple): Likewise.
3740 (__aeabi_dcmpge): Likewise.
3741 (__aeabi_dcmpgt): Likewise.
3742 (__aeabi_dcmpun): Likewise.
3743 (__aeabi_d2iz): Likewise.
3744 (__aeabi_d2uiz): Likewise.
3745 (__aeabi_d2f): Likewise.
3746 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
3747 (__aeabi_frsub): Likewise.
3748 (__aeabi_fsub): Likewise.
3749 (__aeabi_fadd): Likewise.
3750 (__aeabi_ui2f): Likewise.
3751 (__aeabi_i2f): Likewise.
3752 (__aeabi_fmul): Likewise.
3753 (__aeabi_fdiv): Likewise.
3754 (__aeabi_cfrcmple): Likewise.
3755 (__aeabi_cfcmpeq): Likewise.
3756 (__aeabi_cfcmple): Likewise.
3757 (__aeabi_fcmpeq): Likewise.
3758 (__aeabi_fcmplt): Likewise.
3759 (__aeabi_fcmple): Likewise.
3760 (__aeabi_fcmpge): Likewise.
3761 (__aeabi_fcmpgt): Likewise.
3762 (__aeabi_fcmpun): Likewise.
3763 (__aeabi_f2iz): Likewise.
3764 (__aeabi_f2uiz): Likewise.
3765 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
3766 (__aeabi_uidivmod): New function or alias.
3767 (__aeabi_idivmod): Likewise.
3768 (__aeabi_idiv0): Likewise.
3769 (__aeabi_ldiv0): Likewise.
3770 (__aeabi_llsr): Likewise.
3771 (__aeabi_lasr): Likewise.
3772 (__aeabi_llsl): Likewise.
3773 (bpabi.S): Include it.
3774 * config/arm/libgcc-bpabi.ver: New file.
3775 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
3776 (LINK_SPEC): Remove.
3777 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
3778 __aeabi_ulcmp.
3779 * config/arm/t-bpabi: New file.
3780 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
3781 (TARGET_LIB_INT_CMP_BIASED): Likewise.
6f4a43e0 3782
fba73eb1
DE
37832004-08-10 David Edelsohn <edelsohn@gnu.org>
3784
3785 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
3786 * config/rs6000/rs6000.md (clrmemsi): New pattern.
3787 * config/rs6000/rs6000.c (expand_block_clear): New function.
3788 (expand_block_move): Convert alignment to bits. Use SImode and
3789 HImode for unaligned addresses if not STRICT_ALIGNMENT.
3790
37912004-08-10 Caroline Tice <ctice@apple.com>
c295317d
CT
3792
3793 * varasm.c (unlikely_section_label): New global variable.
3794 (unlikely_text_section_name): New global variable.
3795 (text_section): Remove alignment statement.
6f4a43e0 3796 (unlikely_text_section): Remove alignment statement; use
c295317d
CT
3797 unlikely_section_label rather than hard-coded string.
3798 (assemble_start_function): Initialize unlikely_section_label and
3799 unlikely_text_section_name; make sure cold section is properly
3800 aligned at start of function; output unlikely_section_label if
3801 appropriate.
3802
68f9c5e2
UW
38032004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
3804
3805 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
3806 * config/s390/s390.c (s390_canonicalize_comparison): New function.
3807 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
3808 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
3809 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
3810 ("*tmqi_mem"): Remove SUBREG from pattern.
3811 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
3812 ("*andsi3_cconly"): Likewise.
6f4a43e0 3813
22116d84
L
38142004-08-10 H.J. Lu <hongjiu.lu@intel.com>
3815
3816 PR target/16909
3817 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
3818
c75095b2
JJ
38192004-08-10 Janis Johnson <janis187@us.ibm.com>
3820
3821 * doc/sourcebuild.texi (compat testing): Document available test
3822 framework commands. Use the preferred spelling of DejaGnu.
3823
98975653
DB
38242004-08-10 Daniel Berlin <dberlin@dberlin.org>
3825
3826 * lambda.h: Add matrix type, and prototypes for remainder of
3827 matrix and vector functions.
3828 (lambda_vector_mult_const): New function.
3829 (lambda_vector_negate): Ditto.
3830 (lambda_vector_add): Ditto.
3831 (lambda_vector_add_mc): Ditto.
3832 (lambda_vector_copy): Ditto.
3833 (lambda_vector_zerop): Ditto.
3834 (lambda_vector_equal): Ditto.
3835 (lambda_vector_min_nz): Ditto.
3836 (lambda_vector_first_nz): Ditto.
3837 (lambda_vector_matrix_mult): Ditto.
3838 * lambda-mat.c: New file.
3839 * Makefile.in (lambda-mat.o): New.
3840
68b9f53b
AM
38412004-08-10 Andrew MacLeod <amacleod@redhat.com>
3842
3843 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
3844 after linking stmt into the program.
3845 (bsi_remove): Don't call modify_stmt.
6f4a43e0 3846 * tree-complex.c (update_complex_assignment,
68b9f53b 3847 expand_complex_comparison): Call modify_stmt after changing the stmt.
6f4a43e0 3848 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
68b9f53b
AM
3849 removing the stmt.
3850 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
3851 the stmt, and only if needed.
3852 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
3853 expression.
3854 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
3855 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
3856 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
6f4a43e0 3857 (eliminate_redundant_computations): Don't pass an annotation. Call
68b9f53b
AM
3858 modify_stmt rather than setting the annotation directly.
3859 (record_equivalences_from_stmt): Remove unused local 'j'.
3860 (cprop_operand): Take a stmt rather than an annotation as a parameter.
3861 Call modify_stmt.
3862 (cprop_into_stmt): Pass stmt rather than annotation.
3863 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
6f4a43e0 3864 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
68b9f53b
AM
3865 modify_stmt.
3866 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
3867
01c98570
JM
38682004-08-10 Jason Merrill <jason@redhat.com>
3869
6c9c4526 3870 PR middle-end/16948
01c98570
JM
3871 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
3872 the RESULT_DECL.
3873
b2ddaebb
GK
38742004-08-10 Geoffrey Keating <geoffk@apple.com>
3875
3876 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
3877 hash function.
3878
23657388
RS
38792004-08-10 Roger Sayle <roger@eyesopen.com>
3880
3881 * config/mips/mips.md: New reciprocal square root patterns that
3882 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
3883
c9ca9b88
PB
38842004-08-10 Paul Brook <paul@codesourcery.com>
3885
3886 * config/arm/arm-protos.h (arm_set_return_address,
3887 thumb_set_return_address): Add prototypes.
3888 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
3889 * config/arm/arm.c (arm_compute_func_type,
3890 use_return_insn, arm_compute_save_reg0_reg12_mask,
3891 arm_compute_save_reg_mask, arm_output_function_prologue,
3892 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
3893 current_function_calls_eh_return.
3894 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
3895 old eh code.
3896 (arm_set_return_address, thumb_set_return_address): New functions.
3897 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
3898 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
3899 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
3900 (epilogue): Use the stackadj register.
3901 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
3902
45d78e7f
JJ
39032004-08-10 Jakub Jelinek <jakub@redhat.com>
3904
3905 PR target/3144
3906 * expr.c (move_by_pieces_ninsns): Add max_size argument.
3907 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
3908 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
3909 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
3910 but using MOVE_RATIO.
3911 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
3912 (can_store_by_pieces): Change max_size type to unsigned int.
3913 (store_by_pieces_1): Likewise. Pass max_size to
3914 move_by_pieces_ninsns.
3915 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
3916 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
3917 to move_by_pieces_ninsns.
3918 (STORE_BY_PIECES_P): Define.
3919 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
3920 to move_by_pieces_ninsns.
3921 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
3922
3923 * config/i386/i386.h (CLEAR_RATIO): Define.
3924
25f3e06c
PB
39252004-08-09 Paolo Bonzini <bonzini@gnu.org>
3926
3927 * expr.c (expand_expr_real_1): Add back code that was not dead.
3928
6a3203c8
AP
39292004-08-09 Andrew Pinski <apinski@apple.com>
3930
3931 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
3932 which is found to be compatible before returning the aliasing set.
3933
b9bfca81
DJ
39342004-08-09 Daniel Jacobowitz <dan@debian.org>
3935
3936 * ggc-zone.c (struct alloc_zone): Add statistics counters.
3937 (always_collect): New flag.
3938 (ggc_alloc_zone_1): Update statistics support. Don't include
3939 overhead in allocated counter.
3940 (sweep_pages): Update allocated counter for large pages. Don'y
3941 include overhead.
3942 (ggc_collect_1): Always collect.
3943 (ggc_collect): Honor always_collect flag. Sum all zones to decide
3944 whether to collect.
3945 (SCALE, LABEL): New macros.
3946 (ggc_print_statistics): Add statistics support.
3947
fdded401
RS
39482004-08-09 Roger Sayle <roger@eyesopen.com>
3949
3950 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
3951 (init_expmed): Fix potential overrun problem with "all.reg".
3952 (expand_sdiv2_pow2): Add an alternate implementation for signed
3953 division, if the target provides a suitable conditional move insn.
3954
9d8646d7
PB
39552004-08-09 Paul Brook <paul@codesourcery.com>
3956 Richard Henderson <rth@redhat.com>
3957
3958 * unwind-dw2.c (uw_install_context_1): Update target saved stack
3959 pointer.
3960
d37e6b50
GK
39612004-08-09 Geoffrey Keating <geoffk@apple.com>
3962
3963 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
3964 Check DATA limit only if there's no AS limit. Ignore insanely
3965 low DATA limits.
3966 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
3967 but take care that the AS limit isn't overrun.
3968 * doc/invoke.texi: Update documentation of min-heapsize parameter.
3969
56b043c8
JL
39702004-08-09 Jeff Law <law@redhat.com>
3971
3972 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
3973 (tree-ssa-threadupdate.o): Add dependencies.
3974 * tree-ssa-threadupdate.c: New file.
3975 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
3976 (rewrite_vars_out_of_ssa): Remove prototype.
3977 (cleanup_tree_cfg): Returns a bool.
3978 * tree.h (thread_through_all_blocks): Prototype.
3979 * tree-outof-ssa.c (SSANORM_*): Move into here.
3980 (remove_ssa_form): Now static.
3981 (rewrite_vars_out_of_ssa): Kill.
3982 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
3983 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
3984 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
3985 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
3986 anything was changed.
3987 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
3988 from the PHI's annotation rather than the edge associated with
3989 the new argument.
3990 * tree-ssa-dom.c (redirection_edges): Kill.
3991 (redirect_edges_and_update_ssa_graph): Kill.
3992 (tree_ssa_dominator_optimize): Do not reset forwardable flag
3993 for blocks anymore. Do not initialize redirection_edges.
3994 Call thread_through_all_blocks. Simplify code for cleanup
3995 of the CFG and iterating. No longer call cleanup_tree_cfg
3996 outside the iteration loop.
3997 (thread_across_edge): No longer mess with forwardable blocks.
3998
9b305d55
ZW
39992004-08-09 Zack Weinberg <zack@codesourcery.com>
4000
4001 * explow.c (memory_address): Use memory_address_p.
4002 * recog.c (general_operand): Likewise.
4003 * regrename.c: No need to define REG_OK_STRICT.
4004
27fb79ad
SB
40052004-08-09 Steven Bosscher <stevenb@suse.de>
4006
4007 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
4008 New timers.
4009 * gcse.c: Include timevar.h.
4010 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
4011 and global_copy_prop_count.
4012 (local_const_prop_count, local_copy_prop_count): New static globals.
4013 (gcse_main): Set the right timevar for each pass.
4014 (cprop_jump): Increment global_const_prop_count when a constant is
4015 propagated. Add "GLOBAL" to dump output.
4016 (cprop_insn): Increment global_const_prop_count when a constant is
4017 propagated, or global_copy_prop_count when a copy is propagated.
4018 (do_local_cprop): Likewise for local_const_prop_count and
4019 local_copy_prop_count.
4020 (one_cprop_pass): Initialize const/cprop counters to zero.
4021 Print out results of local and global const/cprop separately.
4022 (bypass_block): Break over-length line.
702d4b73
SB
4023 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
4024 for bb-reorder.o and tracer.o.
27fb79ad 4025
7efcb746
PB
40262004-08-09 Paolo Bonzini <bonzini@gnu.org>
4027
4028 * Makefile.in (GTFILES): Remove stmt.c
4029 (stmt.o): Do not depend on gt-stmt.h.
4030 * emit-rtl.c (emit_line_note): Do not call
4031 set_file_and_line_for_stmt.
4032 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
4033 do everything.
4034 * function.c (free_after_parsing): Do not free STMT field.
4035 (allocate_struct_function): Do not call init_stmt_for_function.
4036 (assign_stack_temp_for_type): Do not accept values of keep
4037 other than 0 or 1.
4038 (init_temp_slots): Do not initialize removed variables.
4039 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
4040 and X_VAR_TEMP_SLOT_LEVEL fields.
4041 * rtl.h (set_file_and_line_for_stmt): Remove.
4042 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
4043 struct stmt_status, cond_stack, case_stack, nesting_stack,
4044 nesting_depth, emit_locus, set_file_and_line_for_stmt,
4045 same_case_target_p, init_stmt_for_function, emit_nop,
4046 expand_start_cond, expand_start_elseif, expand_start_else,
4047 expand_elseif, expand_end_cond): Remove.
4048 (preserve_subexpressions_p): Remove references to CFUN->STMT.
4049 (expand_start_case, expand_end_case_type): Remove, merge into...
4050 (expand_case): ... this one, including other bits from
4051 expand_expr_real_1. Inline same_case_target_p. Turn members
4052 of CASE_STACK into local variables.
4053 (emit_case_bit_tests): Inline same_case_target_p.
4054 (add_case_node): Add HEAD argument, return new head of the list,
4055 do not handle default label here.
4056 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
4057 expand_start_elseif, current_nesting_level, expand_start_case,
4058 expand_end_case_type, expand_end_case, add_case_node,
4059 init_stmt_for_function, expand_elseif): Remove prototypes.
4060 (expand_case): Add prototype.
4061
c4d70ce3
PB
40622004-08-09 Paolo Bonzini <bonzini@gnu.org>
4063
4064 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
4065
40662004-08-09 Paolo Bonzini <bonzini@gnu.org>
e5bacf32
PB
4067
4068 * expr.c (var_rtx): Remove.
4069 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
4070 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
4071 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
4072 Abort.
4073 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
4074 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
4075 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
4076
d72372e4
MH
40772004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
4078 Ayal Zaks <zaks@il.ibm.com>
4079
4080 * common.opt (freschedule-modulo-scheduled-loops): New flag.
4081 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
4082 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
4083 when -freschedule-modulo-scheduled-loops flag is not specified.
4084 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
4085 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
4086 More accurate placing of insn in row of partial schedule.
4087 (ps_insn_find_column): New function.
4088 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
4089 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
4090 (schedule_region): Use sched_is_disabled_for_current_region_p.
4091 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
4092
0737fbff
L
40932004-08-07 H.J. Lu <hongjiu.lu@intel.com>
4094
4095 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
4096 change.
4097
11c4576f
L
40982004-08-07 H.J. Lu <hongjiu.lu@intel.com>
4099
4100 * config/i386/i386.c (ix86_expand_clrmem): Properly call
4101 gen_strset for 64bit target.
4102
34def210
OH
41032004-08-07 Olivier Hainque <hainque@act-europe.fr>
4104
4105 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
4106
5201931e
JM
41072004-08-07 Jason Merrill <jason@redhat.com>
4108
cc77ae10
JM
4109 Make return in memory explicit.
4110 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
4111 (assign_parm_find_data_types): Remove code for old front end
4112 invisible reference handling.
4113 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
4114 (expand_function_end): Likewise.
4115 * gimplify.c (gimplify_return_expr): Handle a dereferenced
4116 RESULT_DECL.
4117 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
4118 (declare_return_variable): Handle DECL_BY_REFERENCE.
4119 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
4120 (cp_genericize_r): Use convert_from_reference.
4121 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
4122 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
4123
5201931e
JM
4124 * c-common.c (c_warn_unused_result): Check TREE_USED before
4125 warning about a CALL_EXPR with an unused value.
4126
2ed9e527
MM
41272004-08-06 Mark Mitchell <mark@codesourcery.com>
4128
4129 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
4130 to the compiler. Use -fshort-wchar by default.
4131
12183e0f
PH
41322004-08-06 Pat Haugen <pthaugen@us.ibm.com>
4133
4134 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
4135 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
4136 threshhold.
4137 * doc/invoke.texi (param): Document min-crossjump-insns.
4138
eaac4679
RS
41392004-08-06 Richard Sandiford <rsandifo@redhat.com>
4140
4141 PR c/13282
4142 * c.opt (Wmissing-field-initializers): New option.
4143 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
4144 * c-typeck.c (pop_init_level): Guard the missing field warning with
4145 warn_missing_field_initializers rather than extra_warnings.
4146 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
4147 some of the explanation from...
4148 (-Wextra): ...here. Say that the missing field warning can be
4149 seperately controlled by -Wmissing-field-initializers.
4150
caad9f81
PB
41512004-08-06 Paolo Bonzini <bonzini@gnu.org>
4152
4153 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
4154 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
4155 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
4156 * tree.def (ENTRY_VALUE_EXPR): Remove.
4157
6b32b628
JJ
41582004-08-06 Jakub Jelinek <jakub@redhat.com>
4159
4160 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
4161 the places where it is actually needed. Don't use repz; stosb
4162 for -Os with sufficiently small constant sizes.
4163 For sufficiently small repz; stos{l,q} repeat counts use a sequence
4164 of stos{l,q} instructions instead.
4165
6797f908
ZD
41662004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4167
4168 PR tree-optimization/16807
4169 * loop-iv.c (dump_iv_info): Dump invariants correctly.
4170 (iv_subreg, iv_extend): Express value of invariant purely in
4171 base field.
4172
866cf037
MM
41732004-08-06 Mark Mitchell <mark@codesourcery.com>
4174
4175 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
4176 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
4177
9652c531 41782004-08-06 Roman Zippel <zippel@linux-m68k.org>
9b305d55 4179
27fb79ad
SB
4180 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
4181 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
4182 pre_dec_operand.
4183 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
4184 pattern until reload is finished to allow better code generation
4185 and split them completely into separate instrunctions.
4186 (*andsi3_split): New pattern.
9652c531 4187
b2ca3702
MM
41882004-08-05 Mark Mitchell <mark@codesourcery.com>
4189
4190 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
4191 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
4192 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
4193 * tree.h (handle_dll_attribute): Declare. Test
4194 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
4195 * c-common.h (c_determine_visibility): Declare.
4196 * c-common.c (c_determine_visibility): New function.
4197 * c-decl.c (finish_decl): Use it.
4198 (finish_function): Likewise.
4199 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
4200 zero, by default. Use #if, not #ifdef, to test it.
4201 * config/arm/arm.c (arm_attribute_table): Use
4202 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
4203 #if.
4204 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
4205 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
4206 to 1.
4207 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
4208 * config/i386/i386.c (ix86_attribute_table): Use
4209 handle_dll_attribute for dllimport/dllexport. Test
4210 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
4211 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
4212 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
4213 it to 1.
4214 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
4215 with #if.
4216 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
4217 it to 1.
4218 * doc/extend.texi (dllexport): Clarify and correct documentation.
4219 (dllimport): Likewise.
4220 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
4221 handle_dll_attribute.
9b305d55 4222
c913f08a
ZD
42232004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4224
4225 * tree-ssa-loop-manip.c: New file.
4226 * Makefile.in (tree-ssa-loop-manip.o): Add.
4227 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
4228 Declare.
4229 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
4230 form.
4231 (tree_ssa_loop_done): Verify loop closed ssa form.
4232 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
4233
d4482715
JDA
42342004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4235
4236 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
4237 pa_asm_output_aligned_local): New functions.
4238 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
4239 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
4240 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
4241 pa_asm_output_aligned_common.
4242 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
4243 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
4244 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
4245 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
4246 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
4247 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
4248 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
4249 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
4250 common data.
4251
21149a79
AP
42522004-08-05 Andrew Pinski <apinski@apple.com>
4253
4254 * objc/objc-act.c (build_objc_string_object): Mark the address
4255 expression as constant.
4256
d5861a7a
DE
42572004-08-05 David Edelsohn <edelsohn@gnu.org>
4258
4259 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
4260 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
4261 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
4262
0a2b72a6
JM
42632004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
4264
4265 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
4266 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
4267 out, and associated obsolete comments.
4268
ca7a3bd7
NS
42692004-08-05 Nathan Sidwell <nathan@codesourcery.com>
4270
4271 * tree.h (force_fit_type): Return a tree, take three flags.
4272 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
4273 TREE_CONSTANT_OVERFLOW here.
4274 (int_const_binop, const_binop): Adjust.
4275 (size_int_type): Do sign extension here.
4276 (fold_convert_const, optimize_bit_field_compare,
4277 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
4278 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
4279 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
4280
d36837f4
ZD
42812004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4282
4283 PR tree-optimization/16864
4284 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
4285 for ssa names without default_def.
4286
ea5f7a19
RS
42872004-08-05 Richard Sandiford <rsandifo@redhat.com>
4288
4289 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
4290 frame pointer, restore eax with an ebp-relative address.
4291
0e6df31e
GK
42922004-08-04 Geoffrey Keating <geoffk@apple.com>
4293
4294 PR 14516
4295 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
4296 * c-common.h (make_rtl_for_local_static): Delete.
4297 * c-decl.c (shadow_tag_warned): Clean up comment.
4298 (finish_decl): Clean up spacing. Use set_user_assembler_name when
4299 appropriate. Don't pass asmspec to rest_of_decl_compilation.
4300 * c-semantics.c (make_rtl_for_local_static): Delete.
4301 * expr.c (init_block_move_fn): Use set_user_assembler_name.
4302 (init_block_clear_fn): Likewise.
4303 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
4304 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
4305 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
4306 * tree.h (make_decl_rtl): Remove second parameter.
4307 (set_user_assembler_name): New.
4308 * varasm.c (set_user_assembler_name): New.
4309 (make_decl_rtl): Remove second parameter. Update callers in many
4310 files.
4311
4f587cb0
AN
43122004-08-05 Adam Nemet <anemet@lnxw.com>
4313
4314 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
4315 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
4316 to LynxOS 4.0.
4317 * gthr-lynx.h: New file.
4318 * config/lynx-ng.h: Remove file.
4319 * config/lynx.h: Update to LynxOS 4.0.
4320 * config/t-lynx: New file.
4321 * config/i386/lynx-ng.h: Remove file.
4322 * config/i386/lynx.h: Update to LynxOS 4.0.
4323 * config/rs6000/lynxbase.h: Remove file.
4324 * config/rs6000/lynx.h: Update to LynxOS 4.0.
4325 * config/rs6000/t-lynx: New file.
4326 * doc/install.texi (Options specification): Remove reference to
4327 LynxOS from systems where --with-gnu-as makes a difference.
4328
85291069
JM
43292004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
4330
4331 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
4332 __UINTMAX_TYPE__.
4333 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
4334 __INTMAX_MAX__.
4335 (c_cpp_builtins): Call it.
4336 * doc/cpp.texi: Update.
4337
30a555d9
DE
43382004-08-04 David Edelsohn <edelsohn@gnu.org>
4339
4340 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
4341 cost.
4342
878f99d2
JH
43432004-08-04 Jan Hubicka <jh@suse.cz>
4344
4345 * basic-block.h (profile_staus): New global variable.
4346 * cfg.c (profile_status): Declare.
4347 (check_bb_profile): Break out from ....; use profile_status
4348 (dump_flow_info): ... here.
4349 * cfgbuild.c (find_basic_blocks): Set profile_status.
4350 * cfgexpand.c (tree_expand_cfg): Likewise.
4351 * predict.c (estimate_probability): Likewise.
4352 * profile.c (branch_prob): Likewise.
4353 * tree-cfg.c (build_tree_cfg): Likewise.
4354 (dump_function_to_file): Use check_bb_profile.
4355 * tree-pretty-print (dump_bb_header): Likewise.
4356 * tree-profile.c (do_tree_profiling): Cleanup.
4357
7e7ec48e
ZW
43582004-08-04 Zack Weinberg <zack@codesourcery.com>
4359
4360 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
4361 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
4362 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
4363 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
4364 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
4365 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
4366 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
4367 (ggc-none.o, errors.o): Move rule to generators section;
4368 correct dependencies.
4369 (min-insn-modes.o): Move rule to generators section; remove
4370 unnecessary explicit command; correct dependencies.
4371 (print-rtl.o, print-rtl1.o): Correct dependencies.
4372 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
4373 (mostlyclean): Update.
4374
4375 * errors.c: Include bconfig.h not config.h. Correct comment.
4376 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
4377 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
4378 * print-rtl.c: Don't include tm_p.h.
4379
4380 * rtl.h: Move forward-decl of struct function down where it's
4381 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
4382 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
4383
b0382c67
ZD
43842004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4385 Jeff Law <law@redhat.com>
4386
4387 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
4388 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
4389 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
4390 manipulate the duplicated ssa names.
4391 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
4392 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
4393 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
4394 New functions.
4395 (release_ssa_name): Do not release ssa names that may have multiple
4396 definitions.
4397 * tree.h (release_ssa_name_force, mark_for_rewrite,
4398 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
4399 marked_ssa_names): Declare.
4400 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
4401 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
4402 Update call to rewrite_ssa_into_ssa.
4403
63c5b495
MM
44042004-08-04 Mark Mitchell <mark@codesourcery.com>
4405
4406 * defaults.h (TARGET_DECLSPEC): New macro.
4407 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
4408 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
b2ca3702 4409 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
63c5b495
MM
4410 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
4411 __declspec support.
4412 (TARGET_DECLSPEC): Define.
4413 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
4414 __declspec support.
4415 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
4416 __declspec support.
4417 (TARGET_DECLSPEC): Define.
4418 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
4419 __declspec support.
4420 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
4421 support.
4422 * doc/tm.texi (TARGET_DECLSPEC): Document.
4423
4424 * doc/extend.texi: Fix typo in comment.
4425
44d10c10
PB
44262004-08-04 Paul Brook <paul@codesourcery.com>
4427
4428 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
4429 (TARGET_CXX): Use it.
4430 * target.h (struct gcc_target): Add cdtor_returns_this.
4431 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
4432 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
4433 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
4434
5e9754af
NS
44352004-08-03 Nathan Sidwell <nathan@codesourcery.com>
4436
4437 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
4438 low/high pair. Do range checking directly.
4439 (interpret_integer): Adjust.
4440
2acc29bd
NC
44412004-08-04 Nick Clifton <nickc@redhat.com>
4442
4443 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
4444 GCC ABI.
4445 * doc/invoke.texi: Document this new switch and also the -mrenesas
4446 switch.
4447
2496942a
NS
44482004-08-04 Nathan Sidwell <nathan@codesourcery.com>
4449
4450 * cfglayout.c (insn_locators_initialize): Update the current
4451 location before initializing a location.
4452
7e2e8179
ZW
44532004-08-03 Zack Weinberg <zack@codesourcery.com>
4454
403f8503
ZW
4455 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
4456 (dbxout_function_end): Return after emitting the "Lscope" symbol
4457 under the same conditions that this function formerly wasn't called.
4458 Add explanatory comments.
4459
bcc7f708 4460 PR 14860
ca043393
ZW
4461 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
4462 on the new decl.
4463
bcc7f708 4464 PR 13956
7e2e8179
ZW
4465 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
4466 functions, broken out of dbxout_block.
4467 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
4468 stabs too, if it contains symbols. Use the begin_label and
4469 the Lscope label (emitted by dbxout_function_end) for the
4470 range of this block.
4471
5d75ba94
NN
44722004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
4473
4474 * doc/install.texi: Update autoconf version requirements.
4475
2e4e72b1
ZW
44762004-08-03 Zack Weinberg <zack@codesourcery.com>
4477
4478 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
4479 * recog.c (general_operand, immediate_operand, nonmemory_operand)
4480 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
4481 * regclass.c (record_reg_classes): Likewise.
4482 * reload.c (find_reloads): Likewise.
4483 * reload1.c (reload): Likewise.
4484
f9942f4e
ZW
44852004-08-03 Zack Weinberg <zack@codesourcery.com>
4486
4487 * gensupport.c (init_md_reader_args_cb): Renamed from
4488 init_md_reader_args. Add third option, callback function for
4489 parsing program-specific options. Add diagnosis of incorrect
4490 number of input files.
4491 (init_md_reader): Fold into init_md_reader_args_cb.
4492 (init_md_reader_args): Now a thin wrapper around
4493 init_md_reader_args_cb.
4494 * gensupport.h: Update prototypes.
4495
4496 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
4497 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
4498 * genrecog.c: No need to diagnose lack of an input file;
4499 init_md_reader_args will handle it.
4500 * genconditions.c: Likewise, and use init_md_reader_args.
4501 * genconstants.c: Likewise, and no need to call read_md_rtx.
4502
9cbe78fb
JM
45032004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
4504
4505 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
4506 declarations.
4507
3e558e80
MS
45082004-08-03 Mike Stump <mrs@apple.com>
4509
4510 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
4511 for frameworks.
4512 * doc/invoke.texi (Darwin Options): Update to reflect above.
4513
a0fac73d
RS
45142004-08-03 Roger Sayle <roger@eyesopen.com>
4515
4516 PR middle-end/16790
4517 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
4518 truncations, not just global truncations.
4519
cddbddb7
AP
45202004-08-03 Andrew Pinski <apinski@apple.com>
4521
4522 PR bootstrap/16865
4523 * loop-iv.c (simplify_using_assignment): Initialize lhs.
4524
bebf829d
PB
45252004-08-03 Paul Brook <paul@codesourcery.com>
4526
4527 * gcc/doc/install.texi: Document MPFR requirement.
4528
cddbddb7 45292004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
3b0727a0 4530
f9942f4e
ZW
4531 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
4532 and mmap() explicitly instead of relying on preset autoconf cache
3b0727a0
MR
4533 variables.
4534 * configure: Regenerate.
4535
f6bc51cb
L
45362004-08-03 H.J. Lu <hongjiu.lu@intel.com>
4537
4538 PR target/16570
4539 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
4540 to tmake_file.
4541 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
4542 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
4543 to tmake_file.
4544
4545 * config/i386/t-gmm_malloc: New file.
4546 * config/i386/t-pmm_malloc: Likewise.
f9942f4e 4547
f6bc51cb
L
4548 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
4549
45502004-08-03 H.J. Lu <hongjiu.lu@intel.com>
d46cd2be 4551