f439fa08990c479a6ad39a277319a4b85ac21d15
[gcc.git] / gcc / ChangeLog
1 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
2
3 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
4 (NUM_SYMBOL_TYPES): Likewise.
5 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
6 (mips_unspec_address): Declare.
7 (mips_gotoff_page, mips_gotoff_global): Delete.
8 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
9 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
10 (mips_symbolic_constant_p, mips_symbolic_address_p)
11 (mips_symbol_insns): Handle new symbol types.
12 (general_symbolic_operand): New predicate.
13 (mips_unspec_address): Make extern.
14 (mips_gotoff_page, mips_gotoff_global): Delete.
15 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
16 Handle new symbol types.
17 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
18 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
19 mips_unspec_address directly.
20 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
21 the documentation of -mexplicit-relocs.
22
23 2004-03-01 Jeff Law <law@redhat.com>
24
25 * fold-const.c (fold): An equality comparison of a non-weak object
26 against zero has a known result. Similarly an equality comparison
27 of the address of two non-weak, unaliased symbols has a known result.
28
29 * ggc-page.c (struct page_entry): New field PREV.
30 (ggc_alloc): Update PREV field appropriately.
31 (sweep_pages): Likewise.
32 (ggc_free): Likewise. Use PREV field rather than loop to
33 improve ggc_free performance.
34
35 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
36
37 * config/mips/mips.c (mips_output_division): Use the division
38 instruction to fill the delay slot of a zero check.
39 (mips_idiv_insns): Adjust accordingly.
40
41 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
42
43 * config.gcc: Create a default tmake_file for linux, and use
44 it in all but two linux clauses. Comment those two.
45
46 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
47
48 * combine.c (try_combine): Do not refer to is_replaced.
49 (gen_lowpart_for_combine): Perverse subregs now have a
50 more politically correct name.
51 * cse.c (cse_insn): Likewise.
52 * jump.c: Fix bogus reference to delete_insn.
53
54 2004-02-29 Mark Mitchell <mark@codesourcery.com>
55
56 PR debug/14328
57 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
58 constants as signed values.
59
60 PR middle-end/13448
61 * c-tree.h (readonly_warning): Rename to ...
62 (readonly_error): ... this.
63 * c-typeck.c (build_unary_op): Adjust accordingly.
64 (readonly_warning): Rename to ...
65 (readonly_error): ... this and issue errors, not warnings.
66 (build_modify_expr): Call readonly_error, not readonly_warning.
67 (c_expand_asm_operands): Likewise.
68 * tree-inline.c (optimize_inline_calls): Do not inline functions
69 after errors have occurred.
70
71 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
72
73 * configure.ac: Rearrange some threading code for clarity;
74 add section comment.
75 * configure: Regenerate.
76
77 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
78
79 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
80 typos.
81 * doc/cppopts.texi: Fix a typo.
82
83 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
84
85 * config/i386/i386.md: Fix formatting.
86
87 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
88
89 * configure.ac: Add some comments delineating sections of code.
90
91 * doc/install.texi: Note that libada uses autoconf 2.57 also.
92
93 * doc/install.texi: Fix idiot typo in previous commit.
94
95 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
96
97 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
98
99 * config/h8300/h8300.md: Add comments about peephole2's.
100
101 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
102
103 * config/h8300/h8300.md: Tweak operand numbers of some
104 peephole2's.
105
106 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
107
108 * config/h8300/h8300.md: Tweak comments about peephole2's.
109
110 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
111
112 PR middle-end/14203
113 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
114 instead of testing whether DECL_RTL is not NULL.
115
116 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
117
118 * config/sh/sh.c: Fix formatting.
119
120 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
121
122 * config/sh/sh.c: Convert to ISO-C.
123
124 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
125
126 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
127 my previous patch.
128
129 * config/darwin.h (machopic_finish): Output stub even if the
130 symbol is already defined.
131
132 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
133
134 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
135
136 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
137
138 * genattr.c (main): Don't define
139 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
140 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
141 (DFA_PIPELINE_INTERFACE): Likewise.
142 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
143 (DFA_PIPELINE_INTERFACE): Likewise.
144
145 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
146
147 * config/mips/mips.md (tstsi, tstdi): Delete.
148
149 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
150
151 * config/mips/mips.c (override_options): Remove an obsolete
152 duplicate definition of the "e" constraint.
153 * config/mips/mips.h: Update a comment accordingly.
154
155 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
156
157 * config/mips/mips.md: Complete the unfinished R4000
158 multiply/shift errata workaround. Improve documentation.
159 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
160 has a hilo hazard.
161 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
162 (muldi3, muldi3_internal): Likewise.
163 (muldi3_internal2): Remove, replacing with...
164 (muldi3_mult3, muldi3_r4000): ...these new patterns.
165 (mulsidi3): Take the errata into account.
166 (mulsidi3_32bit): Remove, replacing with...
167 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
168 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
169 (umulsidi3): Take the errata into account.
170 (umulsidi3_32bit): Remove, replacing with..
171 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
172 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
173 TARGET_FIX_R4000.
174 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
175 (smuldi3_highpart, umuldi3_highpart): Likewise.
176 * doc/invoke.texi: Document the errata workaround.
177
178 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
179
180 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
181 * config/mips/mips.h (MASK_FIX_SB1): Bump.
182 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
183 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
184 * config/mips/mips.c (mips_idiv_insns): New function.
185 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
186 (mips_output_division): Add a workaround for the R4000 divide/shift
187 errata.
188 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
189 the length of an "idiv" instruction.
190 * doc/invoke.texi: Document the new switches.
191
192 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
193
194 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
195 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
196
197 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
198
199 PR optimization/14229
200 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
201
202 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
203
204 * fold-const.c (fold): Strip NOPs that change the signedness
205 for RSHIFT too. Expand comment.
206
207 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
208
209 PR optimization/7871
210 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
211 from or to call insns.
212
213 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
214
215 PR optimization/7871
216 * flow.c (propagate_one_insn): Interpret calls as setting global
217 registers, not merely clobbering them.
218
219 2004-02-27 Dale Johannesen <dalej@apple.com>
220
221 * config/darwin.c (machopic_output_possible_stub_label): Remove.
222 config/darwin-protos.h: Ditto.
223 config/darwin.h: Remove call to it.
224 * combine.c (distribute_notes): Do not place a REG_DEAD note
225 when value is both set and used.
226
227 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
228
229 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
230 as well.
231 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
232 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
233
234 2004-02-27 Andrew Pinski <apinski@apple.com>
235
236 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
237 Speedup common case of the type values being in the same order.
238
239 2004-02-27 Steve Ellcey <sje@cup.hp.com>
240
241 * config/ia64/ia64.h (no-inline-float-divide): New option.
242 * config/ia64/ia64.h (no-inline-int-divide): New option.
243 * config/ia64/ia64.h (no-inline-sqrt): New option.
244 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
245 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
246 * config/ia64/ia64.c (ia64_override_options): Modify error
247 checking for inlined division/sqrt.
248
249 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
250
251 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
252 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
253 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
254 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
255 copyright.
256
257 2004-02-27 Paul Brook <paul@codesourcery.com>
258
259 * function.c (assign_parms): Don't count pretend args for alignment.
260
261 2004-02-27 Richard Henderson <rth@redhat.com>
262
263 * passes.c: New file.
264 * Makefile.in (OBJS-common): Add it.
265 * diagnostic.c (rtl_dump_and_exit): Move decl ...
266 * flags.h (rtl_dump_and_exit): ... here.
267 * output.h (size_directive_output, last_assemble_variable_decl):
268 Move from toplev.c.
269 * rtl.h (reg_alloc): Move from toplev.c.
270 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
271 struct dump_file_info, enum dump_file_index, dump_file_tbl,
272 open_dump_file, close_dump_file, rest_of_decl_compilation,
273 rest_of_type_compilation, rest_of_handle_final,
274 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
275 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
276 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
277 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
278 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
279 rest_of_handle_tracer, rest_of_handle_if_conversion,
280 rest_of_handle_if_after_combine, rest_of_handle_web,
281 rest_of_handle_branch_prob,
282 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
283 rest_of_handle_addressof, rest_of_handle_sibling_calls,
284 rest_of_handle_jump_bypass, rest_of_handle_inlining,
285 rest_of_handle_null_pointer, rest_of_handle_combine,
286 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
287 rest_of_handle_gcse, rest_of_handle_loop_optimize,
288 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
289 (decode_d_option): Use enable_rtl_dump_file.
290 (compile_file, finalize, do_compile): Move profile+combine+graph
291 cleanup to finish_optimization_passes.
292 * toplev.h (init_optimization_passes, finish_optimization_passes,
293 enable_rtl_dump_file): Declare.
294
295 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
296 Roger Sayle <roger@eyesopen.com>
297
298 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
299 operands to build a tree with swapped operands.
300 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
301 'unsignedp' predicate to specify the signedness.
302
303 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
304
305 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
306 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
307 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
308 comment typos and formatting. Follow spelling conventions.
309
310 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
311
312 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
313 fix_truncsfsi2.
314
315 * config/rs6000/spe.md: Delete spe_efsctuiz.
316 Add spe_fixuns_truncsfsi2.
317 Add spe_fix_truncsfsi2.
318
319 2004-02-26 Eric Christopher <echristo@redhat.com>
320
321 * c-lex.c (c_lex_string_translate): New variable.
322 (lex_string): Use to determine string translation.
323 * c-pragma.h: Prototype.
324 * c-parse.in (start_string_translation): New. Set above.
325 (stop_string_translation): Ditto.
326 (attribute, attribute_list, asm_def, asm_stmt,
327 asm_operand): Use above functions.
328 * cp/parser.c (cp_parser_declaration): Translate strings
329 unless token is RID_EXTERN. Set c_lex_string_translate
330 for recursive use.
331 (cp_parser_asm_definition): Only translate argument strings
332 to asms.
333 (cp_parser_asm_operand_list): Ditto.
334 (cp_parser_attribute_list): Do not translate attribute strings.
335
336 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
337
338 * stmt.c (expand_start_case_dummy): Remove.
339 * tree.h: Remove the corresponding prototype.
340
341 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
342
343 * builtins.c (apply_args_register_offset): Remove.
344 * tree.h: Remove the corresponding prototype.
345
346 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
347
348 * stor-layout.c (is_pending_size): Remove.
349 * tree.h: Remove the corresponding prototype.
350
351 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
352
353 * recog.c (validate_replace_src): Remove.
354 * recog.h: Remove the corresponding prototype.
355
356 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
357
358 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
359 MAYBE_REG_PARM_STACK_SPACE.
360 * function.c: Likewise.
361 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
362 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
363 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
364 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
365
366 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
367
368 * c-decl.c (c_expand_deferred_function): Remove.
369 * c-tree.h: Remove the corresponding prototype.
370
371 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
372
373 * postreload.c (reload_cse_move2add): Generate just a PLUS
374 instead of an entire SET.
375
376 2004-02-26 Jan Hubicka <jh@suse.cz>
377
378 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
379 /pentium4m.
380 * i386.c (override_options): Add support for new CPUs.
381 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
382 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
383 constants.
384 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
385
386 2004-02-26 Bob Wilson <bob.wilson@acm.org>
387
388 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
389
390 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
391
392 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
393 (sparc_emit_fixunsdi): New prototype.
394 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
395 (sparc_emit_fixunsdi): New function.
396 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
397 operand 1. Pass SFmode to sparc_emit_floatunsdi.
398 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
399 to sparc_emit_floatunsdi.
400 (fixuns_truncsfdi2): New expander.
401 (fixuns_truncdfdi2): Likewise.
402
403 2004-02-26 Alan Modra <amodra@bigpond.net.au>
404
405 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
406 unless HAVE_cc0.
407
408 2004-02-25 Richard Henderson <rth@redhat.com>
409
410 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
411 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
412 use (op0-op1) == 0 if op0 is a pointer.
413 * config/alpha/alpha.md (cmpdi): Use some_operand.
414 (three comparison combine splits): Remove.
415
416 2004-02-25 Richard Henderson <rth@redhat.com>
417
418 PR c/12794
419 * c-common.c (handle_alias_attribute): Reject the attribute if
420 current_function_decl is set.
421
422 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
423
424 * config.gcc: Add comment describing extra_gcc_objs.
425 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
426 * configure.ac (extra_gcc_objs): New substitution variable.
427 (host_extra_gcc_objs): Don't substitute.
428 * configure: Regenerate.
429 * Makefile.in: Use extra_gcc_objs.
430
431 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
432
433 * doc/contrib.texi: Add an entry for myself.
434
435 2004-02-25 Jan Hubicka <jh@suse.cz>
436
437 * basic-block.h (make_eh_edge, break_superblocks): Declare.
438 * cfgbuild.c (make_eh_edge): Make global.
439 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
440 * except.c (build_post_landing_pads, connect_post_landing_pads,
441 dw2_build_landing_pads, sjlj_emit_function_enter,
442 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
443 sjlj_build_landing_pads): Update CFG.
444 (emit_to_new_bb_before): New function.
445 (finish_eh_generation): Do not rebuild the CFG.
446
447 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
448
449 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
450 target_cpu_default defines.
451 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
452 * pa.h (TARGET_DEFAULT): Likewise.
453
454 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
455
456 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
457 comparisons with regard to signedness.
458
459 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
460
461 * arm.c (thumb_legitimize_address): New function.
462 * arm-protos.h: Prototype it.
463 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
464 (LEGITIMIZE_ADDRESS): Use it.
465
466 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
467
468 * reload1.c (reload): Only spill eliminable register with multiple
469 adjacent elimination alternatives if all alternatives fail.
470
471 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
472
473 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
474 is -4095...+4095 inclusive.
475
476 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
477
478 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
479 the bootstrap failure with Sun CC 5.4 and 5.5.
480
481 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
482
483 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
484 which modifies NEWREG.
485 (cse_condition_code_reg): Update the mode of CC_REG in
486 CC_SRC_INSN on our own.
487
488 2004-02-24 Michael Matz <matz@suse.de>
489
490 * config/i386/i386.c (ix86_comp_type_attributes): Check for
491 regparm attributes.
492
493 2004-02-24 Richard Henderson <rth@redhat.com>
494
495 * toplev.c (dump_file_tbl): Rename from dump_file.
496 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
497 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
498 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
499 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
500 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
501 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
502 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
503 s/rtl_dump_file/dump_file/g.
504
505 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
506
507 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
508 (spe_fixuns_truncsfsi2): Delete.
509
510 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
511 (fixuns_truncsfsi2): Delete.
512
513 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
514
515 PR/14240
516 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
517
518 2004-02-24 Geoffrey Keating <geoffk@apple.com>
519
520 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
521
522 2004-02-24 Jason Merrill <jason@redhat.com>
523
524 * tree.c (check_qualified_type): New fn.
525 (get_qualified_type): Use it. If type already has the desired
526 quals, just return it.
527 * tree.h: Declare it.
528
529 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
530
531 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
532 TARGET_SCHED_FINISH_GLOBAL): New macros.
533
534 * target.h (md_init_global, md_finish_global): Function
535 declarations corresponding to new target macros.
536
537 * haifa-sched.c (sched_init, sched_finish): Allow target to
538 call the new schedular hooks.
539
540 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
541 call to update_life_info.
542
543 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
544 flag_schedule_insns for SH4.
545
546 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
547 find_set_regmode_weight, find_insn_regmode_weight,
548 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
549 sh_variable_issue, high_pressure, ready_reorder,
550 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
551 functions used to throttle the insn movement in first
552 scheduling pass for SH.
553
554 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
555 TARGET_SCHED_FINISH_GLOBAL.
556
557 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
558
559 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
560 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
561 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
562 symbols in sections named by the user.
563 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
564 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
565 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
566 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
567 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
568 the above.
569 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
570 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
571 one more pseudo to further improve code generation.
572 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
573 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
574 inside UNSPEC.
575 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
576 * config/frv/frv.c (frv_legitimate_address_p): Added
577 allow_double_reg_p argument. Adjust all callers. Use it to
578 decide whether to enable double-register indirect addressing.
579 (frv_funcdesc_alias_set): Remove.
580 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
581 register. Emit movdi_ldd.
582 (ldd_address_operand): New.
583 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
584 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
585 (PREDICATE_CODES): Add ldd_address_operand.
586 * config/frv/frv.md (movdi_ldd): New.
587 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
588 intermediate computations if possible.
589 (symGOTOFF2reg_i): Fix harmless typo.
590 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
591 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
592 relocated p_vaddr to vaddr type.
593 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
594 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
595 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
596 MEM, or use a funcdesc alias set. Use regular move instead of
597 ldd.
598 (dbl_memory_one_insn_operand): Recognize function descriptors by
599 type or by alias set, and don't split them.
600 * config/frv/frv.md (call, call_value): Never use call_internal
601 for fdpic.
602 (call_internal, call_value_internal): Never match for FDPIC.
603 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
604 call_value_fdpicsi): Require FDPIC.
605 (ldd): Removed.
606 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
607 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
608 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
609 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
610 FDPIC. Compute data base address.
611 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
612 before the other self-specs are processed.
613 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
614 Build with -fPIC.
615 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
616 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
617 inhibit_libc is defined.
618 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
619 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
620 __FRV_FDPIC__.
621 (__RELOC_POINTER): Define.
622 (_Unwind_IteratePhdrCallback): Use it.
623 * config/frv/frv.h (Twrite): Define.
624 (TRANSFER_FROM_TRAMPOLINE): Use it.
625 * config/frv/linux.h (INVOKE__main): Undefine.
626 (Twrite): Override.
627 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
628 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
629 (-mlibrary-pic): Emphasize that this option generates EABI code.
630 (-mcpu): Add fr550.
631 (-mpack): Remove.
632 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
633 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
634 and CONSTs in FDPIC mode.
635 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
636 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
637 * config/frv/frv.c (move_source_operand): Don't accept symbolic
638 constants.
639 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
640 rather than 'i' constraint for the 2-instruction alternative.
641 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
642 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
643 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
644 EXTRA_CONSTRAINT_FOR_Y.
645 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
646 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
647 (addsi3): Change 'Y' constraint to 'Q'.
648 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
649 * reload.c (CONST_POOL_OK_P): New macro.
650 (find_reloads): Use it to decide whether a constant can be forced
651 into memory.
652 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
653 constant satisfies got12_operand.
654 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
655 (frv_legitimate_address_p): Check for valid unspec offsets using
656 got12_operand rather than frv_legitimate_fdpic_operand_p.
657 (frv_legitimate_fdpic_operand_p): Delete.
658 (frv_emit_movsi): Abort if we try to use the FDPIC register during
659 or after reload.
660 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
661 TARGET_FDPIC.
662 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
663 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
664 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
665 (frv_fdpic_fptr_operand): Don't declare here.
666 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
667 rather than fdpic_got12_operand.
668 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
669 got12_operand and const_unspec_operand.
670 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
671 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
672 (symbolic_operand): Remove.
673 (const_unspec_operand): New predicate.
674 * config/frv/frv.md (*movsi_got): Use got12_operand.
675 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
676 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
677 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
678 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
679 * config/frv/frv.c (frv_unspec): New structure.
680 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
681 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
682 validate CONST indices. Use frv_output_const_unspec to print them.
683 (frv_print_operand): Update call to unspec_got_name. Use
684 frv_output_const_unspec to print constant unspecs.
685 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
686 Reject UNSPECs otherwise.
687 (unspec_got_name): Take the relocation number as argument, not an
688 rtx containing it.
689 (frv_output_addr_const_extra): Remove, replacing with...
690 (frv_output_const_unspec): ...this new function.
691 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
692 (gpr_or_int12_operand): Use fdpic_got12_operand.
693 (dbl_memory_one_insn_operand): Likewise.
694 (fdpic_got12_operand): Use frv_const_unspec_p.
695 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
696 are already legitimate. Use frv_small_data_reloc_p when deciding
697 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
698 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
699 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
700 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
701 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
702 label, for real this time.
703 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
704 representation of visibility.
705 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
706 such.
707 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
708 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
709 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
710 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
711 it was explicitly disabled.
712 (frv_stack_info): There is no need to save the link register in every
713 frame unless TARGET_LINKED_FP is true.
714 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
715 frame pointer if the stack pointer might change value.
716 (frv_return_addr_rtx): Check and process "count" argument.
717 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
718 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
719 (frv_find_base_term): Declare.
720 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
721 (FIND_BASE_TERM): Define.
722 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
723 small_data_register_operand, small_data_symbolic_operand. Add
724 symbolic_operand.
725 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
726 (frv_print_operand_memory_reference, output_move_single): Remove
727 special handling for unlegitimized sdata addresses.
728 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
729 and symbolic addresses.
730 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
731 (frv_find_base_term): New function.
732 (int_2word_operand): Check specifically for symbolic address constants.
733 (pic_register_operand, pic_symbolic_operand): Delete.
734 (small_data_register_operand, small_data_symbolic_operand): Delete.
735 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
736 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
737 (move_source_operand): Only accept CONSTs if they're a two-insn
738 symbolic constant.
739 (fdpic_got12_operand): Don't require TARGET_FDPIC.
740 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
741 using gen_symGOTOFF2reg*.
742 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
743 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
744 themselves a cost of 3 insns.
745 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
746 Change predicate to symbolic_operand.
747 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
748 (*movsi_lda_sdata): Delete.
749 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
750 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
751 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
752 frv-*-*linux*.
753 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
754 label.
755 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
756 -multilib-library-pic.
757 (LINK_SPEC): Add -z text for -mfdpic.
758 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
759 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
760 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
761 Override.
762 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
763 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
764 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
765 crtstuff-generated files.
766 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
767 * config.gcc: Add frv-*-*linux*.
768 * config/frv/linux.h, config/frv/t-linux: New.
769 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
770 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
771 when -mfdpic even if a linker script is explicitly listed.
772 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
773 * config/frv/frv.c (frv_override_options): Clear asm_out
774 unaligned_op for SImode on FDPIC.
775 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
776 argument passed to decl_readonly_section.
777 (frv_assemble_integer): Revert 2003-09-30's change, but make the
778 whole block run with FDPIC even with -fno-PIC.
779 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
780 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
781 symbol or label plus offset to memory.
782 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
783 GOTOFF and GPREL for LABEL_REF.
784 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
785 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
786 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
787 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
788 * doc/invoke.texi: Document them.
789 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
790 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
791 (frv_splittable_got_operand): Removed.
792 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
793 LO_SUM. Add comments.
794 (frv_override_options): Moved enabling of FDPIC to
795 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
796 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
797 (frv_legitimize_fdpic_address): Don't duplicate logic in
798 frv_emit_movsi.
799 (frv_gen_GPsym2reg): New.
800 (unspec_got_name): Added gprel.
801 (frv_expand_fdpic_call): Add support for inlining PLTs.
802 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
803 (gpr_or_int12_operand): Added GPREL12.
804 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
805 (small_data_symbolic_operand): Fail if FDPIC.
806 (fdpic_splittable_got_operand): Removed.
807 (fdpic_got12_operand): Added GPREL12.
808 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
809 when appropriate. Fix sdata GOTOFF.
810 (frv_legitimate_constant_p): Require legitimate PIC operand for
811 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
812 (frv_assemble_integer): Move FDPIC funcdesc handling out of
813 flag_pic case.
814 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
815 frv_assemble_integer fails.
816 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
817 (SUBTARGET_DRIVER_SELF_SPECS): New.
818 (ASM_SPEC): Don't pass -mno-fdpic.
819 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
820 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
821 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
822 -multilib-library-pic.
823 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
824 condexec_si_media_operator, condexec_sf_add_operator and
825 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
826 and condexec_sf_unary_operator.
827 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
828 New.
829 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
830 movsi_internal. Give them internal names. movsi_got has type
831 int.
832 (fdpic got splitters): Remove.
833 (symGPREL2reg, symGPREL2reg_hilo): New.
834 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
835 to -mlibrary-pic. Map -multilib-library-pic to it.
836 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
837 Document.
838 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
839 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
840 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
841 (frv_cannot_force_const_mem): New function.
842 (const_small_data_p, plus_small_data_p): Update comments on sdata
843 on FDPIC.
844 (frv_override_options): Set flag_pie for FDPIC too.
845 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
846 call-saved registers on FDPIC.
847 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
848 don't force LR to be preserved.
849 (frv_expand_prologue): Likewise.
850 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
851 (frv_frame_pointer_required): Don't force it just because the
852 FDPIC register is used.
853 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
854 operand only if !condexec_p.
855 (frv_legitimize_address): Return the FDPIC-legitimized address.
856 Don't match small data here on FDPIC.
857 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
858 symbols. Use TRUE/FALSE instead of 1/0.
859 (frv_local_funcdesc_p): New.
860 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
861 immediates when possible.
862 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
863 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
864 an UNSPEC_GOT.
865 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
866 12-bit immediates when possible.
867 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
868 are not legitimate pic operands.
869 (frv_in_small_data_p): Re-enable for FDPIC.
870 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
871 (FRV_GLOBAL_P): Removed.
872 * config/frv/frv.md: Add modes to CONSTs.
873 (movsi_got): New.
874 (movsi_lo_sum_got): Use separate matches instead of match_dup.
875 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
876 (fdpic splittable operations): Match on flag_pic != 1.
877 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
878 * config/frv/frv.c (frv_asm_out_constructor,
879 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
880 bytes, not bits.
881 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
882 * config/frv/frv.c (frv_assemble_integer): Reject complex
883 expressions referencing function SYMBOL_REFs.
884 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
885 (move_source_operand): Reject CONSTs that reference function
886 SYMBOL_REFs on FDPIC.
887 (frv_emit_movsi): If we get such a CONST, break it up.
888 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
889 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
890 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
891 MEM.
892 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
893 (frv_trampoline_size): Increase for FDPIC.
894 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
895 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
896 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
897 Disable use of GOTOFF for now.
898 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
899 Disable use of small data in FDPIC for now.
900 (frv_asm_output_mi_thunk): Implement for FDPIC.
901 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
902 * config/frv/frv.c (frv_asm_out_constructor): Use
903 frv_assemble_integer for FDPIC pointers.
904 (frv_asm_out_destructor): Likewise.
905 * config/frv/frv.md (ldd): Fix order of operands. Use
906 address_operand for input.
907 2003-09-18 DJ Delorie <dj@redhat.com>
908 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
909 (unspec_got_name): Correct typo.
910 (frv_emit_movsi): Pre-expand splittable GOTs.
911 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
912 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
913 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
914 * config/frv/t-frv: Add -mfdpic multilibs.
915 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
916 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
917 * config/frv/frv.c (frv_override_options): -mfdpic assumes
918 flag_pic, default to 32-bit pics, require DWORD ops.
919 (frv_override_options): Add W and Z constraints.
920 (frv_expand_prologue): No pic prologue for -mfdpic.
921 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
922 (frv_print_operand_memory_reference): Handle GOT constants.
923 (frv_legitimate_address_p): Allow GOT constants.
924 (frv_legitimize_address): Handle GOT addresses too.
925 (frv_legitimate_fdpic_operand_p): New.
926 (frv_legitimize_fdpic_address): New.
927 (unspec_got_name): New.
928 (frv_output_addr_const_extra): New.
929 (frv_expand_fdpic_call): New.
930 (frv_fdpic_fptr_operand): New.
931 (gpr_or_int12_operand): Handle GOT operands.
932 (int_2word_operand): Handle GOT operands.
933 (fdpic_operand): New.
934 (fdpic_splittable_got_operand): New.
935 (fdpic_got12_operand): New.
936 (frv_emit_movsi): Handle GOT operands.
937 (frv_assemble_integer): -mfdpic doesn't use rofixups.
938 (frv_print_operand): Support 'g' code for GOT operands.
939 * config/frv/frv-protos.h: Add prototypes as needed.
940 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
941 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
942 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
943 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
944 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
945 R_FRV_GOTOFFLO): New.
946 (movsi_high_got, movsi_lo_sum_got): New.
947 (*movsi_pic): Don't use this splitter for -mfdpic.
948 (addsi3): Allow GOT references also.
949 (call, call_value): Handle -mfdpic separately.
950 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
951 call_value_fdpicsi): New.
952 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
953 symGOTOFF2reg_i): New.
954 * config/frv/frv.h (MASK_FDPIC): New.
955 (TARGET_FDPIC): New.
956 (TARGET_SWITCHES): Add -mfdpic.
957 (FDPIC_FPTR_REGNO): New.
958 (FDPIC_REGNO): New.
959 (OUR_FDPIC_REG): New.
960 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
961 FDPIC_CALL_REGS.
962 (REG_CLASS_NAMES): Likewise.
963 (REG_CLASS_CONTENTS): Likewise.
964 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
965 (EXTRA_CONSTRAINT): Add it here.
966 (FRV_GLOBAL_P): New.
967 (OUTPUT_ADDR_CONST_EXTRA): New.
968
969 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
970
971 * config/sparc/sparc.h: Remove commented-out definitions of
972 TARGET_EDOM and GEN_ERRNO_RTX.
973
974 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
975
976 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
977 df_analyse with df_analyze.
978
979 2004-02-24 Alan Modra <amodra@bigpond.net.au>
980
981 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
982 beginning of block.
983
984 2004-02-23 James E Wilson <wilson@specifixinc.com>
985
986 * calls.c (precompute_arguments): Update comment.
987
988 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
989
990 * et-forest.c: Replace et_occurences with et_occurrences.
991
992 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
993
994 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
995 with iv_analyze.
996
997 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
998
999 * config/i386/i386.c: Rename pni to sse3.
1000 * config/i386/i386.h: Likewise.
1001 * config/i386/i386.md: Likewise.
1002 * config/i386/pmmintrin.h: Likewise.
1003 * doc/extend.texi: Likewise.
1004 * doc/invoke.texi: Likewise.
1005
1006 2004-02-23 Zack Weinberg <zack@codesourcery.com>
1007 Kazu Hirata <kazu@cs.umass.edu>
1008
1009 Remove -fwritable-strings.
1010 * c-common.c (fix_string_type): Don't check
1011 flag_writable_strings.
1012 (fix_string_type): Likewise.
1013 * c-opts.c (set_std_c89): Don't initialize
1014 flag_writable_strings.
1015 (set_std_c99): Likewise.
1016 * common.opt (fwritable-strings): Remove.
1017 * flags.h: Remove the external declaration of
1018 flag_writable_strings.
1019 * opts.c (common_handle_option) <OPT_fwritable_strings>:
1020 Remove.
1021 * toplev.c (flag_writable_strings): Remove.
1022 (f_options): Remove an entry for writable-strings.
1023 * varasm.c (const_hash_1) <STRING_CST>: Don't check
1024 flag_writable_strings.
1025 (compare_constant) <STRING_CST>: Likewise.
1026 (build_constant_desc): Likewise.
1027 * config/darwin.c (machopic_select_section): Likewise.
1028 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
1029 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
1030 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
1031 * config/mips/mips.c (mips_select_section): Likewise.
1032 (mips_encode_section_info): Likewise.
1033 * config/pa/pa.c (pa_select_section): Likewise.
1034 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
1035 * config/v850/v850.c (v850_select_section): Likewise.
1036 * doc/invoke.texi (-fwritable-strings): Remove.
1037 (-fno-const-strings): Don't mention -fwritable-strings.
1038 * doc/trouble.texi: Don't mention -fwritable-strings.
1039
1040 2003-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
1041
1042 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
1043
1044 2004-02-23 Dale Johannesen <dalej@apple.com>
1045
1046 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
1047 (movdf_hardfloat64): Ditto.
1048 (movdf_softfloat64): Ditto.
1049
1050 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
1051 * config/rs6000/rs6000.c (function_arg): call to
1052 rs6000_mixed_function_arg for DFmode moved to allow
1053 normal DFmode incoming register assignment.
1054
1055 2004-02-23 Dale Johannesen <dalej@apple.com>
1056
1057 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
1058 (movdf_hardfloat64): Ditto.
1059
1060 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
1061
1062 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
1063 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
1064 copyright.
1065
1066 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
1067
1068 PR c/14156
1069 * c-typeck.c (c_expand_return): Change check for VAR_DECL
1070 to use DECL_P instead.
1071
1072 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
1073 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
1074
1075 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
1076
1077 * Makefile.in (opts.o): Depend on target.h.
1078 * opts.c (decode_options): Use targetm.default_short_enums
1079 instead of DEFAULT_SHORT_ENUMS.
1080 * system.h (DEFAULT_SHORT_ENUMS): Poison.
1081 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
1082 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
1083 * target.h (gcc_target): Add default_short_enums.
1084 * config/cris/cris.h: Remove a comment about
1085 DEFAULT_SHORT_ENUMS.
1086 * config/ip2k/ip2k.h: Likewise.
1087 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
1088 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
1089
1090 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1091 Falk Hueffner <falk@debian.org>
1092
1093 PR c/14188
1094 * builtins.c (expand_builtin_va_arg): Emit an informative message
1095 if a trap is generated.
1096 * c-typeck.c (build_function_call): Likewise.
1097
1098 2004-02-22 Jakub Jelinek <jakub@redhat.com>
1099
1100 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
1101 fopen.
1102 * libgcov.c: Include sys/stat.h.
1103 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
1104 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
1105 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
1106 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
1107
1108 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
1109
1110 * reorg.c: Remove comments about dead ports.
1111
1112 2004-02-22 Christopher Faylor <cgf@redhat.com>
1113
1114 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
1115 extra host object file when targetting cygwin rather than generic
1116 object files.
1117
1118 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
1119
1120 Merge from tree-ssa:
1121 2003-11-20 Richard Henderson <rth@redhat.com>
1122
1123 * tree-inline.c (insert_decl_map): New.
1124 (remap_decl, remap_type, remap_block, copy_body_r,
1125 initialize_inlined_parameters, declare_return_variable,
1126 remap_save_expr): Use it.
1127
1128 * function.c (copy_body_r): Add mapping from id->ret_label to
1129 id->ret_label. Revert test for ret_label.
1130
1131 2004-02-22 Jakub Jelinek <jakub@redhat.com>
1132
1133 * genoutput.c (process_template): Strip trailing whitespace in @
1134 templates and issue a warning if there was any.
1135
1136 2004-02-21 Christopher Faylor <cgf@redhat.com>
1137
1138 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
1139 object file when targetting cygwin.
1140 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
1141 overridden by top-level Makefile.
1142
1143 2004-02-21 Roger Sayle <roger@eyesopen.com>
1144
1145 * config/i386/i386.c (standard_80387_constant_p): Also prefer
1146 the x87's load constant instructions when optimizing for size.
1147
1148 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
1149
1150 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
1151 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
1152 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
1153 * fold-const.c: Likewise.
1154 * simplify-rtx.c: Likewise.
1155
1156 2004-02-21 Alan Modra <amodra@bigpond.net.au>
1157
1158 * combine.c (can_combine_p): Don't ignore SETs marked with
1159 REG_EH_REGION notes.
1160 (try_combine): When attemting to fix unrecognized insns, don't
1161 split a PARALLEL that contains the original i2.
1162
1163 2004-02-21 Ziemowit Laski <zlaski@apple.com>
1164
1165 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
1166 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
1167 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
1168 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
1169 (vector, pixel, bool): #define to __vector, __pixel and __bool.
1170 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
1171 portion of header.
1172 (__altivec_link_error_invalid_argument): Remove prototype; will use
1173 __builtin_altivec_compiletime_error("vec_*") instead.
1174 (vec_*): Fix/complete set of available operation overloads given the
1175 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
1176 cv-correctness of pointer arguments; in C, always check for correct
1177 argument types before macro expansion.
1178 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
1179 defining Darwin/PowerPC-specific '-f[no-]altivec' and
1180 '-W[no-]altivec-long-deprecated' switches.
1181 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
1182 '__vector', '__pixel' and '__bool' macros using
1183 '__attribute__((altivec(...)))' types.
1184 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
1185 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
1186 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
1187 New type nodes.
1188 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
1189 handling '-W[no-]altivec-long-deprecated'.
1190 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
1191 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
1192 altivec_expand_dst_builtin): Remove casts from integer literals.
1193 (altivec_expand_builtin): Likewise; handle expansion of new
1194 '__builtin_altivec_compiletime_error' function.
1195 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
1196 types, and make them distinct from other vector types; register
1197 '__builtin_altivec_compiletime_error' function.
1198 (print_operand): For 'P', print a full target register name instead of
1199 merely its number.
1200 (rs6000_attribute_table): Add "altivec" attribute.
1201 (rs6000_handle_altivec_attribute): New function.
1202 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
1203 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
1204 maps to).
1205 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
1206 declare.
1207 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
1208
1209 2004-02-20 James E Wilson <wilson@specifixinc.com>
1210
1211 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
1212 check.
1213 (shift_mix4left+2): Delete redundant pattern.
1214
1215 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1216
1217 * alias.c (OUTGOING_REGNO): Don't define the default.
1218 * builtins.c (OUTGOING_REGNO): Likewise.
1219 (INCOMING_REGNO): Likewise.
1220 (apply_args_register_offset): Always use OUTGOING_REGNO.
1221 * combine.c (OUTGOING_REGNO): Likewise.
1222 * sibcall.c (OUTGOING_REGNO): Likewise.
1223 * defaults.h (INCOMING_REGNO): Provide the default.
1224 (OUTGOING_REGNO): Likewise.
1225
1226 2004-02-21 Jan Hubicka <jh@suse.cz>
1227
1228 * params.def (max-peeled-insns, max-completely-peeled-insns,
1229 max-once-peeled-insns): Set to 400.
1230
1231 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1232
1233 PR c++/12007
1234 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
1235 are set for parameters before outputing debugging information.
1236
1237 2004-02-20 Falk Hueffner <falk@debian.org>
1238
1239 PR target/14201
1240 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
1241 numbers.
1242
1243 2004-02-20 Per Bothner <per@bothner.com>
1244
1245 * input.h: Don't #include line-map.h. It may cause link problems
1246 with undefined linemap_line_start when line-map.h is included but
1247 line-map.o is not linked, as currently happens with gengtype on
1248 compilers that don't support inline.
1249 * toplev.c: So we do have to explicitly #include line-map.h here.
1250
1251 2004-02-20 Richard Henderson <rth@redhat.com>
1252
1253 * doc/invoke.texi: Add -Wvariadic-macros.
1254
1255 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1256
1257 * haifa-sched.c (sched_emit_insn): Remove.
1258 * sched-int.h: Remove the corresponding prototype.
1259
1260 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1261
1262 Revert:
1263 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1264 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
1265 * system.h (DEFAULT_SHORT_ENUMS): Poison.
1266 * config/cris/cris.h: Remove a comment about
1267 DEFAULT_SHORT_ENUMS.
1268 * config/ip2k/ip2k.h: Likewise.
1269 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
1270
1271 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
1272 Tom Tromey <tromey@redhat.com>
1273
1274 * doc/install.texi: Moved --disable-libgcj and
1275 --with-system-zlib documentation to new section for
1276 Java-specific options.
1277 Added explicit Cross-Compiler-Specific Options subheading.
1278 Added section for Java-specific options.
1279
1280 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
1281
1282 * doc/install.texi (Building the Ada compiler): Remove
1283 example.
1284
1285 2004-02-20 James E Wilson <wilson@specifixinc.com>
1286
1287 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
1288
1289 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
1290
1291 * gcc.c (process_command): Allow translation of the copyright
1292 symbol but not the rest of the copyright message.
1293 * gcov.c (print_version): Likewise. Allow translation of the
1294 message about warranty.
1295
1296 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
1297
1298 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
1299 predicate.
1300 ("*andsi_clear"): Tweak constraints to not match postincrement.
1301 Adjust the predicate to exclude a volatile memory reference.
1302 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
1303 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
1304
1305 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
1306
1307 * move-if-change: Remove.
1308 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
1309 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
1310 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
1311 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
1312 (s-gtyp-gen, s-iov): Use the top level move-if-change.
1313 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
1314
1315 2004-02-19 James E Wilson <wilson@specifixinc.com>
1316
1317 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
1318 for operand2. Add condition that requires register_operand operand2
1319 before reload.
1320
1321 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
1322 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1323
1324 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
1325 * config/mips/mips.md: Expand comment above unaligned loads and stores.
1326
1327 2004-02-19 Richard Henderson <rth@redhat.com>
1328
1329 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
1330 * tree.c (build0, build1, build2, build3, build4): Split out from...
1331 (build): ... here. Call them.
1332 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
1333
1334 * convert.c (convert_to_integer): Remove extra build argument.
1335 * tree-inline.c (expand_call_inline): Likewise.
1336
1337 2004-02-19 Richard Henderson <rth@redhat.com>
1338
1339 * c-opts.c (warn_variadic_macros): New.
1340 (c_common_handle_option): Set it.
1341 (sanitize_cpp_opts): Copy it to cpp_opts.
1342 * c.opt (Wvariadic-macros): New.
1343 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
1344 * cppinit.c (cpp_create_reader): Initialize it.
1345 * cppmacro.c (parse_params): Check it.
1346
1347 2004-02-19 David Daney <ddaney@avtrex.com>
1348
1349 PR preprocessor/14198
1350 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
1351 builtin_assert ("machine=mips")
1352
1353 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1354
1355 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
1356 * system.h (DEFAULT_SHORT_ENUMS): Poison.
1357 * config/cris/cris.h: Remove a comment about
1358 DEFAULT_SHORT_ENUMS.
1359 * config/ip2k/ip2k.h: Likewise.
1360 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
1361
1362 2004-02-19 Zack Weinberg <zack@codesourcery.com>
1363
1364 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
1365 when passing single SFmode quantities in general registers,
1366 put them in the high half.
1367
1368 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
1369
1370 * doc/md.texi (Standard Names): Document additional dependency on
1371 fix pattern.
1372
1373 * optabs.c (ftruncify): Remove.
1374 (expand_fix): Manually inline ftruncify above.
1375 (can_fix_p): Add FIXME note.
1376
1377 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
1378
1379 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
1380 spe_fixuns_truncsfsi2.
1381
1382 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
1383 fixuns_truncsfsi2.
1384
1385 2004-02-19 Steve Ellcey <sje@cup.hp.com>
1386
1387 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
1388 * testsuite/gcc.dg/20040219-1.c: New test.
1389
1390 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
1391
1392 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
1393 "*subsf3_cconly"): Subtraction is not commutative.
1394
1395 2004-02-19 Zack Weinberg <zack@codesourcery.com>
1396
1397 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
1398 (sdbout_symbol): If called before sdbout_init, queue DECL for
1399 later and return.
1400 (sdbout_init): Set sdbout_initialized true, process decls
1401 queued earlier by sdbout_symbol.
1402 (sdbout_finish): Use size_t for index variable.
1403
1404 2004-02-19 Jeff Law <law@redhat.com>
1405
1406 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
1407 for unordered comparison codes.
1408
1409 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
1410
1411 * reload1.c (reload): Correct comment.
1412 (scan_paradoxical_subregs): Remove #if 0 and old comment.
1413 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
1414 register variables are not used by reload.
1415
1416 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
1417
1418 PR target/14209
1419 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
1420 constraints to not match postincrement. Adjust the predicate to
1421 exclude a volatile memory reference.
1422
1423 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1424
1425 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
1426
1427 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1428
1429 * hooks.c (hook_void_tree_int): Remove.
1430 (hook_void_constcharptr): Likewise.
1431 (hook_int_void_0): Likewise.
1432 * hooks.h: Remove the prototypes for the above three
1433 functions.
1434 * targhooks.c (hook_bool_machine_mode_true): Remove.
1435 * targhooks.h: Remove the prototype for
1436 hook_bool_machine_mode_true.
1437
1438 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1439
1440 * emit-rtl.c (subreg_realpart_p): Remove.
1441 (reorder_insns_with_line_notes): Likewise.
1442 (end_full_sequence): Likewise.
1443 * rtl.h: Remove the prototype for the above functions.
1444
1445 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1446
1447 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
1448 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
1449 config/iq2000/iq2000.h, config/m32r/m32r.h,
1450 config/pdp11/pdp11.h, config/sparc/sparc.h,
1451 config/xtensa/xtensa.h: Remove commented-out or useless
1452 definitions of CASE_VECTOR_PC_RELATIVE.
1453
1454 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
1455
1456 * loop.c (all_sets_invariant_p): Remove.
1457
1458 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
1459
1460 PR target/12916
1461 * config/sparc/sparc.h (NPARM_REGS): Delete.
1462 (BASE_RETURN_VALUE_REG): Likewise.
1463 (BASE_OUTGOING_VALUE_REG): Likewise.
1464 (BASE_PASSING_ARG_REG): Likewise.
1465 (BASE_INCOMING_ARG_REG): Likewise.
1466 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
1467 TARGET_ARCH64, not TARGET_V9.
1468 (function_arg_slotno): Dispatch based on the mode class.
1469 Handle vector modes like floating-point modes.
1470 (function_arg_record_value_1): Handle vector types like
1471 floating-point types.
1472 (function_arg_record_value_2): Likewise.
1473 Calculate regno after mode transformation.
1474 (function_arg): Handle vector modes like floating-point modes.
1475 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
1476 If ARCH64, do not recheck alignment.
1477 (function_arg_pass_by_reference): Reorder the conditions.
1478 (sparc_return_in_memory): Move after function_arg_padding.
1479 Implement calling conventions for vector modes.
1480 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
1481 (function_value): Move scope of 'regbase'.
1482 Implement calling conventions for vector modes.
1483 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
1484 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
1485 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
1486 the argument is passed by reference.
1487 (sparc_type_code): Handle vector types.
1488
1489 2004-02-19 Alan Modra <amodra@bigpond.net.au>
1490
1491 * function.c (assign_parms): When building decl_rtl for
1492 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
1493
1494 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
1495
1496 * expr.c (is_aligning_offset): Check if we are aligning the
1497 expressions's address over BIGGEST_ALIGNMENT in bytes, not
1498 in bits.
1499
1500 2003-02-18 Matt Austern <austern@apple.com>
1501
1502 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
1503 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
1504 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
1505 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
1506 spec string.
1507 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
1508
1509 2004-02-18 Zack Weinberg <zack@codesourcery.com>
1510
1511 * dwarf2out.c (loclabel_num): Move outside #ifdef
1512 DWARF2_DEBUGGING_INFO and mark with GTY(()).
1513 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
1514 Mark with GTY(()).
1515 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
1516 Allocate memory with ggc_alloc. No need to copy anything.
1517 (ia64_hpux_file_end): Update to match.
1518
1519 2004-02-18 Jakub Jelinek <jakub@redhat.com>
1520
1521 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
1522 by default.
1523
1524 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
1525
1526 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
1527 ("divmodtisi3"): Likewise.
1528 ("udivmoddi4", "udivmodtidi3"): Likewise.
1529 ("divmodsi4", "divmoddisi3"): Likewise.
1530 ("udivmodsi4", "udivmoddisi3"): Likewise.
1531 ("udivsi3", "umodsi3"): Likewise.
1532
1533 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
1534
1535 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
1536 placeholder insn when chunkifying the pool.
1537
1538 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1539
1540 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
1541 generating PIC code.
1542
1543 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1544
1545 * config/h8300/h8300-protos.h: Add a prototype for
1546 h8300_expand_branch.
1547 * config/h8300/h8300.c (h8300_expand_branch): New.
1548 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
1549 bgtu, beq, bne): Call h8300_expand_branch().
1550
1551 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1552
1553 * config/h8300/h8300-protos.h: Add prototypes for
1554 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
1555 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
1556 (h8300_hard_regno_mode_ok): Likewise.
1557 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
1558 h8300_hard_regno_nregs().
1559 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
1560
1561 2004-02-18 Per Bothner <per@bothner.com>
1562
1563 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
1564 partly reverts my 2003-10-01 change, because we're back to logically
1565 including <command line> inside the main line.
1566 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
1567 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
1568 Fixes PR preprocessor/14103.
1569
1570 * cppfiles.c (_cpp_stack_include): When appropriate decrement
1571 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
1572 (cpp_push_include): Don't need to increment pfile's line field.
1573 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
1574
1575 * c-ppoutput.c (print struct): New first_time field.
1576 (init_pp_output): Set print.first_time.
1577 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
1578 which is set also for (say) <command line>. Clear print.first_time.
1579
1580 * cppfiles.c (struct _cpp_file): Comment and type for pch field
1581 does not match the code, so fix both.
1582 (should_stack_file): Inline include_pch_p function.
1583 (include_pch_p): Remove pointless function.
1584
1585 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
1586
1587 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1588
1589 * config/h8300/h8300.md (four define_peephole2's): Use
1590 h8300_regs_ok_for_stm().
1591
1592 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1593
1594 * config/h8300/h8300-protos.h: Update the prototype for
1595 expand_a_rotate().
1596 * config/h8300/h8300.c (expand_a_rotate): Remove the first
1597 argument.
1598 * config/h8300/h8300.md: Update all callers.
1599
1600 2004-02-18 Jan Hubicka <jh@suse.cz>
1601
1602 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
1603 floats.
1604 (simplify_binary_operation): Deal with logicals on floats.
1605
1606 * i386.md (SSE fabs splitters): Emit new patterns.
1607 (SSE cmov splitters): Likewise.
1608 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
1609 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
1610 subregs.
1611 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
1612 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
1613
1614 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1615
1616 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
1617 by hand.
1618 (output_a_rotate): Tweak a comment.
1619 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
1620 (*rotlhi3_1): Change to rotlhi3_1.
1621 (*rotlsi3_1): Change to rotlsi3_1.
1622
1623 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
1624
1625 PR target/13866
1626 * arm.c (load_multiple_operation): Don't insist that the source reg
1627 of a post-increment component is the same as the destination.
1628 (store_multiple_operation): Likewise.
1629
1630 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1631
1632 * config/h8300/h8300.md: Move movsf patterns into one section
1633 of the file.
1634
1635 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1636
1637 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
1638 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
1639 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
1640 config/mips/linux64.h, config/pa/pa-64.h,
1641 config/rs6000/aix51.h, config/rs6000/aix52.h,
1642 config/rs6000/spe.md, config/sparc/linux.h,
1643 config/sparc/linux64.h: Update copyright.
1644
1645 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
1646
1647 * config/h8300/h8300.md: Move push patterns into one
1648 section of the file.
1649
1650 2004-02-18 Mark Mitchell <mark@codesourcery.com>
1651
1652 PR c++/11326
1653 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
1654 fntype.
1655
1656 2004-02-18 Paul Brook <paul@codesourcery.com>
1657
1658 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
1659
1660 2004-02-18 Paul Brook <paul@codesourcery.com>
1661
1662 PR debug/12934
1663 * dwarf2out.c (loc_descriptor_from_tree): Handle
1664 EXPR_WITH_FILE_LOCATION.
1665
1666 2004-02-18 Jakub Jelinek <jakub@redhat.com>
1667
1668 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
1669 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
1670 trailing whitespace from instructions.
1671
1672 2004-02-17 Geoffrey Keating <geoffk@apple.com>
1673
1674 * configure.ac: When generating auto-build.h, pass
1675 --enable-languages to the sub-configure.
1676 Put quotes around ${program_transform_name} when generating
1677 name of as, ld, nm, objdump.
1678 * configure: Regenerate.
1679
1680 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
1681
1682 * Makefile.in (s-check, s-config, s-conditions, s-flags)
1683 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
1684 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
1685 (s-preds, s-iov): Do not depend on move-if-change.
1686
1687 2004-02-17 James E Wilson <wilson@specifixinc.com>
1688
1689 * caller-save.c (insert_restore): Pass mem through copy_rtx.
1690 (insert_save): Likewise.
1691
1692 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1693
1694 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
1695 warning.
1696
1697 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1698
1699 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
1700 *one_cmplsi2_h8300.
1701 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
1702
1703 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1704
1705 * config/h8300/h8300-protos.h: Update the prototype of
1706 fix_bit_operand().
1707 * config/h8300/h8300.c (fix_bit_operand): Remove the second
1708 argument "what".
1709 * config/h8300/h8300.md: Update all callers.
1710
1711 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1712
1713 * config/h8300/h8300.c (fix_bit_operand): Change the name of
1714 the last argument to "code" from "type".
1715
1716 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1717
1718 * config/h8300/h8300.c: Remove an extern declaration of
1719 rtx_equal_function_value_matters.
1720
1721 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1722
1723 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
1724 by hand.
1725 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
1726 (*iorqi3_1): Change to iorqi3_1.
1727 (*xorqi3_1): Change to xorqi3_1.
1728
1729 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1730
1731 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
1732 typos.
1733
1734 2004-02-17 Jan Hubicka <jh@suse.cz>
1735
1736 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
1737
1738 2004-02-18 Alan Modra <amodra@bigpond.net.au>
1739
1740 PR optimization/14119
1741 * combine.c (try_combine): When attemting to fix unrecognized insns,
1742 don't delete SETs marked with REG_EH_REGION notes.
1743
1744 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
1745
1746 * combine.c (simplify_if_then_else): Do not replace
1747 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
1748 modes differ.
1749
1750 2004-02017 Steven Bosscher <stevenb@suse.de>
1751
1752 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
1753 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
1754 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
1755 * ada/utils.c: Likewise.
1756 * cp/decl.c: Likewise.
1757 * f/com.c: Likewise.
1758 * java/class.c: Likewise.
1759
1760 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1761
1762 * config/h8300/h8300.md: Fix comment typos.
1763
1764 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1765
1766 * config/mips/t-iris6gld: Renamed to ...
1767 * config/mips/t-irix-gld: ... this.
1768 * config.gcc (mips-sgi-irix6*): Reflect this
1769 (mips-sgi-irix5*): Use it with GNU ld.
1770
1771 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
1772 to ...
1773 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
1774 * config/mips/t-irix-gld: Reflect this.
1775 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1776
1777 * config/mips/iris5gld.h: New file.
1778 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
1779 Only use collect2 without gas.
1780
1781 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
1782 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
1783 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
1784 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
1785
1786 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
1787 * config/mips/iris5.h: ... here.
1788
1789 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
1790 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
1791 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
1792
1793 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
1794 using irix_startfile_spec, irix_endfile_spec.
1795
1796 2004-02-16 Gunther Nikl <gni@gecko.de>
1797
1798 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
1799
1800 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1801
1802 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
1803 insns by hand.
1804
1805 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1806
1807 * cfghooks.c (split_edge): Speed up updating of dominators.
1808
1809 2004-02-17 Mark Mitchell <mark@codesourcery.com>
1810
1811 PR c++/11326
1812 * c-common.c (flag_abi_version): Remove.
1813 * c-common.h (flag_abi_version): Likewise.
1814 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
1815 * c.opt (fabi-version): Remove.
1816 * calls.c (expand_call): Always pass a function type to
1817 struct_value_rtx. Use convert_memory_address.
1818 * common.opt (fabi-version): Add it.
1819 * flags.h (flag_abi_version): Likewise.
1820 (abi_version_at_least): New macro.
1821 * opts.c (common_handle_option): Add OPT_fabi_version.
1822 * toplev.c (flag_abi_version): Define it.
1823 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
1824 New function.
1825 (ia64_output_mi_thunk): Use it.
1826 (ia64_struct_value_rtx): Likewise.
1827
1828 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1829
1830 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
1831 Don't generate insns by hand.
1832
1833 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
1834
1835 PR c++/14178
1836 * doc/invoke.texi (fabi-version): The default is 2 now.
1837
1838 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1839
1840 * loop-iv.c: New file.
1841 * Makefile.in (loop-iv.o): New.
1842 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
1843 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
1844 num_loop_branches): New functions.
1845 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
1846 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
1847 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
1848 get_simple_loop_desc, free_simple_loop_desc): Declare.
1849 (simple_loop_desc): New inline function.
1850 (struct rtx_iv, struct niter_desc): New.
1851 * cfgloopmanip.c (loopify): Specify semantics more precisely.
1852 * expr.c (force_operand): Handle subregs of expressions created by
1853 loop unroller.
1854 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
1855 parts of the initialization to toplev.c
1856 * loop-unroll.c (loop_exit_at_end_p): New.
1857 (unroll_and_peel_loops): Call iv_analysis_done.
1858 (decide_peel_once_rolling, decide_peel_completely,
1859 decide_unroll_stupid, decide_unroll_constant_iterations,
1860 decide_unroll_runtime_iterations, decide_peel_simple,
1861 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
1862 unroll_loop_runtime_iterations): Use new simple loop analysis.
1863 * loop-unswitch.c (compare_and_jump_seq): New.
1864 (may_unswitch_on_p): Renamed to ...
1865 (may_unswitch_on): Use new iv analysis.
1866 (reversed_condition): Export.
1867 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
1868 * predict.c (estimate_probability): Use new simple loop analysis.
1869 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
1870 canon_condition, simplify_using_condition): Declare.
1871 * stor-layout.c (get_mode_bounds): New.
1872 * toplev.c (rest_of_handle_loop2): Some parts of
1873 initialization/finalization moved here from loop-init.c.
1874
1875 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
1876
1877 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
1878 pointer.
1879 (CALL_USED_REGISTERS): Likewise.
1880 (REG_ALLOC_ORDER): Likewise.
1881 (REG_CLASS) <GENERAL_REGS>: Likewise.
1882
1883 2004-02-16 Geoffrey Keating <geoffk@apple.com>
1884
1885 * doc/md.texi (Insn Canonicalizations): Document left-chaining
1886 in associative operators.
1887 * rtlanal.c (commutative_operand_precedence): Create some new
1888 variables. Prefer a commutative operand on the left, then
1889 binary expressions, then NEG and NOT.
1890
1891 2004-02-16 Matthias Klose <doko@debian.org>
1892
1893 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
1894 in terms of SHLIB_SOVERSION.
1895 * config/m68k/t-slibgcc-elf-ver: New file.
1896 * config/pa/t-slibgcc-elf-ver: New file.
1897 * config.gcc (m68k-linux, parisc-linux): Use them when not
1898 sjlj exceptions are not configured.
1899
1900 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1901
1902 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
1903
1904 2004-02-16 Zack Weinberg <zack@codesourcery.com>
1905
1906 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
1907
1908 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
1909
1910 * doc/sourcebuild.texi: Mention backends.html.
1911
1912 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
1913
1914 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
1915 line-map.c, line-map.h, var-tracking.c: Fix comment
1916 formatting.
1917
1918 2004-02-16 Richard Henderson <rth@redhat.com>
1919
1920 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
1921
1922 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
1923
1924 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
1925
1926 * config/h8300/h8300.md: Remove unnecessary parallels from
1927 all define_insn and define_split patterns.
1928
1929 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
1930
1931 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
1932 "clobber").
1933
1934 2004-02-15 Bernardo Innocenti <bernie@develer.com>
1935
1936 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
1937 '%#'.
1938
1939 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
1940
1941 * config/ia64/ia64.c, config/mips/mips.c,
1942 config/mmix/mmix-modes.def: Fix comment typos.
1943
1944 2004-02-15 Roger Sayle <roger@eyesopen.com>
1945
1946 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
1947 (get_directive_line): Remove unused function prototype.
1948
1949 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
1950
1951 * tree-inline.c (copy_body_r): Do not replace ret_label.
1952
1953 2004-02-14 Jan Hubicka <jh@suse.cz>
1954
1955 * i386.c (x86_four_jump_limit): New variable.
1956 (k8_avoid_jump_misspredicts): Rename to ...
1957 (ix86_avoid_jump_misspredicts): .. this one.
1958 (ix86_pad_returns): Break out from ...
1959 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
1960 to.
1961 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
1962
1963 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
1964
1965 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
1966 PARALLEL is NULL.
1967
1968 2004-02-14 Per Bothner <per@bothner.com>
1969
1970 * fix-header.c (line_table): Move local variable in main to global.
1971 * scan.h (line_table): Use it.
1972 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
1973 line (recently renamed to src_loc) before calling recognized_function.
1974
1975 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
1976
1977 * Makefile.in: Fix comment typos.
1978
1979 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
1980
1981 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
1982 for start_value when it is directly moved into reg, and factorize
1983 the retrieval of GET_MODE (reg).
1984
1985 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1986
1987 * config/mips/mips-protos.h (mips_load_got_page): Delete.
1988 (mips_load_got_global): Delete.
1989 (mips_gotoff_page): Declare.
1990 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
1991 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
1992 UNSPEC_LOAD_GOT pattern rather than a MEM.
1993 (*load_got[sd]i): New patterns.
1994 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
1995 (mips_load_got_page, mips_load_got_global): Delete.
1996 (mips_gotoff_page): New function.
1997 (override_options): Don't initialize mips_got_alias_set.
1998
1999 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2000
2001 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
2002 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
2003 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
2004 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
2005 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
2006 * config/mips/mips.c: Fix some overly-long lines.
2007 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
2008 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
2009
2010 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2011
2012 * configure.ac: Search for as, ld below libexec/gcc.
2013 * configure: Regenerate.
2014
2015 2004-02-14 Ben Elliston <bje@wasabisystems.com>
2016
2017 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
2018 __builtin_arm_setwcx ().
2019 * config/arm/arm.c (arm_expand_builtin): Generate operands
2020 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
2021
2022 2004-02-14 Ben Elliston <bje@wasabisystems.com>
2023
2024 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
2025 and "wmuluh" to "wmulsm" and "wmulum", respectively.
2026 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
2027 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
2028 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
2029 (_mm_mulhi_pu16): Likewise.
2030
2031 2004-02-13 Zack Weinberg <zack@codesourcery.com>
2032
2033 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
2034 DECL_NAME != 0 before dereferencing.
2035
2036 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
2037
2038 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
2039 (s390_output_addr_const_extra): Declare.
2040 (s390_output_pool_entry): Remove FILE * argument.
2041 * config/s390/s390.c (s390_output_symbolic_const): Remove.
2042 (s390_output_addr_const_extra): New function.
2043 (print_operand_address): Call output_addr_const instead of
2044 s390_output_symbolic_const.
2045 (print_operand): Likewise.
2046 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
2047 Remove FILE * argument.
2048 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
2049 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
2050 call.
2051
2052 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2053
2054 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
2055 (struct edge, struct vertex, struct graph): New.
2056 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
2057 free_graph): New functions.
2058
2059 2004-02-12 Chris Demetriou <cgd@broadcom.com>
2060
2061 * config/mips/mips.md (casesi_internal, casesi_internal_di):
2062 Use ".set macro" to avoid warnings about multi-instruction
2063 macros, since they're intentional.
2064
2065 2004-02-12 Geoffrey Keating <geoffk@apple.com>
2066
2067 * config/darwin.h: Add include guards. Remove old, now incorrect,
2068 comment about STANDARD_EXEC_PREFIX.
2069
2070 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
2071 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
2072 for installing .1 manpages. Add rules for installing cpp
2073 and gcov manpages under their installed names.
2074
2075 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
2076
2077 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
2078 host, but try LD_FOR_TARGET first.
2079 * configure: Rebuilt.
2080
2081 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2082
2083 * dbxout.c: Move declaration of dbxout_type_decl outside
2084 #ifdef DBX_DEBUGGING_INFO.
2085 * c-parse.in: Don't give the asmdef production a type.
2086
2087 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2088
2089 * debug.h (struct gcc_debug_hooks): Add type_decl field.
2090 (debug_nothing_tree_int): Prototype.
2091 (dwarf_debug_hooks): Delete, unused.
2092 * debug.c (do_nothing_debug_hooks): Update.
2093 (debug_nothing_tree_int): New function.
2094 * langhooks.h (struct lang_hooks_for_decls):
2095 Remove builtin_type_decls field.
2096 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
2097 (LANG_HOOKS_DECLS): Update.
2098 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
2099 Use debug_hooks->type_decl.
2100 * dbxout.c (preinit_symbols): New static.
2101 (dbx_debug_hooks, xcoff_debug_hooks): Update.
2102 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
2103 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
2104 for symbols to output.
2105 (dbxout_type_decl): New function.
2106 (dbxout_symbol): If called before dbxout_init has run, queue
2107 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
2108 to TYPE_DECLs before emitting them.
2109 * xcoffout.c (assign_type_number): Delete.
2110 (xcoff_type_numbers): New static table.
2111 (xcoff_assign_fundamental_type_number): New function.
2112 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
2113 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
2114 * sdbout.c: Include varray.h.
2115 (deferred_global_decls): New static.
2116 (sdb_debug_hooks): Update.
2117 (sdbout_global_decl): If we can't emit something right now,
2118 remember it in deferred_global_decls.
2119 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
2120 (sdbout_init): Initialize deferred_global_decls.
2121 * Makefile.in: Update dependencies of sdbout.o.
2122 * dwarf2out.c (dwarf2out_type_decl): New function.
2123 (dwarf2_debug_hooks): Update.
2124 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
2125 * c-decl.c (getdecls): Just return 0.
2126 (check_for_loop_decls): Don't use getdecls.
2127 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
2128 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
2129
2130 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
2131
2132 * config/s390/s390.c (s390_sched_reorder2): Remove.
2133 (TARGET_SCHED_REORDER2): Do not redefine.
2134
2135 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2136
2137 * c-parse.in (maybe_type_qual): Delete.
2138 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
2139 (asm_argument): New grammar rules.
2140 (extdef_1): Use asmdef.
2141 (maybeasm): Move down with other asm rules; use simple_asm_expr.
2142 (xexpr): Move up with other expression rules.
2143 (stmt): Use asm_stmt.
2144
2145 * c-typeck.c (build_asm_expr): New function - body mostly
2146 pulled from build_asm_stmt.
2147 (build_asm_stmt): Just handle tacking on the volatile qualifier.
2148 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
2149
2150 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
2151
2152 PR bootstrap/13617
2153 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
2154 (mips_declare_object): Make variadic.
2155 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
2156 mips_output_aligned_decl_common.
2157 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
2158 (mips_declare_object): Make variadic.
2159
2160 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2161
2162 * function.c (update_epilogue_consts): Teach about binary operations.
2163
2164 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
2165 previous MEM_VOLATILE in REF.
2166 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
2167 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
2168
2169 2004-02-12 Gunther Nikl <gni@gecko.de>
2170
2171 * config.gcc: Restore support for m68k-openbsd.
2172
2173 2004-02-12 Jan Hubicka <jh@suse.cz>
2174
2175 * tree-optimize.c (tree_rest_of_compilation): Do not release
2176 DECL_ARGUMENTS.
2177
2178 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
2179
2180 * doc/install.texi: Fix the spelling of "explicitly".
2181
2182 2004-02-11 Eric Christopher <echristo@redhat.com>
2183
2184 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
2185 duplicate argument structure of cpp_interpret_string.
2186 * cpphash.h: Move prototype...
2187 * cpplib.h: Here.
2188 * cpplib.c: Fix calls to match new function signature.
2189
2190 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
2191
2192 PR c/456
2193 * cppexp.c (num_binary_op): Don't allow comma operators in #if
2194 constant expressions at all outside C99 mode if pedantic.
2195
2196 2004-02-11 Uros Bizjak <uros@kss-loka.si>
2197
2198 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
2199 (log10_optab, log2_optab): Define corresponding macros.
2200 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
2201 * genopinit.c (optabs): Implement log10_optab and log2_optab
2202 using log10?f2 and log2?f2 patterns.
2203 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
2204 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
2205 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
2206 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2207
2208 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
2209 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
2210 log2, log2f and log2l built-ins as inline x87 intrinsics.
2211
2212 2004-02-11 Richard Henderson <rth@redhat.com>
2213
2214 PR target/1532
2215 * flow.c (insn_dead_p): A clobber of a dead hard register is a
2216 dead insn after reload.
2217
2218 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
2219
2220 * tree.h (frame_base_decl): Add GTY marker.
2221 * var-tracking.c (frame_base_decl): Likewise.
2222
2223 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
2224
2225 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
2226 incorrect, hunk.
2227 (add_location_or_const_value_attribute): Use text_section_label,
2228 not TEXT_SECTION_NAME.
2229
2230 2004-02-11 Per Bothner <per@bothner.com>
2231
2232 Represent column numbers using line-map's source_location.
2233 The "next available source_location" is now managed internally by
2234 line-maps.c rather than by clients.
2235 * line-map.h (struct line_map): New field column_bits.
2236 <from_line>: Rename field to start_location.
2237 (struct line_maps): New fields highest_location and max_column_hint.
2238 (linemap_check_files_exited): New declaration.
2239 (linemap_line_start): New declaration.
2240 (linemap_add): Remove from_line parameter; use highest_location field.
2241 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
2242 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
2243 (CURRENT_LINE_MAP): Remove macro.
2244 (linemap_position_for_column): New inline function.
2245 * line-map.c (linemap_init): Clear new fields.
2246 (linemap_check_files_exited): New function, extracted from ...
2247 (linemap_free): Use linemap_check_files_exited.
2248 (linemap_add): Remove from_line parameter. Various updates.
2249 (linemap_line_start): New function.
2250 (linemap_lookeup): Update for new field names.
2251 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
2252 linemap_position_for_column may unpredictably change the current map,
2253 it is cleaner and simpler for us to not cache it in cpp_reader.
2254 (struct cpp_buffer): New sysp field.
2255 Changed warned_cplusplus_comments and from_stage3 to bitfields.
2256 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
2257 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
2258 current map using linemap_lookup.
2259 (do_linemarker): Also set buffer's sysp field.
2260 (destringize_and_run): No longer need to decrement current line.
2261 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
2262 (search_path_head, open_file_failed): Use buffer's sysp.
2263 (cpp_make_system_header): Get current map using linemap_lookup.
2264 Also set buffer's sysp flag.
2265 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
2266 * cpphash.h (CPP_INCREMENT_LINE): New macro.
2267 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
2268 (struct cpp_reader): ... and adding saved_line_base field.
2269 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
2270 Update accordingly. Don't adjust line.
2271 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
2272 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
2273 (cpp_in_system_header): ... new inline function, using buffer's sysp.
2274 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
2275 * cpplex.c (_cpp_lex_direct): Likewise.
2276 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
2277 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
2278 * cpplib.h (struct cpp_token): Rename line field to src_loc.
2279 Remove col field as it is now subsumed by src_loc.
2280 * cpperror.c: Update various field, parameter, and macro names.
2281 (print_location): If col==0, try SOURCE_COLUMN of line.
2282 (cpp_error): Use cur_token's src_loc field, rather than line+col.
2283 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
2284 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
2285 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
2286 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
2287 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
2288 (_cpp_lex_direct): Use linemap_position_for_column.
2289 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
2290 parameter. Instead get it from the line_table global. Adjust callers.
2291 (print): Remove map field. Replace line field to src_line.
2292 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
2293 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
2294 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
2295 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
2296 * cpptrad.c (copy_comment): Rename variable.
2297 * c-lex.c (map): Remove static variable, for same reason we removed
2298 cpp_reader's map field.
2299 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
2300 to call linemap_lookup.
2301 (cb_line_change): Token's line field replaced by src_loc.
2302 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
2303 Don't save new_map.
2304
2305 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
2306 source_location.
2307
2308 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
2309
2310 * config/rs6000/altivec.md (*movv4si_internal): At least one
2311 operand must be register_operand.
2312 (*movv8hi_internal1): Likewise.
2313 (*movv16qi_internal1): Likewise.
2314 (*movv4sf_internal1): Likewise.
2315
2316 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
2317
2318 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
2319 operand.
2320 (movv4hi_internal): Same.
2321 (movv2sf_internal): Same.
2322 (movv1di_internal): Same.
2323
2324 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2325
2326 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
2327 TARGET_OLDABI consistently.
2328 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
2329 mips_va_arg,override_options,compute_frame_size,
2330 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
2331 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
2332 and TARGET_OLDABI consistently.
2333 * config/mips/mips.md (exception_receiver): Likewise.
2334 * config/mips/linux64.h: Likewise.
2335
2336 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
2337
2338 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
2339 Set AltiVec ABI and vrsave as default for ppc64 linux.
2340 (init_cumulative_args): Post error, if try to return
2341 value in AltiVec register without enable AltiVec.
2342 (function_arg_advance): Ditto for passing arguments.
2343
2344 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
2345
2346 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
2347 a label before updating its usage count.
2348
2349 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
2350
2351 * doc/install.texi: Remove extra cd.
2352
2353 2004-02-10 Ziemowit Laski <zlaski@apple.com>
2354
2355 * c-common.c (vector_size_helper): Remove; call
2356 reconstruct_complex_type() instead.
2357 * tree.c (reconstruct_complex_type): New function
2358 (formerly vector_size_helper() in c-common.c).
2359 (make_vector): Make externally visible.
2360 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
2361
2362 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
2363
2364 * config/h8300/h8300-protos.h: Add a prototype for
2365 h8300_regs_ok_for_stm.
2366 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
2367 * config/h8300/h8300.md (stm_h8300s_2_advanced,
2368 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
2369 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
2370 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
2371 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
2372 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
2373 ldm_h8300s_4_normal, ldm_h8300s_4): Use
2374 h8300_regs_ok_for_stm().
2375
2376 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
2377
2378 PR c/14088
2379 * real.c (real_from_string): Look for 'X' as well as 'x' in
2380 hexfloat strings.
2381
2382 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
2383
2384 * config/h8300/h8300.md: Remove an incorrect comment about
2385 peephole2. Add comments.
2386
2387 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
2388
2389 PR/14058
2390 * emit-rtl.c (set_decl_incoming_rtl): New.
2391 * tree.h (set_decl_incoming_rtl): New.
2392 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
2393 DECL_INCOMING_RTL.
2394 * ada/misc.c (adjust_decl_rtl): Likewise.
2395
2396 2004-02-10 Per Bothner <per@bothner.com>
2397
2398 * c-opts.c (c_common_post_options): Don't emit working directory
2399 in cpp output if -P was specified.
2400
2401 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
2402
2403 PR c/14092
2404 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
2405 negate_expr back to the original type.
2406
2407 2004-02-10 Alan Modra <amodra@bigpond.net.au>
2408
2409 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
2410 bump retaddr here.
2411
2412 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
2413
2414 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
2415 gen_lowpart_SUBREG): Move under the file in which they
2416 are actually declared.
2417
2418 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
2419
2420 * doc/sourcebuild.texi: Add libada documentation.
2421
2422 * doc/install.texi: Update documentation on Ada build, now
2423 that the GNAT lib and tools are built automatically.
2424
2425 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
2426
2427 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
2428 && TARGET_IRIX.
2429
2430 2004-02-09 Ziemowit Laski <zlaski@apple.com>
2431
2432 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
2433 boundaries outside build_component_ref() call (a macro in ObjC++).
2434
2435 2004-02-09 Bob Wilson <bob.wilson@acm.org>
2436
2437 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
2438 (init_cumulative_args): Likewise.
2439 (a7_overlap_mentioned_p): Delete prototype.
2440 * config/xtensa/xtensa.c (struct machine_function): Replace
2441 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
2442 Add set_frame_ptr_insn field.
2443 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
2444 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
2445 if the operand is an argument in a7. If so, copy a7 to a new pseudo
2446 at the function entry and replace the operand with the pseudo.
2447 (init_cumulative_args): Remove unused arguments. Add new "incoming"
2448 argument and record this flag in CUMULATIVE_ARGS.
2449 (function_arg): Remove result_mode and special-case code to handle
2450 arguments in a7. Instead, set need_a7_copy flag when there is an
2451 incoming argument in a7.
2452 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
2453 and use the value recorded in cfun->machine->set_frame_ptr_insn.
2454 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
2455 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
2456 special-case code.
2457 (a7_overlap_mentioned_p): Delete.
2458 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
2459 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
2460 arguments to init_cumulative_args and pass "incoming" flag instead.
2461 (BLOCK_REG_PADDING): Delete.
2462 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
2463 checks for reload_in_progress and reload_completed. Update calls to
2464 xtensa_copy_incoming_a7.
2465 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
2466 to call xtensa_copy_incoming_a7.
2467
2468 2004-02-09 DJ Delorie <dj@redhat.com>
2469
2470 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
2471 longer modify standard_exec_prefix, standard_bindir_prefix, or
2472 standard_startfile_prefix.
2473
2474 2004-02-09 James E Wilson <wilson@specifixinc.com>
2475
2476 PR c++/11295
2477 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
2478 to expand_expr_real call, and pass in alt_rtl as last argument.
2479
2480 PR libstdc++/5625
2481 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
2482 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
2483 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
2484 * except.c (expand_builtin_extend_pointer): New.
2485 * except.h (expand_builtin_extend_pointer): Declare.
2486
2487 2004-02-09 David Edelsohn <edelsohn@gnu.org>
2488
2489 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
2490 unaligned loads and stores.
2491
2492 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2493
2494 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
2495 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
2496
2497 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
2498 * config/mips/iris5.h: ... here.
2499 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
2500
2501 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
2502 * config/mips/iris5.h: ... here.
2503
2504 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2505
2506 * configure.ac: Remove default executable files before AC_PROG_CC.
2507 * configure: Regenerate.
2508
2509 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
2510
2511 PR target/13721
2512 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
2513 print a operand other than a register.
2514
2515 2004-02-09 Roger Sayle <roger@eyesopen.com>
2516
2517 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
2518 tree code rather than call fold_convert, which doesn't specify a
2519 default floating point to integer conversion.
2520
2521 2004-02-08 Bernardo Innocenti <bernie@develer.com>
2522
2523 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
2524 code to support SGS assembler. Reformat adjacent code where possible.
2525 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
2526 definition.
2527 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
2528 for '%#'.
2529 * config/m68k/linux.h, config/m68k/m68k.c,
2530 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
2531 macros and asm_printf() format strings.
2532 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
2533 * config/m68k/linux.h: Update copyright.
2534 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
2535
2536 2004-02-08 Andreas Schwab <schwab@suse.de>
2537 Bernardo Innocenti <bernie@develer.com>
2538
2539 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
2540 REGISTER_PREFIX.
2541 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
2542 frame pointer register, overridable by OS targets.
2543 * (M68K_REGNAME): Macro to obtain register name for asm output,
2544 eventually replacing %a6 with M68K_FP_REG_NAME.
2545 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
2546 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
2547 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
2548 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
2549 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
2550
2551 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
2552
2553 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
2554 hook_rtx_tree_int_null.
2555 * targhooks.c (default_struct_value_rtx): Remove.
2556 * targhooks.h: Remove the prototype for
2557 default_struct_value_rtx.
2558 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
2559 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
2560 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
2561 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
2562 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
2563 config/rs6000/rs6000.c, config/s390/s390.c,
2564 config/stormy16/stormy16.c, config/v850/v850.c,
2565 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
2566 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
2567
2568 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
2569
2570 * README.Portability: Change "ISO C89" to "ISO C90".
2571 * c-parse.in (primary, initelt): Likewise.
2572
2573 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
2574
2575 * real.c (encode_ibm_extended): Normalize the input value before
2576 converting it to a double. Handle the case where a normal value
2577 rounds to infinity.
2578
2579 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
2580
2581 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
2582 warning.
2583 * cse.c (preferrable): Change to preferable. Update all of its
2584 callers.
2585 * genautomata.c (ainsn): Change
2586 first_ainsn_with_given_equialence_num to
2587 first_ainsn_with_given_equivalence_num. Update all of its
2588 references.
2589
2590 2004-02-08 Jan Hubicka <jh@suse.cz>
2591
2592 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
2593
2594 2004-02-07 David Edelsohn <edelsohn@gnu.org>
2595
2596 * function.c (assign_parms): Fix formatting.
2597
2598 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
2599
2600 * default.h (PROMOTE_PROTOTYPES): Remove.
2601 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
2602 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
2603 EXPAND_BUILTIN_SAVEREGS): Poison.
2604 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
2605 hook_bool_tree_false.
2606 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2607 * target.h: Replace SETUP_INCOMING_VARARGS with
2608 targetm.calls.setup_incoming_varargs().
2609 * targhooks.c (default_promote_function_return): Remove.
2610 (default_promote_prototypes): Likewise.
2611 (default_struct_value_rtx): Always abort().
2612 (default_expand_builtin_saveregs): Always print an error
2613 message.
2614 (default_setup_incoming_varargs): Do nothing.
2615 (default_pretend_outgoing_varargs_named): Don't depend on
2616 SETUP_INCOMING_VARARGS.
2617 * targhooks.h: Remove the prototype for
2618 default_promote_function_return and
2619 default_promote_prototypes.
2620
2621 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
2622
2623 * system.h (SHARED_SECTION_ASM_OP): Poison.
2624 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
2625 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
2626
2627 2004-02-07 Zack Weinberg <zack@codesourcery.com>
2628
2629 Bug 13856
2630 * c-decl.c (diagnose_mismatched_decls): Only give special
2631 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
2632 is also true.
2633 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
2634 DECL_FUNCTION_CODE when defining a built-in function.
2635 Don't update DECL_ESTIMATED_INSNS.
2636 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
2637 FUNCTION_DECLs.
2638 * tree.h: Delete DECL_ESTIMATED_INSNS.
2639 * tree-inline.c (struct inline_data): Delete inlined_insns field.
2640 (expand_call_inline, optimize_inline_calls): Don't update
2641 DECL_ESTIMATED_INSNS nor inlined_insns.
2642 * cgraphunit.c (cgraph_analyze_function): Don't update
2643 DECL_ESTIMATED_INSNS.
2644
2645 2004-02-07 Zack Weinberg <zack@codesourcery.com>
2646
2647 * c-common.c (shadow_warning): Delete.
2648 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
2649 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
2650 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
2651 * c-parse.in (free_parser_stacks): Delete.
2652
2653 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
2654
2655 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
2656 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
2657 Use the top level mkinstalldirs, not the one in the gcc subdir.
2658 * mkinstalldirs: Remove (from the gcc subdir).
2659
2660 2004-02-07 Roger Sayle <roger@eyesopen.com>
2661
2662 PR middle-end/13696
2663 * fold-const.c (fold_convert): New function to provide type
2664 conversion to the middle-end without using convert.
2665 (negate_expr, associate_trees, size_diffop, omit_one_operand,
2666 operand_equal_for_comparison_p, pedantic_omit_one_operand,
2667 invert_truthvalue, optimize_bit_field_compare, range_binop,
2668 decode_field_reference, make_range, build_range_check, unextend,
2669 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
2670 fold_binary_op_with_conditional_arg, fold_inf_compare,
2671 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
2672 convert with calls to fold_convert.
2673
2674 2004-02-07 Jan Hubicka <jh@suse.cz>
2675
2676 * genrecog.c (find_operand): add extra argument stop.
2677 (validate_pattern): Verify that mach_dup is duplicating operand
2678 defined lexically earlier.
2679
2680 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
2681
2682 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
2683 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
2684 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
2685 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2686 config/ia64/ia64.h, config/ip2k/ip2k.h,
2687 config/iq2000/iq2000.h, config/mips/iris5.h,
2688 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
2689 config/rs6000/aix51.h, config/rs6000/aix52.h,
2690 config/rs6000/darwin.h, config/rs6000/rs6000.h,
2691 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
2692 config/sparc/linux.h, config/sparc/linux64.h,
2693 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
2694 config/xtensa/xtensa.h: Remove the definitions of
2695 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
2696 MAX_WCHAR_TYPE_SIZE.
2697 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
2698 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
2699
2700 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
2701
2702 PR bootstrap/13990
2703 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
2704 gen_rtx_NE.
2705
2706 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
2707
2708 * var-tracking.c (vt_add_function_parameters): Surround checkings by
2709 #ifdef ENABLE_CHECKING and #endif.
2710
2711 2004-02-07 Roger Sayle <roger@eyesopen.com>
2712
2713 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
2714 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
2715 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
2716 integer types and floating point with unsafe_math_optimizations.
2717 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
2718 Optimize A - B as A + (-B), if B is easily negated.
2719
2720 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
2721
2722 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
2723 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
2724 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
2725 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
2726 Update copyright.
2727
2728 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
2729
2730 * c-ppoutput.c, var-tracking.c: Fix comment typos.
2731
2732 2004-02-06 James E Wilson <wilson@specifixinc.com>
2733
2734 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
2735 glibc 2.3 or better.
2736
2737 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
2738
2739 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
2740 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
2741
2742 2004-02-07 Alan Modra <amodra@bigpond.net.au>
2743
2744 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
2745 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
2746 (SHLIB_MKMAP_OPTS): Delete.
2747 (TARGET_LIBGCC2_CFLAGS): Add -specs.
2748 (bispecs): Add rule.
2749 * config/rs6000/libgcc-ppc64.ver: New file.
2750 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
2751 (__floatdidf, __floatdisf): Optimize multiply.
2752 (__fixunstfdi): New function.
2753 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
2754 real and imag parts larger than one register.
2755 (function_arg): Correct type of reg used when fp arg split partially
2756 to stack.
2757 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
2758 and __MACH__ or __powerpc64__.
2759
2760 2004-02-06 Roger Sayle <roger@eyesopen.com>
2761 Ulrich Weigand <uweigand@de.ibm.com>
2762
2763 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
2764 of gen_highpart or gen_lowpart when the floating point format is
2765 wider than the result mode.
2766
2767 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
2768
2769 * dwarf2out.c (loclabel_num): Move into #ifdef
2770 DWARF2_DEBUGGING_INFO.
2771
2772 2004-02-06 Ziemowit Laski <zlaski@apple.com>
2773
2774 * objc/objc-act.c (build_super_template) the 'class' field of
2775 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
2776 (get_super_receiver): Likewise.
2777
2778 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
2779
2780 * reload1.c (check_eliminable_occurrences): Optimize the reset
2781 of can_eliminate.
2782 (eliminate_regs_in_insn): Likewise.
2783
2784 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
2785 Josef Zlomek <zlomekj@suse.cz>
2786
2787 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
2788 at the beginning of function, call dwarf2out_var_location for
2789 NOTE_INSN_VAR_LOCATION note.
2790 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
2791 decl_loc_table): New.
2792 (lookup_decl_loc): New function.
2793 (add_var_loc_to_decl): New function.
2794 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
2795 only if can_use_fbreg.
2796 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
2797 functions.
2798 (loc_descriptor): Likewise. Process VAR_LOCATION.
2799 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
2800 (loc_descriptor_from_tree): Call mem_loc_descriptor with
2801 can_use_fbreg == true.
2802 (add_location_or_const_value_attribute): Added parameter enum
2803 dwarf_attribute attr, generate attribute ATTR. Create the location list.
2804 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
2805 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
2806 with attr == DW_AT_location.
2807 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
2808 if frame_base_decl is defined and has a location list.
2809 (gen_variable_die): Call add_location_or_const_value_attribute with
2810 attr == DW_AT_location.
2811 (dwarf2out_var_location): New function.
2812 (dwarf2out_begin_function): New function.
2813 (dwarf2out_init): Create decl_loc_table.
2814
2815 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2816
2817 * loop.c (force_movables): Transitively increase the priorities of
2818 all insns forces by an insn, not just the first one.
2819
2820 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
2821 Daniel Berlin <dberlin@dberlin.org>
2822
2823 Josef Zlomek <zlomekj@suse.cz>
2824 * Makefile.in (var-tracking.o): New.
2825 * common.opt (fvar-tracking): New.
2826 * flags.h (flag_var_tracking): New.
2827 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
2828 * opts.c (common_handle_option): Add OPT_fvar_tracking.
2829 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
2830 * rtl.c (note_insn_name): Likewise.
2831 * rtl.def (VAR_LOCATION): New.
2832 * rtl.h (NOTE_VAR_LOCATION): New.
2833 (NOTE_VAR_LOCATION_DECL): New.
2834 (NOTE_VAR_LOCATION_LOC): New.
2835 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
2836 (variable_tracking_main): New exported function.
2837 * timevar.def (TV_VAR_TRACKING): New.
2838 * toplev.c (enum dump_file_index): Added DFI_vartrack.
2839 (dump_file): "vartrack" was added (-dV).
2840 (flag_var_tracking): New.
2841 (f_options): "var-tracking" was added.
2842 (rest_of_handle_variable_tracking): New function.
2843 (rest_of_compilation): Run variable tracking.
2844 (process_options): If user has not specified flag_var_tracking set it
2845 according to optimize, debug_info_level and debug_hooks.
2846 * tree.h (frame_base_decl): New.
2847 * var-tracking.c: New file.
2848 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
2849 (ia64_override_options): Set flags to run variable tracking in machine
2850 dependent reorg instead of toplev.c.
2851 (ia64_reorg): Run variable tracking if wanted.
2852 * doc/invoke.texi: Mention variable tracking in -dV,
2853 add and -fvar-tracking.
2854 * doc/passes.texi: Added variable tracking pass.
2855
2856 Daniel Berlin <dberlin@dberlin.org>
2857 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
2858 * dbxout.c (dbx_debug_hooks): Likewise.
2859 (xcoff_debug): Likewise.
2860 * debug.c (do_nothing_debug_hooks): Likewise.
2861 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2862 * dwarfout.c (dwarf_debug_hooks): Likewise.
2863 * sdbout.c (sdb_debug_hooks): Likewise.
2864 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2865 * final.c (final_scan_insn): Call var_location debug hook for each
2866 NOTE_INSN_VAR_LOCATION.
2867
2868 2004-02-06 Jan Hubicka <jh@suse.cz>
2869
2870 * flow.c (update_life_info): Allocate reg_deaths when called from
2871 scheudler.
2872 (attempt_auto_inc): Update life ranges accordingly.
2873
2874 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2875
2876 PR debug/11816
2877 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
2878
2879 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2880
2881 * cfganal.c (flow_call_edges_add): Never split a libcall block.
2882
2883 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
2884
2885 * dwarf2out.c (output_loc_list): Don't use deltas if we have
2886 a separate line info table in use.
2887 Use the correct size for terminators.
2888 (output_die): Use offset, not delta.
2889
2890 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
2891
2892 * doc/invoke.texi: Remove the pni option from -mfpmath=.
2893
2894 2004-02-06 Jan Hubicka <jh@suse.cz>
2895
2896 * recog.c (split_all_insns): Do not update reg info.
2897 * regrename.c (regrename_optimize): Likewise.
2898 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
2899 * flow.c (struct propagate_block_info): Add insn_num field.
2900 (reg_deaths): New array.
2901 (life_analysis): Free reg_deaths info.
2902 (allocate_reg_life_data): Allocate reg_deaths array.
2903 (propagate_one_insn): Use new array.
2904 (init_propagate_block): Initialize it.
2905 (free_propagate_block_info): Finish compuation of
2906 REG_LIVE_LENGTH
2907 (attempt_auto_inc): Sanity check that REG_INFO is not
2908 computed at same time.
2909 (mark_used_regs): Update new array.
2910
2911 * reg-stack.c (subst_stack_regs): Unshare clobbers before
2912 substitution.
2913
2914 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
2915
2916 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
2917 *extendqisi2_short_displ.
2918
2919 2004-02-06 Alan Modra <amodra@bigpond.net.au>
2920
2921 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
2922 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
2923 (emit_library_call_value_1): Likewise pass nargs.
2924 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
2925 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
2926 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
2927 parameter instead of scanning TYPE_ARGS_TYPES to count args.
2928 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
2929 prototype.
2930 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
2931 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
2932 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
2933 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
2934 INIT_CUMULATIVE_ARGS.
2935 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
2936 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
2937 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
2938 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
2939 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
2940 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
2941 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
2942 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
2943 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
2944 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
2945 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
2946 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
2947
2948 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
2949
2950 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
2951 possible.
2952
2953 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
2954
2955 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
2956 note containing (plus (reg) (const_int)), where reg is an
2957 eliminable reg, then perform the register elimination without
2958 depending on eliminate_regs().
2959
2960 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
2961
2962 * config/arc/arc.c (arc_return_in_memory): Check the return
2963 value of int_size_in_bytes against -1. Don't check
2964 TREE_ADDRESSABLE.
2965 * config/avr/avr.c (avr_return_in_memory): Check the return
2966 value of int_size_in_bytes against -1.
2967 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
2968 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
2969 Likewise.
2970 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
2971 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
2972 Likewise.
2973
2974 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
2975
2976 * config/frv/frv-protos.h: Remove the prototype for
2977 frv_setup_incoming_varargs.
2978 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
2979 (frv_setup_incoming_varargs): Make it static.
2980 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
2981
2982 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
2983
2984 * config/fr30/fr30-protos.h: Remove the prototype for
2985 fr30_setup_incoming_varargs.
2986 Update the prototypes for fr30_num_arg_regs and
2987 fr30_function_arg_partial_nregs.
2988 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
2989 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2990 (fr30_setup_incoming_varargs): Make it static.
2991 Add argument second_time. Don't do anything when second_time
2992 is nonzero.
2993 (fr30_num_arg_regs): Change the type of the first argument to
2994 enum machine_mode.
2995 (fr30_function_arg_partial_nregs): Change the type of the
2996 second argument to enum machine_mode.
2997 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
2998 (SETUP_INCOMING_VARARGS): Remove.
2999
3000 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
3001
3002 * config/arc/arc-protos.h: Remove the prototype for
3003 arc_setup_incoming_varargs.
3004 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
3005 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3006 (arc_setup_incoming_varargs): Make it static.
3007 (arc_external_libcall): Likewise.
3008 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
3009 Remove the commented-out definition of
3010 ASM_OUTPUT_EXTERNAL_LIBCALL.
3011
3012 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3013
3014 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
3015 to $$(slibdir) in the installation commands.
3016
3017 2004-02-05 David Edelsohn <edelsohn@gnu.org>
3018
3019 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
3020 with inner_regno, not regno.
3021 * rtlanal.c (refers_to_regno_p): Same.
3022
3023 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3024
3025 * config.gcc: Remove i370 support.
3026
3027 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
3028
3029 * doc/install.texi: Update automake and autoconf version
3030 requirements. Note where to find gcj automake version.
3031
3032 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
3033
3034 * Makefile.in (generate-manpages): Move dependencies to ...
3035 (man): here.
3036 * doc/makefile.texi: Document new targets.
3037 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
3038
3039 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
3040
3041 PR/13485
3042 Makefile.in (srcextra): Add a level of indirection to ...
3043 (gcc.srcextra): ... here.
3044 (po-generated): Delete.
3045 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
3046 options.c.
3047 (start.encap): Remove superfluous lang.srcextra dependency.
3048 objc/Make-lang.in (po-generated): Delete.
3049
3050 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3051
3052 * config/ia64/ia64.c (REG_GP): Remove.
3053
3054 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3055
3056 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
3057
3058 2004-02-05 Devang Patel <dpatel@apple.com>
3059
3060 * dwarf2out.c (force_type_die): Look up input type itself
3061 instead of root_type() of type.
3062
3063 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
3064
3065 * config/s390/s390.md ("*tmqidi_ext"): New insn.
3066 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
3067 pre-reload splitters are transformed to post-reload
3068 define_insn_and_split patterns.
3069 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
3070
3071 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3072
3073 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
3074 TARGET_PROMOTE_PROTOTYPES.
3075
3076 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3077
3078 PR middle-end/13750
3079 Revert:
3080 2004-01-15 Geoffrey Keating <geoffk@apple.com>
3081 PR pch/13361
3082 * c-typeck.c (constructor_asmspec): Delete.
3083 (struct initializer_stack): Delete field 'asmspec'.
3084 (start_init): Delete saving of asmspec.
3085 (finish_init): Don't update constructor_asmspec.
3086 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
3087 * stmt.c (expand_asm): Duplicate strings from tree.
3088 (expand_asm_operands): Likewise.
3089 * tree.c (tree_size): Update computation of size of STRING_CST.
3090 (make_node): Don't make STRING_CST nodes.
3091 (build_string): Allocate string with tree node.
3092 * tree.def (STRING_CST): Update comment.
3093 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
3094 (tree_string): Place contents of string in tree node.
3095 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
3096 from tree.
3097
3098 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
3099
3100 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
3101 msgid.
3102
3103 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
3104
3105 * config/rs6000/altivec.md (*movv4si_internal): At least one
3106 operand must be altivec_register_operand.
3107 (*movv8hi_internal1): Likewise.
3108 (*movv16qi_internal1): Likewise.
3109 (*movv4sf_internal1): Likewise.
3110
3111 2004-02-05 David Edelsohn <edelsohn@gnu.org>
3112
3113 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
3114 * configure: Regenerate.
3115
3116 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
3117
3118 * doc/install.texi: Update description of --gxx-include-dir to
3119 give correct default value.
3120
3121 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3122
3123 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
3124 8 with MAC_REG.
3125
3126 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3127
3128 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
3129 gen_rtx_PARALLEL.
3130
3131 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3132
3133 * emit-rtl.c: Update the comment about the file.
3134
3135 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
3136
3137 * sourcebuild.texi (Test Idioms): Update testcase naming
3138 conventions.
3139
3140 2004-02-04 Per Bothner <per@bothner.com>
3141
3142 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
3143 * c-ppoutput.c (pp_dir_change): New function.
3144 * c-common.h (pp_dir_change): New declaration.
3145 * cpplib.h (struct cpp_options): Remove working_directory field.
3146 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
3147 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
3148 Don't handle -fworking_directory here, but in c_common_post_options.
3149 (read_original_directory): Don't back up when done.
3150 Don't clear no-longer used working_directory flag.
3151 * cpplib.h: Update declarations to match.
3152 * c-lex.c (cb_dir_change): Move to c-opts.c.
3153 (init_c_lex): Don't set dir_change callback here, since we want
3154 to set it even if flag_preprocess_only.
3155 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
3156 (c_common_post_options): Set dir_change callback.
3157 Call pp_dir_change if approporiate.
3158 (finish_options): Don't call cpp_find_main_file here. Hence remove
3159 unneeded parameter and result. Do LC_RENAME for <built-in>.
3160 (c_common_post_options): Call cpp_read_main_file here instead.
3161 (c_common_init): Update accordingly.
3162 (push_command_line_include): Don't cpp_push_main_file.
3163 Do LC_RENAME rather than LC_LEASE to get back to main file.
3164 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
3165 (c_common_parse_file): Call cpp_read_main_file for subsequent main
3166 files, but call finish_options for all files.
3167 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
3168 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
3169 cpp_find_main_file + cpp_push_main_file.
3170 * c-lex.c (fe_file_change): Don't set main_input_filename here.
3171 * opts.c (handle_options): Only set main_input_filename first time.
3172
3173 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
3174
3175 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
3176
3177 2004-02-04 Geoffrey Keating <geoffk@apple.com>
3178
3179 * reload.c (find_equiv_reg): When checking for register overlap,
3180 don't index hard_regno_nregs with a pseudo-reg.
3181
3182 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3183
3184 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
3185
3186 2004-02-04 David Edelsohn <edelsohn@gnu.org>
3187
3188 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
3189 against FIRST_PSEUDO_REGISTER.
3190
3191 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3192
3193 * Makefile.in: Move target, host overrides after per-language
3194 fragments.
3195
3196 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
3197 (GNATLIBCFLAGS): Remove -g.
3198
3199 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3200
3201 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
3202 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
3203 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
3204 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
3205 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
3206 config/sparc/sparc.c, config/vax/vax.c: Revert the
3207 replacements of "FALLTHRU" with "Fall through" done in the
3208 previous patch.
3209
3210 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3211
3212 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
3213 config/arm/arm.c, config/arm/arm.md,
3214 config/cris/cris-protos.h, config/fr30/fr30.c,
3215 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
3216 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
3217 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
3218 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
3219 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
3220 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
3221 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
3222 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
3223 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
3224 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
3225 config/s390/s390.md, config/sparc/netbsd-elf.h,
3226 config/sparc/openbsd.h, config/sparc/sparc.c,
3227 config/xtensa/lib2funcs.S: Fix comment formatting.
3228
3229 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3230
3231 * config/alpha/alpha.c, config/arc/arc.c,
3232 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
3233 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
3234 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
3235 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
3236 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
3237 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
3238 config/iq2000/iq2000.c, config/m32r/m32r.c,
3239 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
3240 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
3241 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
3242 config/rs6000/rs6000.h, config/sparc/sparc.c,
3243 config/vax/vax.c: Fix comment typos. Follow spelling
3244 conventions.
3245
3246 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3247
3248 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
3249 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
3250 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
3251 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
3252 config/arm/fpa.md, config/arm/iwmmxt.md,
3253 config/arm/netbsd-elf.h, config/arm/netbsd.h,
3254 config/m68hc11/m68hc11.md, config/mips/iris5.h,
3255 config/mn10300/mn10300.md, config/rs6000/altivec.md,
3256 config/sparc/netbsd-elf.h: Update copyright.
3257
3258 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3259
3260 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
3261 for all modes whose size is greater than 8 bytes if ARCH32.
3262 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
3263 by reference if ARCH32.
3264
3265 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
3266
3267 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
3268
3269 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3270
3271 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
3272 to before adddi3 insn patterns.
3273 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
3274 "reload_insi"): Move to before addsi3 insn patterns.
3275
3276 2004-02-04 Mark Mitchell <mark@codesourcery.com>
3277
3278 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
3279 parameter. Use it instead of current_function_is_thunk.
3280 * function.h (struct function): Update documentation for is_thunk.
3281 * tree.h (CALL_FROM_THUNK_P): New macro.
3282 * config/alpha/alpha.c (alpha_sa_mask): Do not check
3283 no_new_pseudos when testing current_function_is_thunk.
3284 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
3285
3286 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3287
3288 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
3289 TARGET_SETUP_INCOMING_VARARGS.
3290
3291 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3292
3293 * emit-rtl.c (gen_rtx): Remove.
3294 * genattrtab.c: Don't mention gen_rtx in a comment.
3295 * rtl.h: Remove the prototype for gen_rtx.
3296 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
3297
3298 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3299
3300 * config/arc/arc.h, config/fr30/fr30.h
3301 (SETUP_INCOMING_VARARGS): Remove the target-independent
3302 comments.
3303 * doc/tm.texi: Don't mention deprecated target macros.
3304
3305 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3306
3307 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
3308 target-independent comment.
3309
3310 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3311
3312 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
3313 mention deprecated target macros.
3314
3315 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
3316
3317 * config.gcc: Remove obsolete ports and configurations.
3318 * config/linux-aout.h, config/netware.h,
3319 config/t-linux-gnulibc1, config/d30v/abi,
3320 config/d30v/d30v-protos.h, config/d30v/d30v.c,
3321 config/d30v/d30v.h, config/d30v/d30v.md,
3322 config/d30v/libgcc1.asm, config/d30v/t-d30v,
3323 config/dsp16xx/dsp16xx-modes.def,
3324 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
3325 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
3326 config/i370/README, config/i370/i370-c.c,
3327 config/i370/i370-protos.h, config/i370/i370.c,
3328 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
3329 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
3330 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
3331 config/i386/moss.h, config/i386/netware.h,
3332 config/i386/svr3.ifile, config/i386/svr3dbx.h,
3333 config/i386/svr3gas.h, config/i386/svr3z.ifile,
3334 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
3335 config/i960/i960-c.c, config/i960/i960-coff.h,
3336 config/i960/i960-modes.def, config/i960/i960-protos.h,
3337 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
3338 config/i960/rtems.h, config/i960/t-960bare,
3339 config/m68k/hp310.h, config/m68k/hp320.h,
3340 config/m68k/hp320base.h, config/m68k/m68kv4.h,
3341 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
3342 Remove.
3343 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
3344 doc/md.texi: Remove mentions of obsolete ports.
3345
3346 2004-02-04 Jan Hubicka <jh@suse.cz>
3347
3348 * alias.c (find_base_term, get_addr): Do not dereference NULL
3349 pointer when all VALUE's locations has been invalidated.
3350 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
3351
3352 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
3353
3354 * doc/invoke.texi (x86 options): Fix spelling/wording.
3355
3356 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
3357
3358 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
3359 put the original string in a comment.
3360 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
3361 * config/mips/mips.c (mips_output_ascii): Likewise.
3362 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
3363
3364 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
3365
3366 * system.h (GIV_SORT_CRITERION): Poison.
3367 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
3368 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
3369
3370 2004-02-03 Roger Sayle <roger@eyesopen.com>
3371
3372 PR target/9348
3373 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
3374 multiplies with a multiplication of the wrong signedness, its the
3375 signedness of the multiplication that we've performed that needs to
3376 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
3377 if expand_mult_highpart_adjust places the result in target.
3378
3379 2004-02-03 Richard Henderson <rth@redhat.com>
3380
3381 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
3382
3383 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
3384
3385 * config.gcc (sh[234]l): Use little endian fragments.
3386
3387 2004-02-03 Paul Koning <pkoning@equallogic.com>
3388
3389 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
3390 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
3391 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
3392 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
3393 floating point format.
3394 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
3395 the above functions.
3396 (output_move_quad): Output float values in correct target format.
3397 (legitimate_const_double_p): New function.
3398 * config/pdp11/pdp11.h: Fix typos.
3399 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
3400 (TARGET_FLOAT_FORMAT): Ditto.
3401 (pdp11_f_format, pdp11_d_format): Add external declarations.
3402 (MAX_REGS_PER_ADDRESS): Corrected.
3403 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
3404 (PRINT_OPERAND): Output float literals in target format.
3405
3406 2004-02-03 Mark Mitchell <mark@codesourcery.com>
3407
3408 PR c++/13975
3409 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
3410 TI_PRIVATE.
3411 (access_public_node): Redefine.
3412 (access_protected_node): Likewise.
3413 (access_private_node): Likewise.
3414 * tree.c (build_common_tree_nodes): Create access_public_node,
3415 access_protected_node, and access_private_node.
3416
3417 2004-02-03 Steve Ellcey <sje@cup.hp.com>
3418
3419 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
3420 (MASK_INLINE_INT_DIV_THR): Ditto.
3421 (MASK_INLINE_SQRT_LAT): Ditto.
3422 (MASK_INLINE_SQRT_THR): Ditto.
3423 (MASK_DWARF2_ASM): Ditto.
3424 (MASK_EARLY_STOP_BITS): Ditto.
3425
3426 2004-02-02 Paul Brook <paul@codesourcery.com>
3427
3428 Merge from csl-arm-branch.
3429
3430 2004-01-30 Paul Brook <paul@codesourcery.com>
3431
3432 * aof.h (REGISTER_NAMES): Add vfp reg names
3433 (ADDITIONAL_REGISTER_NAMES): Ditto.
3434 * aout.h (REGISTER_NAMES): Ditto.
3435 (ADDITIONAL_REGISTER_NAMES): Ditto.
3436 * arm-protos.h: Update/Add Prototypes.
3437 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
3438 Only allow 0.0 for VFP.
3439 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
3440 (values_fp): Rename from values_fpa. Update Users.
3441 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
3442 Update users. Only check valid constants for this hardware.
3443 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
3444 Only allow consts for FPA.
3445 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
3446 Only allow consts for FPA.
3447 (use_return_insn): Check for saved VFP regs.
3448 (arm_legitimate_address_p): Handle VFP DFmode addressing.
3449 (arm_legitimize_address): Ditto.
3450 (arm_general_register_operand): New function.
3451 (vfp_mem_operand): New function.
3452 (vfp_compare_operand): New function.
3453 (vfp_secondary_reload_class): New function.
3454 (arm_float_compare_operand): New function.
3455 (vfp_print_multi): New function.
3456 (vfp_output_fstmx): New function.
3457 (vfp_emit_fstm): New function.
3458 (arm_output_epilogue): Output VPF reg restore code.
3459 (arm_expand_prologue): Output VFP reg save code.
3460 (arm_print_operand): Add 'P'.
3461 (arm_hard_regno_mode_ok): Return modes for VFP regs.
3462 (arm_regno_class): Return classes for VFP regs.
3463 (arm_compute_initial_elimination_offset): Include space for VFP regs.
3464 (arm_get_frame_size): Ditto.
3465 * arm.h (FIXED_REGISTERS): Add VFP regs.
3466 (CALL_USED_REGISTERS): Ditto.
3467 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
3468 (FIRST_VFP_REGNUM): Define.
3469 (LAST_VFP_REGNUM): Define.
3470 (IS_VFP_REGNUM): Define.
3471 (FIRST_PSEUDO_REGISTER): Include VFP regs.
3472 (HARD_REGNO_NREGS): Handle VFP regs.
3473 (REG_ALLOC_ORDER): Add VFP regs.
3474 (enum reg_class): Add VFP_REGS.
3475 (REG_CLASS_NAMES): Ditto.
3476 (REG_CLASS_CONTENTS): Ditto.
3477 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
3478 (REG_CLASS_FROM_LETTER): Add 'w'.
3479 (EXTRA_CONSTRAINT_ARM): Add 'U'.
3480 (EXTRA_MEMORY_CONSTRAINT): Define.
3481 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
3482 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
3483 (REGISTER_MOVE_COST): Ditto.
3484 (PREDICATE_CODES): Add arm_general_register_operand,
3485 arm_float_compare_operand and vfp_compare_operand.
3486 * arm.md (various): Rename as above.
3487 (divsf3): Enable when TARGET_VFP.
3488 (divdf3): Ditto.
3489 (movdfcc): Ditto.
3490 (sqrtsf2): Ditto.
3491 (sqrtdf2): Ditto.
3492 (arm_movdi): Disable when TARGET_VFP.
3493 (arm_movsi_insn): Ditto.
3494 (movsi): Only split with general regs.
3495 (cmpsf): Use arm_float_compare_operand.
3496 (push_fp_multi): Restrict to TARGET_FPA.
3497 (vfp.md): Include.
3498 * vfp.md: New file.
3499 * fpa.md (various): Rename as above.
3500 * doc/md.texi: Document ARM w and U constraints.
3501
3502 2004-01-15 Paul Brook <paul@codesourcery.com>
3503
3504 * config.gcc: Add with_fpu. Allow with-float=softfp.
3505 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
3506 Break out of loop when we find a float-abi. Fix typo.
3507 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
3508 Set -mfloat-abi=.
3509 * doc/install.texi: Document --with-fpu.
3510
3511 2003-01-14 Paul Brook <paul@codesourcery.com>
3512
3513 * config.gcc (with_arch): Add armv6.
3514 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
3515 * config/arm/arm.c (arm_overrride_options): Ditto.
3516
3517 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
3518
3519 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
3520 (FL_ARCH6): Renamed from FL_ARCH6J.
3521 (arm_arch3m): Renamed from arm_fast_multiply.
3522 (arm_arch6): Renamed from arm_arch6j.
3523 * arm.h: Update all uses of above.
3524 * arm-cores.def: Likewise.
3525 * arm.md: Likewise.
3526
3527 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
3528 not arm6j. Add entry for arch armv6.
3529
3530 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
3531
3532 * arm.c (arm_emit_extendsi): Delete.
3533 * arm-protos.h (arm_emit_extendsi): Delete.
3534 * arm.md (zero_extendhisi2): Also handle zero-extension of
3535 non-subregs.
3536 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
3537 (thumb_zero_extendhisi2): Only match if not v6.
3538 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
3539 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
3540 (thumb_extendqisi2): Likewise.
3541 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
3542 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
3543 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
3544 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
3545 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
3546 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
3547 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
3548 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
3549 (arm_extendqisi2addsi): Likewise.
3550
3551 2003-12-31 Mark Mitchell <mark@codesourcery.com>
3552
3553 Revert this change:
3554 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
3555 + REG addressing modes.
3556
3557 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
3558 + REG addressing modes.
3559
3560 2003-12-30 Mark Mitchell <mark@codesourcery.com>
3561
3562 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
3563 CONSTANT_P_RTX.
3564
3565 2003-30-12 Paul Brook <paul@codesourcery.com>
3566
3567 * longlong.h: protect arm inlines with !defined (__thumb__)
3568
3569 2003-30-12 Paul Brook <paul@codesourcery.com>
3570
3571 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
3572
3573 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
3574
3575 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
3576 change.
3577
3578 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
3579
3580 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
3581 to the virtual incoming args pointer for downward stacks.
3582
3583 2003-12-29 Paul Brook <paul@codesourcery.com>
3584
3585 * config/arm/arm-cores.def: Add cost function.
3586 * config/arm/arm.c (arm_*_rtx_costs): New functions.
3587 (arm_rtx_costs): Remove
3588 (struct processors): Add rtx_costs field.
3589 (all_cores, all_architectures): Ditto.
3590 (arm_override_options): Set targetm.rtx_costs.
3591 (thumb_rtx_costs): New function.
3592 (arm_rtx_costs_1): Remove cases handled elsewhere.
3593 * config/arm/arm.h (processor_type): Add COSTS parameter.
3594
3595 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
3596
3597 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
3598 (arm926ejs.md): Include it.
3599 * config/arm/arm926ejs.md: New pipeline description.
3600
3601 2003-12-24 Paul Brook <paul@codesourcery.com>
3602
3603 * config/arm/arm.c (arm_arch6j): New variable.
3604 (arm_override_options): Set it.
3605 (arm_emit_extendsi): New function.
3606 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
3607 * config/arm/arm.h (arm_arch6j): Declare.
3608 * config/arm/arm.md: Add sign/zero extend insns.
3609
3610 2003-12-23 Paul Brook <paul@codesourcery.com>
3611
3612 * config/arm/arm.c (all_architectures): Add armv6.
3613 * doc/invoke.texi: Document it.
3614
3615 2003-12-19 Paul Brook <paul@codesourcery.com>
3616
3617 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
3618 insn patterns to match.
3619 * config/arm/arm-generic.md: Ditto.
3620 * config/arm/cirrus.md: Ditto.
3621 * config/arm/fpa.md: Ditto.
3622 * config/amm/iwmmxt.md: Ditto.
3623 * config/arm/arm1026ejs.md: Ditto.
3624 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
3625 for 11_loadb.
3626
3627 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
3628
3629 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
3630 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
3631 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
3632 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
3633 arm_no_early_mul_dep): Correctly deal with conditional execution,
3634 parallels and single shift operations.
3635 (arm_no_early_alu_shift_value_dep): Define.
3636 * arm.md (attr type): Replace 'normal' with 'alu',
3637 'alu_shift' and 'alu_shift_reg'.
3638 (attr core_cycles): Adjust.
3639 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
3640 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
3641 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
3642 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
3643 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
3644 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
3645 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
3646 attribute appropriately.
3647 * config/arm/arm1026ejs.md (alu_op): Adjust.
3648 (alu_shift_op, alu_shift_reg_op): New.
3649 * config/arm/arm1136.md: Add better bypasses for early
3650 registers. Remove load[234] and store[234] bypasses.
3651 (11_alu_op): Adjust.
3652 (11_alu_shift_op, 11_alu_shift_reg_op): New.
3653
3654 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
3655
3656 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
3657 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
3658 * config/arm/arm.c (arm_no_early_store_addr_dep,
3659 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
3660 * config/arm/arm1026ejs.md: Add load-store bypass.
3661 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
3662 Add bypasses between instructions.
3663
3664 2003-12-10 Paul Brook <paul@codesourcery.com>
3665
3666 * config/arm/arm.c (arm_fpu_model): New variable.
3667 (arm_fload_abi): New variable.
3668 (target_fpe_name): Rename from target_fp_name.
3669 (target_fpu_name): New variable.
3670 (arm_is_cirrus): Remove.
3671 (fpu_desc): New struct.
3672 (all_fpus): Define.
3673 (pf_model_for_fpu): Define.
3674 (all_loat_abis): Define.
3675 (arm_override_options): Set fp arch flags based on -mfpu=
3676 and -float-abi=.
3677 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
3678 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
3679 (*): Use new TARGET_* flags.
3680 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
3681 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
3682 (TARGET_SOFT_FLOAT): Ditto.
3683 (TARGET_SOFT_FLOAT_ABI): New.
3684 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
3685 TARGET_HARD_FLOAT.
3686 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
3687 (TARGET_OPTIONS): Add -mfpu=.
3688 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
3689 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
3690 (arm_pf_model): Define.
3691 (arm_float_abi_type): Define.
3692 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
3693 * config/arm/arm.md: Use new TARGET_* flags.
3694 * config/arm/cirrus.md: Ditto.
3695 * config/arm/fpa.md: Ditto.
3696 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
3697 * config/arm/semi.h (ASM_SPEC): Ditto.
3698 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
3699 (FPUTYPE_DEFAULT): Set to VFP.
3700 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
3701
3702 2003-11-22 Phil Edwards <phil@codesourcery.com>
3703
3704 PR target/12476
3705 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
3706 'bx' instead of 'b' to avoid branch range restrictions. Output
3707 the thunk immediately before the thunked-to function.
3708 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
3709 .thumb_func if a thunk is being generated. Emit .code 16 along
3710 with .thumb_func if a thunk is not being generated.
3711
3712 2003-11-15 Nicolas Pitre <nico@cam.org>
3713
3714 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
3715 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
3716 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
3717 (lshrdi3_iwmmxt): Renamed from lshrdi3.
3718 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
3719
3720 2003-11-12 Steve Woodford <scw@wasabisystems.com>
3721 Ian Lance Taylor <ian@wasabisystems.com>
3722
3723 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
3724 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
3725
3726 2003-11-05 Phil Edwards <phil@codesourcery.com>
3727
3728 * config/arm/arm.md (insn): Add new V6 instruction names.
3729 (generic_sched): New attr.
3730 * config/arm/arm-generic.md: Use generic_sched here.
3731 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
3732 stages of pipeline. Adjust latency counts accordingly.
3733 * config/arm/arm1136jfs.md: New file.
3734
3735 2003-10-28 Mark Mitchell <mark@codesourcery.com>
3736
3737 * config/arm/arm.h (processor_type): New enumeration type.
3738 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
3739 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
3740 (CPP_CPU_ARCH_SPEC): Likewise.
3741 * config/arm/arm.c (arm_tune): New variable.
3742 (all_cores): Use cores.def.
3743 (all_architectures): Add representative processor.
3744 (arm_override_options): Restructure way in which tuning
3745 information is deduced.
3746 * arm.md: Update "insn" and "type" attributes throughout.
3747 (insn): New attribute.
3748 (type): Compute "mult" from "insn" attribute. Add load2,
3749 load3, load4 alternatives.
3750 (arm automaton): Move to arm-generic.md.
3751 * config/arm/arm-cores.def: New file.
3752 * config/arm/arm-generic.md: Likewise.
3753 * config/arm/arm1026ejs.md: Likewise.
3754
3755 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3756
3757 * doc/invoke.texi (SPARC options): Remove -mflat and
3758 all -mxxx (xxx:chip) options.
3759 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
3760 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
3761 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
3762 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
3763 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
3764 * config/sparc/sparc.c: Likewise.
3765 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
3766 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
3767 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
3768 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
3769 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
3770 (sparc_flat_must_save_register_p): Likewise.
3771 (sparc_flat_compute_frame_size): Likewise.
3772 (sparc_flat_save_restore): Likewise.
3773 (sparc_flat_function_prologue): Likewise.
3774 (sparc_flat_function_epilogue): Likewise.
3775 (sparc_flat_epilogue_delay_slots): Likewise.
3776 (sparc_flat_eligible_for_epilogue_delay): Likewise.
3777 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
3778 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
3779 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
3780 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
3781 (CONDITIONAL_REGISTER_USAGE): Likewise.
3782 (FRAME_POINTER_REQUIRED): Likewise.
3783 (INITIAL_ELIMINATION_OFFSET): Likewise.
3784 (BASE_RETURN_VALUE_REG): Likewise.
3785 (BASE_OUTGOING_VALUE_REG): Likewise.
3786 (BASE_PASSING_ARG_REG): Likewise.
3787 (BASE_INCOMING_ARG_REG): Likewise.
3788 (INCOMING_REGNO): Likewise.
3789 (OUTGOING_REGNO): Likewise.
3790 (LOCAL_REGNO): Likewise.
3791 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
3792 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
3793 (EPILOGUE_USES): Likewise.
3794 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
3795 ("flat" attribute): Delete.
3796 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
3797 handling.
3798 (call followed by jump define_peephole's): Delete.
3799 (exception_receiver): Likewise.
3800 (builtin_setjmp_receiver): Likewise.
3801 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
3802
3803 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
3804
3805 PR c/11658
3806 PR c/13994
3807 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
3808 on langhooks.h.
3809 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
3810 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
3811 Include langhooks.h. Replace c_common_truthvalue_conversion
3812 with the truthvalue_conversion language hook throughout.
3813 (expr_no_commas): Call default_conversion before save_expr
3814 for the first term of the production 'x ? : y'.
3815 * c-common.c (c_common_truthvalue_conversion): Remove
3816 obsolete block. Invoke recursively the hook instead
3817 of this function.
3818 * c-convert.c (convert): handle ERROR_MARK_NODE.
3819 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
3820 returned by the truthvalue_conversion language hook.
3821 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
3822 c_objc_common_truthvalue_conversion.
3823 * c-objc-common.c (c_objc_common_truthvalue_conversion):
3824 New function.
3825 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
3826 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
3827 c_objc_common_truthvalue_conversion.
3828
3829 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
3830
3831 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
3832 of gen_rtx.
3833 (LIBCALL_VALUE): Likewise.
3834 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
3835 gen_rtx_CC0 instead of gen_rtx.
3836 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
3837 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
3838 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
3839 gen_rtx.
3840 (m68hc11_emit_logical): Likewise.
3841
3842 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
3843
3844 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
3845 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
3846 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
3847 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
3848 config/mips/mips.md, config/mmix/mmix.c,
3849 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
3850 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
3851 config/rs6000/altivec.md, config/s390/s390.c,
3852 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
3853 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
3854 Use const0_rtx instead of GEN_INT (0). Do the same for other
3855 constants that are readily available.
3856
3857 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
3858
3859 * doloop.c, optabs.c, regmove.c, sched-deps.c,
3860 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
3861 instead of GEN_INT (0). Do the same for other constants that
3862 are readily available.
3863
3864 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
3865
3866 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
3867 gen_rtx.
3868 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
3869 instead of gen_rtx.
3870 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
3871 gen_rtx.
3872 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
3873 gen_rtx_ASHIFT instead of gen_rtx.
3874 (udivmodqi4): Likewise.
3875
3876 2004-02-02 Richard Henderson <rth@redhat.com>
3877
3878 PR target/13789
3879 * expr.c (store_expr): Use force_operand before emit_move_insn.
3880
3881 2004-02-02 Jeff Law <law@redhat.com>
3882 Roger Sayle <roger@eyesopen.com>
3883
3884 * tree.c (commutative_tree_code, associative_tree_code): New
3885 functions.
3886 (iterative_hash_expr): Use commutative_tree_code.
3887 * tree.h (commutative_tree_code, associative_tree_code): Declare.
3888 * fold-const.c (operand_equal_p): Use commutative_tree_code
3889 rather than inlining the commutativity check.
3890 (fold): Likewise.
3891
3892 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
3893
3894 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
3895 * config/frv/frv-protos.h: Remove the prototype for
3896 frv_function_arg_keep_as_reference.
3897 * config/frv/frv.c (frv_function_arg_keep_as_reference):
3898 Remove.
3899 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
3900 * config/stormy16/stormy16.h: Remove the commented-out
3901 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
3902
3903 2004-02-03 Alan Modra <amodra@bigpond.net.au>
3904
3905 PR target/13914
3906 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
3907 for retaddr_column.
3908
3909 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
3910
3911 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
3912 gen_rtx.
3913
3914 2004-02-02 Eric Christopher <echristo@redhat.com>
3915 Zack Weinberg <zack@codesourcery.com>
3916
3917 * c-opts.c (c_common_handle_option): Add -finput-charset.
3918 * c.opt: Ditto.
3919 * cppcharset.c (one_iso88591_to_utf8): Remove.
3920 (convert_iso88591_utf8): Ditto.
3921 (conversion_tab): Remove 8859-1 converter.
3922 (_cpp_input_to_utf8): Remove.
3923 (_cpp_init_iconv_buffer): Ditto.
3924 (_cpp_close_iconv_buffer): Ditto.
3925 (_cpp_convert_input): New function.
3926 (_cpp_default_encoding): Ditto.
3927 * cpphash.h: Add/remove prototypes for above.
3928 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
3929 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
3930 for narrow execution and input character sets.
3931 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
3932 * doc/cppopts.texi: Document -finput-charset.
3933
3934 2004-02-02 David Edelsohn <edelsohn@gnu.org>
3935
3936 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
3937 against FIRST_PSEUDO_REGISTER.
3938
3939 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3940
3941 * doc/invoke.texi (SPARC options): Further improve.
3942
3943 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
3944
3945 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
3946 config/h8300/h8300.c, config/ip2k/ip2k.md,
3947 config/iq2000/iq2000.c, config/mips/mips.c,
3948 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
3949 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
3950 config/v850/v850.md: Fix indentation.
3951
3952 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3953
3954 * config/sparc/sparc.c (function_arg_slotno): Align TImode
3955 arguments on a 16-byte boundary in the parameter array if ARCH64.
3956 Split handling of TFmode.
3957
3958 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
3959
3960 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
3961 Don't test CONSTANT_P (x).
3962 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
3963 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
3964 Fix misindentation.
3965
3966 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3967
3968 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
3969
3970 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
3971
3972 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
3973 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
3974 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
3975 config/iq2000/iq2000.c, config/m32r/m32r.c,
3976 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
3977 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
3978 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
3979 config/stormy16/stormy16.c, config/v850/v850.md,
3980 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
3981
3982 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
3983
3984 * config/mcore/mcore.c (block_move_sequence): Replace
3985 gen_rtx_CONST_INT with GEN_INT.
3986
3987 2004-02-02 Jan Hubicka <jh@suse.cz>
3988
3989 * alias.c (record_set): Use hard_regno_nregs.
3990 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
3991 * builtins.c (apply_args_size): Likewise.
3992 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
3993 mark_set_regs, add_stored_regs, mark_referenced_regs,
3994 insert_restore, insert_save, insert_one_insn): Likewise.
3995 * cfgcleanup.c: Include regs.h
3996 (mark_effect, mentions_nonequal_regs): Likewise.
3997 * cfgrtl.c (mark_killed_regs): Likewise
3998 * combine.c (update_table_tick, record_value_for_reg,
3999 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
4000 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
4001 reg_bitfield_target_p, distribute_notes): Likewise.
4002 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
4003 exp_equiv_p, cse_insn): Likewise.
4004 * cselib.c (cselib_lookup): Likewise.
4005 (cselib_invalidate_regno, cselib_record_set): Likewise.
4006 * df.c (df_ref_record): Likewise.
4007 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
4008 Likewise.
4009 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
4010 count_or_remove_death_notes_bb): Likewise.
4011 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
4012 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
4013 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
4014 * integrate.c (mark_stores): Likewise.
4015 * jump.c (delete_prior_computation): Likewise.
4016 * lcm.c (reg_dies, reg_becomes_live): Likewise.
4017 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
4018 * loop.c (LOOP_REGNO_NREGS): Likewise.
4019 * postreload.c (reload_combine, reload_combine_note_store,
4020 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
4021 * ra-colorize.c (combine, color_usable_p, get_free_reg,
4022 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
4023 try_recolor_web, insert_coalesced_conflicts, check_colors,
4024 break_precolored_alias): Likewise.
4025 * ra-debug.c: Include regs.h
4026 (ra_print_rtx_object): Likewise.
4027 * ra-rewrite (choose_spill_colors): Likewise.
4028 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
4029 * ra.c (init_ra): Likewise.
4030 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
4031 peep2_find_free_register): Likewise.
4032 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
4033 * regclass.c (hard_regno_nregs): New array.
4034 (init_reg_modes_once): Initialize it.
4035 (choose_hard_reg_mode): Use it.
4036 (record_reg_classes): Likewise.
4037 * regmove.c (mark_flags_life_zones): Likewise.
4038 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
4039 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
4040 copy_value, maybe_mode_change, find_oldest_value_reg,
4041 copyprop_hardreg_forward_1):
4042 * regs.h (hard_regno_nregs): Declare.
4043 * realod.c (reload_inner_reg_of_subreg): Use it.
4044 (push_reload, combine_reloads, find_dummy_reload,
4045 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
4046 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
4047 reload_adjust_reg_for_mode): Likewise.
4048 * reload1.c (compute_use_by_pseudos, count_pseudo,
4049 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
4050 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
4051 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
4052 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
4053 delete_output_reload): Likewise.
4054 * resource.c (update_live_status, mark_referenced_resources,
4055 mark_set_resources, mark_target_live_regs): Likewise.
4056 * rtlanal.c: Include regs.h
4057 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
4058 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
4059 subreg_regno_offset, subreg_offset_representable_p,
4060 hoist_test_store): Likewise.
4061 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
4062 * sched-rgn.c (check_live_1, update_live_1): Likewise.
4063 * stmt.c: Include regs.h
4064 (decl_conflicts_with_clobbers_p): Likewise.
4065 * varasm.c (make_decl_rtl): Likewise.
4066 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
4067
4068 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
4069
4070 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
4071 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
4072 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
4073 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
4074 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
4075 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
4076 config/iq2000/iq2000.h, config/m32r/m32r.c,
4077 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4078 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
4079 config/mcore/mcore.c, config/mcore/mcore.h,
4080 config/mcore/mcore.md, config/mips/mips.c,
4081 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
4082 config/rs6000/rs6000.c, config/s390/s390.c,
4083 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
4084 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
4085 "gen_rtx (FOO, " with "gen_rtx_FOO (".
4086
4087 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
4088
4089 * config/h8300/h8300.md (two peephole2's): New.
4090
4091 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
4092
4093 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
4094 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
4095 (ASM_CPU_SPEC): Likewise
4096 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
4097 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
4098
4099 2004-02-01 Roger Sayle <roger@eyesopen.com>
4100
4101 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
4102 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
4103 (expand_builtin): Always call expand_builtin_pow.
4104
4105 2004-02-01 Roger Sayle <roger@eyesopen.com>
4106
4107 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
4108 BUILT_IN_SIGNBITL): New GCC builtins.
4109 * builtins.c (expand_builtin_signbit): New function to RTL expand
4110 calls to signbit, signbitf and signbitl as inline intrinsics.
4111 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
4112 (fold_builtin_signbit): New function to perform constant folding
4113 of signbit, signbitf and signbitl.
4114 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
4115
4116 * doc/extend.texi: Document new signbit{,f,l} builtins.
4117
4118 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
4119
4120 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
4121
4122 2004-02-01 Chris Demetriou <cgd@broadcom.com>
4123
4124 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
4125 "mips_const_double_ok" and "simple_memory_operand", which were
4126 removed from the MIPS port with the mips-3_4-rewrite branch merge.
4127 * config/mips/mips.c (mips16_lay_out_constants): Update comment
4128 for removal of simple_memory_operand.
4129
4130 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4131
4132 * config/c4x/c4x.md: Use GEN_INT instead of
4133 gen_rtx (CONST_INT, ...).
4134
4135 2004-01-31 Richard Henderson <rth@redhat.com>
4136
4137 * varasm.c (output_constant_pool): Don't zap the pool.
4138
4139 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4140
4141 * genrecog.c (decision_type): Add DT_const_int.
4142 (write_cond) [DT_const_int]: Print a comparison against small
4143 constant.
4144 (write_node): Simplify comparisons against small constants
4145 before printing tests.
4146
4147 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4148
4149 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
4150 instead of gen_rtx_CONST_INT.
4151
4152 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4153
4154 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
4155 instead of gen_rtx_CONST_INT.
4156
4157 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4158
4159 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
4160 hook_bool_CUMULATIVE_ARGS_false.
4161 * targhooks.c (default_strict_argument_naming): Rename to
4162 hook_bool_CUMULATIVE_ARGS_false.
4163 * targhooks.h: Update the prototype for
4164 default_strict_argument_naming.
4165
4166 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4167
4168 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
4169 * config/sh/sh.h: Likewise.
4170 * config/sh/sh.md: Likewise.
4171
4172 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4173
4174 * doc/invoke.texi (SPARC options): Restructure and update.
4175
4176 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4177
4178 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
4179 STRICT_ARGUMENT_NAMING): Poison.
4180 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
4181 hook_bool_tree_false.
4182 * targhooks.c (default_promote_function_args): Remove.
4183 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
4184 Don't check incoming.
4185 (default_strict_argument_naming): Don't use
4186 STRICT_ARGUMENT_NAMING.
4187 * targhooks.h: Remove the prototype for
4188 default_promote_function_args.
4189
4190 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4191
4192 * config/i386/i386-protos.h: Remove the prototype for
4193 ix86_setup_incoming_varargs.
4194 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
4195 (ix86_setup_incoming_varargs): Make it static.
4196 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
4197
4198 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4199
4200 * alloc-pool.c: Fix comment typos.
4201 * builtin-types.def: Likewise.
4202 * builtins.def: Likewise.
4203 * c-pretty-print.c: Likewise.
4204 * df.h: Likewise.
4205 * reload1.c: Likewise.
4206
4207 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4208
4209 * doc/invoke.texi: Follow spelling conventions.
4210 * doc/tm.texi: Likewise.
4211
4212 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4213
4214 * doc/install.texi: Fix typos.
4215 * doc/invoke.texi: Likewise.
4216
4217 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
4218
4219 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
4220 registers as pointers.
4221 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
4222
4223 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
4224
4225 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
4226 and restore it to gen_lowpart_general on exit.
4227 (gen_lowpart_for_combine): Adjust all callers to go through
4228 gen_lowpart.
4229 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
4230 and restore it to gen_lowpart_general on exit.
4231 (gen_lowpart_if_possible): Adjust all callers to go through
4232 gen_lowpart.
4233 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
4234 (gen_lowpart): Declare as pointer to function, initialized to
4235 gen_lowpart_general.
4236 * rtl.h (gen_lowpart): Declare as pointer to function.
4237
4238 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
4239
4240 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
4241 * calls.c: Likewise.
4242 * emit-rtl.c: Likewise.
4243 * function.c: Likewise.
4244 * reload1.c: Likewise.
4245 * config/i386/cygming.h: Likewise.
4246 * config/i386/i386.c: Likewise.
4247 * config/i386/winnt.c: Likewise.
4248
4249 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
4250
4251 PR bootstrap/9249
4252 * doc/install.texi: document --enable-__cxa_atexit option.
4253 * configure.ac: Disable __cxa_atexit if not supported.
4254 * configure: Regenerate.
4255
4256 2003-01-30 Daniel Berlin <dberlin@dberlin.org>
4257
4258 * ggc-zone.c (ggc_free): New function.
4259
4260 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
4261
4262 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
4263 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
4264 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
4265 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
4266 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
4267 config/alpha/alpha.c, config/alpha/alpha.h,
4268 config/alpha/alpha.md, config/alpha/unicosmk.h,
4269 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
4270 config/c4x/c4x-protos.h, config/c4x/c4x.md,
4271 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
4272 config/frv/frvend.c, config/i386/cygming.h,
4273 config/i386/djgpp.h, config/i386/emmintrin.h,
4274 config/i386/gthr-win32.c, config/i386/i386-interix.h,
4275 config/i386/i386-protos.h, config/i386/openbsd.h,
4276 config/i386/winnt.c, config/i386/xm-mingw32.h,
4277 config/i386/xmmintrin.h, config/ia64/ia64.md,
4278 config/iq2000/iq2000.md, config/m32r/m32r.md,
4279 config/m68k/m68k.md, config/mcore/mcore-elf.h,
4280 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
4281 config/mips/iris5gas.h, config/mips/iris6.h,
4282 config/mips/iris6gas.h, config/mips/linux.h,
4283 config/mips/mips.md, config/mips/netbsd.h,
4284 config/mips/openbsd.h, config/mips/windiss.h,
4285 config/pa/fptr.c, config/rs6000/aix.h,
4286 config/rs6000/altivec.h, config/rs6000/darwin.h,
4287 config/rs6000/xcoff.h, config/s390/s390-protos.h,
4288 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
4289 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
4290 config/sparc/sol2.h: Update copyright.
4291
4292 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
4293
4294 * Makefile.in (abs_docdir, abs_srcdir): Define.
4295 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
4296
4297 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
4298
4299 * genconfig.c (main): Have CC0_P check its operand even on a
4300 target without cc0.
4301
4302 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
4303
4304 * config/alpha/alpha.c: Remove mentions of deprecates macros
4305 in comments, remove some target-independent comments about target
4306 macros, and/or add minimal function comments for target hook
4307 implementations.
4308 * config/avr/avr.c: Likewise.
4309 * config/ia64/ia64.h: Likewise.
4310 * config/ip2k/ip2k.c: Likewise.
4311 * config/iq2000/iq2000.c: Likewise.
4312 * config/m32r/m32r.h: Likewise.
4313 * config/m68hc11/m68hc11.c: Likewise.
4314 * config/mcore/mcore.c: Likewise.
4315 * config/mmix/mmix.c: Likewise.
4316 * config/mn10300/mn10300.c: Likewise.
4317 * config/pa/pa.c: Likewise.
4318 * config/pdp11/pdp11.c: Likewise.
4319 * config/rs6000/rs6000.h: Likewise.
4320 * config/sh/sh.c: Likewise.
4321 * config/sh/sh.h: Likewise.
4322 * config/sparc/sparc.c: Likewise.
4323 * config/sparc/sparc.h: Likewise.
4324 * config/stormy16/stormy16.c: Likewise.
4325 * config/xtensa/xtensa.c: Likewise.
4326
4327 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
4328
4329 PR optimization/12147
4330 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
4331 RELOAD_FOR_OPADDR_ADDR.
4332 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
4333 might be reused as RELOAD_FOR_OPADDR_ADDR register.
4334
4335 2004-01-30 Jan Hubicka <jh@suse.cz>
4336
4337 * reload.c (get_secondary_mem): Fix updating of
4338 secondary_memlocs_elim_used.
4339
4340 2004-01-30 Richard Henderson <rth@redhat.com>
4341
4342 * varasm.c (struct rtx_const, struct pool_constant): Remove.
4343 (MAX_RTX_HASH_TABLE): Remove.
4344 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
4345 (first_pool, last_pool, pool_offset): Remove.
4346 (struct rtx_constant_pool): Split out from ...
4347 (struct varasm_status): ... here. Reference one via pointer.
4348 (struct constant_descriptor_rtx): Merge struct pool_constant.
4349 (SYMHASH): Remove.
4350 (decode_rtx_const): Remove.
4351 (const_hash_rtx, compare_constant_rtx): Remove.
4352 (record_constant_rtx): Remove.
4353 (const_desc_rtx_hash, const_desc_rtx_eq): New.
4354 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
4355 (const_rtx_hash_1, const_rtx_hash): New.
4356 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
4357 (simplify_subtraction): Use simplify_rtx.
4358 (force_const_mem): Rewrite to use new data structures.
4359 (find_pool_constant): Likewise.
4360 (get_pool_constant, get_pool_constant_mark,
4361 get_pool_constant_for_function, get_pool_mode,
4362 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
4363 (output_constant_pool_2): Split out from output_constant_pool.
4364 (output_constant_pool_1): Likewise. Use new pool datastructures.
4365 (output_constant_pool): Zap entire pool datastructure.
4366 (mark_constant): Use new pool datastructures.
4367 (mark_constants): Use for_each_rtx.
4368 (mark_constant_pool): Use new pool datastructures.
4369
4370 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
4371
4372 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
4373 Copy operands[1] to pseudo for simplify_gen_subreg.
4374
4375 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
4376
4377 * gcse.c (bypass_block): Fix a typo in the previous check-in
4378 to the file.
4379
4380 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
4381
4382 * toplev.c: Include alloc-pool.h.
4383 * Makefile.in (toplev.c): Update dependencies.
4384
4385 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4386
4387 * combine.c (simplify_shift_const, case XOR): Be careful when
4388 commuting XOR with ASHIFTRT.
4389
4390 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
4391 Eric Botcazou <ebotcazou@libertysurf.fr>
4392
4393 * config/sparc/sparc-protos.h: Remove the prototype for
4394 sparc_builtin_saveregs.
4395 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
4396 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
4397 (TARGET_PROMOTE_PROTOTYPES): Likewise.
4398 (TARGET_STRUCT_VALUE_RTX): Likewise.
4399 (TARGET_RETURN_IN_MEMORY): Likewise.
4400 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
4401 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
4402 (sparc_builtin_saveregs): Make it static.
4403 (sparc_promote_prototypes): New.
4404 (sparc_struct_value_rtx): Likewise.
4405 (sparc_return_in_memory): Likewise.
4406 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
4407 (PROMOTE_FUNCTION_RETURN): Likewise.
4408 (RETURN_IN_MEMORY): Likewise.
4409 (STRUCT_VALUE): Likewise.
4410 (STRUCT_VALUE_INCOMING): Likewise.
4411 (EXPAND_BUILTIN_SAVEREGS): Likewise.
4412 (STRICT_ARGUMENT_NAMING): Likewise.
4413 (PROMOTE_PROTOTYPES): Likewise.
4414
4415 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
4416
4417 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
4418
4419 PR c/12818
4420 * varasm.c (const_hash_1) <STRING_CST>: Use the
4421 address to compute the hash value if flag_writable_strings.
4422 (compare_constant) <STRING_CST>: Compare the addresses
4423 if flag_writable_strings.
4424 (build_constant_desc): Do not copy the expression for a
4425 STRING_CST if flag_writable_strings.
4426
4427 2004-01-30 Jan Hubicka <jh@suse.cz>
4428
4429 * alloc-pool.c: Include hashtab.h
4430 (alloc_pool_descriptor): New structure
4431 (alloc_pool_hash): New global variable.
4432 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
4433 (create_alloc_pool): Update statistics.
4434 (free_alloc_pool): Likewise.
4435 (pool_alloc): Likewise.
4436 (output_info): New structure
4437 (print_statistics, dump_alloc_pool_statistics): New function.
4438 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
4439 (dump_alloc_pool_statistics): Declare.
4440 * toplev.c (finalize): Dump statistics.
4441
4442 * reload.c (secondary_memlocs_elim_used): New static variable.
4443 (get_secondary_mem): Update it.
4444 (find_reloads): Use it.
4445
4446 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
4447
4448 * toplev.c: Fix broken checkin of 2003-12-30, again.
4449
4450 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
4451
4452 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
4453 s390*-*-* targets by specifying a 'nop' insn.
4454 * configure: Regenerate.
4455
4456 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
4457
4458 PR target/11475
4459 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
4460
4461 2004-01-29 Jakub Jelinek <jakub@redhat.com>
4462
4463 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
4464 of addr when creating MEM copy.
4465
4466 2004-01-29 Devang Patel <dpatel@apple.com>
4467
4468 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
4469
4470 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
4471
4472 PR inline-asm/6162
4473 * reload.c (find_reloads): Only support one pair of commutative
4474 operands.
4475
4476 2004-01-29 Roger Sayle <roger@eyesopen.com>
4477
4478 PR java/13824
4479 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
4480 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
4481 recursion.
4482
4483 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
4484
4485 * config/frv/frv.c: Don't mention deprecated macros in
4486 comments. Remove some target-independent comments about
4487 target macros.
4488 * config/frv/frv.h: Likewise.
4489
4490 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4491
4492 * cfghooks.c (split_block): Set probability and count of the
4493 new edge.
4494
4495 2005-01-29 Josef Zlomek <zlomekj@suse.cz>
4496
4497 * dwarf2out.c (struct die_struct): Added field decl_id.
4498 (decl_die_table): Changed to hash table.
4499 (decl_die_table_allocated): Deleted.
4500 (decl_die_table_in_use): Deleted.
4501 (DECL_DIE_TABLE_INCREMENT): Deleted.
4502 (decl_die_table_hash): New function.
4503 (decl_die_table_eq): New function.
4504 (lookup_decl_die): Lookup in a hash table.
4505 (equate_decl_number_to_die): Insert into a hash table.
4506 (dwarf2out_init): Init hash table decl_die_table.
4507
4508 2004-01-29 Jakub Jelinek <jakub@redhat.com>
4509
4510 PR optimization/13424
4511 * expr.c (store_constructor): Revert 2003-12-03 change.
4512
4513 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
4514 expected before returning early. Avoid sharing RTL if they
4515 need to be changed.
4516
4517 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
4518 handling so that memory attributes are preserved. Don't call
4519 ix86_set_move_mem_attrs.
4520 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
4521 (ix86_expand_clrstr): Rename src argument to
4522 dst. Rework rep_stos and strset handling so that memory attributes
4523 are preserved.
4524 (ix86_expand_strlen): Pass src argument to
4525 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
4526 memory attributes are preserved.
4527 (ix86_expand_strlensi_unroll_1): Add src argument. Use
4528 change_address instead of gen_rtx_MEM.
4529 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
4530 expanders.
4531 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
4532 strmovqi, strmovqi_rex64): Remove.
4533 (rep_mov*, strmov*): Prefix insn names with *.
4534 (strset, strset_singleop, rep_stos): New expanders.
4535 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
4536 strsetqi, strsetqi_rex64): Remove.
4537 (rep_stos*, strset*): Prefix insn names with *.
4538 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
4539 to SImode.
4540 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
4541 are preserved.
4542 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
4543 Prefix insn names with *.
4544 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
4545 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
4546 (strlenqi_1): New expander.
4547 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
4548
4549 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4550
4551 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
4552 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
4553 verify_flow_info): Declaration removed.
4554 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
4555 (debug_bb, debug_bb_n): Add argument to dump_bb call.
4556 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
4557 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
4558 instead of delete_block.
4559 * cfghooks.c: Include timevar.h and toplev.h.
4560 (cfg_hooks): Define here.
4561 (verify_flow_info, dump_bb): Moved from cfg.c.
4562 (redirect_edge_and_branch, redirect_edge_and_branch_force,
4563 split_block, split_block_after_labels, move_block_after,
4564 delete_basic_block, split_edge, create_basic_block,
4565 create_empty_bb, can_merge_blocks_p, merge_blocks,
4566 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
4567 New functions.
4568 * cfghooks.h (struct cfg_hooks): Added fields name,
4569 make_forwarder_block, tidy_fallthru_edge and
4570 move_block_after. Changed type of verify_flow_info, dump_bb,
4571 split_block fields. Renamed cfgh_split_edge and delete_block
4572 fields.
4573 (redirect_edge_and_branch, redirect_edge_and_branch_force,
4574 split_block, delete_block, split_edge, create_basic_block,
4575 can_merge_blocks_p, merge_blocks): Macros removed.
4576 (cfg_hooks): Do not export.
4577 (verify_flow_info, dump_bb, redirect_edge_and_branch,
4578 redirect_edge_and_branch_force, split_block, split_block_after_labels,
4579 move_block_after, delete_basic_block, split_edge, create_basic_block,
4580 create_empty_bb, can_merge_blocks_p, merge_blocks,
4581 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
4582 Declare.
4583 (cfg_layout_rtl_cfg_hooks): Declare.
4584 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
4585 New functions.
4586 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
4587 (redirect_edge_with_latch_update): Removed.
4588 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
4589 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
4590 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
4591 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
4592 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
4593 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
4594 cfghooks.c.
4595 (rtl_create_basic_block): Coding style fix.
4596 (rtl_tidy_fallthru_edge, rtl_move_block_after,
4597 rtl_make_forwarder_block): New functions.
4598 (update_cfg_after_block_merging): Removed.
4599 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
4600 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
4601 to dump_bb.
4602 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
4603 find_if_case_2): Don't update dominators.
4604 * timevar.def (TV_CFG_VERIFY): New.
4605 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
4606 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
4607 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
4608 (remove_bbs): Don't call remove_bbs.
4609 (create_preheader): Use make_forwarder_block.
4610 (mfb_keep_just, mfb_update_loops): New static functions.
4611
4612 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
4613
4614 * config/avr/avr.h: Remove target-independent comments about
4615 target macros.
4616
4617 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
4618
4619 * timevar.c (timevar_print): Mention when checking is enabled.
4620
4621 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4622
4623 * c-lex.c (c_lex): Rename to...
4624 (c_lex_with_flags): Add new parameter to get CPP flags.
4625 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
4626 * c-pragma.h (c_lex_with_flags): Declare.
4627
4628 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4629
4630 * config/mcore/mcore.c (mcore_external_libcall): Add a
4631 comment.
4632 (mcore_return_in_memory): Likewise.
4633
4634 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4635
4636 * config/mcore/mcore-protos.h: Remove the prototype for
4637 mcore_setup_incoming_varargs.
4638 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
4639 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
4640 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
4641 (TARGET_PROMOTE_PROTOTYPES): Likewise.
4642 (TARGET_STRUCT_VALUE_RTX): Likewise.
4643 (TARGET_RETURN_IN_MEMORY): Likewise.
4644 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4645 (mcore_setup_incoming_varargs): Make it static. Receive the
4646 first argument by reference. Add argument second_time.
4647 (mcore_external_libcall): New.
4648 (mcore_return_in_memory): Likewise.
4649 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
4650 (PROMOTE_FUNCTION_RETURN): Likewise.
4651 (STRUCT_VALUE): Likewise.
4652 (RETURN_IN_MEMORY): Likewise.
4653 (SETUP_INCOMING_VARARGS): Likewise.
4654 (PROMOTE_PROTOTYPES): Likewise.
4655 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
4656
4657 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4658
4659 * config/m32r/m32r-protos.h: Remove the prototype for
4660 m32r_setup_incoming_varargs.
4661 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
4662 (TARGET_STRUCT_VALUE_RTX): Likewise.
4663 (TARGET_RETURN_IN_MEMORY): Likewise.
4664 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4665 (m32r_return_in_memory): New.
4666 (m32r_setup_incoming_varargs): Make it static.
4667 * config/m32r/m32r.h: Remove #undef of
4668 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
4669 definitions of PROMOTE_FUNCTION_ARGS and
4670 PROMOTE_FUNCTION_RETURN.
4671 (PROMOTE_PROTOTYPES): Remove.
4672 (RETURN_IN_MEMORY): Likewise.
4673 (STRUCT_VALUE): Likewise.
4674
4675 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4676
4677 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
4678 (TARGET_STRUCT_VALUE_RTX): Likewise.
4679 (m68k_struct_value_rtx): Likewise.
4680 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
4681 STRUCT_VALUE_REGNUM.
4682 (PROMOTE_PROTOTYPES): Remove.
4683 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
4684 STRUCT_VALUE_REGNUM.
4685 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
4686 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
4687
4688 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4689
4690 * config/stormy16/stormy16.c
4691 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
4692 TARGET_BUILD_BUILTIN_VA_LIST.
4693
4694 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4695
4696 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
4697 (TARGET_STRUCT_VALUE_RTX): Likewise.
4698 (TARGET_RETURN_IN_MEMORY): Likewise.
4699 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4700 (v850_return_in_memory): Likewise.
4701 (v850_setup_incoming_varargs): Likewise.
4702 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
4703 (SETUP_INCOMING_VARARGS): Likewise.
4704 (RETURN_IN_MEMORY): Likewise.
4705 (STRUCT_VALUE): Likewise.
4706
4707 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4708
4709 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
4710 (fr30_setup_incoming_varargs): Don't use
4711 STRICT_ARGUMENT_NAMING.
4712 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
4713 (STRICT_ARGUMENT_NAMING): Likewise.
4714
4715 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4716
4717 * config/frv/frv-protos.h: Remove the prototype for
4718 frv_expand_builtin_saveregs.
4719 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
4720 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
4721 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
4722 STRUCT_VALUE_REGNUM.
4723 (frv_expand_builtin_saveregs): Make it static.
4724 (frv_struct_value_rtx): New.
4725 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
4726
4727 2004-01-29 Jan Hubicka <jh@suse.cz>
4728
4729 PR c++/12850
4730 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
4731 initial pointers.
4732 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
4733 for functions that will be only inlined.
4734 (cgraph_mark_function_to_output): Likewise.
4735 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
4736 do not clear function body.
4737 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
4738 (tree_rest_of_compilation): Reorganize the logic releasing function
4739 body to use callgraph datastructure.
4740
4741 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4742
4743 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
4744 to register_operand.
4745
4746 2004-01-28 Zack Weinberg <zack@codesourcery.com>
4747
4748 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
4749 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
4750 match_operand expressions so that all match_dups appear
4751 lexically after their corresponding match_operands.
4752
4753 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4754
4755 * config/h8300/h8300.c (WORD_REG_USED): Use
4756 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
4757 (compute_saved_regs): Likewise.
4758 (h8300_expand_prologue): Likewise. Allocate locals after
4759 saving registers.
4760 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
4761 of FRAME_POINTER_REGNUM. Deallocate locals before saving
4762 registers.
4763 (h8300_initial_elimination_offset): Adjust for the new frame
4764 layout, which swaps flips the order of locals and saved
4765 registers.
4766 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
4767 (HARD_FRAME_POINTER_REGNUM): New.
4768 (ELIMINABLE_REGS): Add an elimination rule from
4769 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
4770 (REGISTER_NAMES): Add fp.
4771 * config/h8300/h8300.md (FP_REG): Change to 11.
4772 (HFP_REG): New.
4773
4774 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4775
4776 * genrecog.c (write_node): Remove a useless local variable.
4777
4778 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
4779
4780 * Makefile.in (options.c options.h): Use stamp file s-options to
4781 avoid unnecessary rebuilds.
4782 (options.o): New target listing dependencies.
4783 (gtyp-gen.h): Use stamp file s-gtyp-gen.
4784 (STAGESTUFF): Add s-gtyp-gen.
4785
4786 2004-01-28 Richard Henderson <rth@redhat.com>
4787
4788 * ggc.h (ggc_free): Declare.
4789 * ggc-common.c (ggc_realloc): Use it.
4790 * ggc-page.c: Remove lots of inline markers.
4791 (globals): Add free_object_list.
4792 (ggc_alloc): Tidy.
4793 (ggc_free, validate_free_objects): New.
4794 (poison_pages): Provide default.
4795 (ggc_collect): Call validate_free_objects; emit markers to
4796 the debug file.
4797
4798 2004-01-28 Zack Weinberg <zack@codesourcery.com>
4799 Jim Wilson <wilson@specifixinc.com>
4800
4801 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
4802 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
4803 scratch pointer.
4804 (ia64_secondary_reload_class): Delete case GR_REGS.
4805 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
4806 Do not allocate a scratch register.
4807 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
4808
4809 2004-01-28 Jan Hubicka <jh@suse.cz>
4810
4811 * gcse.c (bypass_block): Prevent edges to be unified when we are
4812 about to emit compenstation code.
4813
4814 2004-01-28 Nick Clifton <nickc@redhat.com>
4815
4816 * config/arm/arm.c (arm_expand_builtin): Force second argument of
4817 the setcwx insn into a register.
4818
4819 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
4820
4821 * config/fp-bit.c (pack_d): When using paired doubles to implement
4822 a long double, round the high part separately.
4823 (unpack_d): Fix the case in which the high part is a power of two
4824 and the low part is a nonzero value of the opposite sign.
4825
4826 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4827
4828 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
4829 (TARGET_STRUCT_VALUE_RTX): Likewise.
4830 (c4x_external_libcall): Likewise.
4831 (c4x_struct_value_rtx): Likewise.
4832 * config/c4x/c4x.h: Remove.
4833 (STRUCT_VALUE_REGNUM): Likewise.
4834 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
4835
4836 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
4837
4838 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
4839 (TARGET_STRUCT_VALUE_RTX): Likewise.
4840 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
4841 (STRUCT_VALUE): Likewise.
4842 (PROMOTE_PROTOTYPES): Likewise.
4843
4844 2004-01-27 Roger Sayle <roger@eyesopen.com>
4845
4846 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
4847 CONST_INT before using INTVAL.
4848
4849 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
4850
4851 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
4852 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
4853 frame if !TARGET_BACKCHAIN.
4854 * config/s390/s390.md ("allocate_stack"): Use pattern only if
4855 TARGET_BACKCHAIN.
4856 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
4857
4858 2004-01-27 Zack Weinberg <zack@codesourcery.com>
4859
4860 * ia64.c (ia64_function_arg): When placing HFAs in integer
4861 registers, do not special case the mode used for complex
4862 types. Do not advance int_regs until the current register
4863 is full.
4864
4865 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
4866
4867 PR target/7297
4868 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
4869
4870 2004-01-27 David Edelsohn <edelsohn@gnu.org>
4871
4872 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
4873 slow, unaligned loads and stores while debugging. Fix formatting.
4874
4875 2004-01-27 David Edelsohn <edelsohn@gnu.org>
4876
4877 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
4878 of computing wmode.
4879 (restore_stack_nonlocal): Same.
4880
4881 2004-01-27 Devang Patel <dpatel@apple.com>
4882
4883 * Makefile.in (dwarf2out.o): Depend on input.h
4884 * dbxout.c (dbx_debug_hooks): Add new empty hook for
4885 imported_module_or_decl.
4886 (xcoff_debug_hooks): Same.
4887 * sdbout.c (sdb_debug_hooks): Same.
4888 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
4889 * debug.c (do_nothing_debug_hooks): Same.
4890 (debug_nothing_tree_tree): New function.
4891 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
4892 * dwarf2out.c: Include input.h.
4893 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
4894 (remove_child_TAG): New function.
4895 (dwarf_tag_name): Handle DW_TAG_imported_module.
4896 (gen_subprogram_die): Equate decl number to declaration die. Do not
4897 remove all children dies while reusing declaration die for definition.
4898 Instead, selectively remove only formal parameters.
4899 (gen_variable_die): Equate variable decl to declaration die.
4900 (gen_field_die): Equate field decl to line number.
4901 (force_namespace_die): Replace it with ...
4902 (force_decl_die): ... this.
4903 (force_type_die): New function.
4904 (setup_namespace_context): Replace use of force_namespace_die() with
4905 force_decl_die().
4906 (gen_namespace_die): Same.
4907 (dwarf2out_imported_module_or_decl): New function.
4908
4909 2004-01-27 Bob Wilson <bob.wilson@acm.org>
4910
4911 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
4912 on CQImode and CHImode incoming arguments in register a7.
4913 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
4914 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
4915 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
4916 xtensa_copy_incoming_a7 before reload.
4917
4918 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
4919
4920 * coverage.c (get_coverage_counts): Give a different message
4921 if flag_guess_branch_prob is set.
4922 * predict.c (counts_to_freqs): Return an int.
4923 (estimate_bb_frequencies): If counts_to_freqs returns zero,
4924 calculate estimates.
4925
4926 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
4927
4928 * config/iq2000/iq2000-protos.h: Remove the prototype for
4929 iq2000_setup_incoming_varargs.
4930 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
4931 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
4932 (TARGET_PROMOTE_PROTOTYPES): Likewise.
4933 (TARGET_STRUCT_VALUE_RTX): Likewise.
4934 (TARGET_RETURN_IN_MEMORY): Likewise.
4935 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
4936 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
4937 (iq2000_return_in_memory): Likewise.
4938 (iq2000_setup_incoming_varargs): Make it static. Receive the
4939 first argument by reference.
4940 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
4941 (PROMOTE_FUNCTION_RETURN): Likewise.
4942 (PROMOTE_PROTOTYPES): Likewise.
4943 (RETURN_IN_MEMORY): Likewise.
4944 (STRUCT_VALUE): Likewise.
4945 (SETUP_INCOMING_VARARGS): Likewise.
4946 (STRICT_ARGUMENT_NAMING): Likewise.
4947
4948 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
4949
4950 * fixinc/fixinc.c (test_test): Initialize res.
4951 (start_flexer): Initialize pz_cmd_save.
4952
4953 2004-01-27 Zack Weinberg <zack@codesourcery.com>
4954
4955 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
4956 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
4957
4958 2004-01-27 Zack Weinberg <zack@codesourcery.com>
4959
4960 PR 7198
4961 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
4962 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
4963 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
4964 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
4965 Possibly rename pattern for consistency.
4966 Remove ??? comments suggesting that this be done.
4967 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
4968 New patterns.
4969 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
4970 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
4971 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
4972 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
4973 Update to match.
4974
4975 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
4976
4977 * config/arm/arm.c (output_return_instruction): Only restore IP
4978 into SP if frame_pointer_needed.
4979
4980 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
4981
4982 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
4983 for SCmode and DCmode if ARCH32.
4984 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
4985 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
4986 if ARCH32.
4987 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
4988 if ARCH32.
4989 (BASE_OUTGOING_VALUE_REG): Likewise.
4990
4991 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
4992
4993 PR target/10904
4994 PR target/13058
4995 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
4996 Forbid mode changes from SImode for lower FP regs if ARCH64.
4997
4998 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
4999
5000 * Makefile.in (bt-load.o): Depend on except.h.
5001 * bt-load.c (except.h): #include.
5002 (compute_defs_uses_and_gen): If insn at end of BB can throw
5003 within this function, consider registers used by it unavailable for
5004 btr migration.
5005 (move_btr_def): If insn at end of BB can throw, insert before rather
5006 than after.
5007
5008 * flags.h (flag_btr_bb_exclusive): Declare.
5009 * toplev.c (flag_btr_bb_exclusive): New variable.
5010 (f_options): Add btr-bb-exclusive.
5011 * bt-load.c (augment_live_range): Restore old behaviour if
5012 flag_btr_bb_exclusive is set.
5013 * common.opt: Add entry for -fbtr-bb-exclusive.
5014 * opts.c (common_handle_options): Same.
5015 * doc/invoke.texi: Document -fbtr-bb-exclusive.
5016
5017 * bt-load.c (btrs_live_at_end): New variable.
5018 (compute_defs_uses_and_gen): Compute its pointed-to array.
5019 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
5020 (augment_live_range): When augmenting with a new dominator,
5021 use only its btrs_live_at_end set, but also add in the full set
5022 of the old dominator.
5023 (btr_def_live_range): Use btrs_live_at_end.
5024 (move_btr_def): Set other_btr_uses_before_def, and move new set
5025 to the end of the basic block, if appropriate.
5026 (migrate_btr_defs): Allocate and free btrs_live_at_end.
5027
5028 * bt-load.c (basic_block_freq): Remove outdated comment.
5029
5030 2004-01-27 Alan Modra <amodra@bigpond.net.au>
5031
5032 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
5033 (PREDICATE_CODES): Remove duplicate.
5034 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
5035 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
5036 (MASK_PROFILE_KERNEL): Adjust define.
5037
5038 2004-01-27 Jakub Jelinek <jakub@redhat.com>
5039
5040 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
5041 of long string literals from 32 bytes to sizeof (void *) when !-Os
5042 and to 1 with -Os.
5043
5044 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5045
5046 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
5047 constant addresses in the normal mode.
5048
5049 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5050
5051 * system.h (CHAR_BITFIELD): Delete.
5052 (BOOL_BITFIELD): New.
5053 * c-decl.c (c_scope): Use BOOL_BITFIELD.
5054 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
5055
5056 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5057
5058 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5059 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5060 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5061 (TARGET_STRUCT_VALUE_RTX): Likewise.
5062 (TARGET_RETURN_IN_MEMORY): Likewise.
5063 (arc_return_in_memory): Likewise.
5064 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
5065 (PROMOTE_FUNCTION_RETURN): Likewise.
5066 (RETURN_IN_MEMORY): Likewise.
5067 (STRUCT_VALUE): Likewise.
5068
5069 2004-01-26 Richard Henderson <rth@redhat.com>
5070
5071 * c-parse.in (extension): Use itype.
5072 (SAVE_EXT_FLAGS): Don't allocate a tree.
5073 (RESTORE_EXT_FLAGS): Don't read a tree.
5074
5075 2004-01-26 Jan Hubicka <jh@suse.cz>
5076
5077 * cselib.c (discard_useless_values): Clear out value pointer pointing
5078 to datastructure to be recycled.
5079
5080 2004-01-25 Jan Hubicka <jh@suse.cz>
5081
5082 * genextract.c (main): Do not output the memset when not checking.
5083
5084 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5085
5086 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
5087 switch statement instead of a chain of if statements.
5088
5089 2004-01-26 Jeff Law <law@redhat.com>
5090
5091 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
5092 acute accents for Petur Runolfsson's entry.
5093
5094 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5095
5096 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
5097 (TARGET_RETURN_IN_MEMORY): Likewise.
5098 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
5099 (RETURN_IN_MEMORY): Likewise.
5100
5101 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
5102
5103 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
5104 unaligned load/store into smaller loads and stores.
5105
5106 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
5107
5108 * function.c (assign_parms): Do not assign
5109 long long argument to memory in prologue if
5110 is it loaded into register.
5111
5112 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
5113
5114 PR middle-end/13779
5115 * expr.c (emit_group_load): split constant
5116 correctly into register components of PARALLEL insn.
5117
5118 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
5119
5120 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
5121 Use adjust_address_nv directly with appropriate mode.
5122 (restore_stack_nonlocal): Ditto.
5123
5124 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5125
5126 * config/xtensa/xtensa-protos.h: Remove the prototype for
5127 xtensa_builtin_saveregs.
5128 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5129 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5130 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5131 (TARGET_STRUCT_VALUE_RTX): Likewise.
5132 (TARGET_RETURN_IN_MEMORY): Likewise.
5133 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5134 (xtensa_builtin_saveregs): Make it static.
5135 (xtensa_return_in_memory): New.
5136 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
5137 (PROMOTE_FUNCTION_RETURN): Likewise.
5138 (PROMOTE_PROTOTYPES): Likewise.
5139 (STRUCT_VALUE): Likewise.
5140 (RETURN_IN_MEMORY): Likewise.
5141 (EXPAND_BUILTIN_SAVEREGS): Likewise.
5142
5143 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5144
5145 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
5146 (arm_setup_incoming_varargs): Likewise.
5147 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
5148
5149 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5150
5151 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
5152 (cris_setup_incoming_varargs): Likewise.
5153 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
5154
5155 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5156
5157 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
5158 (ns32k_struct_value_rtx): Likewise.
5159 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
5160 NS32K_STRUCT_VALUE_REGNUM.
5161
5162 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5163
5164 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5165 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5166 (TARGET_STRUCT_VALUE_RTX): Likewise.
5167 (arm_struct_value_rtx): Likewise.
5168 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
5169 (STRUCT_VALUE): Likewise.
5170 (STRUCT_VALUE_REGNUM): Likewise.
5171 (PROMOTE_PROTOTYPES): Likewise.
5172
5173 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
5174
5175 * config/ia64/ia64-protos.h: Remove the prototype for
5176 ia64_setup_incoming_varargs and ia64_return_in_memory.
5177 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
5178 (TARGET_RETURN_IN_MEMORY): Likewise.
5179 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5180 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
5181 (ia64_setup_incoming_varargs): Adjust the arguments to meet
5182 the requirement of TARGET_SETUP_INCOMING_VARARGS.
5183 (ia64_return_in_memory): Make it static. Change the return
5184 type to bool from int. Add an argument.
5185 (ia64_struct_value_rtx): New.
5186 * config/ia64/ia64.h: Remove commented-out definitions of
5187 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
5188 PROMOTE_PROTOTYPES.
5189 (RETURN_IN_MEMORY): Remove.
5190 (STRUCT_VALUE_REGNUM): Likewise.
5191 (STRICT_ARGUMENT_NAMING): Likewise.
5192
5193 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
5194
5195 PR target/13666
5196 * config/sparc/sparc.c (function_arg_union_value): New function.
5197 (function_arg): Use it to deal with unions.
5198 (function_value): Likewise. Define 'regbase' only for ARCH64.
5199 Replace a conditional statement by a simpler one.
5200
5201 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
5202
5203 * config/mips/mips.c (mips16_optimize_gp): Delete.
5204 (mips_reorg): Don't call it.
5205
5206 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5207
5208 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
5209 (floatunsqihf2): Remove operand 6.
5210 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
5211 fix patterns.
5212 (ldi_conditional, ldf_conditional): Validate operands.
5213
5214 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5215
5216 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
5217 (HAVE_GAS_HIDDEN): Undefine as interim measure.
5218
5219 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5220
5221 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
5222 memory references if TARGET_EXPOSE_LDP nonzero.
5223
5224 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5225
5226 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
5227
5228 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5229
5230 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
5231 invalid operand combinations.
5232
5233 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5234
5235 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
5236 c4x_legitimate_address_p. Fix post_modify check.
5237
5238 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
5239 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
5240
5241 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5242
5243 * config/pa/pa-protos.h: Remove the prototype for
5244 hppa_builtin_saveregs. Add a prototype for
5245 pa_return_in_memory.
5246 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
5247 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5248 (TARGET_STRUCT_VALUE_RTX): Likewise.
5249 (TARGET_RETURN_IN_MEMORY): Likewise.
5250 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5251 (pa_struct_value_rtx): Likewise.
5252 (pa_return_in_memory): Likewise.
5253 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
5254 PA_STRUCT_VALUE_REGNUM.
5255 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
5256 (EXPAND_BUILTIN_SAVEREGS): Remove.
5257 (PROMOTE_PROTOTYPES): Likewise.
5258 (PROMOTE_FUNCTION_RETURN): Likewise.
5259
5260 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5261
5262 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
5263 (TARGET_STRUCT_VALUE_RTX): Likewise.
5264 (vax_struct_value_rtx): Likewise.
5265 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
5266 VAX_STRUCT_VALUE_REGNUM.
5267 (PROMOTE_PROTOTYPES): Remove.
5268
5269 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5270
5271 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
5272
5273 2003-04-25 Chris Demetriou <cgd@broadcom.com>
5274
5275 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
5276 and MIPS64 have HI/LO interlocks. Update comment.
5277
5278 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5279
5280 * config/stormy16/stormy16-protos.h: Remove the prototype for
5281 xstormy16_setup_incoming_varargs.
5282 * config/stormy16/stormy16.c
5283 (xstormy16_setup_incoming_varargs): Remove.
5284 (xstormy16_return_in_memory): New.
5285 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
5286 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5287 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5288 (TARGET_STRUCT_VALUE_RTX): Likewise.
5289 (TARGET_RETURN_IN_MEMORY): Likewise.
5290 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
5291 (PROMOTE_FUNCTION_RETURN): Likewise
5292 (PROMOTE_PROTOTYPES): Likewise
5293 (RETURN_IN_MEMORY): Likewise
5294 (STRUCT_VALUE): Likewise
5295 (SETUP_INCOMING_VARARGS): Likewise
5296
5297 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
5298
5299 * config/mips/mips.c (mips_offset_within_object_p): New function.
5300 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
5301 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
5302 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
5303
5304 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5305
5306 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
5307 (PROMOTE_FUNCTION_RETURN): Likewise.
5308
5309 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5310
5311 * config/mn10300/mn10300-protos.h: Remove the prototype for
5312 mn10300_builtin_saveregs.
5313 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
5314 (TARGET_STRUCT_VALUE_RTX): Likewise.
5315 (TARGET_RETURN_IN_MEMORY): Likewise.
5316 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5317 (mn10300_return_in_memory): Likewise.
5318 (mn10300_builtin_saveregs): Make it static.
5319 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
5320 (RETURN_IN_MEMORY): Likewise.
5321 (STRUCT_VALUE): Likewise.
5322 (EXPAND_BUILTIN_SAVEREGS): Likewise.
5323
5324 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
5325
5326 PR bootstrap/13853
5327 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
5328
5329 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5330
5331 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
5332 using ccr.
5333
5334 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5335
5336 * config/i860/i860-protos.h: Remove the prototype for
5337 i860_saveregs.
5338 * config/i860/i860.c (i860_saveregs): Make it static.
5339 (i860_struct_value_rtx): New.
5340 (TARGET_STRUCT_VALUE_RTX): Likewise.
5341 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
5342 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
5343 I860_STRUCT_VALUE_REGNUM.
5344 (EXPAND_BUILTIN_SAVEREGS): Remove.
5345
5346 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5347
5348 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
5349 (TARGET_RETURN_IN_MEMORY): Likewise.
5350 (m68hc11_struct_value_rtx): Likewise.
5351 (m68hc11_return_in_memory): Likewise.
5352 * config/m68hc11/m68hc11.h: Remove a commented-out definition
5353 of PROMOTE_PROTOTYPES.
5354 (RETURN_IN_MEMORY): Remove.
5355 (STRUCT_VALUE_REGNUM): Likewise.
5356
5357 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5358
5359 * config/mmix/mmix-protos.h: Remove the prototype for
5360 mmix_setup_incoming_varargs.
5361 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5362 (TARGET_STRUCT_VALUE_RTX): Likewise.
5363 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5364 (mmix_setup_incoming_varargs): Make it static.
5365 (mmix_struct_value_rtx): New.
5366 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
5367 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
5368 (STRUCT_VALUE_REGNUM): Remove.
5369 (SETUP_INCOMING_VARARGS): Likewise.
5370
5371 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5372
5373 * config/mips/mips-protos.h: Remove the prototypes for
5374 mips_setup_incoming_varargs and mips_return_in_memory.
5375 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5376 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
5377 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5378 (TARGET_STRUCT_VALUE_RTX): Likewise.
5379 (TARGET_RETURN_IN_MEMORY): Likewise.
5380 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5381 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
5382 (mips_setup_incoming_varargs): Match the prototype for
5383 TARGET_SETUP_INCOMING_VARARGS.
5384 (mips_return_in_memory): Make it static. Add argument fntype.
5385 (mips_strict_argument_naming): New.
5386 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
5387 (PROMOTE_FUNCTION_ARGS): Likewise.
5388 (PROMOTE_FUNCTION_RETURN): Likewise.
5389 (STRUCT_VALUE): Likewise.
5390 (RETURN_IN_MEMORY): Likewise.
5391 (SETUP_INCOMING_VARARGS): Likewise.
5392 (STRICT_ARGUMENT_NAMING): Likewise.
5393
5394 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5395
5396 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
5397 (TARGET_RETURN_IN_MEMORY): Likewise.
5398 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5399 (ip2k_return_in_memory): Likewise.
5400 (ip2k_setup_incoming_varargs): Likewise.
5401 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
5402 (STRUCT_VALUE): Likewise.
5403 (STRUCT_VALUE_INCOMING): Likewise.
5404 (SETUP_INCOMING_VARARGS): Likewise.
5405
5406 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
5407
5408 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
5409 (TARGET_RETURN_IN_MEMORY): Likewise.
5410 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
5411 (avr_return_in_memory): Remove.
5412 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
5413 (STRUCT_VALUE): Likewise.
5414 (STRUCT_VALUE_INCOMING): Likewise.
5415 (STRICT_ARGUMENT_NAMING): Likewise.
5416
5417 2004-01-25 Jan Hubicka <jh@suse.cz>
5418
5419 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
5420
5421 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
5422
5423 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
5424 (mips_regno_mode_ok_for_base_p): Declare.
5425 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
5426 (FRAME_POINTER_REGNUM): Renumber to 78.
5427 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
5428 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
5429 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
5430 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
5431 (REG_MODE_OK_FOR_BASE_P): Likewise.
5432 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
5433 entry for 77 to "$arg" and entry for 78 to "$frame".
5434 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
5435 (mips_reg_mode_ok_for_base_p): Remove.
5436 (mips_regno_mode_ok_for_base_p): New function, derived from old
5437 BASE_REG_P macro. Don't enforce the mips16 stack pointer
5438 restrictions unless we're being strict.
5439 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
5440
5441 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5442
5443 * c-common.h: Fix comment typos.
5444 * c-decl.c: Likewise.
5445 * cgraphunit.c: Likewise.
5446 * combine.c: Likewise.
5447 * et-forest.c: Likewise.
5448 * flow.c: Likewise.
5449 * function.c: Likewise.
5450 * ifcvt.c: Likewise.
5451 * integrate.c: Likewise.
5452 * jump.c: Likewise.
5453 * postreload.c: Likewise.
5454 * varray.c: Likewise.
5455
5456 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5457
5458 * doc/frontends.texi: Update copyright.
5459 * doc/gcov.texi: Likewise.
5460 * doc/gty.texi: Likewise.
5461 * doc/sourcebuild.texi: Likewise.
5462 * doc/standards.texi: Likewise.
5463
5464 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5465
5466 PR target/12978
5467 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
5468 Remove movstrqi_small because it conflicts with movstrqi_large.
5469
5470 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5471
5472 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
5473 (TARGET_STRUCT_VALUE_RTX): Likewise.
5474 (cris_struct_value_rtx): Likewise.
5475 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
5476 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
5477 STRUCT_VALUE_REGNUM.
5478 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
5479
5480 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
5481
5482 PR bootstrap/13848
5483 * cse.c (cse_cc_succs): Change the mode of the source expression
5484 as soon as decide we need a new mode. Don't permit changing modes
5485 if we found a match in a successor block.
5486 (cse_condition_code_reg): Save original mode of source expression
5487 so that we know whether we have to change the mode in other
5488 insns.
5489
5490 2004-01-24 Jan Hubicka <jh@suse.cz>
5491
5492 * emit-rtl.c (change_address, adjust_address_1, offset_address,
5493 widen_memory_access): Return early when there is nothing to change.
5494
5495 2004-01-24 Jakub Jelinek <jakub@redhat.com>
5496
5497 * simplify-rtx.c (simplify_relational_operation): Don't
5498 simplify address == constant into address + -constant == 0.
5499
5500 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5501
5502 * gcc.c (process_command): Don't internationalize the
5503 Copyright message.
5504 * mips-tfile.c (main): Likewise.
5505
5506 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
5507
5508 * cse.c: (cse_cc_succs) Fix comparison warning.
5509
5510 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5511
5512 * config/h8300/h8300.md: Remove extraneous USE in expanders.
5513
5514 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5515
5516 * config/h8300/h8300-protos.h: Provide prototypes for
5517 h8300_legitimate_constant_p and h8300_legitimate_address_p.
5518 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
5519 (h8300_rtx_ok_for_base_p): Likewise.
5520 (h8300_legitimate_address_p): Likewise.
5521 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
5522 h8300_legitimate_constant_p.
5523 (RTX_OK_FOR_BASE_P): Remove.
5524 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
5525
5526 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
5527
5528 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
5529 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
5530 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
5531 (REG_OK_FOR_BASE_STRICT_P): Likewise.
5532 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
5533 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
5534 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
5535 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
5536
5537 2004-01-24 Jan Hubicka <jh@suse.cz>
5538
5539 * cselib.c (remove_useless_values): Do not access discarded values.
5540
5541 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
5542
5543 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
5544 arrays.
5545
5546 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
5547
5548 * recog.c: Fix a typo in copyright.
5549
5550 2004-01-23 Andrew Pinski <apinski@apple.com>
5551
5552 * config/rs6000/rs6000.md (call): Fix misappiled patch.
5553 (call_value): Likewise.
5554
5555 2004-01-23 Richard Henderson <rth@redhat.com>
5556
5557 PR opt/12941
5558 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
5559 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
5560 if SHIFT_COUNT_TRUNCATED is set.
5561
5562 2004-01-23 Bob Wilson <bob.wilson@acm.org>
5563
5564 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
5565 separate real and imaginary parts.
5566 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
5567
5568 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
5569
5570 PR target/13674
5571 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
5572 loading into GPR.
5573
5574 2004-01-23 Jan Hubicka <jh@suse.cz>
5575
5576 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
5577 change.
5578
5579 * alloc-pool.c (align_four): Kill.
5580 (create_alloc_pool): Align size to eight.
5581 (free_alloc_pool, free_pool): Invalidate deallocated data.
5582
5583 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
5584
5585 PR gcc/1532
5586 * cse.c (cse_change_cc_mode): New static function.
5587 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
5588 (cse_condition_code_reg): New function.
5589 * rtl.h (cse_condition_code_reg): Declare.
5590 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
5591 * target.h (struct gcc_target): Add fixed_condition_code_regs and
5592 cc_modes_compatible.
5593 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5594 (TARGET_CC_MODES_COMPATIBLE): Define.
5595 (TARGET_INITIALIZER): Add new initializers.
5596 * targhooks.c (default_cc_modes_compatible): New function.
5597 * targhooks.c (default_cc_modes_compatible): Declare.
5598 * hooks.c (hook_bool_intp_intp_false): New function.
5599 * hooks.h (hook_bool_intp_intp_false): Declare.
5600 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5601 (TARGET_CC_MODES_COMPATIBLE): Define.
5602 (ix86_fixed_condition_code_regs): New static function.
5603 (ix86_cc_modes_compatible): Likewise.
5604 * doc/tm.texi (Condition Code): Document new hooks.
5605
5606 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5607
5608 * fixinc/inclhack.def (bad_lval): Renamed to ...
5609 (alpha_bad_lval): ... this.
5610 Removed file list.
5611 Restrict to alpha*-dec-osf*.
5612 * fixinc/fixincl.x: Regenerate.
5613 * fixinc/tests/base/dirent.h: Remove, moving test ...
5614 * fixinc/tests/base/testing.h: ... here, reflecting new name.
5615
5616 2004-01-23 Zack Weinberg <zack@codesourcery.com>
5617
5618 PR c/13814
5619 * c-decl.c (diagnose_mismatched_decls): Also discard a
5620 built-in if we encounter an old-style definition with the
5621 same name.
5622
5623 2004-01-23 Jakub Jelinek <jakub@redhat.com>
5624
5625 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
5626 set to default{32,64}.
5627
5628 2004-01-21 Jakub Jelinek <jakub@redhat.com>
5629
5630 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
5631 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
5632
5633 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
5634 Olivier Hainque <hainque@act-europe.fr>
5635
5636 * fold-const.c (fold_binary_op_with_conditional_arg): Only
5637 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
5638
5639 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
5640
5641 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
5642 size for minipool references.
5643
5644 2004-01-23 Roger Sayle <roger@eyesopen.com>
5645
5646 * real.c (real_floor, real_ceil): Tweak to allow input and output
5647 arguments to overlap.
5648 (real_round): New function to implement round(3m) semantics.
5649 * real.h (real_round): Prototype here.
5650 * builtins.c (fold_builtin_round): New function to constant fold
5651 round, roundf and roundl.
5652 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
5653
5654 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
5655
5656 PR optimization/13819
5657 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
5658 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
5659 (sh_handle_sp_switch_attribute): Remove warning.
5660
5661 2003-11-30 Jan Hubicka <jh@suse.cz>
5662
5663 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
5664
5665 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
5666
5667 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
5668 may or may not return non-NIL.
5669 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
5670 check CANNOT_CHANGE_MODE_CLASS
5671
5672 2004-01-23 Jan Hubicka <jh@suse.cz>
5673
5674 * basic-block.h (PROP_POSTRELOAD): New macro.
5675 (CLEANUP_LOG_LINKS): New.
5676 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
5677 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
5678
5679 * cselib.c (value_pool): New.
5680 (new_cselib_val): Use pool.
5681 (cselib_init): Initialize value_pool
5682 (cselib_finish): Free pool.
5683
5684 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
5685
5686 * config/sparc/sparc.c (scan_record_type): New function.
5687 (function_arg_slotno): Use it to determine which kinds of
5688 registers the record can be passed in.
5689
5690 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
5691
5692 * config/pa/fptr.c: Fix old-style definition.
5693
5694 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
5695
5696 PR optimization/13724
5697 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
5698 represents the zero bits produced by a ZERO_EXTEND operation.
5699
5700 2004-01-22 Roger Sayle <roger@eyesopen.com>
5701
5702 PR optimization/13821
5703 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
5704 correctly calculate the lowpart offset of the contracted subreg.
5705
5706 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
5707
5708 * doc/invoke.texi (Optimize Options): Note that --param arguments
5709 are subject to change without notice.
5710
5711 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5712
5713 * config.gcc (mips-sgi-irix6*o32): Removed.
5714 * config/mips/iris6-o32-as.h: Likewise.
5715 * config/mips/iris6-o32-gas.h: Likewise.
5716 * config/mips/iris6-o32.h: Likewise.
5717
5718 2004-01-22 Jan Hubicka <jh@suse.cz>
5719
5720 * cfgcleanup.c (first_pass): New static variable.
5721 (try_forward_edges): Add work limiting check for threading.
5722 (try_crossjump_bb): Add work limiting check for crossjumping.
5723 (try_optimize_cfg): Maintain first pass variable.
5724
5725 2004-01-22 Bob Wilson <bob.wilson@acm.org>
5726
5727 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
5728 handles complex and vector modes.
5729
5730 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
5731
5732 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
5733 (REG_OK_FOR_BASE_P_STRICT): Likewise.
5734 (STRICT): Likewise.
5735
5736 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
5737
5738 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
5739 (genrtl_for_stmt): Remove emit_nop calls.
5740
5741 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5742
5743 PR target/13713
5744 PR target/13324
5745 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
5746 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
5747 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
5748
5749 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
5750
5751 * config/arm/arm.c: Include "debug.h".
5752 (thumb_pushpop): Take two new arguments. Add some commentary.
5753 Output frame information when pushing.
5754 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
5755 thumb_pushpop.
5756 (thumb_output_function_prologue): Likewise. Accumulate a CFA
5757 offset, and pass it to thumb_pushpop. Output CFI information.
5758 (thumb_expand_prologue): Add some frame-related markers and notes.
5759
5760 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
5761
5762 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
5763 for TARGET_64BIT.
5764 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
5765 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
5766
5767 2004-01-22 Roger Sayle <roger@eyesopen.com>
5768 Paolo Bonzini <bonzini@gnu.org>
5769
5770 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
5771 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
5772 * rtl.h (subreg_lsb_1): Prototype here.
5773 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
5774 sign extensions.
5775
5776 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
5777
5778 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
5779 macro need not be defined if jump-tables should contain
5780 relative addresses only when -fPIC or -fPIC is in effect.
5781
5782 2004-01-22 Jan Hubicka <jh@suse.cz>
5783
5784 * alias.c (reg_base_value): Turn into varray.
5785 (reg_base_value_size): Kill.
5786 (old_reg_base_value): New deletable varray.
5787 (alias_invariant_size): New variable.
5788 (REG_BASE_VALUE): Update to use varray.
5789 (find_base_value): Likewise.
5790 (record_set): Likewise.
5791 (record_base_value): Likewise.
5792 (memrefs_conflict_p): Likewise.
5793 (record_set): Likewise
5794 (record_base_value): Likewise.
5795 (memrefs_conflict_p): Use alias_invariant_size.
5796 (init_alias_analysis): Use varray; set alias_invariant_size;
5797 rescale other arrays to be sized by maxreg.
5798 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
5799
5800 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
5801
5802 * config/sparc/sparc.c (function_arg_slotno): Use
5803 FLOAT_TYPE_P to detect FP fields in structures.
5804 (function_arg_record_value_1): Likewise.
5805 (function_arg_record_value_2): Likewise.
5806
5807 2004-01-22 Jan Hubicka <jh@suse.cz>
5808
5809 * function.c (allocate_struct_function): Do not initialize expr, emit
5810 and varasm.
5811 (prepare_function_start): Do it here.
5812 * c-parse.in (maybe_type_qual): Do not produce line number notes.
5813
5814 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
5815
5816 PR target/13559
5817 * config/sparc/sparc.c (function_arg_record_value_3): Revert
5818 to 'word_mode' once the first slot has been filled.
5819
5820 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
5821
5822 * config/sparc/sparc.c (function_arg_record_value_1): Fix
5823 computation of the number of integer registers required.
5824
5825 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
5826
5827 * config/i386/i386.md: Simplify certain comparisons of
5828 const_int.
5829
5830 2004-01-21 Andrew Pinski <apinski@apple.com>
5831
5832 PR target/13785
5833 * config/rs6000/rs6000.md (call_value): Force operand
5834 1 not operand 0 into a register.
5835
5836 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
5837
5838 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
5839 unwind-dw2-fde.h: Update copyright.
5840
5841 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5842
5843 * pa-protos.h: Update copyright.
5844 * pa.h: Likewise.
5845 * pa.md: Likewise.
5846
5847 2004-01-21 Caroline Tice <ctice@apple.com>
5848
5849 PR target/12308
5850 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
5851 flags register.
5852 (fix_truncdfdi2): Likewise.
5853 (fix_truncsfdi2): Likewise.
5854 (*fix_truncdi_1): Likewise.
5855 (fix_truncxfsi2): Likewise.
5856 (fix_truncdfsi2): Likewise.
5857 (fix_truncsfsi2): Likewise.
5858 (*fix_truncsi_1): Likewise.
5859 (fix_truncxfhi2): Likewise.
5860 (fix_truncdfhi2): Likewise.
5861 (fix_truncsfhi2): Likewise.
5862 (*fix_trunchi_1): Likewise.
5863
5864 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
5865
5866 * alias.c, basic-block.h, c-common.c, c-common.h,
5867 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
5868 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
5869 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
5870 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
5871 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
5872 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
5873 genautomata.c, genconditions.c, genemit.c, genflags.c,
5874 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
5875 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
5876 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
5877 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
5878 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
5879 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
5880 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
5881 unwind.h, varray.c, varray.h: Update copyright.
5882
5883 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
5884
5885 * config/h8300/coff.h: Update copyright.
5886 * config/h8300/elf.h: Likewise.
5887 * config/h8300/h8300-protos.h: Likewise.
5888 * config/h8300/h8300.c: Likewise.
5889 * config/h8300/h8300.h: Likewise.
5890 * config/h8300/h8300.md: Likewise.
5891
5892 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5893
5894 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
5895 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
5896 ultrix_unistd): New hacks.
5897 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
5898 ULTRIX_CONST2_CHECK): Add checks.
5899 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
5900 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
5901 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
5902 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
5903 * fixinc/tests/base/locale.h: New file.
5904 * fixinc/fixincl.x: Rebuilt.
5905
5906 2004-01-21 Andreas Jaeger <aj@suse.de>
5907 Michael Matz <matz@suse.de>
5908
5909 * doc/extend.texi (Extended Asm): Clarify memory clobber.
5910
5911 2004-01-21 Jakub Jelinek <jakub@redhat.com>
5912
5913 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
5914 _Jv_RegisterClasses through a function pointer.
5915
5916 2004-01-21 Falk Hueffner <falk@debian.org>
5917
5918 PR target/12898
5919 * config/alpha/alpha.c (alpha_emit_set_const_1): If
5920 no_new_pseudos, use gen_rtx_SET directly for SImode constants
5921 which need multiple instructions to emit.
5922
5923 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
5924
5925 * config/m32r/m32r.h (CPP_SPEC): Define.
5926
5927 2004-01-21 Zack Weinberg <zack@codesourcery.com>
5928
5929 * c-decl.c (merge_decls): Kill different_binding_level and
5930 different_tu arguments; simplify throughout.
5931 (duplicate_decls): Likewise.
5932 (pushdecl, merge_translation_unit_decls): Update calls to
5933 duplicate_decls.
5934
5935 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5936
5937 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
5938 $(SYSTEM_H).
5939 (print-rtl1.o): Depend on $(SYSTEM_H).
5940
5941 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
5942
5943 PR bootstrap/12730
5944 * configure.ac: Delete definition and subsitution of docdir.
5945 Add info, man, srcman and srcinfo to target hooks. Create doc/
5946 directory.
5947 * configure: Regenerate.
5948 * Makefile.in: Don't substitute docdir and delete all references
5949 throughout.
5950 (MAKEINFOFLAGS): Define.
5951 (stmp-docobjdir): Delete.
5952 (INFOFILES, MANFILES): Define.
5953 (info): Call lang.info, srcinfo and lang.srcinfo.
5954 (generated-manpages): Call lang.man, srcman and lang.srcman.
5955 (srcinfo, srcman): New rules to copy back files to source directory.
5956 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
5957 (install-man): Revamp rule.
5958 (clean): Update dvi directory.
5959 (distclean): Delete TAGS from front end directorys.
5960 (maintainer-clean): Delete all document files in source directory.
5961
5962 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
5963 (objc.srcman, objc.srcinfo): Likewise.
5964
5965 2004-01-20 Bruce Korb <bkorb@gnu.org>
5966
5967 * fixinc/inclhack.def(math_exception): bypass only for glibc.
5968 (matherr_decl): rename & relocate as exception_structure.
5969 This fix must precede the math_exception fix.
5970
5971 2004-01-20 Roger Sayle <roger@eyesopen.com>
5972
5973 * fold-const.c (fold_convert): Rename to fold_convert_const.
5974 (fold_convert_const): Change arguments to take a tree_code,
5975 a type and the operand/expression to be converted. Return
5976 NULL_TREE if no simplification is possible. Add support for
5977 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
5978 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
5979 Adjust call to fold_convert to match new fold_convert_const.
5980 Avoid modifying the tree passed to fold in-place.
5981
5982 2004-01-21 Alan Modra <amodra@bigpond.net.au>
5983
5984 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
5985 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
5986 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
5987
5988 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5989
5990 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
5991 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
5992 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
5993 (emit_move_sequence): Check scratch_reg first in various if statements.
5994 Extend source simplification to handle all 64-bit CONST_INTs.
5995 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
5996 frame size.
5997 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
5998 frame offset calculations.
5999 * pa.h (NEW_HP_ASSEMBLER): Add comment.
6000 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
6001 LEGITIMATE_64BIT_CONST_INT_P): Define.
6002 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
6003 any CONST_INT as legitimate during and after reload.
6004 (VAL_32_BITS_P, INT_32_BITS): Define.
6005 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
6006
6007 2004-01-20 Jan Hubicka <jh@suse.cz>
6008
6009 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
6010 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
6011 containing hard regs are shared.
6012 (gen_hard_reg_clobber): New function.
6013 (hard_reg_clobbers): New array.
6014 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
6015 (copy_rtx): Do not copy clobbers containing hard regs.
6016 * rtl.h (gen_hard_reg_clobber): Declare.
6017
6018 2004-01-20 Jan Hubicka <jh@suse.cz>
6019
6020 * varray.c: Include hashtab.h
6021 (varray_descriptor): New structure.
6022 (hash_descriptor, eq_descriptor, varray_descriptor,
6023 print_statistics): New static functions
6024 (varray_init, varray_grow): Update statistics
6025 (dump_varray_statistics): New function.
6026 * varray.h (dump_varray_statistics): Declare.
6027 * toplev.c (finalize): Call it.
6028 * Makefile.in (varray.o): Add dependency.
6029
6030 2004-01-20 Jan Hubicka <jh@suse.cz>
6031
6032 * cselib.c: Include alloc-pool.h
6033 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
6034 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
6035 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
6036 unchain_one_elt_loc_list_pool, unchain_one_value,
6037 new_cselib_val): Simplify using allocpool.
6038 (cselib_init): Initialize allocpools.
6039 (cselib_finish): Finish allocpools.
6040 * Makefile.in (cselib.o): Depend on alloc-pool.h
6041
6042 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
6043
6044 * config/mips/mips.c (mips_load_call_address): Make the call insn
6045 use $gp if it could be calling a lazy binding stub.
6046
6047 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
6048
6049 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
6050 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
6051 (TARGET_STRUCT_VALUE_RTX): Likewise.
6052 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
6053 (PROMOTE_FUNCTION_RETURN): Remove.
6054 (STRUCT_VALUE): Remove.
6055
6056 2004-01-20 Denis Chertykov <denisc@overta.ru>
6057
6058 PR bootstrap/13735
6059 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
6060 register as pointer after reload.
6061
6062 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6063
6064 PR optimization/12440
6065 * loop.c: Include ggc.h.
6066 (loop_optimize): Run garbage collector between optimization of loops.
6067 * Makefile.in (loop.o): Add GGC_H dependency.
6068
6069 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
6070
6071 * gcc/config/rs6000/rs6000.c (function_arg) Handle
6072 vector register special in function without prototype.
6073 (function_arg_advance): Vector parameters get always
6074 GPRs allocated for the linux64 target.
6075
6076 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6077
6078 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
6079 not TARGET_M32RX_MASK.
6080
6081 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
6082
6083 PR target/13557
6084 * config/sparc/sparc.c (function_arg): Reorder the cases.
6085
6086 2004-01-19 Per Bothner <per@bothner.com>
6087
6088 Move cpp_reader's line_maps field to a shared global.
6089 * cpphash.h (cpp_reader): Rename line_maps field to line_table
6090 and change the type to a pointer rather than a struct.
6091 * cppinit.c (cpp_push_main_field): Adjust accordingly.
6092 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
6093 Likewise.
6094 * cppfiles.c (validate_pch): Likewise.
6095 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
6096 Likewise.
6097 * cpperror.c (print_location): Likewise.
6098 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
6099 * cppinit.c (cpp_create_reader): Handle new parameter.
6100 (cpp_destroy): Don't free line_maps - that's no longer our job.
6101 * input.h (line_table): New variable.
6102 * toplev.c (line_table): Declare variable.
6103 (general_init): Initialize line_table.
6104 * c-opts.c (c_common_init_options): Pass line_table to
6105 cpp_create_reader.
6106 * fix-header.c (read_scan_file): New local variable line_table.
6107 Initialize, and pass it to cpp_create_reader.
6108 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
6109 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
6110
6111 2004-01-19 Per Bothner <per@bothner.com>
6112
6113 Implement a cache for linemap_lookup.
6114 * line-map.h (struct_line_maps): Add cache field.
6115 * line-map.c (linemap_init): Zero cache field.
6116 (linemap_add): Set cache field to offset of newly allocated map.
6117 (linemap_lookup): Use and set cache field.
6118
6119 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
6120
6121 PR optimization/13567
6122 * cse.c (cse_basic_block): Call cse_insn with a non-null
6123 libcall_insn for the last SET insn of a no-confilict block.
6124
6125 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
6126
6127 * Makefile.in (target_noncanonical, program_transform_name): Use
6128 immediate define instead of deferred.
6129 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
6130 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
6131 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
6132 deferred backquote.
6133
6134 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
6135
6136 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
6137 true unconditionally.
6138 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
6139 Remove.
6140 (build_unary_op, build_modify_expr): Don't handle extended
6141 lvalues.
6142 (build_component_ref, build_conditional_expr): Call non_lvalue
6143 instead of pedantic_non_lvalue.
6144 (build_c_cast): Don't condition use of non_lvalue on pedantic.
6145 * fold-const.c (fold): Don't check pedantic directly for
6146 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
6147 passed to pedantic_non_lvalue.
6148 * doc/extend.texi: Remove documentation of extended lvalues.
6149
6150 2004-01-19 Roger Sayle <roger@eyesopen.com>
6151
6152 PR optimization/5263
6153 * simplify-rtx.c (associative_constant_p): Delete.
6154 (simplify_associative_operation): Rewrite to linearize terms, and
6155 attempt to simplify new term against both left and right subterms.
6156 (simplify_binary_operation): Call swap_commutative_operands_p on
6157 op0 and op1, not trueop0 and trueop1. Move the initialization of
6158 trueop0 and trueop1 down to where first needed.
6159 (simplify_relational_operation): Likewise.
6160 * rtlanal.c (commutative_operand_precedence): Also order constant
6161 operands using avoid_constant_pool_reference.
6162
6163 2004-01-19 Richard Henderson <rth@redhat.com>
6164
6165 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
6166 don't check memory mode.
6167 (unaligned_memory_operand): Likewise.
6168 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
6169 abort for op0 not MEM.
6170
6171 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
6172 is not a reg, copy to a scratch first.
6173 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
6174 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
6175 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
6176 (reload_inqi, reload_inhi): Fix mode of op0.
6177 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
6178 reload_outhi_help): Likewise. Use define_insn_and_split.
6179
6180 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
6181 as well as $29 dead.
6182
6183 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
6184
6185 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
6186 "tls_object" for thread-local objects.
6187 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
6188 "#tls" for thread-local sections.
6189 * configure.ac (thread-local checks): Specify --fatal-warnings in
6190 every binutils-specific checks. For sparc*-*-*, test whether the
6191 OS is Solaris and the tools are native and act accordingly.
6192 * configure: Rebuild.
6193
6194 2004-01-19 Jeff Law <law@redhat.com>
6195
6196 * contrib.texi: Update Paolo Carlini's entry. New entries for
6197 Jerry Quinn and Petur Runolfsson.
6198
6199 2004-01-19 Roger Sayle <roger@eyesopen.com>
6200
6201 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
6202 size, don't use the larger zero-extending loads.
6203
6204 2004-01-19 Richard Henderson <rth@redhat.com>
6205
6206 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
6207 * alpha.md (UNSPEC_NT_LDA): Remove.
6208 (UNSPEC_CVTLQ, cvtlq): New.
6209 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
6210 (extendsidi2_fix): Remove.
6211 (extendsidi2 splitter): Use cvtlq.
6212 (extendsidi2 fp peepholes): Remove.
6213 (cvtql): Use SFmode instead of SImode.
6214 (fix_trunc?fsi): Update to match.
6215 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
6216 (movsi): Rename from movsi_nofix, remove f alternatives.
6217 (movsi_nt_vms): Similarly.
6218 (movsi_fix, movsi_nt_vms_fix): Remove.
6219 (nt_lda): Remove.
6220 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
6221
6222 2004-01-19 Jan Hubicka <jh@suse.cz>
6223
6224 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
6225 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
6226 list.
6227 (cgraph_remove_unreachable_nodes): New function
6228 (cgraph_decide_inlining_of_small_function): Fix pasto.
6229 (cgraph_decide_inlining_incrementally): Fix pasto.
6230 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
6231
6232 2004-01-19 Steven Bosscher <stevenb@suse.de>
6233
6234 * gengtype.c (header_file): Make it static.
6235 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
6236 * gengtype.h (header_file): No longer extern.
6237
6238 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
6239
6240 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
6241 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
6242 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
6243
6244 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
6245
6246 * stmt.c (HAVE_casesi): Define it not already defined.
6247 (HAVE_tablejump): Likewise.
6248 (expand_end_case_type): Resort to the binary tree method if
6249 neither casesi or tablejump is available.
6250
6251 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
6252
6253 * final.c (final_scan_insn): Make non-static again.
6254 * output.h (final_scan_insn): Re-add prototype.
6255 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
6256 to final_scan_insn call.
6257 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
6258 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
6259 * config/pa/pa.c (output_lbranch, output_call): Likewise.
6260 * config/sh/sh.c (print_slot): Likewise.
6261 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
6262 (output_sibcall, sparc_flat_function_epilogue): Likewise.
6263
6264 2004-01-18 Jan Hubicka <jh@suse.cz>
6265
6266 * basic-block.h (try_redirect_by_replacing_jump): Declare.
6267 * cfgcleanup.c (try_optimize_cfg): Use it.
6268 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
6269 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
6270 Kill hack.
6271 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
6272
6273 Revert:
6274 2004-01-16 Geoffrey Keating <geoffk@apple.com>
6275
6276 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
6277 even after reload, just don't remove the actual jump tables.
6278
6279 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
6280
6281 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
6282
6283 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
6284
6285 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
6286 the size of a pointer in bytes.
6287
6288 2004-01-18 Roger Sayle <roger@eyesopen.com>
6289
6290 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
6291 live "next" variable, which could lead to an infinite loop.
6292
6293 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
6294
6295 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
6296 block.
6297
6298 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
6299 Check for NULL in the chain and remove repeated code.
6300
6301 2004-01-18 Jan Hubicka <jh@suse.cz>
6302
6303 * coverage.c (checksum_string): Rename to ...
6304 (coverage_checksum_string): ... this one, Use crc32_string; recognize
6305 names containing random number and zero the number out in order to get
6306 match.
6307
6308 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
6309
6310 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
6311
6312 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
6313
6314 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
6315 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
6316 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
6317 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
6318 doc/trouble.texi: Remove trailing whitespace.
6319
6320 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
6321
6322 PR target/7618
6323 * config/mips/mips.c: Include cfglayout.h.
6324 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
6325 (mips_unspec_offset_high): Add temporary register argument.
6326 (mips_load_call_address): New function, split out from...
6327 (mips_expand_call): ...here.
6328 (mips_output_cplocal): New function.
6329 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
6330 (mips_emit_loadgp): New function, split out from...
6331 (mips_expand_prologue): ...here.
6332 (mips_output_mi_thunk): New function.
6333
6334 2004-01-17 Bernardo Innocenti <bernie@develer.com>
6335
6336 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
6337 mcpu32): Remove redundant checks for implied target predefines.
6338
6339 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
6340
6341 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
6342 Return type is unsigned int not int.
6343 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
6344 Likewise.
6345
6346 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
6347
6348 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
6349 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
6350 "GNU/Linux" and "Microsoft Windows" terminology.
6351
6352 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
6353
6354 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
6355 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
6356 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
6357 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
6358 @smallexample instead of @example.
6359
6360 2004-01-17 Ziemowit Laski <zlaski@apple.com>
6361
6362 * objc/objc-act.c (build_objc_method_call): Use target
6363 hooks instead of macros to determine if ..._stret
6364 dispatchers should be used (NeXT runtime only).
6365
6366 2004-01-17 Roger Sayle <roger@eyesopen.com>
6367
6368 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
6369 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
6370
6371 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6372
6373 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
6374 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
6375 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
6376 macros.
6377 * reload1.c (emit_reload_insns): Use them.
6378 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
6379 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
6380 for NULL PATTERN.
6381
6382 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6383
6384 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
6385 (final_scan_insn): Update to take an additional SEEN argument. Emit
6386 a line note after the prologue. Make static.
6387 (line_note_exists): Remove.
6388 (final): Don't initialize line_note_exists. Update call to
6389 final_scan_insn.
6390 * output.h (final_scan_insn): Remove prologue.
6391 * function.c (set_insn_locators): Update comment.
6392 (thread_prologue_and_epilogue_insns): Add a comment.
6393
6394 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
6395
6396 PR target/10781
6397 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
6398 Prototype.
6399 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
6400 New function.
6401 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
6402 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
6403 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
6404
6405 2004-01-17 Jan Hubicka <jh@suse.cz>
6406
6407 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
6408 commit.
6409
6410 * toplev.c (HAVE_conditional_execution): Provide default.
6411 (rest_of_handle_reorder_blocks): For conditional_execution target
6412 update liveness once after all transformations
6413 (rest_of_compilation): Do crossjumping before ce3.
6414
6415 2004-01-17 Geoffrey Keating <geoffk@apple.com>
6416
6417 * alias.c (new_alias_set): Mark last_alias_set for PCH.
6418 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
6419 for PCH.
6420 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
6421 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
6422 (get_TOC_alias_set): Mark 'set' for PCH.
6423
6424 2004-01-16 Geoffrey Keating <geoffk@apple.com>
6425
6426 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
6427 even after reload, just don't remove the actual jump tables.
6428
6429 2004-01-17 J. Brobecker <brobecker@gnat.com>
6430
6431 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
6432 Remove checks for is_ada() and TREE_UNSIGNED.
6433 (subrange_type_die): Emit a byte_size attribute if the subrange
6434 type size is different from the base type size.
6435 (modified_type_die): Replace call to is_ada_subrange_type() by
6436 call to is_subrange_type().
6437
6438 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
6439
6440 * config/sh/sh.c: Include ggc.h.
6441
6442 2004-01-16 Geoffrey Keating <geoffk@apple.com>
6443
6444 * Makefile.in (MD5_H): New.
6445 (fold-const.o): Depend on md5.h.
6446 (dwarf2out.o): Likewise.
6447 (cppfiles.o): Likewise.
6448 * cppfiles.c: Include md5.h.
6449 (should_stack_file): Check against list read from PCH file.
6450 (struct pchf_data): New.
6451 (pchf): New variable.
6452 (struct pchf_adder_info): New.
6453 (pchf_adder): New.
6454 (pchf_save_compare): New.
6455 (_cpp_save_file_entries): New.
6456 (_cpp_read_file_entries): New.
6457 (struct pchf_compare_data): New.
6458 (pchf_compare): New.
6459 (check_file_against_entries): New.
6460 * cpphash.h (_cpp_save_file_entries): Prototype.
6461 (_cpp_read_file_entries): Prototype.
6462 * cpppch.c (cpp_write_pch_state): Write the list of headers.
6463 (cpp_read_state): Read the list of headers.
6464
6465 2004-01-17 Jan Hubicka <jh@suse.cz>
6466
6467 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
6468 builtin_expect specially.
6469 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
6470 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
6471 * invoke.texi (max-inline-insns-single): Set to 100.
6472 (large-function-insns): Set to 3000.
6473
6474 2004-01-16 Eric Christopher <echristo@redhat.com>
6475 Chandrakala Chavva <cchavva@redhat.com>
6476
6477 * cppcharset.c (one_iso88591_to_utf8): New function.
6478 (convert_iso88591_utf8): Ditto. Use.
6479 (conversion_tab): Use.
6480 (_cpp_input_to_utf8): New function.
6481 (_cpp_init_iconv_buffer): Ditto.
6482 (_cpp_close_iconv_buffer): Ditto.
6483 * cpphash.h: Prototype new functions.
6484 (cpp_buffer): Add input_cset_desc.
6485 * cppinit.c: Add input_charset default.
6486 * cpplib.c (cpp_push_buffer): Support init and
6487 close of iconv.
6488 * cpplib.h (cpp_options): Add input_charset.
6489
6490 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6491
6492 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
6493 * config/alpha/unicosmk.h: Remove a commented-out definition
6494 of ASM_OUTPUT_SECTION_NAME.
6495 * config/stormy16/stormy16.h: Likewise.
6496
6497 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6498
6499 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
6500 (alpha___extern_prefix_sys_stat): ... this.
6501 Apply to <sys/mount.h>, too.
6502 Tweak to match more variations.
6503 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
6504
6505 * fixinc/inclhack.def (alpha___extern_prefix,
6506 alpha___extern_prefix_standards): New hacks to obey
6507 __PRAGMA_EXTERN_PREFIX.
6508 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
6509 test.
6510 * fixinc/tests/base/standards.h: Likewise.
6511
6512 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
6513 variations.
6514 New testcase.
6515 * fixinc/tests/base/pthread.h: Handle it.
6516
6517 * fixincl/inclhack.def (bad_lval): Sort file list.
6518 Add many missing files up to Tru64 UNIX V5.1B.
6519 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
6520 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
6521 order.
6522
6523 * fixinc/fixincl.x: Regenerate.
6524
6525 2004-01-16 Mark Mitchell <mark@codesourcery.com>
6526
6527 * version.c (version_string): Change to 3.5.0.
6528 * doc/include/gcc-common.texi (version-GCC): Likewise.
6529
6530 2004-01-16 Jan Hubicka <jh@suse.cz>
6531
6532 * i386.md (load_tp_di): Fix pasto.
6533
6534 PR opt/13608
6535 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
6536
6537 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
6538 pp_c_character_constant, pp_c_floating_constant,
6539 pp_c_additive_expression, pp_c_shift_expression,
6540 pp_c_equality_expression, pp_c_and_expression,
6541 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
6542 pp_c_logical_and_expression): Remove inline modifier.
6543 * dwarf2out.c (get_AT): Likewise.
6544 * et-forest.c (et_splay): Likewise.
6545 * ra.h (ra_alloc, ra_calloc): Likewise
6546
6547 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6548
6549 * config/frv/frv-protos.h: Fix comment formatting.
6550 * config/frv/frv.c: Likewise.
6551 * config/frv/frv.h: Likewise.
6552 * config/frv/frv.md: Likewise.
6553 * config/frv/frvbegin.c: Likewise.
6554 * config/frv/frvend.c: Likewise.
6555
6556 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6557
6558 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
6559 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
6560 LINKER_DOES_NOT_WORK_WITH_DWARF2.
6561 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
6562
6563 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
6564
6565 PR 11864
6566 * postreload.c (reload_cse_simplify_operands): Don't remove
6567 implicit extension from LOAD_EXTEND_OP.
6568
6569 2004-01-16 Jan Hubicka <jh@suse.cz>
6570
6571 PR opt/11350
6572 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
6573 after reload.
6574 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
6575 rtl_try_redirect_by_replacing_branch): Likewise.
6576
6577 2004-01-15 Geoffrey Keating <geoffk@apple.com>
6578
6579 PR pch/13689
6580 * alias.c (struct alias_set_entry): Mark for GC.
6581 (alias_sets): Make static, mark for GC.
6582 (record_alias_subset): Use GC to allocate alias structures.
6583 * varray.c (element): Make generic varrays GCed.
6584
6585 PR pch/13361
6586 * c-typeck.c (constructor_asmspec): Delete.
6587 (struct initializer_stack): Delete field 'asmspec'.
6588 (start_init): Delete saving of asmspec.
6589 (finish_init): Don't update constructor_asmspec.
6590 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
6591 * stmt.c (expand_asm): Duplicate strings from tree.
6592 (expand_asm_operands): Likewise.
6593 * tree.c (tree_size): Update computation of size of STRING_CST.
6594 (make_node): Don't make STRING_CST nodes.
6595 (build_string): Allocate string with tree node.
6596 * tree.def (STRING_CST): Update comment.
6597 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
6598 (tree_string): Place contents of string in tree node.
6599 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
6600 from tree.
6601
6602 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
6603 altivec operands.
6604
6605 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
6606
6607 * c-common.h: Fix comment formatting.
6608 * c-cppbuiltin.c: Likewise.
6609 * c-pragma.c: Likewise.
6610 * calls.c: Likewise.
6611 * collect2.c: Likewise.
6612 * cppcharset.c: Likewise.
6613 * cpptrad.c: Likewise.
6614 * dbxout.c: Likewise.
6615 * defaults.h: Likewise.
6616 * dwarf2out.c: Likewise.
6617 * fold-const.c: Likewise.
6618 * genautomata.c: Likewise.
6619 * genconditions.c: Likewise.
6620 * genflags.c: Likewise.
6621 * gengtype.c: Likewise.
6622 * integrate.c: Likewise.
6623 * loop.c: Likewise.
6624 * predict.c: Likewise.
6625 * sdbout.c: Likewise.
6626
6627 2004-01-15 Zack Weinberg <zack@codesourcery.com>
6628
6629 * config/ia64/ia64.md (*movti_internal): C output template
6630 extracted to ia64.c.
6631 (*movti_internal_reg): Delete.
6632 (reload_inti, reload_outti): Use the correct mode on operand 2
6633 in the first place, don't fix it up in the output template.
6634 (movtf, reload_ointf, reload_outtf): New expanders.
6635 (*movtf_internal): New define_insn_and_split.
6636 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
6637 make static; do not hand TFmode CONST_DOUBLEs to split_double.
6638 (ia64_split_tmode_move): New function, body mostly pulled
6639 from ia64.md:*movti_internal.
6640 (ia64_function_arg_words): New function, extracted common
6641 logic from ia64_function_arg et seq.
6642 (ia64_function_arg_offset): Likewise. Handle correctly the
6643 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
6644 (ia64_function_arg, ia64_function_arg_partial_nregs)
6645 (ia64_function_arg_advance): Use ia64_function_arg_words and
6646 ia64_function_arg_offset.
6647 (ia64_function_value): TCmode does not go in float regs.
6648 (ia64_secondary_reload_class): Also handle TFmode.
6649 * config/ia64/ia64-protos.h: Remove prototype for
6650 ia64_split_timode; add prototype for ia64_split_tmode_move.
6651
6652 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
6653
6654 * Makefile.in (MAINT): Make it an immediate assignment.
6655
6656 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
6657
6658 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
6659
6660 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
6661
6662 * config/h8300/coff.h: Replace Hitachi with Renesas.
6663 * config/h8300/elf.h: Likewise.
6664 * config/h8300/h8300-protos.h: Likewise.
6665 * config/h8300/h8300.c: Likewise.
6666 * config/h8300/h8300.h: Likewise.
6667 * config/h8300/h8300.md: Likewise.
6668 * config/h8300/lib1funcs.asm: Likewise.
6669
6670 2004-01-15 Andrew Pinski <apinski@apple.com>
6671
6672 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
6673 around it.
6674
6675 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
6676
6677 * config/h8300/h8300.c (h8300_return_in_memory): New.
6678 (TARGET_STRUCT_VALUE_RTX): Likewise.
6679 (TARGET_RETURN_IN_MEMORY): Likewise.
6680 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
6681 (RETURN_IN_MEMORY): Likewise.
6682
6683 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
6684
6685 PR optimization/13375
6686 * gcse.c (handle_avail_expr): Just return if the source is not a
6687 single set.
6688
6689 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
6690 Daniel Jacobowitz <drow@mvista.com>
6691
6692 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
6693 (EQUIV): Define.
6694 (ARM_FUNC_ALIAS): New macro.
6695 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
6696 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
6697
6698 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6699
6700 PR optimization/12372
6701 * calls.c (expand_call): Add call_fusage data for stack arguments in
6702 constant calls.
6703
6704 2004-01-15 Alan Modra <amodra@bigpond.net.au>
6705
6706 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
6707 (rs6000_elf_declare_function_name): Formatting.
6708 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
6709
6710 2004-01-15 Jan Hubicka <jh@suse.cz>
6711
6712 PR bootstrap/13692
6713 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
6714 previous patch.
6715
6716 2004-01-15 Richard Henderson <rth@redhat.com>
6717
6718 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
6719 integer regs of the same call-savedness.
6720
6721 2004-01-15 Andreas Schwab <schwab@suse.de>
6722
6723 PR bootstrap/13562
6724 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
6725 status for NOTB/NOTW/NEGW methods.
6726
6727 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
6728
6729 * doc/invoke.texi: Update dump file names. Fix a typo.
6730
6731 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
6732
6733 * builtins.c (expand_builtin_va_end): Don't use
6734 EXPAND_BUILTIN_VA_END.
6735 * system.h (EXPAND_BUILTIN_VA_END): Poison.
6736 * config/d30v/d30v.h: Remove a commented-out definition of
6737 EXPAND_BUILTIN_VA_END.
6738 * config/stormy16/stormy16.h: Likewise.
6739
6740 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
6741
6742 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
6743 * targhooks.c (default_struct_value_rtx): Don't use
6744 STRUCT_VALUE_INCOMING_REGNUM.
6745
6746 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
6747
6748 PR bootstrap/12744
6749 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
6750 GENINSRC and not parsedir. Define srcextra as a langhook.
6751 * configure: Regenerate.
6752 * Makefile.in: Suppress default .l.c rule. Don't substitute
6753 parsedir and delete all references throughout. Conditionally define
6754 rule for srcextra dependent on GENINSRC.
6755 (stmp-docobjdir): Delete.
6756 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
6757 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
6758 and gengtype-yacc.h back to source directory.
6759 (maintainer-clean): Delete all parse files in source directory.
6760 (distclean): Delete generated files.
6761
6762 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
6763 (objc-parse.c, objc-parse.y): Don't use parsedir.
6764 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
6765 directory if requested.
6766 (po-generated): Don't use parsedir.
6767 (objc.maintainer-clean): Delete above files from source directory.
6768
6769 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
6770
6771 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
6772
6773 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
6774
6775 * doc/tm.texi: Replace RETURN_IN_MEMORY with
6776 TARGET_RETURN_IN_MEMORY.
6777
6778 2004-01-15 Jan Hubicka <jh@suse.cz>
6779
6780 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
6781 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
6782 functions accepting SSE arguments
6783 (function_arg): Warn only when asked to warn.
6784 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
6785
6786 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
6787
6788 * c-parse.in (stmts_and_decls): Make label at end of compound
6789 statement a hard error.
6790
6791 2004-01-14 Jan Hubicka <jh@suse.cz>
6792
6793 * cgraph.c (create_edge): Use local.redefined_extern_inline.
6794 * cgraph.h (cgraph_local_info): Sort fields by size; add
6795 redefined_extern_inline
6796 (cgraph_global_info): Sort fields by size.
6797 (cgraph_node): Likewise.
6798 * cgraphunit.c (cgraph_finalize_function): Se
6799 local.redefined_extern_inline on redefinition.
6800 (cgraph_analyze_function): Use it; fix formating.
6801
6802 2004-01-14 Jan Hubicka <jh@suse.cz>
6803
6804 PR c++/10776
6805 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
6806 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
6807 bitmaps
6808 (cache_size): New variable
6809 (add_dependence): Update use; canonize early memory locations
6810 (sched_analyze_1): Likewise.
6811 (sched_analyze_2): Likewise.
6812 (init_dependency_caches): Initialize bitmaps.
6813 (free_dependency_caches): Free bitmaps
6814
6815 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
6816
6817 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
6818 targetm.calls.strict_argument_naming().
6819 * target.h: Likewise.
6820
6821 2004-01-14 Richard Henderson <rth@redhat.com>
6822
6823 PR debug/13231
6824 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
6825 instructions.
6826
6827 2004-01-14 Richard Henderson <rth@redhat.com>
6828
6829 PR c++/12491
6830 * except.c (struct eh_region): Add u.fixup.resolved.
6831 (resolve_one_fixup_region): Split out from ...
6832 (resolve_fixup_regions): ... here.
6833
6834 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
6835
6836 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
6837
6838 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
6839
6840 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
6841 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
6842 (STRUCT_VALUE): Remove.
6843
6844 2004-01-14 Steven Bosscher <stevenb@suse.de>
6845
6846 * system.h: Poison PROMOTED_MODE
6847 * integrate.c (expand_inline_function): Don't mention the
6848 PROMOTED_MODE.
6849 * loop.c (update_giv_derive): Same.
6850 * tree.h (DECL_RTL): Same.
6851
6852 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
6853
6854 PR target/9365
6855 * sh.c (gen_block_redirect): Add special handling of RETURN.
6856 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
6857 far branch target (i.e. it's a return).
6858
6859 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
6860
6861 * regrename.c (find_oldest_value_reg): Fix a warning.
6862
6863 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
6864
6865 PR bootstrap/12527
6866 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
6867 Move linux-gas.h and linux-elf.h before aout.h.
6868 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
6869 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
6870
6871 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
6872
6873 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
6874 (CONST_INT, VOIDmode, ...).
6875
6876 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
6877
6878 * regrename.c (find_oldest_value_reg): If the replacement uses
6879 multiple hard registers, check that all of them are in CLASS.
6880
6881 2004-01-14 Jan Hubicka <jh@suse.cz>
6882
6883 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
6884 impossible.
6885
6886 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
6887
6888 * Makefile.in: Define MAINT from --enable-maintainer-mode.
6889
6890 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
6891
6892 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
6893 Calculate always vrsave_mask if TARGET_ALTIVEC.
6894 (rs6000_emit_prologue): Emit code for vrsave
6895 only if TARGET_ALTIVEC_VRSAVE.
6896 (rs6000_emit_epilogue): Likewise.
6897
6898 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
6899
6900 * config/sparc/sparc.md (tie_add32): Fix pasto.
6901 (tie_add64): Likewise.
6902
6903 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6904
6905 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
6906
6907 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
6908
6909 * config/iq2000/iq2000-protos.h: Fix comment formatting.
6910 * config/iq2000/iq2000.c: Likewise.
6911 * config/iq2000/iq2000.md: Likewise.
6912
6913 2004-01-14 J. Brobecker <brobecker@gnat.com>
6914
6915 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
6916 (subrange_type_die): Add handle for nameless subrange types.
6917
6918 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
6919
6920 * config/h8300/h8300-protos.h: Replace do_movsi with
6921 h8300_expand_movsi.
6922 * config/h8300/h8300.c (do_movsi): Change to
6923 h8300_expand_movsi.
6924 * config/h8300/h8300.md (movsi): Replace do_movsi with
6925 h8300_expand_movsi.
6926 (movsf): Likewise.
6927
6928 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
6929
6930 * config/h8300/h8300.c (dosize): Change to
6931 h8300_emit_stack_adjustment. Update callers.
6932
6933 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
6934
6935 * config/h8300/h8300.md (movstrictqi): Add an alternative with
6936 the source being post_inc. Tighten the predicate for the
6937 destination to register_operand.
6938 (movstricthi): Likewise.
6939
6940 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
6941
6942 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
6943 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
6944 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
6945
6946 2004-01-14 Jan Hubicka <jh@suse.cz>
6947
6948 Partial fix PR c++/12850
6949 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
6950 at zero nest level.
6951
6952 2004-01-13 Bernardo Innocenti <bernie@develer.com>
6953
6954 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
6955 pseudo-register.
6956
6957 2004-01-13 Devang Patel <dpatel@apple.com
6958
6959 PR debug/7078
6960 * dbxout.c (dbxout_symbol_name): Emit mangled names for
6961 NAMESPACE_DECL memebers.
6962
6963 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
6964
6965 PR c++/12709
6966 * c-common.c (finish_fname_decls): Use the chain only if the
6967 tree is an expr_stmt.
6968
6969 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
6970
6971 * rtl.def: Add comment about new option in automata_option.
6972
6973 * genautomata.c (PROGRESS_OPTION): New macro.
6974 (progress_flag): New global variable.
6975 (gen_automata_option): Process `progress'.
6976 (transform_insn_regexps, check_unit_distributions_to_automata,
6977 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
6978 expand_automata, write_automata): Print about the progress only if
6979 progress_flag. Remove fflush.
6980 (initiate_automaton_gen): Process command line flag `-progress'.
6981
6982 * doc/md.texi: Describe the new option.
6983
6984 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6985
6986 * cfg.c (dump_bb): Dump entry edges.
6987
6988 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
6989
6990 * arm.c (thumb_legitimate_address_p): Only allow constant pool
6991 references from SImode.
6992 * arm.md (thumb_movhi_insn): Don't allow minipool references.
6993
6994 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
6995
6996 * system.h (TEXT_SECTION): Poison.
6997 * varasm.c (text_section): Don't use TEXT_SECTION.
6998 * config/sh/sh.c (sh_file_start): Fix a comment typo.
6999 * doc/tm.texi (TEXT_SECTION): Remove.
7000
7001 2004-01-13 Ben Elliston <bje@wasabisystems.com>
7002
7003 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
7004
7005 2004-01-12 James E Wilson <wilson@specifixinc.com>
7006
7007 * unwind-libunwind.c: Delete.
7008
7009 2004-01-12 Zack Weinberg <zack@codesourcery.com>
7010
7011 PR 13656
7012 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
7013 oldtype is set, set *newtypep or *oldtypep too. Do not set
7014 them at the very end.
7015 (validate_proto_after_old_defn): Restructure for comprehensibility;
7016 make error messages clearer.
7017
7018 2004-01-12 Zack Weinberg <zack@codesourcery.com>
7019
7020 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
7021 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
7022 * varray.c: No need to prototype error.
7023 (varray_check_failed): Wrap long string onto two lines.
7024 (varray_underflow): New function.
7025
7026 2004-01-13 Steven Bosscher <stevenb@suse.de>
7027
7028 PR c++/13376
7029 * function.h (struct function): Kill `name' field.
7030 (current_function_name): Make it an extern function.
7031 * function.c (current_function_name): New function.
7032 * graph.c: Update all uses of current_function_name.
7033 * gcse.c: Likewise.
7034 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
7035 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
7036 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
7037 instead of a strcmp with "main".
7038
7039 2004-01-13 Jan Hubicka <jh@suse.cz>
7040
7041 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
7042
7043 * cgraphunit.c (cgraph_optimize_function): Always do
7044 optimize_inline_calls when there is always_inline callee.
7045 (cgraph_decide_inlining): Fix formating.
7046 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
7047 functions.
7048 (expand_call_inline): Likewise.
7049 * toplev.h (sorry): Fix prototype.
7050
7051 2004-01-12 Roger Sayle <roger@eyesopen.com>
7052
7053 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
7054 conditional jumps that drop through to unconditional jumps or the
7055 end of the sequence.
7056
7057 2004-01-13 Jan Hubicka <jh@suse.cz>
7058
7059 * alias.c (new_alias_set): Construct the alias_set varray.
7060 (init_alias_once): Don't do it here.
7061
7062 2004-01-12 Marc Espie <espie@openbsd.org>
7063
7064 * system.h: handle YYBYACC like YYBISON.
7065
7066 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
7067
7068 PR target/10847
7069 * config.gcc: No longer includes conflicting header sparc/sol2.h when
7070 building on sparc64-*-openbsd*.
7071
7072 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
7073
7074 PR debug/13539
7075 * dbxout.c (dbxout_type): Protected inheritance is not
7076 private but protected.
7077
7078 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
7079
7080 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
7081
7082 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
7083
7084 PR optimization/12508.
7085 * combine.c (try_combine): Remove a dead set in a parallel
7086 even if its destination is a subreg.
7087
7088 Revert:
7089 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
7090 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
7091 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
7092
7093 2004-01-12 Geoffrey Keating <geoffk@apple.com>
7094
7095 * real.c: Update copyright date.
7096 * emit-rtl.c: Likewise.
7097 * rtl.h: Likewise.
7098 * dwarf2out.c: Likewise.
7099 * config/rs6000/darwin-ldouble.c: Likewise.
7100 * config/rs6000/rs6000.md: Likewise.
7101
7102 2004-01-12 David Edelsohn <edelsohn@gnu.org>
7103
7104 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
7105 TFmode to SImode libfuncs.
7106
7107 2004-01-12 Roger Sayle <roger@eyesopen.com>
7108
7109 PR middle-end/11397
7110 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
7111
7112 2004-01-12 Jan Hubicka <jh@suse.cz>
7113
7114 PR opt/12826
7115 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
7116 stored.
7117
7118 PR opt/12863
7119 * cfgcleanup.c (label_is_jump_target_p): Move to...
7120 * rtlanal.c (label_is_jump_target_p): ... here.
7121 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
7122 edges unified with branch edges.
7123
7124 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
7125
7126 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
7127 high word of an integral CONST_DOUBLE.
7128
7129 2004-01-12 Paul Brook <paul@codesourcery.com>
7130
7131 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
7132
7133 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
7134
7135 PR target/13585
7136 * sh-protos.h (check_use_sfunc_addr): Declare.
7137 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
7138 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
7139
7140 2004-01-12 Jan Hubicka <jh@suse.cz>
7141
7142 * alias.c: Invlude varray.h
7143 (alias_sets): Turn into varray.
7144 (get_alias_set_entry): Use VARRAY; mark inline.
7145 (mems_in_disjoint_alias_sets_p): Mark inline.
7146 (record_alias_subset): Use varray.
7147 (init_alias_once): Initialize varray.
7148 (new_alias_set): Grow array.
7149 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
7150
7151 2004-01-12 Jan Hubicka <jh@suse.cz>
7152
7153 Partial fix for PR opt/10776 II
7154 * cselib.c: Include params.h
7155 (cselib_invalidate_mem): Limit amount of nonconflicting memory
7156 locations.
7157 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
7158 * Makefile.in (cselib.o): Depend on params.h
7159
7160 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
7161
7162 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
7163 simplify_unary_operation if the operand has a known mode.
7164
7165 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
7166
7167 PR target/13534
7168 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
7169 predicate to handle 'ld' conform addresses.
7170 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
7171 contraint.
7172 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
7173 are memory contraints.
7174 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
7175 New prototype.
7176 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
7177 Change 'o' to 'Y' constraint.
7178 (*movdf_softfloat64): Ditto.
7179
7180 2004-01-12 Bernardo Innocenti <bernie@develer.com>
7181
7182 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
7183 brace-enclosed syntax in all C output statements.
7184
7185 2004-01-12 David Edelsohn <edelsohn@gnu.org>
7186
7187 PR target/13401
7188 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
7189 Objective-C language type value is 14.
7190
7191 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
7192
7193 PR c/12148
7194 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
7195 `int' in a number of places to make sure we always have a SImode
7196 and not a HImode. Add a 'L' suffix to a number of constants.
7197
7198 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7199
7200 * pa.c: Don't include obstack.h.
7201
7202 * pa.md: Correct constraint in pattern for loading PIC label address.
7203
7204 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
7205
7206 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
7207 before defining.
7208
7209 2004-01-11 Steven Bosscher <stevenb@suse.de>
7210
7211 PR fortran/9972
7212 * toplev.c (rest_of_handle_inline): Also consider functions
7213 for deferral if the language is GNU F77.
7214
7215 2004-01-11 Zack Weinberg <zack@codesourcery.com>
7216
7217 * c-decl.c (diagnose_arglist_conflict): Add missing space to
7218 diagnostic messages.
7219
7220 2004-01-11 Jakub Jelinek <jakub@redhat.com>
7221
7222 PR middle-end/13392
7223 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
7224 to drop through label. Don't fall back to SCC even when conditional
7225 jump has not been found.
7226
7227 2004-01-11 Jan Hubicka <jh@suse.cz>
7228
7229 * invoke.texi: Fix syntax error in previous patch.
7230
7231 Partial fix for PR opt/10776
7232 * Makefile.in (reload.o): Include param.h
7233 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
7234 * reload.c: Include params.h.
7235 (find_equiv_reg): Work limiting check.
7236 * invoke.texi: Document.
7237
7238 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
7239
7240 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
7241 out-of-bounds accesses to string constants. Simplify mips16
7242 case accordingly.
7243
7244 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
7245
7246 PR optimization/13469
7247 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
7248 reload_cse_regs (-fnon-call-exceptions only).
7249
7250 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
7251
7252 * config/mcore/lib1.asm: Fix comment formatting.
7253 * config/mcore/mcore-elf.h: Likewise.
7254 * config/mcore/mcore.c: Likewise.
7255 * config/mcore/mcore.h: Likewise.
7256 * config/mcore/mcore.md: Likewise.
7257
7258 2004-01-10 Zack Weinberg <zack@codesourcery.com>
7259
7260 * c-decl.c (duplicate_decls): Break apart into...
7261 (diagnose_arglist_conflict, validate_proto_after_old_defn)
7262 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
7263 ... these new functions. Restructure for comprehensibility.
7264 Remove various archaic special cases. Always report the
7265 location of the previous declaration when a diagnostic is issued.
7266 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
7267 (match_builtin_function_types): Delete unnecessary forward declaration.
7268
7269 2004-01-10 Zack Weinberg <zack@codesourcery.com>
7270
7271 * genautomata.c (make_automaton, NDFA_to_DFA):
7272 Print progress bars with '.' characters instead of '*'.
7273 (build_automaton): Change notes to match.
7274
7275 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
7276
7277 * config/m32r/m32r.md: Use define_constants for unspec and
7278 unspec_volatile.
7279
7280 2004-01-10 Jan Hubicka <jh@suse.cz>
7281
7282 PR opt/11635
7283 * expr.c (expand_expr_real): More curefully expand union casts.
7284
7285 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
7286
7287 * config/m32r/m32r.md (flush_icache): Use 1 for
7288 unspec_volatile.
7289
7290 2004-01-10 David Edelsohn <edelsohn@gnu.org>
7291 James E Wilson <wilson@specifixinc.com>
7292
7293 PR debug/12860
7294 * dbxout.c (dbxout_symbol): Remove initialization of
7295 current_sym_code, current_sym_value, and current_sym_addr.
7296 (dbxout_symbol_location): Same.
7297 (dbxout_prepare_symbol): Zero current_sym_code,
7298 current_sym_value, and current_sym_addr.
7299
7300 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
7301
7302 * tree.c (get_unwidened): Reorder conditions so that the null pointer
7303 check is done first.
7304
7305 2004-01-09 Eric Christopher <echristo@redhat.com>
7306
7307 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
7308 if we're running mark_constant_function.
7309
7310 2004-01-09 Jeff Bailey <jbailey@nisa.net>
7311
7312 PR target/12561
7313 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
7314
7315 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
7316
7317 PR debug/11231
7318 * dbxout.c (dbxout_type_fields): Return if any item is
7319 error_mark_node or the type is error_mark_node.
7320
7321 2004-01-09 Geoffrey Keating <geoffk@apple.com>
7322
7323 * config/rs6000/darwin-ldouble.c: Add big comment explaining
7324 exactly what is expected as a 'long double'.
7325 (_xlqadd): When a value to be returned is representable as a
7326 'double', just return it directly, do not construct it using a union.
7327 Also, correct final fixup.
7328 (_xlqmul): Likewise.
7329 (_xlqdiv): Likewise.
7330 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
7331
7332 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
7333
7334 2004-01-09 Richard Henderson <rth@redhat.com>
7335
7336 * recog.c (constrain_operands): Validate mem operands.
7337
7338 2004-01-09 James E Wilson <wilson@specifixinc.com>
7339
7340 * gcc.c (init_spec): Remove -lunwind from shared case.
7341 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
7342
7343 2004-01-09 Steve Ellcey <sje@cup.hp.com>
7344
7345 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
7346 * configure: Regenerate
7347
7348 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
7349
7350 PR c/11234
7351 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
7352 between function and object pointers.
7353 (digest_init): When comparing a pointer to function type to the
7354 target type, only apply TREE_TYPE once to the pointer to function
7355 type.
7356 * except.c (for_each_eh_label_1): Treat data as a pointer to a
7357 function pointer rather than casting it to a function pointer.
7358 (for_each_eh_label): Update caller.
7359 * recog.h (struct insn_data): Use a struct or union for output.
7360 * genoutput.c (output_insn_data): Update.
7361 * final.c (get_insn_template): Update.
7362
7363 2004-01-09 Mark Mitchell <mark@codesourcery.com>
7364
7365 * expr.h (expand_expr): Make it a macro, not a function.
7366 (expand_expr_real): New function.
7367 * expr.c (store_expr): Adjust logic for deciding whether or not to
7368 copy the value returned by expand_expr.
7369 (expand_expr): Rename to ...
7370 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
7371 calls to language hooks.
7372 * c-common.h (c_expand_expr): Adjust prototype.
7373 * c-common.c (c_expand_expr): Add alt_rtl parameter.
7374 * langhooks-def.h (lhd_expand_expr): Change prototype.
7375 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
7376 * langhooks.h (lang_hooks): Change type of expand_expr.
7377 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
7378 (last_expr_alt_rtl): Likewise.
7379 (expand_expr_stmt_value): Set last_expr_alt_rtl.
7380 (clear_last_expr): Clear it.
7381 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
7382 (expand_end_bindings): Save and restor last_expr_alt_rtl.
7383 * tree.def (RTL_EXPR): Give it an additional operand.
7384 * tree.h (RTL_EXPR_ALT_RTL): New macro.
7385
7386 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7387
7388 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
7389 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
7390
7391 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
7392
7393 PR target/13380.
7394 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
7395 or (ne:SI (reg:CC 17) (const_int 0)).
7396 Be specific about modes wherever possible.
7397
7398 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
7399
7400 * config/m32r/m32r.c (m32r_expand_block_move): Call
7401 gen_movestrsi_internal with two more arguments.
7402 (m32r_output_block_move): Adjust operand numbers.
7403 Properly update the source and destination pointers.
7404 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
7405 'r+'. Change the set detinations to match_operand.
7406
7407 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
7408
7409 * final.c (FIRST_INSN_ADDRESS): Remove.
7410 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
7411 * system.h (FIRST_INSN_ADDRESS): Poison.
7412 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
7413 * config/m32r/m32r-protos.h: Remove the prototype for
7414 m32r_first_insn_address.
7415 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
7416 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
7417 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
7418
7419 2004-01-09 J. Brobecker <brobecker@gnat.com>
7420
7421 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
7422 we just created.
7423 (is_ada_subrange_type): DIEs for enumeration subtypes should be
7424 emitted as subrange types too.
7425 (subrange_type_die): Add handling of enumeration subtypes.
7426
7427 2004-01-08 Richard Henderson <rth@redhat.com>
7428
7429 PR opt/12441
7430 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7431 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7432 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7433 (ix86_address_cost): Be prepared for SUBREGed registers.
7434 (legitimate_address_p): Accept SUBREGed registers.
7435
7436 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
7437
7438 * Makefile.in: Rename configure.in to configure.ac
7439 * doc/sourcebuild.texi: Likewise.
7440 * configure: Regenerate.
7441 * config.in: Regenerate.
7442
7443 2004-01-08 Stuart Hastings <stuart@apple.com>
7444
7445 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
7446
7447 2004-01-08 Jan Hubicka <jh@suse.cz>
7448
7449 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
7450
7451 2004-01-08 Geoffrey Keating <geoffk@apple.com>
7452
7453 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
7454 (UNSPEC_FIX_TRUNC_TF): New constant.
7455 (movtf_internal): Make splitter active only when insn is active.
7456 (extenddftf2): Rewrite to properly load zero into low part.
7457 (extenddftf2_internal): New.
7458 (extendsftf2): Rewrite.
7459 (truncdftf2): Correct length.
7460 (floatditf2): Delete.
7461 (fix_trunc_helper): New.
7462 (fix_trunctfdi2): Use fix_trunc_helper.
7463 (fix_trunctfsi2): Likewise.fix_trunc
7464 (fix_trunctfsi2_internal): New.
7465
7466 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
7467 addresses are legitimate on Darwin even when flag_pic.
7468 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
7469 non-offsettable addresses for loads of TFmode constants.
7470
7471 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7472
7473 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
7474 variables in the appropriate bss section.
7475
7476 2004-01-09 Alan Modra <amodra@bigpond.net.au>
7477
7478 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
7479 target_flags has MASK_POWERPC64 when -m64.
7480 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
7481 to 620, 630, power3, power4 and rs64a entries.
7482 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
7483
7484 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
7485
7486 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
7487 floating-point constants.
7488
7489 2004-01-08 J. Brobecker <brobecker@gnat.com>
7490
7491 * dwarf2out.c (subrange_type_die): Add context_die parameter.
7492 Create the subrange_type DIE using the given context DIE.
7493 (modified_type_die): Update call to subrange_type_die.
7494
7495 2004-01-08 Zack Weinberg <zack@codesourcery.com>
7496
7497 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
7498 Add multiple-include guard.
7499
7500 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
7501
7502 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
7503 all vector constant loadable by vsplt*.
7504 (output_vec_const_move): Likewise.
7505
7506 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
7507
7508 PR c/6024
7509 * c-typeck.c (comptypes): Only treat enumerated types in the same
7510 translation unit as compatible with each other when they are the
7511 same type.
7512 * doc/extend.texi: Update.
7513
7514 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
7515
7516 PR c/12165
7517 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
7518 array type from the array element type.
7519
7520 2004-01-07 Alan Modra <amodra@bigpond.net.au>
7521
7522 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
7523 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
7524 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
7525 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
7526 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
7527
7528 2004-01-06 Eric Christopher <echristo@redhat.com>
7529
7530 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
7531 (DWARF2_DEBUGGING_INFO): Define.
7532 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
7533 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
7534 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
7535 for irix as.
7536 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
7537 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
7538 * config/mips/iris5gas.h: Ditto.
7539 (DBX_DEBUGGING_INFO): Remove.
7540 (DWARF2_DEBUGGING_INFO): Ditto.
7541 (MIPS_DEBUGGING_INFO): Ditto.
7542 (PREFERRED_DEBUGGING_TYPE): Ditto.
7543 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
7544 (PREFERRED_DEBUGGING_TYPE): Ditto.
7545 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
7546 * config/mips/elf64.h: Ditto.
7547
7548 2004-01-06 Jan Hubicka <jh@suse.cz>
7549
7550 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
7551 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
7552
7553 2004-01-06 Geoffrey Keating <geoffk@apple.com>
7554
7555 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
7556 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
7557 * config/rs6000/darwin-ldouble.c: New.
7558
7559 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
7560 for constants.
7561 (constant_subword): Delete.
7562 * rtl.h (constant_subword): Delete prototype.
7563 (immed_double_const): Is not in varasm.c.
7564 * simplify-rtx.c (simplify_immed_subreg): New.
7565 (simplify_subreg): Use simplify_immed_subreg.
7566
7567 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
7568 than trying to generate RTL directly.
7569 (fix_trunctfsi2): Use expand_fix rather than trying to generate
7570 RTL directly.
7571
7572 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
7573
7574 2004-01-06 David Edelsohn <edelsohn@gnu.org>
7575
7576 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
7577 function into a separate macro.
7578 (read_only_data_section): Add void argument.
7579 (private_data_section): Same.
7580 (read_only_private_data_section): Same.
7581 (toc_section): Same.
7582
7583 2004-01-06 Jan Hubicka <jh@suse.cz>
7584
7585 * invoke.texi: Remove typo in last change.
7586
7587 PR target/10301
7588 * config.gcc: Accept opteron and athlon-64 as variants
7589 of k8.
7590 * i386.c (override_options): Likewise.
7591 * invoke.texi (i386 -mtune): Expand documentation.
7592
7593 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
7594
7595 * alias.c: Fix comment typos.
7596 * builtins.c: Likewise.
7597 * cfg.c: Likewise.
7598 * df.c: Likewise.
7599 * dominance.c: Likewise.
7600 * dwarf2out.c: Likewise.
7601 * emit-rtl.c: Likewise.
7602 * expr.c: Likewise.
7603 * final.c: Likewise.
7604 * fold-const.c: Likewise.
7605 * gcse.c: Likewise.
7606 * genattrtab.c: Likewise.
7607 * genrecog.c: Likewise.
7608 * gensupport.c: Likewise.
7609 * ggc-zone.c: Likewise.
7610 * integrate.c: Likewise.
7611 * local-alloc.c: Likewise.
7612 * loop.c: Likewise.
7613 * recog.c: Likewise.
7614 * regmove.c: Likewise.
7615 * reg-stack.c: Likewise.
7616 * reorg.c: Likewise.
7617 * rtlanal.c: Likewise.
7618 * rtl.h: Likewise.
7619 * sched-ebb.c: Likewise.
7620 * simplify-rtx.c: Likewise.
7621 * toplev.c: Likewise.
7622 * varasm.c: Likewise.
7623
7624 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
7625
7626 * doc/install.texi: Fix typos.
7627 * doc/invoke.texi: Likewise.
7628 * doc/md.texi: Likewise.
7629
7630 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7631
7632 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
7633
7634 2004-01-06 Jan Hubicka <jh@suse.cz>
7635
7636 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
7637 (function_arg_advance): Do not pass aggregates in SSE; deal handling
7638 of MMX_REGPARM.
7639 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
7640 add MMX_REGPARM.
7641 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
7642 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
7643 (MMX_REGPARM_MAX): Similarly for -mmmx.
7644
7645 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
7646
7647 * config/sh/linux.h: Fix comment formatting.
7648 * config/sh/netbsd-elf.h: Likewise.
7649 * config/sh/sh.c: Likewise.
7650 * config/sh/sh.h: Likewise.
7651 * config/sh/vxworks.h: Likewise.
7652
7653 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
7654
7655 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
7656 * toplev.c (output_file_directive): Don't use
7657 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
7658
7659 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
7660
7661 * toplev.c: Fix broken checkin of 2003-12-30.
7662
7663 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
7664
7665 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
7666 (USING_MMAP): We don't support non-mmap.
7667 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
7668 large objects.
7669 (struct page_entry): Remove bytes_free.
7670 (struct page_table_chain): Remove.
7671 (struct globals): Remove page_table member.
7672 (loookup_page_table_entry): Function deleted.
7673 (set_page_table_entry): Ditto.
7674 (ggc_allocated_p): No longer need page table lookups.
7675 (ggc_marked_p): Ditto.
7676 (alloc_small_page): Don't care about bytes_free anymore.
7677 (alloc_large_page): Round up size.
7678 (ggc_alloc_zone_1): Mark large objects as such, and calculate
7679 their size the new way.
7680 Remove page table lookups and setting.
7681 (ggc_get_size): Calculate large object size the new way.
7682 (sweep_pages): Redo to account for fact that we no longer have
7683 bytes_free.
7684 (ggc_collect): No longer need to reincrement bytes_free.
7685 (ggc_pch_alloc_object): Handle new large objects properly.
7686 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
7687
7688 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
7689
7690 * doc/invoke.texi: Remove a page break.
7691
7692 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
7693
7694 * config/avr/avr.c (avr_output_function_prologue): Remove an
7695 extra pair of curly braces.
7696
7697 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
7698
7699 * config/mn10300/mn10300.c: Fix comment formatting.
7700 * config/mn10300/mn10300.h: Likewise.
7701
7702 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7703
7704 * tree.h: Update documentation on nothrow_flag.
7705 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
7706 types.
7707
7708 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
7709
7710 * doc/invoke.texi: Remove traces of dead ports.
7711
7712 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
7713
7714 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
7715 option.
7716
7717 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
7718
7719 PR target/12945
7720 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
7721 counter labels.
7722 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
7723 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
7724 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
7725 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
7726 (mips_symbol_insns): Don't trust the local/global classification.
7727 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
7728 (override_options): Make -mabicalls -fno-unit-at-a-time imply
7729 -mno-explicit-relocs.
7730 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
7731 between local and global symbols.
7732
7733 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
7734
7735 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
7736 (mips_preferred_reload_class): Declare.
7737 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
7738 (EXTRA_CONSTRAINT): Update accordingly.
7739 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
7740 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
7741 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
7742 mips_dangerous_for_la25_p.
7743 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
7744 if mips_dangerous_for_la25_p.
7745
7746 2004-01-05 Bernardo Innocenti <bernie@develer.com>
7747
7748 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
7749 warning.
7750
7751 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
7752
7753 * configure.ac: Use AC_PROG_CPP_WERROR.
7754 * configure: Regenerate.
7755
7756 2004-01-04 Zack Weinberg <zack@codesourcery.com>
7757
7758 * .cvsignore: Add autom4te.cache.
7759
7760 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
7761
7762 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
7763 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
7764 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
7765 then architecture options, then ABI options. General rewording.
7766
7767 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
7768
7769 PR c/3414
7770 * doc/extend.texi: Clarify definition of malloc attribute.
7771
7772 2004-01-04 Jan Hubicka <jh@suse.cz>
7773
7774 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
7775 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
7776 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
7777 (cgraph_inline_p): Add extra argument reason.
7778 * cgraphunit.c: Minor formating fixes.
7779 cgraph_first_inlined_callee): New functions.
7780 (record_call_1): Record builtins too.
7781 (cgraph_analyze_function): Update inline_failed messages.
7782 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
7783 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
7784 (cgraph_check_inline_limits): Likewise; Add argument reason.
7785 (cgraph_set_inline_failed): New static function.
7786 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
7787 reasons.
7788 (cgraph_inline_p): Add new argument reason.
7789 * tree-inline.c (expand_call_inline): Update warning.
7790
7791 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
7792
7793 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
7794 with modern equivalents.
7795 * configure: Regenerate.
7796
7797 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
7798 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
7799 * configure: Regenerate.
7800
7801 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
7802
7803 * configure.in: Rename to configure.ac.
7804 * configure.ac: Renamed from configure.in; make minimum necessary
7805 changes for autoconf 2.5x.
7806 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
7807 * configure: Regenerate with autoconf 2.57.
7808
7809 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
7810
7811 * config/mips/linux.h: Fix comment formatting.
7812 * config/mips/mips.c: Likewise.
7813 * config/mips/mips.h: Likewise.
7814 * config/mips/mips.md: Likewise.
7815 * config/mips/netbsd.h: Likewise.
7816 * config/mips/windiss.h: Likewise.
7817
7818 2004-01-02 Richard Henderson <rth@redhat.com>
7819
7820 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
7821 for sse and 387; add suppression for mmx.
7822
7823 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
7824
7825 * loop.c (loop_optimize): Free all loops_info's mems.
7826
7827 * c-typeck.c (finish_init): Free spelling_base before
7828 setting it again.
7829
7830 * cfgloop.c (flow_loops_find): Always free the sbitmap
7831 headers.
7832
7833 * predict.c (estimate_probability): Free bbs after being
7834 done with it.
7835
7836 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
7837
7838 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
7839 const_8bit_operand and call_address_operand.
7840
7841 2004-01-02 Jan Hubicka <jh@suse.cz>
7842
7843 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
7844 when there is nothing to inline but warnings are requested.
7845 (cgraph_decide_inlining): Fix memory leak.
7846
7847 2004-01-02 Jan Hubicka <jh@suse.cz>
7848
7849 * expr.c (store_constructor): Fix pasto in previous patch.
7850
7851 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
7852
7853 * config/i386/cygming.h: Fix comment formatting.
7854 * config/i386/djgpp.h: Likewise.
7855 * config/i386/gthr-win32.c: Likewise.
7856 * config/i386/i386-interix.h: Likewise.
7857 * config/i386/i386.c: Likewise.
7858 * config/i386/i386.h: Likewise.
7859 * config/i386/openbsd.h: Likewise.
7860 * config/i386/winnt.c: Likewise.
7861 * config/i386/xm-mingw32.h: Likewise.
7862
7863 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
7864
7865 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
7866 copyright and last modification dates.
7867
7868 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
7869
7870 * doc/install.texi (Specific): Mention x86_64.
7871
7872 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
7873
7874 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
7875 Call force_operand on plus_constant result.
7876
7877 2004-01-01 Jan Hubicka <jh@suse.cz>
7878
7879 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
7880 * expr.c (store_constructor): Use vec_init pattern.
7881 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
7882 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
7883 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
7884 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
7885 New patterns.
7886 (sse2_unpc?pd): Fix pattern.
7887 (sse2_movlpd): Kill.
7888 (sse2_movsd): Deal with movlpd too.
7889 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
7890 (ix86_expand_vector_init): New.
7891 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
7892 * md.texi (vec_set, vec_extract): Document
7893
7894 2003-12-31 Jan Hubicka <jh@suse.cz>
7895
7896 PR opt/13473
7897 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
7898 ASM input operands
7899
7900 PR opt/12617
7901 * toplev.c (dump_file_index): Reorder ce3 and bbro.
7902 (dump_file): Likewise.
7903 (rest_of_compilation): Likewise.
7904
7905 PR debug/13367
7906 * cgraph.c (cgraph_function_possibly_inlined): Even with
7907 flag_really_no_inline we inline always_inline functions.
7908 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
7909 for non-always_inline functions when there is flag_really_no_inline.
7910 (cgraph_decide_inlining): Limit work done when not inlining.
7911 (cgraph_decide_inlining_incrementally): Likewise.
7912 (cgraph_optimize_function): Check whether something got inlined.
7913 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
7914 extern inline functions when not inlining.
7915
7916 * opts.c (decode_options): Disable crossjumping at -O1
7917 * invoke.texi (-O1): Document change.
7918
7919 See ChangeLog.10 for earlier changes.