re PR target/13466 (-mpowerpc64 causes ICE)
[gcc.git] / gcc / ChangeLog
1 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
2
3 PR target/13466
4 * config.gcc (powerpc-*-darwin): Remove overridden value of need_64bit_hwint.
5
6 * emit-rtl.c (copy_rtx_if_shared): Add comment about its use of
7 copy_rtx_if_shared_1.
8 (copy_rtx_if_shared_1): Add comment about what the function does.
9
10 * c-decl.c (finish_function): Change order of checks.
11 (c_expand_body): Likewise.
12
13 2003-12-22 Fariborz Jahanian <fjahanian@apple.com>
14
15 * config/rs6000/rs6000.c (legitimate_offset_address_p): Correct
16 check for the legitimate offset when memory of
17 DImode/DFmode/TFmode/TImode mode is being referenced and target
18 is TARGET_POWERPC64.
19
20 2003-12-22 Dale Johannesen <dalej@apple.com>
21
22 * reload1.c: Add reg_reloaded_call_part_clobbered.
23 (reload_as_needed): Use it.
24 (forget_old_reloads_1): Ditto.
25 (emit_reload_insns): Ditto.
26
27 2003-12-22 Dale Johannesen <dalej@apple.com>
28
29 PR optimization/12828
30 * loop.c: Add find_regs_nested to look inside CLOBBER(MEM).
31 (scan_loop): Call it.
32 * regclass.c (reg_scan_mark_regs): Look inside CLOBBER(MEM).
33
34 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
35
36 PR c/9163
37 * c-decl.c (poplevel): Only set DECL_INITIAL of a current function
38 if it is non-null.
39 (finish_function): Check for error_mark_node or null on DECL_RESULT and
40 DECL_RESULT of fndecl.
41 (c_expand_body): Only expand when DECL_INITIAL of fndecl is not
42 error_mark_node and not null.
43
44 2003-12-21 Dan Nicolaescu <dann@ics.uci.edu>
45
46 * rtl.h (dump_rtx_statistics): Declare it.
47 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
48 rtx_alloc_sizes): New static vars.
49 (rtx_alloc, rtvec_alloc): Update them.
50 (dump_rtx_statistics): New function.
51 * toplev.c (finalize): Call it.
52 * ggc-page.c (struct globals): Fix comments. Add new member
53 total_allocated_per_order.
54 (ggc_alloc): Keep track of the total allocated memory.
55 (ggc_print_statistics): Clarify message. Print total allocated
56 memory stats.
57 * configure.in (gather-detailed-mem-stats): New flag.
58 * configure: Regenerate.
59 * config.in: Regenerate.
60 * doc/install.texi (Configuration): Document
61 --enable-gather-detailed-mem-stats.
62
63 2003-12-22 Kazu Hirata <kazu@cs.umass.edu>
64
65 * system.h (CONVERT_HARD_REGISTER_TO_SSA_P): Poison.
66 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Remove.
67
68 2003-12-21 Roger Sayle <roger@eyesopen.com>
69
70 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Define _ILP32
71 when compiling in ILP32 mode.
72
73 2003-12-21 Andrew Pinski <pinskia@physics.uc.edu>
74
75 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Return early if
76 TARGET_HAVE_TLS is false.
77
78 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
79
80 * config/ip2k/ip2k-protos.h: Remove the prototype for
81 asm_output_section_name.
82 * config/ip2k/ip2k.c (asm_output_section_name): Remove.
83
84 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
85
86 * alias.c: Fix comment formatting.
87 * alloc-pool.c: Likewise.
88 * bitmap.c: Likewise.
89 * bitmap.h: Likewise.
90 * bt-load.c: Likewise.
91 * c-common.c: Likewise.
92 * c-common.h: Likewise.
93 * c-decl.c: Likewise.
94 * c-opts.c: Likewise.
95 * c-pretty-print.c: Likewise.
96 * caller-save.c: Likewise.
97 * cfghooks.h: Likewise.
98 * cgraph.c: Likewise.
99 * collect2.c: Likewise.
100 * cppfiles.c: Likewise.
101 * cpplib.h: Likewise.
102 * dwarf2out.c: Likewise.
103 * dwarfout.c: Likewise.
104 * emit-rtl.c: Likewise.
105 * final.c: Likewise.
106 * function.c: Likewise.
107 * gcov.c: Likewise.
108 * gcse.c: Likewise.
109 * genemit.c: Likewise.
110 * ggc.h: Likewise.
111 * haifa-sched.c: Likewise.
112 * ifcvt.c: Likewise.
113 * libgcc2.h: Likewise.
114 * loop.c: Likewise.
115 * predict.h: Likewise.
116 * unwind-libunwind.c: Likewise.
117 * varasm.c: Likewise.
118
119 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
120
121 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
122 a warning.
123
124 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
125
126 * config/arm/arm.c: Convert to ISO-C.
127 * config/avr/avr.h: Likewise.
128 * config/fr30/fr30.c: Likewise.
129 * config/ip2k/ip2k.c: Likewise.
130 * config/mn10300/mn10300.c: Likewise.
131
132 2003-12-20 Andrew Pinski <pinskia@gcc.gnu.org>
133 Matt Thomas <matt@3am-software.com>
134
135 PR target/12749
136 * config/i386/i386.c (print_operand): Print only the first
137 8 characters of the float in hex.
138
139 2003-12-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
140
141 * pa.h (TRAMPOLINE_TEMPLATE): Shorten sequence when generating PA
142 2.0 code.
143 (TRAMPOLINE_CODE_SIZE, MIN_CACHELINE_SIZE): New defines.
144 (INITIALIZE_TRAMPOLINE): Rework to pass line length, and aligned start
145 and end addresses to I and D cache instruction patterns.
146 * pa.md (anddi3, iordi3): Change predicates of operands 1 and 2 to
147 and_operand and ior_operand, respectively. When generating 64-bit
148 code, only one operand needs to be a register operand.
149 (xordi3): Change predicates of operands 1 and 2 to register_operand.
150 (one_cmpldi2): Change predicate of operand 1 to register_operand.
151 (dcacheflush, icacheflush): Revise to flush an arbitrary number of
152 cache lines.
153
154 2003-12-20 Josef Zlomek <zlomekj@suse.cz>
155
156 PR optimization/13430, PR optimization/12322
157 * bb-reorder.c (copy_bb_p): Do not allow block with many successors to
158 be copied.
159 (find_traces_1_round): Surround check for fake edges by
160 #ifdef ENABLE_CHECKING #endif.
161
162 2003-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
163
164 PR other/7956
165 * genmultilib: New variable disable_multilib. Set it to 'yes'
166 if enable_multilib was set to 'no'. Emit DISABLE_MULTILIB
167 if disable_multilib was set to 'yes'.
168 * gcc.c: Include multilib.h before tm.h.
169 * config/sparc/sol2-bi.h (LINK_ARCH_SPEC): Emit an error
170 message for multiarch options if DISABLE_MULTILIB is set.
171 * config/sparc/sol2-gld-bi.h (LINK_ARCH_SPEC): Likewise.
172
173 2003-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
174
175 PR c/12085
176 * c-typeck.c (build_function_call): Issue a warning if a
177 function is called through an incompatible prototype and
178 replace the call by a trap in this case.
179
180 2003-12-19 James E Wilson <wilson@specifixinc.com>
181
182 * install.texi (ia64-*-linux): Document minimum libunwind version
183 number.
184
185 2003-12-19 Per Bothner <per@bothner.com>
186
187 * langhooks.c (lhd_print_error_function): Fix for PR c/13110.
188 Don't do pp_newline; it causes an extra blank line.
189 * pretty-print.c (pp_base_flush): Clear pp_needs_newline.
190
191 2003-12-19 Jason Merrill <jason@redhat.com>
192
193 * tree.c (get_unwidened): Decide whether to narrow a bitfield
194 reference based on TYPE_SIZE, not TYPE_PRECISION.
195
196 * stmt.c (parse_output_constraint): Warn about in-out constraint
197 that doesn't allow a register.
198 (parse_input_constraint): Warn about matching constraint that
199 doesn't allow a register.
200
201 2003-12-19 James E Wilson <wilson@specifixinc.com>
202
203 * flow.c (mark_set_regs, case PARALLEL): Scan loop forwards.
204 Add case for ASM_OPERANDS.
205 * global.c (global_alloc): Set regs_ever_live for regs_asm_clobbered
206 registers.
207
208 2003-12-19 Kazu Hirata <kazu@cs.umass.edu>
209
210 * expr.c (check_max_integer_computation_mode): Remove.
211 * dojump.c (do_jump): Don't use MAX_INTEGER_COMPUTATION_MODE.
212 * fold-const.c (fold): Likewise.
213 * system.h (MAX_INTEGER_COMPUTATION_MODE): Poison.
214 * doc/tm.texi (MAX_INTEGER_COMPUTATION_MODE): Remove.
215
216 2003-12-19 James E Wilson <wilson@specifixinc.com>
217
218 * configure.in: Delete libunwind_has_eh_support test.
219 * configure: Regenerate.
220 * config.gcc (ia64*-*-linux*): Delete reference to t-libunwind-no-eh
221 and libunwind_has_eh_support check.
222 * config/t-libunwind-no-eh: Delete.
223
224 2003-12-19 Joseph S. Myers <jsm@polyomino.org.uk>
225
226 * c-format.c (print_char_table): Allow 'I' flag on floating point
227 decimal formats.
228
229 2003-12-19 Stuart Hastings <stuart@apple.com>
230
231 * gcc/config/i386/i386.c (ix86_expand_call, x86_output_mi_thunk):
232 Trivial fixes for i386.c on Darwin/x86.
233
234 2003-12-19 Fariborz Jahanian <fjahanian@apple.com>
235
236 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Add code to
237 recognize macho-style lo_sum adrress patterns.
238
239 2003-12-19 Kazu Hirata <kazu@cs.umass.edu>
240
241 * dwarfout.c: Remove uses of "register" specifier in
242 declarations of arguments and local variables.
243 * gensupport.c: Likewise.
244 * local-alloc.c: Likewise.
245 * regclass.c: Likewise.
246
247 2003-12-19 Kelley Cook <kelleycook@wideopenwest.com>
248
249 * config.guess: Remove.
250
251 2003-12-19 Jakub Jelinek <jakub@redhat.com>
252
253 * config/ia64/unwind-ia64.c (ia64_copy_rbs): New function.
254 (unw_access_gr): Only call ia64_rse_rnat_addr if addr is above
255 regstk_top.
256 (uw_frame_state_for): Handle locations inside bundles.
257 (uw_init_context_1): Initialize context->rnat.
258 Set context->regstk_top to lowest rbs address which has nat collection
259 in context->rnat.
260 (uw_install_context): Fix rnat restoring.
261 Restore ar.rsc to previous state.
262 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR,
263 MD_HANDLE_UNWABI): Handle unwinding through SA_ONSTACK frames.
264
265 2003-12-19 Jakub Jelinek <jakub@redhat.com>
266
267 PR c++/13239
268 * builtins.c (expand_builtin_expect_jump): Update
269 TREE_VALUE (arglist) if unsave_expr_now langhook
270 created a new tree.
271
272 2003-12-19 Richard Earnshaw <rearnsha@arm.com>
273
274 * arm.c (thumb_base_register_rtx_p): Use regno in comparison against
275 FIRST_PSEUDO_REGISTER.
276
277 2003-12-18 Hartmut Penner <hpenner@de.ibm.com>
278
279 * gcc/config/rs6000/rs6000.c (USE_ALTIVEC_FOR_ARG_P): Don't check
280 for SVR4 ABI.
281
282 2003-12-18 Geoffrey Keating <geoffk@apple.com>
283
284 * config/rs6000/aix.h (OS_MISSING_POWERPC64): Define.
285 (OS_MISSING_ALTIVEC): Define.
286 * config/rs6000/darwin.h (ASM_SPEC): Be generous about supplying
287 -force_cpusubtype_ALL.
288 * config/rs6000/rs6000.c (rs6000_override_options): Rearrange
289 CPU information table; now always set all CPU-specific values.
290 Also, use Altivec and powerpc64 when chip and OS supports them.
291
292 2003-12-18 Geoffrey Keating <geoffk@apple.com>
293
294 * fixinc/inclhack.def (darwin_macho_dyldh): New.
295 * fixinc/fixincl.x: Regenerate.
296
297 2003-12-18 Dara Hazeghi <dhazeghi@yahoo.com>
298
299 * version.c (version_string): Renumber as 3.4.0
300 * doc/include/gcc-common.texi: Likewise
301
302 2003-12-18 Richard Henderson <rth@redhat.com>
303
304 * genrecog.c (print_host_wide_int): New.
305 (write_switch, write_cond): Use it.
306
307 2003-12-18 Richard Henderson <rth@redhat.com>
308
309 * c-decl.c (check_bitfield_type_and_width): Remove enum special
310 case suppression of pedwarn.
311 * system.h (ENUM_BITFIELD): Use __extension__.
312 (CHAR_BITFIELD): Likewise.
313
314 2003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
315 Mark Dettinger <dettinge@de.ibm.com>
316
317 * config/s390/s390.md (UNSPEC_SRST): New constant.
318 ("strlendi", "strlensi"): New expanders.
319 ("*strlendi", "*strlensi"): New insns.
320
321 2003-12-18 Mark Mitchell <mark@codesourcery.com>
322
323 * config/sol2.h (LINK_ARCH32_SPEC): Define in terms of ...
324 (LINK_ARCH32_SPEC_BASE): ... this new macro.
325 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC): Define in terms of
326 ...
327 (LINK_ARCH64_SPEC_BASE): ... this new macro.
328 * config/sparc/sol2-gld-bi.h (LINK_ARCH32_SPEC): New macro.
329 (LINK_ARCH64_SPEC): Likewise.
330
331 2003-12-18 Jason Merrill <jason@redhat.com>
332
333 PR middle-end/13234
334 * tree-dump.c (dequeue_and_dump): Handle 'r' and 's' code
335 classes.
336
337 2003-12-18 Steven Bosscher <stevenb@suse.de>
338
339 * Makefile.in (tracer.o, bb-reorder.o): Depend on timevar.h
340 * toplev.c (rest_of_handle_reorder_blocks, rest_of_handle_tracer):
341 Don't push and pop TV_REORDER_BLOCKS timevars, do it...
342 * bb-reorder.c (reorder_basic_blocks): ...here, and...
343 * tracer.c (tracer): here.
344
345 2003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
346
347 * loop.c (move_movables): Handle combination of m->consec,
348 m->move_insn_first, and m->insert_temp all nonzero correctly.
349
350 2003-12-18 Kazu Hirata <kazu@cs.umass.edu>
351
352 * calls.c (load_register_parameters): Don't use
353 LOAD_ARGS_REVERSED.
354 * system.h (LOAD_ARGS_REVERSED): Poison.
355 * doc/tm.texi (LOAD_ARGS_REVERSED): Remove.
356
357 2003-12-17 Per Bothner <per@bothner.com>
358
359 * emit-rtl.c (set_new_first_and_last_label_num): Remove function.
360 * rtl.h (set_new_first_and_last_label_num): Remove declaration.
361
362 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
363
364 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
365 scratch insns of the then branch that clobber regs needed by the
366 else branch.
367
368 2003-12-17 Kazu Hirata <kazu@cs.umass.edu>
369
370 * calls.c (expand_call): Update comments.
371 * system.h (PRETEND_OUTGOING_VARARGS_NAMED): Poison.
372 * targhooks.c: Do not refer to PRETEND_OUTGOING_VARARGS_NAMED.
373
374 2003-12-17 James E Wilson <wilson@specifixinc.com>
375 Roger Sayle <roger@eyesopen.com>
376
377 * Makefile.in (gcse.o): Add $(TREE_H) to dependencies.
378 * gcse.c: Include tree.h.
379 (implicit_set_cond_p): New.
380 (find_implicit_sets): Call it.
381
382 2003-12-17 Santiago Vila <sanvila@unex.es>
383
384 * config/kfreebsdgnu.h (TARGET_OS_CPP_BUILTINS): Rename from
385 TARET_OS_CPP_BUILTINS.
386
387 2003-12-16 Kazu Hirata <kazu@cs.umass.edu>
388
389 * emit-rtl.c: Fix signed/unsigned comparison warnings.
390
391 2003-12-17 Joseph S. Myers <jsm@polyomino.org.uk>
392
393 * predict.c (struct block_info_def, struct edge_info_def): Change
394 bit-fields of width 1 to unsigned int.
395
396 2003-12-16 Geoffrey Keating <geoffk@apple.com>
397
398 PR 12480
399 * c-pch.c (pch_init): Improve error message when precompiled
400 header can't be written.
401
402 PR 12606
403 * c-pch.c (pch_init): Make a PCH file appear invalid while it's
404 being written.
405 (c_common_write_pch): Make it valid once it's done.
406
407 2003-12-17 Ulrich Weigand <uweigand@de.ibm.com>
408
409 PR target/11992
410 * config/s390/s390.md ("*cmpmem_long_64"): Use CLCLE instruction
411 instead of CLCL.
412 ("*cmpmem_long_31"): Likewise.
413
414 2003-12-17 Vladimir Makarov <vmakarov@redhat.com>
415
416 * config/ia64/ia64.c: Add more comments about insn bundling.
417
418 2003-12-17 Richard Earnshaw <rearnsha@arm.com>
419
420 PR optimization/10592
421 * caller-save.c (mark_referenced_regs): Don't short-circuit a reg
422 or subreg in SET_DEST if it isn't a hard register.
423
424 2003-12-17 David Edelsohn <edelsohn@gnu.org>
425
426 * collect2.c (main): Add -fno-profile-arcs -fno-test-coverage
427 -fno-branch-probabilities to arguments when compiling ctors and
428 dtors.
429
430 2003-12-17 Eric Botcazou <ebotcazou@libertysurf.fr>
431
432 * config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
433 * config/sparc/sol2-gld.h: Set SUPPORTS_INIT_PRIORITY to 1.
434
435 2003-12-17 Richard Earnshaw <rearnsha@arm.com>
436
437 * arm.c (thumb_base_register_rtx_p): Don't allow virtual registers
438 as base registers for sub-word operations.
439 (thumb_legitimate_address_p): Simplify REG+REG test.
440
441 2003-12-17 Segher Boessenkool <boessen@de.ibm.com>
442
443 * opts.c (wrap_help): Fix overflow.
444
445 2003-12-17 Fred Fish <fnf@redhat.com>
446
447 * configure.in: Remove code to examine linker scripts and set
448 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES.
449 * configure, config.in: Regenerate.
450
451 2003-12-16 Mark Mitchell <mark@codesourcery.com>
452
453 PR c++/12218
454 * varasm.c (initializer_constant_valid_p): Allow a conversion from
455 an integral constant to an OFFSET_TYPE.
456
457 2003-12-16 Kazu Hirata <kazu@cs.umass.edu>
458
459 PR target/11012
460 * config/m32r/m32r.c (gen_compare): Call gen_addsi3 instead of
461 gen_cmp_ne_small_const_insn.
462 * config/m32r/m32r.md (cmp_ne_small_const_insn): Remove.
463
464 2003-12-17 Neil Booth <neil@daikokuya.co.uk>
465 Joseph S. Myers <jsm@polyomino.org.uk>
466
467 PR c/3347
468 * c-decl.c (enum_decl_context): Remove BITFIELD.
469 (grokdeclarator): Take bit-field width as an input.
470 Perform bit-field width validation with
471 check_bitfield_type_and_width rather than waiting for
472 finish_struct.
473 (groktypename, groktypename_in_parm_context, start_decl,
474 push_parm_decl, grokfield, start_function): Update calls to
475 grokdeclarator.
476 (check_bitfield_type_and_width): New function.
477 (finish_struct): Move bit-field validation to grokdeclarator
478 and check_bitfield_type_and_width.
479
480 2003-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
481
482 PR bootstrap/13386
483 * configure.in (gcc_cv_ld_hidden): Set to yes on hppa64*-*-hpux* when
484 using HP native linker.
485 * configure: Rebuilt.
486
487 2003-12-16 Mark Mitchell <mark@codesourcery.com>
488
489 PR c++/13275
490 * c-common.h (enum rid): Add RID_OFFSETOF.
491 * c-parser.in (rid_to_yy): Ignore RID_OFFSETOF.
492 * ginclude/stddef.h (offsetof): Reimplement for C++, using
493 __offsetof__.
494 * doc/extend.texi: Document __offsetof__.
495
496 2003-12-16 Stan Cox <scox@redhat.com>
497
498 * config/iq2000/iq2000.h: Formatting.
499 (MAX_INT_TYPE_SIZE, MAX_INT_TYPE_SIZE, CONST_COSTS, RTX_COSTS)
500 (ADDRESS_COST, ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL)
501 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR, SLOW_ZERO_EXTEND): Remove
502 * config/iq2000/iq2000.c: Formatting.
503 (iq2000_rtx_costs): New.
504
505 2003-12-16 Richard Earnshaw <rearnsha@arm.com>
506
507 * arm.md (addsi3_carryin_shift): Add missing register constraints.
508
509 2003-12-16 Loren James Rittle <ljrittle@acm.org>
510
511 * testsuite/g++.old-deja/g++.eh/badalloc1.C: Tweak to
512 pass with -pthread on FreeBSD systems.
513
514 2003-12-16 Richard Sandiford <rsandifo@redhat.com>
515
516 * config/mips/mips.c (mips_file_end): Only write symbols that have
517 been referenced at some point.
518
519 2003-12-16 Richard Sandiford <rsandifo@redhat.com>
520
521 * config/mips/mips.c: Include langhooks.h
522 (mips_build_builtin_va_list): Use lang_hooks.types.make_type.
523
524 2003-12-16 Eric Botcazou <ebotcazou@libertysurf.fr>
525
526 PR optimization/13313
527 * combine.c (make_extraction) [REG]: Do not use
528 gen_lowpart_for_combine when POS is non-zero.
529
530 2003-12-16 Hartmut Penner <hpenner@de.ibm.com>
531
532 * altivec.h (vec_cmple, vec_all_numeric): Fix typo.
533 * testsuite/gcc.dg/altivec-10.c: Test for above.
534
535 2003-12-15 David O'Brien <obrien@FreeBSD.org>
536
537 * Makefile.in (CPPFLAGS): Initialize from configure.
538
539 2003-12-15 Roger Sayle <roger@eyesopen.com>
540
541 PR middle-end/13400
542 * ifcvt.c (noce_process_if_block): Disable unconditional write
543 optimizations if we could introduce a store to trapping memory
544 that wasn't present previously.
545
546 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
547
548 * system.h (DEFAULT_CALLER_SAVES): Poison.
549 * toplev.c (flag_caller_saves): Always initialize with 0.
550 * doc/tm.texi (DEFAULT_CALLER_SAVES): Remove.
551
552 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
553
554 * flow.c (EXIT_IGNORE_STACK): Move to ...
555 * defaults.h (EXIT_IGNORE_STACK): ... here.
556 * dojump.c (clear_pending_stack_adjust): Don't use #ifdef
557 EXIT_IGNORE_STACK.
558 * function.c (expand_function_end): Likewise.
559 * global.c (global_alloc): Likewise.
560 * ra.c (init_ra): Likewise.
561 * reload1.c (init_elim_table): Likewise.
562 * reorg.c (fill_simple_delay_slots): Likewise.
563 * resource.c (init_resource_info): Likewise.
564 * doc/tm.texi (EXIT_IGNORE_STACK): Document that the default
565 is 0.
566
567 2003-12-15 J"orn Rennecke <joern.rennecke@superh.com>
568
569 * reload.c (reg_overlap_mentioned_for_reload_p):
570 When looking at a PLUS in X, avoid spuriously returning nonzero
571 when IN is a REG or another simple PLUS, or a MEM containing one.
572
573 * loop.c (loop_invariant_p): Amend comment about where new registers
574 might come from.
575
576 2003-12-15 Andreas Jaeger <aj@suse.de>
577
578 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Remove
579 handling of obsolete language CHILL.
580
581 2003-12-15 Waldek Hebisch <hebisch@math.uni.wroc.pl>
582
583 * tree.c (initializer_zerop): Add test for empty set.
584 * integrate.c (function_cannot_inline_p): Forbid inlining
585 functions calling `longjmp'.
586
587 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
588
589 PR c++/11773
590 * doc/gcov.texi (Gcov and Optimization): Document inline function
591 behaviour. Fix some file suffixes.
592
593 2003-12-14 David O'Brien <obrien@FreeBSD.org>
594
595 * config/i386/i386.h (__amd64, __amd64__): Remove duplicates.
596
597 2003-12-14 Mark Mitchell <mark@codesourcery.com>
598
599 * c-common.h (c_parse_error): Declare it.
600 * c-common.c (c_parse_error): New function.
601 * c-parse.y (yyerror): Use it.
602
603 2003-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
604
605 PR target/13054
606 * pa-protos.h (indexed_memory_operand, borx_reg_operand,
607 move_dest_operand, move_src_operand): New protypes.
608 (basereg_operand, move_operand, reg_or_nonsymb_mem_operand): Deleted.
609 * pa.c (copy_reg_pointer, indexed_memory_operand, move_dest_operand,
610 move_src_operand): New functions.
611 (basereg_operand, reg_or_nonsymb_mem_operand, move_operand): Delete.
612 (reg_or_0_or_nonsymb_mem_operand): Return false for unscaled indexed
613 address until cse is not expected on targets with non-equivalent
614 space registers.
615 (hppa_legitimize_address): Canonicalize unscaled indexed addresses
616 on targets non-equivalent space registers.
617 (emit_move_sequence): Break out indexed addresses from destination
618 operand. Similarly, break out unscaled indexed addresses from
619 source operand on targets with non-equivalent space registers. Fix
620 REG_POINTER flag when possible. Mark register pointer when creating
621 new pointers.
622 (print_operand): Handle unscaled index addresses.
623 * pa.h (IS_INDEX_ADDR_P, IS_LO_SUM_DLT_ADDR_P): New macro subroutines
624 for EXTRA_CONSTRAINT.
625 (EXTRA_CONSTRAINT): Rework to make more readable.
626 (MODE_OK_FOR_SCALED_INDEXING_P, MODE_OK_FOR_UNSCALED_INDEXING_P): New
627 subroutines for GO_IF_LEGITIMATE_ADDRESS.
628 (GO_IF_LEGITIMATE_ADDRESS): Rework using new subroutines. Allow scaled
629 and unscaled addresses. Canonicalize unscaled indexed addresses on
630 targets with non-equivalent space registers. Document issues in
631 handling indexed address modes on PA-RISC.
632 (PREDICATE_CODES): Update for new and deleted predicates.
633 * pa.md (move_dest_operand, move_src_operand, indexed_memory_operand):
634 Use new predicates in move patterns.
635 Add peephole2 patterns to optimize floating point stores. Fix
636 constrain preferencing in move patterns. Delete patterns for handling
637 unscaled indexed memory loads. Add missing load and store with
638 base-register modification patterns. Correct SFmode floating point
639 store pattern. Add missing zero extension loads.
640
641 2003-12-13 Steven Bosscher <stevenb@suse.de>
642
643 * ggc-zone.c (struct alloc_zone): Don't pre-declare, it already
644 comes in with ggc.h. Add a new bool field `dead'.
645 (destroy_ggc_zone): Don't destroy a zone at once. Instead, only
646 set the `dead' flag for the dead zone. Wrap a sanity check in
647 ENABLE_CHECKING.
648 (ggc_collect_1): Always mark and sweep if a zone has the `dead'
649 flag set.
650 (ggc_collect): Free dead zones after collecting.
651
652 2003-12-13 Jan Hubicka <jh@suse.cz>
653
654 * coverage.c (get_coverage_counts): Use inform instead of warning
655 about missing profile.
656
657 2003-12-12 Steven Bosscher <stevenb@suse.de>
658
659 * Makefile.in (opts.o, explow.o): Depend on langhooks.h
660
661 2003-12-12 Geoffrey Keating <geoffk@apple.com>
662
663 * config.gcc <i[34567]86-*-darwin*>: Don't use fixproto.
664 <powerpc-*-darwin*>: Likewise.
665
666 2003-12-12 Jakub Jelinek <jakub@redhat.com>
667
668 * config/ia64/linux.h (IA64_GATE_AREA_END): Increase by 64K.
669 (MD_FALLBACK_FRAME_STATE_FOR): Set fpsr_loc, br_loc[6] and
670 br_loc[7]. Update comment.
671 (MD_HANDLE_UNWABI): Define.
672 * config/ia64/unwind-ia64.c (struct unw_state_record): Add
673 unwabi field.
674 (struct _Unwind_Context): Increase br_loc array size to 8 entries.
675 (desc_abi): Set unwabi.
676 (uw_update_reg_address): Allow br up to 7.
677 (uw_update_context): Invoke MD_HANDLE_UNWABI if defined.
678 (uw_install_context): Load b1..b5 from correct locations.
679 Fix insn loading ar.fpsr.
680 * doc/tm.texi: Document MD_HANDLE_UNWABI.
681
682 2003-12-12 Roger Sayle <roger@eyesopen.com>
683
684 PR optimization/13037
685 * loop.c (update_giv_derive): Ignore redundant sets of a biv when
686 calculating how to derive a giv from a biv.
687
688 2003-12-12 Neil Booth <neil@daikokuya.co.uk>
689
690 PR preprocessor/12935 preprocessor/12952 preprocessor/13046
691 * cpplib.c (prepare_directive_trad): Clear skipping only in
692 #if and #elif directives.
693 (do_undef): Call the handler even if the identifier is not a macro.
694 * cpptrad.c (scan_parameters): Emit an error message.
695 (_cpp_create_trad_definition): Remember the params list even on
696 failure.
697
698 2003-12-11 Zack Weinberg <zack@codesourcery.com>
699
700 * arm.c (ARM_ADDRESS_COST, THUMB_ADDRESS_COST): Convert macros
701 to inline functions: arm_arm_address_cost, arm_thumb_address_cost
702 respectively.
703 (arm_address_cost): Use 'em.
704
705 2003-12-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
706
707 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define
708 __STDC_VERSION__ to ISO C94 for C++.
709
710 * fixinc/inclhack.def (alpha_wchar): New fix.
711 * fixinc/fixincl.x: Regenerate.
712 * fixinc/tests/base/wchar.h: New file.
713
714 2003-12-11 David Mosberger <davidm@hpl.hp.com>
715
716 * unwind-libunwind.c (_Unwind_SetGR): Clear the NaT bit as
717 required by C++ ABI for Itanium.
718 * config/t-libunwind (LIB2ADDEH): Remove unwind-libunwind.c.
719 * config/t-libunwind-no-eh: New file.
720 * configure.in: Check libunwind for _Unwind_Resume() and if it's
721 present, set libunwind_has_eh_support to "yes".
722 * configure: Regenerate.
723 * config.gcc (ia64*-*-linux*): If $libunwind_has_eh_support is
724 set to yes, use t-libunwind, otherwise, use t-libunwind-no-eh.
725
726 2003-12-11 Richard Sandiford <rsandifo@redhat.com>
727
728 * config/mips/mips.c (mips_global_pointer): Force functions with
729 a nonlocal goto to set up $gp.
730
731 2003-12-11 James E Wilson <wilson@specifixinc.com>
732
733 PR target/13132
734 * function.c (gen_mem_addressof): When no decl, explicitly clear flag
735 bits.
736
737 2003-12-12 Nick Clifton <nickc@redhat.com>
738
739 * config/m32r/m32r.c: Convert to ISO-C
740
741 2003-12-12 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
742
743 * doc/invoke.texi: Replace Mitsubishi with Renesas.
744 * config/m32r/m32r.h: Ditto.
745 * config/m32r/m32r.c: Ditto.
746 * config/m32r/m32r.md: Ditto.
747
748 2003-12-11 Steven Bosscher <steven@gcc.gnu.org>
749
750 * basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
751 (BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove.
752 (basic_block_def): Rename `head' to `head_' and `end' to `end_'.
753 (BB_HEAD, BB_END): New accessor macros for the `head_' and `end_'
754 fields of a basic block.
755 * bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c,
756 cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c,
757 cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c,
758 final.c, flow.c, function.c, gcse.c, global.c, graph.c,
759 haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c,
760 loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c,
761 ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c,
762 regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c,
763 sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c,
764 config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of
765 accessing the `head' and `end' fields of a basic block directly.
766
767 * gengtype.c: Teach about "void**" pointers and "void *" function
768 types. Fixes earlier commit.
769
770 2003-12-10 Geoffrey Keating <geoffk@apple.com>
771
772 * doc/extend.texi (Vector Extensions): Document that bitwise
773 operations also work on vectors.
774
775 2003-12-10 Richard Earnshaw <rearnsha@arm.com>
776
777 * arm.md: New split patterns for optimizing bitfield accesses.
778
779 2003-12-10 Steven Bosscher <stevenb@suse.de>
780
781 * README.Portability: Remove K+R section.
782
783 * gengtype-lex.l: Teach about "void**" pointers and
784 "void*" function types.
785
786 2003-12-10 Eric Botcazou <ebotcazou@libertysurf.fr>
787
788 PR target/13354
789 * config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA
790 manually if one can do that with only one instruction.
791
792 2003-12-10 Nick Clifton <nickc@redhat.com>
793
794 * config.gcc (arm-linux): Include linux.h in tm_file so that
795 LINUX_TARGET_OS_CPP_BUILTINS is defined.
796 * config/arm/linux-elf.h (LIB_SPEC): Protect the definition.
797
798 2003-12-09 James E Wilson <wilson@specifixinc.com>
799
800 * rtl.def (CODE_LABEL, NOTE): Correct operand numbers in comments.
801
802 2003-12-09 Matt Austern <austern@apple.com>
803
804 PR c/13134
805 * c-decl.c (duplicate_decls): Copy visibility flag when appropriate.
806
807 2003-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
808
809 * config/m32r/m32r.h: Add support for m32r2 processor. Including
810 a new command line option -m32r2 to select it.
811 * config/m32r/m32r.c: Add support for the new processor variant.
812 * config/m32r/m32r.md: Likewise.
813 * config/m32r/t-m32r: Add m32r2 multilibs.
814 * doc/invoke.texi: Document the new command line switch.
815
816 2003-12-08 Kazu Hirata <kazu@cs.umass.edu>
817
818 * defaults.h (LOCAL_REGNO): Give the default definition.
819 * flow.c (LOCAL_REGNO): Remove.
820 * reload1.c (LOCAL_REGNO): Likewise.
821
822 2003-12-08 Geoffrey Keating <geoffk@apple.com>
823
824 PR target/11848
825 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Allow change of mode
826 in floating-point registers between TFmode and DImode.
827 * rs6000.c (rs6000_emit_move): Split moves early.
828 (secondary_reload_class): Random Whitespace Change.
829 (rs6000_split_multireg_move): Support moves involving FP registers.
830 Emit instructions directly.
831 * rs6000-protos.h (rs6000_split_multireg_move): Update prototype.
832 * altivec.md: Update for changes to rs6000_split_multireg_move.
833 * rs6000.md: Update for changes to rs6000_split_multireg_move.
834 (movtf_internal): Support moves to/from GPRs.
835
836 2003-12-08 Stuart Hastings <stuart@apple.com>
837
838 * config/i386/i386.md: Typo in split of fp-valued if_then_else.
839
840 2003-12-08 James E Wilson <wilson@specifixinc.com>
841
842 PR target/13132
843 * expmed.c (extract_bit_field): Only call mode_for_size for scalar
844 integer modes.
845
846 2003-12-08 Nathanael Nerode <neroden@gcc.gnu.org>
847
848 * doc/install.texi: Revert change of Dec 7; gcc is still a 2.13
849 directory.
850
851 2003-12-08 Alexandre Oliva <aoliva@redhat.com>
852
853 * config/frv/frv.md (subdi2): Merge with _internal insn_and_split,
854 by using match_scratch.
855 (negdi2): New.
856
857 2003-12-08 Jason Merrill <jason@redhat.com>
858 Daniel Berlin <dberlin@dberlin.org>
859
860 PR debug/11114
861 Support namespaces in DWARF 2 output.
862 * dwarf2out.c (gen_namespace_die): New function.
863 (force_namespace_die, setup_namespace_context): New fns.
864 (declare_in_namespace): New fn.
865 (gen_decl_die): Call declare_in_namespace. Handle namespaces.
866 (dwarf2out_decl): Handle namespaces.
867 (scope_die_for): Pass through a namespace scope.
868 (class_scope_p): Rename to class_or_namespace_scope_p.
869 (gen_subprogram_die, gen_variable_die): Adjust.
870 (gen_struct_or_union_die): Always emit a declaration
871 if context_die is a namespace.
872
873 2003-12-08 Jan Hubicka <jh@suse.cz>
874
875 * unwind-pe.h (read_uleb128): Fix handling of large values
876 (read_sleb128): Fix handling of large values
877
878 2003-12-08 Andrew Pinski <pinskia@physics.uc.edu>
879
880 PR middle-end/10060
881 * emit-rtl.c (copy_rtx_if_shared): Split out into ...
882 (copy_rtx_if_shared_1): here and optimize the last one
883 in the sequence into tail-recursion.
884 (reset_used_flags): Optimize the last one
885 in the sequence into tail-recursion.
886
887 2003-12-08 Richard Earnshaw <rearnsha@arm.com>
888
889 * arm.md: New split to transform ((X << y) - 1) into ~(~(X-1) << y)
890 for constant X.
891
892 2003-12-08 Richard Sandiford <rsandifo@redhat.com>
893
894 * calls.c (expand_call): Don't try using tail or recursive calls
895 after the function body has been expanded.
896
897 2003-12-08 Jan Hubicka <jh@suse.cz>
898
899 * i386.md (cmpstr expander): Obey TARGET_INLINE_ALL_STRINGOPS
900
901 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
902
903 PR ada/13324, PR ada/12614
904 * doc/install.texi: Update requirements for building Ada.
905
906 2003-12-07 David Edelsohn <edelsohn@gnu.org>
907 Graham Reed <greed@pobox.com>
908
909 * collect2.c (GCC_OK_SYMBOL): Add support for AIX C_WEAKEXT.
910 (GCC_UNDEF_SYMBOL): Same.
911
912 2003-12-07 Kazu Hirata <kazu@cs.umass.edu>
913
914 * final.c (final_scan_insn): Don't use FINAL_PRESCAN_LABEL.
915 * system.h (FINAL_PRESCAN_LABEL): Poison.
916 * doc/tm.texi (FINAL_PRESCAN_LABEL): Remove.
917
918 2003-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
919
920 * Makefile.in (compare): Combine toplevel and $(SUBDIRS) cases.
921
922 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
923
924 * configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
925 * configure: Regenerate with autoconf 2.13.
926
927 * configure.in: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
928 with modern equivalents.
929 * configure: Regenerate.
930
931 * configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
932 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
933 * configure: Regenerate.
934
935 * configure: Regenerate with (preferred) autoconf 2.57.
936 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
937
938 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
939
940 PR optimization/12965
941 * caller-save.c (save_call_clobbered_regs): Do not save/restore
942 registers around no-return calls.
943
944 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
945
946 * configure.in: Make minimum necessary changes for autoconf 2.5x.
947 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
948 * configure: Regenerate with autoconf 2.58.
949
950 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
951
952 PR optimization/13318
953 * loop.c (express_from): Protect integer division from overflow.
954
955 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
956
957 PR optimization/13060
958 * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
959 replacement already exists. Fix again the whole insn if that fails.
960
961 2003-12-06 Andrew Pinski <pinskia@physics.uc.edu>
962
963 * config/rs6000/rs6000.c (macho_branch_islands): Use
964 HOST_WIDE_INT_PRINT_UNSIGNED.
965
966 2003-12-06 Richard Sandiford <rsandifo@redhat.com>
967
968 * varasm.c (incorporeal_function_p): New.
969 (assemble_external): Use it as a filter.
970 * config/mips/mips.c (mips_output_external): Don't check for builtin
971 functions here.
972
973 2003-12-06 Richard Earnshaw <reanrsha@arm.com>
974
975 * arm.md (IOR (COMPARISON) (AND)): New define_splits.
976
977 2003-12-06 Kelley Cook <kcook@gcc.gnu.org>
978
979 * Makefile.in (program_transform_cross_name): Delete.
980 (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete.
981 (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete.
982 (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above.
983 (install_cpp, install_driver, install-man, uninstall): Likewise.
984
985 2003-12-06 Alan Modra <amodra@bigpond.net.au>
986
987 PR 13169
988 * basic-block.h (PROP_ASM_SCAN): Define.
989 * final.c (regs_asm_clobbered): New array.
990 * regs.h (regs_asm_clobbered): Declare.
991 * flow.c (life_analysis): Init it.
992 (mark_set_regs): Set PROP_ASM_SCAN for asms.
993 (mark_set_1): Set regs_asm_clobbered.
994 * global.c (global_alloc): Don't set eliminable_regset when
995 regs_asm_clobbered.
996
997 2003-12-05 Mark Mitchell <mark@codesourcery.com>
998
999 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Define.
1000
1001 PR c++/13314
1002 * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify.
1003
1004 2003-12-05 Andrew Pinski <pinskia@physics.uc.edu>
1005
1006 PR driver/13211
1007 * gcc.c (execute) Increment execution_count when returning
1008 early because verbose_only_flag is true.
1009
1010 2003-12-05 Per Bothner <pbothner@apple.com>
1011
1012 * cppfiles.c (file_hash_hash): New static function.
1013 (hash_string_eq): Renamed static function to file_hash_eq.
1014 (_cpp_init_files): Create file_hash table with above callbacks.
1015 (cpp_included): Must use htab_find_with_hash insead of htab_find.
1016 (_cpp_find_find, make_cpp_dir): Must use htab_find_slot_with_hash.
1017
1018 2003-12-05 Per Bothner <pbothner@apple.com>
1019
1020 * line-map.h (source_location): New typedef.
1021 (fileline): Redefined as source_location.
1022 (struct line_map, linemap_add, linemap_lookup): Replace filefile
1023 by source_location.
1024 * line-map.c (linemap_add, linemap_lookup): Use source_location.
1025
1026 2003-12-05 Richard Henderson <rth@redhat.com>
1027
1028 * config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
1029 field to suppress -Wpadded warnings.
1030
1031 2003-12-05 Stuart Hastings <stuart@apple.com>
1032
1033 * config/rs6000/rs6000.md: Correct macro test of TARGET_MACHO.
1034
1035 2003-12-05 Stuart Menefy <stuart.menefy@st.com>
1036 J"orn Rennecke <joern.rennecke@superh.com>
1037
1038 PR target/13302
1039 * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
1040
1041 2003-12-05 Roger Sayle <roger@eyesopen.com>
1042
1043 * dojump.c (do_jump): If the expression being compared against
1044 zero, is the subreg of a promoted variable, perform the comparison
1045 in the promoted mode.
1046 * simplify-rtx.c (simplify_unary_operation): Optimize sign and
1047 zero-extensions of subregs of promoted variables where the
1048 extension is identical to that used to promote the variable.
1049
1050 2003-12-05 Hans-Peter Nilsson <hp@axis.com>
1051
1052 PR target/13256
1053 * resource.h (enum mark_resource_type): Remove member MARK_DEST.
1054 The only user changed as follows:
1055 * resource.c (mark_set_resources) <case SET>: Always recurse for
1056 SET_SRC (x).
1057 <case SIGN_EXTRACT, case ZERO_EXTRACT>: Always recurse on
1058 operands.
1059 <case STRICT_LOW_PART>: Delete, deferring to default code.
1060
1061 2003-12-05 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1062
1063 * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
1064 and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
1065
1066 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
1067
1068 * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
1069 for n32 & n64 abicalls.
1070
1071 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
1072
1073 PR bootstrap/13145
1074 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
1075 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
1076 (mips_load_got): Always create a constant MEM.
1077 (mips_expand_call): Use load_callsi and load_calldi.
1078 * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
1079 (load_callsi, load_calldi): New patterns.
1080
1081 2003-12-05 Peter Gerwinski <peter@gerwinski.de>
1082
1083 * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
1084
1085 2003-12-05 Steven Bosscher <stevenb@suse.de>
1086
1087 * config/d30v/d30v-protos.h , config/d30v/d30v.c,
1088 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
1089 config/fr30/fr30-protos.h, config/fr30/fr30.c,
1090 config/i370/i370-protos.h, config/i370/i370.c,
1091 config/i960/i960-protos.h, config/i960/i960.c,
1092 config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
1093 config/m32r/m32r-protos.h, config/m32r/m32r.c,
1094 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
1095 config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
1096 Convert to ISO C90 function declarations and definitions.
1097
1098 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1099
1100 * doc/extend.texi (Constructing Calls): Add warning about
1101 the limitations of the functions.
1102
1103 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1104
1105 PR middle-end/11151
1106 * function.h (struct function): New field 'x_naked_return_label'.
1107 * function.c (free_after_compilation): Set it to NULL.
1108 (expand_function_end): Emit 'naked_return_label' if it exists.
1109 * rtl.h (expand_naked_return): Declare.
1110 * stmt.c (expand_naked_return): New function to generate a
1111 jump to 'naked_return_label'.
1112 * builtins.c (expand_builtin_return): Call expand_naked_return
1113 instead of expand_null_return.
1114 * config/sparc/sparc.md (untyped_return): Likewise.
1115
1116 2003-12-04 Andrew Pinski <pinskia@physics.uc.edu>
1117
1118 PR target/11322
1119 * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
1120
1121 PR target/12467
1122 * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
1123
1124 2003-12-04 Stuart Hastings <stuart@apple.com>
1125
1126 * rs6000.c (output_call, macho_branch_islands,
1127 add_compiler_branch_island, no_previous_def, get_previous_label)
1128 Revisions of xx_stub functions for branch islands,
1129 add -fPIC support for Darwin.
1130 * rs6000-protos.h (output_call) Prototype.
1131 * rs6000.md Use output_call.
1132 * invoke.texi Explain Darwin semantics of -longcall.
1133 * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
1134
1135 2003-12-04 Richard Henderson <rth@redhat.com>
1136
1137 * config/i386/i386.md (addqi3_carry): Use q not r constraints.
1138 (subqi3_carry): Likewise.
1139
1140 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
1141
1142 PR optimization/13260
1143 * sh-protos.h (sh_expand_t_scc): Declare.
1144 * sh.h (PREDICATE_CODES): Add cmpsi_operand.
1145 * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
1146 * sh.md (cmpsi): Use cmpsi_operand. If T_REG is compared to
1147 something that is not a CONST_INT, copy it into a pseudo register.
1148 (subc): Fix description of new T value.
1149 (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
1150 (sltu, sleu, sgeu): Likewise.
1151 (seq, sne): Likewise. Use sh_expand_t_scc.
1152
1153 2003-12-04 Nathanael Nerode <neroden@gcc.gnu.org>
1154
1155 * configure.in: Generalize the CONFIG_HEADERS pattern under which
1156 we stamp cstamp-h.
1157 * configure: Regenerate.
1158
1159 * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
1160 to avoid trouble when updating to autoconf 2.5x.
1161 * configure: Regenerate (with autoconf 2.13 still).
1162
1163 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
1164
1165 * sh.md (truncdiqi2): Use andi opcode for immediate.
1166 (reload_outdf+1,reload_outdf+2): Remove constraints.
1167 (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
1168 (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
1169 (fipr, ftrv): Add .s suffix to opcode.
1170
1171 2003-12-04 Richard Sandiford <rsandifo@redhat.com>
1172
1173 PR target/13186
1174
1175 Revert all of the following patch, except the addition of
1176 hook_bool_machine_mode_true:
1177
1178 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
1179
1180 * Makefile.in (targhooks.o, reload.o): Update dependencies.
1181 (GTFILES): Add targhooks.c.
1182 (gt-targhooks.h): New rule; depend on s-gtype.
1183 * target.h (direct_pool_load_p): New hook.
1184 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
1185 (TARGET_INITIALIZER): Include it.
1186 * targhooks.h (default_direct_pool_load_p): Declare.
1187 (hook_bool_machine_mode_true): Declare.
1188 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
1189 gt-targhooks.h.
1190 (pool_symbol): New variable.
1191 (default_direct_pool_load_p): New function.
1192 (hook_bool_machine_mode_true): New function.
1193 * reload.c: Include target.h.
1194 (find_reloads): If an alternative will force a constant into memory,
1195 count an extra reload if constant pool symbols are not valid
1196 addresses. If an alternative uses memory to move values between
1197 registers, count the move as two reloads rather than one.
1198 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
1199 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
1200
1201 2003-12-03 Mark Mitchell <mark@codesourcery.com>
1202
1203 * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
1204 * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
1205 HAVE_AS_TLS is true.
1206 * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
1207
1208 2003-12-03 James E Wilson <wilson@specifixinc.com>
1209
1210 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
1211
1212 * gcc-page.c (extra_order_size_tab): Correct comment.
1213
1214 2003-12-03 Kazu Hirata <kazu@cs.umass.edu>
1215
1216 * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
1217 instead of gen_push_h8300hs.
1218 (pop): Call gen_pop_h8300hs_advanced instead of
1219 gen_pop_h8300hs.
1220 * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
1221 * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
1222 Tighten the predicate.
1223 (*tablejump_h8300hs_normal): Tighten the predicate.
1224 (push_h8300hs): Change to
1225 push_h8300hs_advanced.
1226 (pop_h8300hs): Change to pop_h8300hs_advanced.
1227
1228 2003-12-03 Eric Christopher <echristo@redhat.com>
1229
1230 * rtl.c: Fix typo.
1231 * config/mips/mips.h: Ditto. Fix formatting.
1232
1233 2003-12-04 Ben Elliston <bje@wasabisystems.com>
1234
1235 * future.options: Remove. Move to gnu.org web pages.
1236
1237 2003-12-03 Eric Christopher <echristo@redhat.com>
1238
1239 * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
1240 from here...
1241 * c-tree.h: to here.
1242
1243 2003-12-03 Jan Hubicka <jh@suse.cz>
1244
1245 PR optimization/12324
1246 * toplev.c (rest_of_decl_compilation): Do not deffer when compiling
1247 in unit-at-a-time mode.
1248
1249 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1250
1251 * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
1252 read-only field if cleared is 0.
1253
1254 2003-12-03 Nathanael Nerode <neroden@gcc.gnu.org>
1255
1256 * config.gcc: Mark obsolete targets for GCC 3.4.
1257
1258 2003-12-03 Zack Weinberg <zack@codesourcery.com>
1259
1260 * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
1261 * config.in, configure.in: Regenerate.
1262 * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
1263 including iconv.h.
1264
1265 2003-12-03 Alan Modra <amodra@bigpond.net.au>
1266
1267 PR target/11229
1268 * cse.c (cse_insn): Set classp using src_const_elt if
1269 src_eqv_elt is NULL.
1270
1271 2003-12-03 Richard Earnshaw <rearnsha@arm.com>
1272
1273 * gcse.c (reg_clear_last_set): New function.
1274 (reg_set_info): If data is non-null, treat it as an sbitmap of
1275 registers, set the bit for the register being set.
1276 (compute_store_table): Allocate last_set_in with xcalloc. Do not
1277 memset this array on each iteration. Pass reg_set_in_block[bb->index]
1278 to note_stores while computing last_set_in instead of scanning
1279 last_set_in after the first pass through the insns.
1280 Clear last_set_in using reg_clear_last_set instead of explicitly
1281 rescanning after each insn. If checking is enabled, assert that
1282 last_set_in is completely zeroed after each bb has been processed.
1283
1284 2003-12-02 Geoffrey Keating <geoffk@geoffk.org>
1285
1286 * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
1287 never read-write.
1288 <REG>: Delete incorrect comment.
1289 <SET>: Remove 'use_flags' variable.
1290
1291 2003-12-03 David Edelsohn <edelsohn@gnu.org>
1292
1293 * function.c (assign_parms): Make sure parm PARALLEL combined
1294 in reg is composed of more than one object and the mode really
1295 produces a reg.
1296
1297 2003-12-03 Jan Hubicka <jh@suse.cz>
1298
1299 * i386.c (classify_argument): Make it 64bit clean.
1300
1301 2003-12-02 Richard Sandiford <rsandifo@redhat.com>
1302
1303 * config/mips/mips.c (mips_output_external): Replace checks for
1304 specific builtin-in functions with a check for DECL_BUILTIN_IN.
1305
1306 2003-12-02 Richard Henderson <rth@redhat.com>
1307
1308 * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
1309 * tree.h (TREE_SET_CODE): Likewise.
1310 * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
1311
1312 2003-12-02 Ben Elliston <bje@wasabisystems.com>
1313
1314 * dbxstclass.h: Rename from this ..
1315 * xcoff.h: .. to this.
1316 * xcoffout.c: Include xcoff.h.
1317
1318 2003-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1319
1320 * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
1321
1322 2003-12-01 James Lemke <jim@wasabisystems.com>
1323
1324 * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
1325
1326 2003-12-01 Roger Sayle <roger@eyesopen.com>
1327
1328 PR optimization/11634
1329 * recog.c (split_insn): Factor test of INSN_P and handling of
1330 set_noop_p out of here into the two callers.
1331 (split_all_insns): Add INSN_P test and set_noop_p handling here.
1332 If deleting a no-op set after reload that has a REG_UNUSED note,
1333 mark the basic block as changed and recalculate life information.
1334 (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
1335 here.
1336
1337 2003-12-01 Roger Sayle <roger@eyesopen.com>
1338
1339 PR optimization/12322
1340 * gcse.c (struct ls_expr): Change type of hash_index from int to
1341 unsigned int.
1342 (hash_expr): Document hash_table_size parameter and wrap long line.
1343 (ldst_entry): Calculate expression's hash_index and record in ptr.
1344 (trim_ld_motion_mems): Use hash_index to search a single bucket
1345 instead of scanning the entire hash_table. Remove the "del" local
1346 variable and use the equivalent "expr == 0" instead. Change last
1347 to be a pointer to the pointer to the current element, to simplify
1348 and speed-up deleting from a linked list.
1349
1350 2003-12-01 James E Wilson <wilson@specifixinc.com>
1351
1352 * doc/contrib.texi: Update David Mosberger.
1353
1354 * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
1355 of missing fields.
1356
1357 PR target/8407
1358 * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
1359 gen_rtx_REG to create new reg with argument mode.
1360
1361 2003-12-01 Steven Bosscher <stevenb@suse.de>
1362
1363 * ggc.h (struct alloc_zone): Move forward declaration up.
1364 (new_ggc_zone): New function prototype.
1365 (destroy_ggc_zone): Ditto.
1366 * ggc-simple.c (new_ggc_zone): New function, does nothing.
1367 (destroy_ggc_zone): Ditto.
1368 * ggc-page.c (new_ggc_zone): New function, does nothing.
1369 (destroy_ggc_zone): Ditto.
1370 * ggc-zone.c (struct page_entry): Fix comment.
1371 (ggc_alloc_typed): Use a switch statement instead of ifs.
1372 (new_ggc_zone): New function to set up a new GC zone.
1373 (destroy_ggc_zone): New function to remove a GC zone.
1374 init_ggc): Use new_ggc_zone to set up the default zones.
1375 (ggc_collect): Walk a list of zones, instead of just the
1376 default zones. Report statistics using the zone name.
1377
1378 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1379
1380 * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
1381
1382 2003-12-01 Roger Sayle <roger@eyesopen.com>
1383
1384 PR optimization/12628
1385 * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
1386 * regclass.c (reg_scan): Include allocate_reg_info time in
1387 TV_REG_SCAN. Minor clean-ups.
1388 (reg_scan_update): Minor clean-ups.
1389
1390 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1391
1392 * config.gcc (s390x-ibm-tpf*): Add extra_parts.
1393
1394 2003-12-01 James E Wilson <wilson@specifixinc.com>
1395
1396 * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
1397 GR_ARG_FIRST.
1398
1399 2003-12-01 Zack Weinberg <zack@codesourcery.com>
1400
1401 * common.opt: Remove -fgnu-linker.
1402 * flags.h: Remove flag_gnu_linker.
1403 * opts.c: Don't handle OPT_fgnu_linker.
1404 * toplev.c: Don't initialize flag_gnu_linker.
1405 Remove gnu-linker entry from f_options.
1406 * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
1407 Don't reset flag_gnu_linker.
1408 * config/mips/mips.c (override_options): Likewise.
1409 * doc/invoke.texi: Remove all mention of -fgnu-linker.
1410
1411 2003-12-01 Daniel Berlin <dberlin@dberlin.org>
1412
1413 * ggc-zone.c (ggc_pch_write_object): Calculate object size using
1414 ggc_get_size (which accounts for large objects properly).
1415
1416 2003-12-01 Jeff Sturm <jsturm@one-point.com>
1417
1418 PR optimization/13024
1419 * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
1420 parameter.
1421 (rest_of_handle_old_regalloc): Likewise. Add rebuild_notes
1422 declaration. Rebuild jump labels following local_alloc if necessary.
1423 (rest_of_compilation): Remove rebuild_label_notes_after_reload
1424 declaration. Don't pass rebuild_notes parameter to
1425 rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
1426 Don't rebuild jump labels.
1427
1428 2003-12-01 Jeff Law <law@redhat.com>
1429
1430 * flow.c (count_or_remove_death_notes_bb): New. Extracted from
1431 count_or_remove_death_notes.
1432 (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
1433
1434 2003-12-01 Andreas Krebbel <krebbel1@de.ibm.com>
1435
1436 * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
1437
1438 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1439
1440 * reload.c (find_reloads_address): Split addresses of type
1441 (plus (plus (reg) (reg)) (const_int)) only if one register
1442 is either a valid base register or else one of the stack
1443 frame related registers (sp/fp/ap).
1444
1445 2003-12-01 Steven Bosscher <stevenb@suse.de>
1446
1447 * function.c (update_epilogue_consts): Don't use PARAMS.
1448 * rtl.h (web_main): Ditto.
1449 * target.h (is_costly_dependence): Ditto
1450
1451 2003-12-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1452
1453 PR middle-end/7847
1454 * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
1455 do not recheck that 'op0' is a MEM. Move comment. When testing for
1456 unaligned objects, take also into account the alignment of 'op0' and
1457 'mode1' if 'op0' is a MEM.
1458
1459 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
1460
1461 * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
1462
1463 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
1464
1465 * doc/install.texi: Note that fastjar is built with automake 1.7.x
1466 and autoconf 2.57.
1467
1468 2003-12-01 Alan Modra <amodra@bigpond.net.au>
1469
1470 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
1471 target_flags directly rather than using TARGET_* defines.
1472
1473 2003-11-30 Ben Elliston <bje@wasabisystems.com>
1474
1475 * doschk.c: Remove.
1476
1477 2003-11-30 Richard Sandiford <rsandifo@redhat.com>
1478
1479 PR target/12727
1480 * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
1481 on 32-bit big-endian targets.
1482
1483 2003-11-30 Kazu Hirata <kazu@cs.umass.edu>
1484
1485 * genemit.c (register_constraints): Remove.
1486
1487 2003-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1488
1489 * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
1490 "iordi3"): Insns now use multiple letter constraints.
1491 ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
1492 covered by "*movdi_64".
1493 ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
1494 covered by "*movsi_zarch" and "*movsi_esa".
1495 ("*movsi_zarch", "*movsi_!zarch"): New insns.
1496 ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
1497 by "*andsi3_zarch" and "anddi3".
1498 ("*anddi3_ni"): Insn merged with "anddi3".
1499 ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
1500 ("*andsi3_zarch", "*andsi3_esa"): New insns.
1501 ("*iordi3_oi"): Insn merged with "iordi3".
1502 ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
1503 ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
1504
1505 * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
1506 merged to s390_single_part.
1507 (s390_single_part): New function.
1508 NOTE: Semantics have changed a bit. Now the value of the part must
1509 be different from the others to get a non-negative return value.
1510 (s390_extract_qi, s390_extract_hi): Functions merged to
1511 s390_extract_part.
1512 (s390_extract_part, s390_extra_constraint_str,
1513 s390_const_ok_for_constraint_p): New functions. The L constraint got a
1514 new meaning and the N constraint was added as a multiple letter
1515 constraint.
1516 (s390_extra_constraint): Function deleted.
1517 (print_operand): New output modifier 'i' and 'j' added.
1518 All uses of CONST_OK_FOR_LETTER_P were replaced by
1519 CONST_OK_FOR_CONSTRAINT_P.
1520
1521 * config/s390/s390-protos.h: Function prototypes adapted.
1522 * doc/md.texi: Documentation for new constraint letters added.
1523
1524 2003-11-30 Andreas Schwab <schwab@suse.de>
1525
1526 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
1527
1528 2003-11-29 James E Wilson <wilson@specifixinc.com>
1529
1530 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
1531 instead of in shared_name.
1532
1533 * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
1534 * reload1.c (reload): Re-add it here.
1535
1536 2003-11-30 Alan Modra <amodra@bigpond.net.au>
1537
1538 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
1539 set SECTION_WRITE on TARGET_RELOCATABLE.
1540
1541 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
1542
1543 * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
1544
1545 2003-11-28 Gunther Nikl <gni@gecko.de>
1546
1547 * config/m68k/m68k.c (MOTOROLA): Move from here...
1548 * config/m68k/m68k.h (MOTOROLA): ... to here.
1549 (OUTPUT_JUMP): Use do {...} while (0).
1550 * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
1551
1552 2003-11-28 Gunther Nikl <gni@gecko.de>
1553
1554 * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
1555 m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
1556 MOTOROLA and USE_GAS.
1557 * config/m68k/rtemself.h (MOTOROLA): Delete.
1558 * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
1559 * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
1560
1561 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
1562
1563 * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
1564
1565 2003-11-29 Kelley Cook <kcook@gcc.gnu.org>
1566
1567 * Makefile.in (install-info): Install gccinstall.info too.
1568
1569 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1570
1571 * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
1572
1573 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1574
1575 * config/s390/s390.md ("movhi"): Do not emit extender pattern
1576 when loading from a (MEM (ADDRESSOF ...)).
1577 ("movqi"): Likewise.
1578
1579 2003-11-29 Joseph S. Myers <jsm@polyomino.org.uk>
1580
1581 PR c/10333
1582 * c-parse.in (typespec_reserved_nonattr): Reject typeof on
1583 bit-fields.
1584
1585 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
1586
1587 * stmt.c (expand_asm_operands): Check whether force_const_mem
1588 succeeded.
1589
1590 2003-11-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1591
1592 * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
1593 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
1594
1595 * config/alpha/gnu.h, config/alpha/linux.h,
1596 config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
1597 config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
1598 config/i386/linux-aout.h, config/i386/linux.h,
1599 config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
1600 config/m68k/uclinux.h, config/mips/linux.h,
1601 config/mn10300/linux.h, config/pa/pa-linux.h,
1602 config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
1603 config/sparc/linux.h, config/sparc/linux64.h,
1604 config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
1605 HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
1606 all necessary assertions are included.
1607
1608 2003-11-28 Jan Hubicka <jh@suse.cz>
1609
1610 * emit-rtl.c (set_used_flags): New.
1611 (verify_rtx_sharing, verify_rtl_sharing): New.
1612 (unshare_all_rtl_1): Rename to....
1613 (unshare_all_rtl_in_chain): ... this one; make static.
1614 (copy_rtx_if_shared): LABEL_REF chan be shared.
1615 * ifcvt.c (unshare_ifcvt_sequence): New.
1616 (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
1617 noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
1618 noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
1619 noce_try_abs, noce_process_if_block, find_cond_trap
1620 * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
1621 Declare.
1622
1623 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1624
1625 * config/h8300/h8300.md: Fix a comment typo.
1626
1627 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1628
1629 * config/h8300/h8300.md (*movsf_h8300h): Change to
1630 *movsf_h8300hs.
1631 (addsi_h8300): Change to *addsi_h8300.
1632 (addsi_h8300h): Change to *addsi_h8300hs.
1633 (subsi3_h8300): Change to *subsi3_h8300.
1634 (subsi3_h8300h): Change to *subsi3_h8300hs.
1635 (neghi2_h8300h): Change to *neghi2_h8300hs.
1636 (negsi2_h8300h): Change to *negsi2_h8300hs.
1637
1638 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1639
1640 * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
1641 constraint.
1642 (*subhi3_h8300hs): Likewise.
1643
1644 2003-11-28 David Edelsohn <edelsohn@gnu.org>
1645
1646 * config/rs6000/rs6000.h (MASK_MFCRF): New.
1647 (TARGET_MFCRF): Test target_flags, not processor type.
1648 (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
1649 Change Don't to Do not.
1650 * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
1651 to power4, 970, G5.
1652
1653 2003-11-27 J"orn Rennecke <joern.rennecke@superh.com>
1654
1655 * cse.c (cse_set_around_loop): When changing a constant load
1656 to a register -register copy, add a REG_EQUAL note.
1657
1658 2003-11-27 Randolph Chung <tausq@debian.org>
1659 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1660
1661 * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
1662 insns. Use the regular call expander for the call to the profiler.
1663 * pa.md (call_profiler): Delete.
1664 (load_offset_label_address): New insn to load the address of the
1665 current function for the profiler.
1666 (lcla1, lcla2): New insns to output a code label and load its address.
1667
1668 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1669
1670 * final.c (final_scan_insn): Remove commented-out code.
1671
1672 2003-11-27 Nathanael Nerode <neroden@gcc.gnu.org>
1673
1674 * doc/install.texi: Remove ADAC reference and make accurate.
1675
1676 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1677
1678 * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
1679 (FUNCTION_VALUE_REGNO_P): Likewise.
1680 * config/h8300/h8300.md: Define R0_REG.
1681
1682 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1683
1684 * config/h8300/h8300.c: Fix formatting.
1685 * config/h8300/h8300.md: Likewise.
1686
1687 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1688
1689 * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
1690
1691 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1692
1693 * config/h8300/h8300.md: Give names to anonymous insns.
1694
1695 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1696
1697 * config/h8300/h8300.md (extendqisi2): Remove constraints.
1698
1699 2003-11-27 Gunther Nikl <gni@gecko.de>
1700
1701 * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
1702
1703 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1704
1705 PR optimization/13041
1706 * final.c (frame_pointer_needed): Fix comment.
1707 * reload1.c (reload): Decrease alignment of the frame
1708 pointer if it was used for register allocation.
1709
1710 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1711
1712 PR target/12900
1713 * reg-stack (move_for_stack_reg): New prototype. Return
1714 whether a control flow insn was deleted.
1715 (subst_stack_regs_pat): Likewise, using the information provided
1716 by move_for_stack_reg.
1717 (subst_stack_regs): Likewise, using the information provided
1718 by subst_stack_regs_pat.
1719 (convert_regs_1): Record whether a control flow insn was deleted,
1720 using the information provided by subst_stack_regs. Purge dead
1721 edges only if a control flow insn was deleted.
1722
1723 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1724
1725 PR middle-end/8028
1726 PR middle-end/9890
1727 PR middle-end/11151
1728 PR middle-end/12210
1729 PR middle-end/12503
1730 PR middle-end/12692
1731 * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
1732 as the base address to copy the memory arguments to.
1733
1734 2003-11-26 Danny Smith <dannysmith@users.sourceforge.net>
1735
1736 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
1737 function aliases as functions.
1738
1739 2003-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
1740
1741 * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
1742 of ADAC.
1743 * configure: Regenerate.
1744
1745 * Makefile.in: Remove references to ADAC.
1746
1747 * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
1748 * configure: Regenerate.
1749
1750 2003-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1751 Olivier Hainque <hainque@act-europe.fr>
1752
1753 PR target/6466
1754 * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
1755 (sparc_flat_compute_frame_size): Likewise.
1756 (sparc_flat_save_restore): Move prototype...
1757 * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
1758 (save_regs): New prototype.
1759 (build_big_number): Likewise.
1760 (apparent_fsize): Change type to HOST_WIDE_INT.
1761 (actual_fsize): Likewise.
1762 (frame_base_offset): Likewise.
1763 (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
1764 Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1765 [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
1766 to load a 64-bit constant.
1767 (sparc_nonflat_function_prologue): Change string descriptor to
1768 HOST_WIDE_INT_PRINT_DEC. Change offset type to HOST_WIDE_INT.
1769 (output_restore_regs): Change offset type to HOST_WIDE_INT.
1770 (sparc_nonflat_function_epilogue): Change string descriptor to
1771 HOST_WIDE_INT_PRINT_DEC. Use build_big_number.
1772 (output_sibcall): Change size type to HOST_WIDE_INT. Use
1773 build_big_number. Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1774 (sparc_frame_info): Change types for several components.
1775 (sparc_flat_compute_frame_size): Update types according to previous
1776 change.
1777 (sparc_flat_function_prologue): Change string descriptor to
1778 HOST_WIDE_INT_PRINT_DEC. Change offset type to int. Use
1779 build_big_number.
1780 (sparc_flat_function_epilogue): Change offset type to int.
1781 Rename 'size1' into 'reg_offset1'. Change string descriptor to
1782 HOST_WIDE_INT_PRINT_DEC. Use build_big_number. Change big number
1783 limit to 4096 instead of 4095.
1784
1785 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
1786 HOST_WIDE_INT.
1787
1788 2003-11-24 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1789
1790 * function.c: Make outer_function-chain external.
1791 * function.h: Likewise.
1792
1793 2003-11-24 Richard Sandiford <rsandifo@redhat.com>
1794
1795 * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
1796 using GNU ld.
1797 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
1798 whole of the previous STARTFILE_SPEC except crtbegin.o%s.
1799 (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
1800 (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
1801 (SUBTARGET_EXTRA_SPECS): Define.
1802 * config/mips/iris6gld.h (LINK_SPEC): Change -init function
1803 to __gcc_init and -fini function to __gcc_fini.
1804 (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
1805 (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
1806 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
1807 * config/mips/t-iris6gld,
1808 * config/mips/irix6-crti.asm,
1809 * config/mips/irix6-crtn.asm: New files.
1810
1811 2003-11-24 Eric Christopher <echristo@redhat.com>
1812
1813 PR C/13014
1814 * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
1815 (start_function): Use.
1816 (c_push_function_context): Ditto.
1817 (c-pop_function_context): Ditto.
1818 (language_function): Move...
1819 * c-tree.h: ... here. Add x_in_iteration_stmt, and
1820 x_in_case_stmt.
1821 * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
1822 c_in_iteration_stmt, c_in_case_stmt for parser state. Move
1823 check for valid break or continue statment here...
1824 * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
1825 here. Change original errors to abort.
1826
1827 2003-11-24 Jan Hubicka <jh@suse.cz>
1828
1829 * fold-const.c (fold): Do not return early when optimizing
1830 COMPONENT_REF and constant.
1831
1832 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1833
1834 * config/h8300/h8300.md (tablejump_h8300): Change to
1835 *tablejump_h8300.
1836 (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
1837 (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
1838 (indirect_jump_h8300): Change to *indirect_jump_h8300.
1839 (indirect_jump_h8300h): Change to
1840 *indirect_jump_h8300hs_advanced.
1841 (indirect_jump_normal_mode): Change to
1842 *indirect_jump_h8300hs_normal.
1843
1844 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1845
1846 * config/h8300/h8300.md: Remove constraints from expanders.
1847
1848 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1849
1850 * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
1851 stm_h8300s_2_advanced.
1852 (stm_h8300s_2_normal): New.
1853 (stm_h8300s_2): Likewise.
1854 (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
1855 (stm_h8300s_3_normal): New.
1856 (stm_h8300s_3): Likewise.
1857 (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
1858 (stm_h8300s_4_normal): New.
1859 (stm_h8300s_4): Likewise.
1860 (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
1861 (ldm_h8300s_2_normal): New.
1862 (ldm_h8300s_2): Likewise.
1863 (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
1864 (ldm_h8300s_3_normal): New.
1865 (ldm_h8300s_3): Likewise.
1866 (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
1867 (ldm_h8300s_4_normal): New.
1868 (ldm_h8300s_4): Likewise.
1869 (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
1870 (two peephole2's): New.
1871
1872 2003-11-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1873
1874 * genattrtab.c (simplify_cond): Update indices correctly.
1875 (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
1876 attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
1877 (check_attr_test, encode_units_mask, compute_alternative_mask,
1878 make_alternative_compare, simplify_and_tree,
1879 attr_rtx_cost, simplify_test_exp, gen_attr,
1880 write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
1881 * rtl.def (EQ_ATTR_ALT): New.
1882
1883 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1884
1885 * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
1886 (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
1887 New variables.
1888 (main): Initialize them.
1889 (find_attr): Canonicalize the attribute name string.
1890 (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
1891 string arguments.
1892 (attr_printf, attr_eq): Use DEF_ATTR_STRING.
1893 (check_attr_test, check_attr_value, make_length_attrs,
1894 write_length_unit_log, simplify_by_exploding, gen_attr,
1895 write_test_expr, write_attr_value, write_eligible_delay,
1896 write_complex_function, make_internal_attr,
1897 write_const_num_delay_slots): Changed due to change of type of
1898 find_attr.
1899 (fill_attr, evaluate_eq_attr, simplify_and_tree,
1900 attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
1901 strcmp_check.
1902
1903 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
1904
1905 PR target/13122
1906 * config/h8300/h8300.c (push): Call push_h8300hs_normal in
1907 normal mode.
1908 (pop): Call pop_h8300hs_normal in normal mode.
1909 * config/h8300/h8300.md: Likewise.
1910 (pushqi1_h8300hs_normal): New.
1911 (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
1912 (pushhi1_h8300hs_normal): New.
1913 (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
1914 (push_h8300hs_normal): New.
1915 (pop_h8300hs_normal): Likewise.
1916
1917 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1918
1919 * genattrtab.c (count_sub_rtxs): Removed.
1920
1921 2003-11-23 Richard Earnshaw <rearnsha@arm.com>
1922
1923 * recog.c (preprocess_constraints): Only zero those elements of
1924 recog_op_alt that are needed for this insn.
1925 * arm.c (note_invalid_constants): A function can't contain invalid
1926 constants if it has no constraints.
1927
1928 2003-11-22 Jan Hubicka <jh@suse.cz>
1929
1930 * i386.c (classify_argument): Pass __float128 in memory.
1931 (ix86_return_in_memory): Likewise.
1932 (ix86_libcall_value): Likewsie.
1933
1934 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
1935
1936 * config/h8300/h8300.c (dosize): Convert to ISO-C.
1937
1938 2003-11-22 J"orn Rennecke <joern.rennecke@superh.com>
1939
1940 * flow.c (update_life_info): Amend comment about when a register
1941 can become dead.
1942
1943 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
1944
1945 * doc/.cvsignore: Delete.
1946
1947 2003-11-21 Daniel Berlin <dberlin@dberlin.org>
1948 David Edelsohn <edelsohn@gnu.org>
1949
1950 * dwarf2out.c (add_location_or_const_value_attribute): Add support
1951 for PARALLEL.
1952
1953 2003-11-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1954
1955 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
1956 (TARGET_LIBGCC2_CFLAGS): Define.
1957
1958 * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
1959 (__do_global_ctors): Likewise.
1960
1961 2003-11-21 Mark Wielaard <mark@klomp.org>
1962
1963 * doc/invoke.texi (-O2): Doesn't enable -fweb.
1964
1965 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
1966
1967 * doc/invoke.texi: Mention dV and dZ.
1968
1969 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
1970
1971 * doc/invoke.texi: Update dump file names.
1972 Remove de, dW, and dX.
1973
1974 2003-11-20 James E Wilson <wilson@specifixinc.com>
1975
1976 PR c/13133
1977 * reload1.c (reload): Delete special handling for setjmp.
1978
1979 2003-11-21 Andreas Tobler <a.tobler@schweiz.ch>
1980
1981 * mklibgcc.in: Evaluate shlib_slibdir_qual during link
1982 step too.
1983 * config/t-slibgcc-darwin: Adjust install path.
1984 * config/rs6000/t-darwin: Revert multilib matches since
1985 it is not used on darwin.
1986
1987 2003-11-20 Richard Henderson <rth@redhat.com>
1988
1989 * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
1990 * Makefile.in (OBJS-common, GTFILES): Don't reference them.
1991 (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
1992 (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
1993 * flow.c: Don't include ssa.h.
1994 (set_phi_alternative_reg): Remove.
1995 (calculate_global_regs_live): Don't call it.
1996 (mark_used_regs): Don't handle PHI.
1997 * gengtype.c (open_base_files): Don't reference ssa.h.
1998 * rtl.def (PHI): Remove.
1999 * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
2000 * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
2001 * opts.c (common_handle_option): Likewise.
2002 * toplev.c (f_options): Likewise.
2003 (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
2004 (dump_file): Update to match.
2005 (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
2006 (rest_of_handle_ssa): Remove.
2007 (rest_of_compilation): Don't call it.
2008 * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
2009 * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
2010 * doc/passes.texi (SSA optimizations): Remove.
2011
2012 2003-11-20 Bob Wilson <bob.wilson@acm.org>
2013
2014 * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
2015 * configure: Regenerate.
2016
2017 2003-11-20 Kelley Cook <kcook@gcc.gnu.org>
2018
2019 * Makefile.in (Makefile): Pass along CONFIG_SHELL.
2020
2021 2003-11-20 David Mosberger <davidm@hpl.hp.com>
2022
2023 * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
2024 (SHLIB_LC): Define.
2025 * unwind-libunwind.c (_Unwind_GetCFA): Implement.
2026 (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
2027
2028 2003-11-20 Fariborz Jahanian <fjahanian@apple.com>
2029 David Edelsohn <edelsohn@gnu.org>
2030
2031 * calls.c (expand_call): Allocate new temp in pass1.
2032 (store_one_arg): If PARALLEL, calculate excess using mode size of
2033 rtvec elt.
2034 * expr.c (emit_push_insn): If PARALLEL, calculate offset using
2035 mode size of rtvec elt.
2036 * function.c (assign_parms): Use parm in register, if available.
2037
2038 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
2039
2040 * config/h8300/lib1funcs.asm (MOVP): Remove.
2041 (ADDP): Likewise.
2042 (CMPP): Likewise.
2043
2044 2003-11-20 Richard Earnshaw <rearnsha@arm.com>
2045
2046 * arm.c (use_return_insn): New argument, SIBLING. Support returning
2047 with a single instruction if the stack has been decremented by 4
2048 and we have a frame pointer. Update all callers.
2049 (output_return_instruction): Likewise.
2050 (arm_output_epilogue): Change argument to SIBLING. Calculate
2051 really_return from the new argument. Update all callers.
2052 * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
2053 * arm.md (sibcall_epilogue): Call use_return_insn directly, and
2054 pass the sibling call.
2055 * arm-protos.h (use_return_insn, arm_output_epilogue): Update
2056 prototypes.
2057
2058 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
2059
2060 * Makefile.in (extraclean): Delete.
2061 * configure.in (target_list): Remove extraclean.
2062 * configure: Regenerate.
2063 * doc/makefile.texi, doc/sourcebuild.texi: Update.
2064 * objc/Make-lang.in (objc.extraclean): Delete.
2065
2066 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
2067
2068 * Makefile.in (lang_checks): Add.
2069 (check-c++, check-f77, check-java, check-g++, check-g77,
2070 check-objc): Remove hardcoded targets.
2071 * doc/sourcebuild.texi: Document testsuite hooks.
2072 * objc/Make-lang.in (check-objc, lang_checks): Add.
2073
2074 2003-11-19 Scott Snyder <snyder@fnal.gov>
2075
2076 PR target/13131
2077 * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
2078 flag, not a constant.
2079
2080 2003-11-19 Kelley Cook <kcook@gcc.gnu.org>
2081
2082 * config/arc/arc-protos.h: Update to C90 prototypes.
2083 * config/arc/arc.c: Likewise.
2084 * config/arc/initfini.c: Likewise.
2085
2086 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
2087
2088 * stmt.c (expand_goto): Memory clobbers added.
2089
2090 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
2091
2092 * reload.c (find_reloads): Added missing type casts.
2093
2094 2003-11-19 James E Wilson <wilson@specifixinc.com>
2095
2096 * combine.c (sets_function_arg_p): Delete unused function.
2097
2098 2003-11-19 Eric Christopher <echristo@redhat.com>
2099
2100 * reload1.c (reload): Revert 2 previous checkins.
2101
2102 2003-11-19 Nathanael Nerode <neroden@gcc.gnu.org>
2103
2104 * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
2105 whether directive begins at the beginning of a line.
2106
2107 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
2108
2109 * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
2110
2111 2003-11-19 Gerald Pfeifer <gp@suse.de>
2112
2113 * doc/install.texi (Specific): Remove information on old versions
2114 of glibc versus old versions of GCC.
2115
2116 2003-11-19 Richard SAndiford <rsandifo@redhat.com>
2117
2118 * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
2119 the register lowpart is a TRULY_NOOP_TRUNCATION.
2120
2121 2003-11-19 Richard Henderson <rth@redhat.com>
2122
2123 * config/i386/i386.c (print_reg): Handle QI and HI modes for
2124 non Q regs.
2125
2126 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2127
2128 * config/config.gcc (powerpc-*-darwin*): Add libgcc build
2129 specification file.
2130 * config/t-slibgcc-darwin: New file, libgcc build specification.
2131 * config/t-darwin: Add libgcc2 flag -fPIC.
2132 * config/rs6000/t-darwin: Multilib matches float.
2133 * libgcc-darwin.ver: New file, contains libgcc symbols.
2134
2135 2003-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
2136
2137 * config/ns32k/ns32k.h: Remove obsolete comment.
2138
2139 2003-11-18 Roger Sayle <roger@eyesopen.com>
2140
2141 PR middle-end/11821
2142 * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
2143 size for calls to libgcc's div & mod subroutines when using -Os.
2144
2145 2003-11-18 Jan Hubicka <jh@suse.cz>
2146
2147 * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
2148
2149 2003-11-18 Marc Espie <espie@openbsd.org>
2150
2151 * config/rs6000/sysv4.h: OpenBSD hooks.
2152
2153 2003-11-18 Richard Henderson <rth@redhat.com>
2154
2155 * expr.c (expand_expr): Don't look through constant arrays if
2156 they don't bind locally.
2157
2158 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2159
2160 * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
2161 when seeing if truncation or extension.
2162
2163 2003-11-17 Eric Christopher <echristo@redhat.com>
2164
2165 * reload1.c (reload): Fix previous change.
2166
2167 2003-11-17 Scott Snyder <snyder@fnal.gov>
2168
2169 PR debug/11325
2170 * dwarf2out.c (struct die_struct): Add die_definition field.
2171 (add_AT_specification): New.
2172 (gen_subprogram_die, gen_variable_die,
2173 gen_struct_or_union_type_die): Use it.
2174 (prune_unused_types_mark): If we're marking a forward declaration,
2175 also mark the full definition, if it exists.
2176
2177 2003-11-16 Nick Clifton <nickc@redhat.com>
2178
2179 * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
2180 * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
2181 Remove prototype.
2182 * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
2183 to xstormy16_build_builtin_va_list and make static.
2184 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
2185
2186 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2187
2188 * config/h8300/h8300-protos.h: Add the prototype for
2189 same_cmp_following_p.
2190 * config/h8300/h8300.c (same_cmp_following_p): New.
2191 * config/h8300/h8300.md (peephole2): Use it.
2192
2193 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2194
2195 * config/h8300/h8300.md: Don't use REGNO when its operand is
2196 not guaranteed to be a REG.
2197
2198 2003-11-16 Richard Sandiford <rsandifo@redhat.com>
2199
2200 * Makefile.in (expr.o): Depend on $(TARGET_H).
2201 * target.h (return_in_msb): New target hook.
2202 * target-def.h (TARGET_RETURN_IN_MSB): New macro.
2203 (TARGET_CALLS): Include it.
2204 * calls.c (shift_returned_value): New function.
2205 (expand_call): Use it.
2206 * expr.c: Include target.h.
2207 (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
2208 deciding what padding is needed. Change the name of the local
2209 padding variable from big_endian_correction to padding_correction.
2210 * stmt.c (shift_return_value): New function.
2211 (expand_return): Use it. Adjust memory->register copy in the same
2212 way as copy_blkmode_from_reg. Only change the return register's
2213 mode if it was originally BLKmode.
2214 * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
2215 * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
2216 (mips_fpr_return_fields): New, split out from mips_function_value.
2217 (mips_return_in_msb, mips_return_fpr_pair): New functions.
2218 (mips_function_value): Rework to use the functions above.
2219 * config/mips/irix6-libc-compat.c: Delete.
2220 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
2221
2222 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2223
2224 * doc/install.texi (--enable-checking): Update valgrind's URL.
2225
2226 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2227
2228 * config/h8300/h8300.md: Fix warnings by replacing -2147483648
2229 with -2147483647 - 1.
2230
2231 2003-11-16 Gerald Pfeifer <gerald@pfeifer.com>
2232
2233 Fix links in online manuals.
2234 * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
2235 (Precompiled Headers): @pxref to cpp, not cpp.info.
2236
2237 2003-11-16 Jason Merrill <jason@redhat.com>
2238
2239 * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
2240 files in each directory and TAGS files that include them for each
2241 front end.
2242
2243 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
2244
2245 * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
2246 3 of S2L.
2247 (modnorm): Likewise.
2248 (exitdiv): Look at bit 3 of S2L only.
2249
2250 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
2251
2252 * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
2253 (DO_GLOBAL_DTORS_BODY): Likewise.
2254
2255 2003-11-15 Joseph S. Myers <jsm@polyomino.org.uk>
2256
2257 * doc/install.texi (Prerequisites): Refine documentation of
2258 autoconf, automake and perl requirements. Document required
2259 gettext version.
2260
2261 <2003-11-14 Jason Merrill <jason@redhat.com>
2262
2263 * function.c (assign_parms): Use TREE_TYPE to determine the real
2264 type of the argument object.
2265
2266 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2267
2268 * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
2269 iteration.
2270
2271 2003-11-14 Fariborz Jahanian <fjahanian@apple.com>
2272
2273 * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
2274 New routine to save vararg registers on stack. Support for
2275 -mpowerpc64 in mixed mode.
2276
2277 2003-11-14 Bernardo Innocenti <bernie@develer.com>
2278
2279 * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
2280 for MOTOROLA versus MIT syntax. Improves readability and provides
2281 better compile-time error checking for both code paths.
2282
2283 2003-11-14 Kelley Cook <kcook@gcc.gnu.org>
2284
2285 * config/frv/frv-protos.h: Update for C90.
2286 * config/frv/frv.h: Likewise.
2287 * config/frv/frvbegin.c: Likewise.
2288 * config/frv/frv.c: Likewise.
2289 (frv_adjust_field_align): Delete unused variable.
2290
2291 2003-11-14 Geoffrey Keating <geoffk@apple.com>
2292
2293 * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
2294 to each place where TARGET_LONG_DOUBLE_128 is used with
2295 DEFAULT_ABI == ABI_AIX.
2296
2297 * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
2298 message comply with GNU standards.
2299
2300 2003-11-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2301
2302 PR/6552
2303 * function.c (struct epi_info): New field const_equiv.
2304 (update_epilogue_consts): New function.
2305 (keep_stack_depressed): Clear new field and verify scratch register
2306 doesn't have it set.
2307 Call new function via note_stores.
2308 (handle_epilogue_set): Allow setting SP equiv reg in different mode.
2309 Allow PLUS where second operand is register known set to constant.
2310 (emit_equiv_load): Write load using proper mode if source different.
2311 * config/mips/mips.md (return_internal): Put (return) first.
2312
2313 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2314
2315 * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
2316
2317 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2318
2319 * config/h8300/lib1funcs.asm (modsi3): Don't save unused
2320 registers.
2321 (divsi3): Likewise.
2322 (reti): Don't restore unused registers.
2323
2324 2003-11-14 Nick Clifton <nickc@redhat.com>
2325
2326 * config/fr30/fr30.c: Include toplev.h
2327
2328 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
2329
2330 * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
2331
2332 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
2333
2334 * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
2335 function definition syntax.
2336
2337 2003-11-14 Eric Christopher <echristo@redhat.com>
2338
2339 * reload1.c (reload): Revert previous patch. Make
2340 check for assignment into reg_equiv_address stricter.
2341
2342 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
2343
2344 * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
2345
2346 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
2347
2348 * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
2349 section names.
2350
2351 2003-11-14 Jason Merrill <jason@redhat.com>
2352
2353 PR middle-end/12526
2354 * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
2355 * calls.c (call_expr_flags): New fn.
2356 * tree.h: Declare it.
2357
2358 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2359
2360 * config/h8300/lib1funcs.asm (__udivsi3): Remove.
2361 (divmodsi3): Change the name to ___udivsi3.
2362 Update all callers.
2363
2364 2003-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2365
2366 * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
2367 __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
2368 __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
2369 __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
2370 __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
2371 __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
2372 Const-ify and/or initialize automatic variables at declaration.
2373
2374 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2375
2376 * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
2377 of er4 with er3. Adjust all callers.
2378
2379 2003-11-13 Andrew Pinski <apinski@apple.com>
2380
2381 * config/darwin.c (machopic_output_possible_stub_label):
2382 Allow stub symbol be not defined when outputting possible
2383 stub label.
2384
2385 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2386
2387 * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
2388 instead of exitdiv.
2389 (___umodsi3): Likewise.
2390 (exitdiv): Do not restore any register.
2391 (reti): Restore registers.
2392
2393 2003-11-13 Steven Bosscher <stevenb@suse.de>
2394
2395 * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
2396
2397 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2398
2399 * config/h8300/lib1funcs.asm: Fix comment typos.
2400
2401 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2402
2403 * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
2404 unused registers. Don't jump to exitdiv.
2405 (umodsi3): Likewise.
2406
2407 2003-11-13 Mark Mitchell <mark@codesourcery.com>
2408 Kean Johnston <jkj@sco.com>
2409
2410 PR c/13029
2411 * toplev.c (check_global_declarations): Do not warn about unused
2412 static consts.
2413
2414 2003-11-13 Pavel Pisa <pisa@cmp.felk.cvut.cz>
2415 Kazu Hirata <kazu@cs.umass.edu>
2416
2417 * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
2418 the approximate quotient method.
2419
2420 2003-11-13 Richard Earnshaw <rearnsha@arm.com>
2421
2422 * combine.c (distribute_notes): When re-distributing the notes from
2423 an insn we are about to delete, ensure we can't end up with a cyclic
2424 list of notes.
2425
2426 2003-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2427
2428 PR optimization/12926
2429 * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
2430 the UNCHANGING_RTX_P flag on memory references to read-only
2431 components that are not addressable.
2432
2433 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2434
2435 * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
2436 DenHighNonZero.
2437
2438 2003-11-13 Jan Hubicka <jh@suse.cz>
2439
2440 PR opt/12275
2441 * c-decl.c (finish_decl): Use change_decl_assembler_name.
2442 * c-pragma.c (handle_pragma_redefine_extname): Likewise.
2443 * varasm.c (make_decl_rtl): Likewise.
2444 * cgraph.c (change_decl_assembler_name): New function.
2445 * tree.h (set_decl_assembler_name): Kill dead declaration.
2446 (change_decl_assembler_name): Declare.
2447
2448 * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2449 * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2450
2451 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2452
2453 * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
2454 an unused register.
2455
2456 2003-11-12 Richard Sandiford <rsandifo@redhat.com>
2457
2458 PR bootstrap/12752
2459 * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
2460 (MULTILIB_OSDIRNAMES): Reorder accordingly.
2461
2462 2003-11-12 Janis Johnson <janis187@us.ibm.com>
2463
2464 * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
2465 (rs6000_stack_info): Remove. (debug_stack_info): Remove.
2466 (rs6000_emit_eh_reg_restore): Add
2467 * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
2468 of vars_size and total_size to HOST_WIDE_INT.
2469 (emit_frame_save): Change parameter size to HOST_WIDE_INT.
2470 (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
2471 (debug_stack_info): Make static; change output format of HOST_WIDE_INT
2472 values.
2473 (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
2474 (rs6000_initial_elimination_offset): New, with code formerly in
2475 INITIAL_ELIMINATION_OFFSET.
2476 * rs6000.h (rs6000_stack_t): Remove.
2477 (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
2478 rs6000_initial_elimination_offset.
2479 * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
2480 rs6000_emit_eh_reg_restore.
2481
2482 2003-11-12 Mike Stump <mrs@apple.com>
2483
2484 * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
2485 is the argumnt we are processing so that warnings and errors
2486 will have that information.
2487 * c-tree.h (c_convert_parm_for_inlining): Add argnum.
2488 * lang-hooks-def.h
2489 (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
2490 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
2491 * langhooks.h (convert_parm_for_inlining): Likewise.
2492 * tree-inline.c (initialize_inlined_parameters): Compute and
2493 pass argnum down.
2494
2495 2003-11-12 Alexey Starovoytov <alexey.starovoytov@sun.com>
2496 Roger Sayle <roger@eyesopen.com>
2497
2498 PR optimization/12953
2499 * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
2500 before switch by FUNCTION_CODE.
2501
2502 2003-11-12 Richard Earnshaw <rearnsha@arm.com>
2503
2504 * arm.md (storehi): Avoid use of explicit subreg.
2505 (storehi_bigend, storeinthi, movhi_bigend): Likewise.
2506
2507 2003-11-12 J"orn Rennecke <joern.rennecke@superh.com>
2508
2509 * config/sh/sh.md (prefetch): New pattern.
2510
2511 2003-11-11 Eric Christopher <echristo@redhat.com>
2512
2513 * reload1.c (reload): Verify that addresses for
2514 reg_equiv_* are valid for the architecture.
2515
2516 2003-11-11 Eric Christopher <echristo@redhat.com>
2517
2518 * function.c (purge_addressof_1): Add libcall check.
2519 Remove test for cached replacements on fallback case.
2520 Simplify mode comparisons. Add libcall test for
2521 paradoxical subregs.
2522
2523 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
2524
2525 * config/h8300/t-h8300: Fix an obsolete comment.
2526
2527 2003-11-11 James E Wilson <wilson@specifixinc.com>
2528
2529 * expmed.c (store_bit_field, extract_bit_field): Revert last two
2530 changes.
2531
2532 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
2533
2534 * config/h8300/lib1funcs.asm: Replace DenHighZero with
2535 DenHighNonZero.
2536
2537 2003-11-11 Jan Hubicka <jh@suse.cz>
2538
2539 * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
2540 really_no_inline.
2541
2542 2003-11-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2543
2544 * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
2545 generating 64-bit code.
2546
2547 2003-11-10 David Edelsohn <edelsohn@gnu.org>
2548
2549 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
2550 accidental commit in previous change.
2551
2552 2003-11-10 Fariborz Jahanian <fjahanian@apple.com>
2553
2554 * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
2555 * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
2556 address recognition.
2557 (macho_lo_sum_memory_operand): Routine to recognize macho-style
2558 address recognition.
2559
2560 2003-11-10 Richard Henderson <rth@redhat.com>
2561
2562 * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
2563
2564 2003-11-10 Matt Austern <austern@apple.com>
2565
2566 * config/darwin-protos.h (darwin_assemble_visibility): Declare.
2567 * config/darwin.c (darwin_assemble_visibility): Define. Warn for
2568 anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
2569 * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
2570 darwin_assemble_visibility instead of default.
2571
2572 2003-11-10 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2573
2574 PR target/12865
2575 * config/sparc/sparc.c (sparc_initialize_trampoline): Call
2576 __enable_execute_stack only after writing onto the stack.
2577 (sparc64_initialize_trampoline): Likewise.
2578
2579 2003-11-09 Roger Sayle <roger@eyesopen.com>
2580
2581 * loop.c (check_dbra_loop): Try swapping the comparison operands
2582 of the loop condition to identify a suitable induction variable.
2583 * unroll.c (loop_iterations): Likewise.
2584
2585 2003-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2586
2587 * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
2588 sparc64 #cpu and #machine assertions.
2589
2590 2003-11-09 Richard Henderson <rth@redhat.com>
2591
2592 * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
2593
2594 2003-11-09 Jan Hubicka <jh@suse.cz>
2595
2596 * tree-optimize.c (tree_rest_of_compilation): Fix warning.
2597
2598 * cgraphunit.c (cgraph_expand_function): Use
2599 cgraph_possibly_inlined_p.
2600 * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
2601
2602 * opts.c (common_handle_option): Do not set max-inline-insns.
2603 * params.def: Update comments.
2604 (PARAM_MAX_INLINE_INSNS): Kill.
2605 * invoke.texi (max-inline-insns): Kill.
2606
2607 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
2608
2609 PR c/3190
2610 PR c/8714
2611 * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
2612 * invoke.texi: Update.
2613
2614 2003-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2615
2616 PR optimization/12630
2617 * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
2618 Handle length computation 64-bit moves.
2619 (compute_clrstr_length, output_block_clear): Implement block clear.
2620 (output_block_move): Handle 64-bit moves.
2621 (pa_adjust_insn_length): Use compute_movstr_length and
2622 compute_clrstr_length.
2623 * pa.md (movstrsi): Revise operand order and comments. Don't use
2624 match_scratch.
2625 (movstrsi_internal): Delete.
2626 (movstrsi_prereload, movstrsi_postreload): New insns. Define splitter
2627 and peephole2 patterns to transform prereload to postreload form.
2628 (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
2629 clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
2630 clrstrdi_postreload): New patterns for 64-bit block move, and block
2631 clear.
2632 * pa-protos.h (output_block_clear): New prototype.
2633
2634 2003-11-08 Andreas Schwab <schwab@suse.de>
2635
2636 * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
2637 XCOFF_DEBUGGING_INFO.
2638
2639 2003-11-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2640
2641 * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
2642
2643 2003-11-07 Geoffrey Keating <geoffk@apple.com>
2644
2645 * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
2646 redundant parens.
2647
2648 * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
2649 (find_file_in_dir): Likewise.
2650 (_cpp_find_file): Print message if no header file is found
2651 but an invalid PCH file was.
2652
2653 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
2654
2655 * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
2656 expressions as lvalues.
2657 (internal_build_compound_expr): Remove special handling for
2658 non-pedantic case.
2659 * doc/extend.texi: Document that all extended lvalues are now
2660 deprecated.
2661
2662 2003-11-07 Geoffrey Keating <geoffk@apple.com>
2663
2664 PR 11654
2665 * dbxout.c (struct dbx_file): Do not save for PCH.
2666 (current_file): Likewise.
2667 (dbxout_init): Don't allocate struct dbx_file using GC.
2668 (dbxout_start_source_file): Likewise.
2669
2670 2003-11-07 Falk Hueffner <falk@debian.org>
2671
2672 * config/alpha/elf.h, config/alpha/unicosmk.h,
2673 config/alpha/vms.h: Convert to ISO C90.
2674
2675 2003-11-07 Nathanael Nerode <neroden@gcc.gnu.org>
2676
2677 * config/arm/pe.h: Convert to ISO C90.
2678
2679 2003-11-07 J"orn Rennecke <joern.rennecke@superh.com>
2680
2681 * sh-protos.h (sh_pch_valid_p): Declare.
2682 * sh.c ("intl.h"): Include.
2683 (TARGET_PCH_VALID_P): Override.
2684 (sh_target_switches): New variable.
2685 (target_switches): Define.
2686 (sh_pch_valid_p): New function.
2687
2688 * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
2689
2690 2003-11-07 Jan Hubicka <jh@suse.cz>
2691
2692 * i386.c (x86_64_sign_extended_value): Return false from tls variables.
2693 (x86_64_zero_extended_value): likewise.
2694
2695 2003-11-07 Richard Sandiford <rsandifo@redhat.com>
2696
2697 * config/mips/mips.md (loadgp): Take $25 as a second operand.
2698 * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
2699
2700 2003-11-06 Matt Austern <austern@apple.com>
2701
2702 * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
2703 field instead of hanging an attribute object off the decl.
2704 * tree.h (DECL_VISIBLITY): New accessor macro for
2705 symbol_visibility field in struct tree_decl.
2706 (enum symbol_visibility): Move definition to before tree_decl.
2707 (struct tree_decl): Define new two-bit field, symbol_visibility.
2708 (decl_visibility): Remove declaration.
2709 * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
2710 instead of decl_visibility.
2711 (default_binds_local_p_1): Use DECL_VISIBILITY instead of
2712 decl_visibility.
2713 (decl_visibility): Remove.
2714
2715 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2716
2717 * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
2718 where register 14 will be saved.
2719
2720 2003-11-06 Geoffrey Keating <geoffk@apple.com>
2721
2722 * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
2723 (USE_ALTIVEC_FOR_ARG_P): Likewise.
2724 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
2725 Take a pointer as the CUM parameter. Update callers.
2726 (USE_ALTIVEC_FOR_ARG_P): Likewise. Also correct for Darwin/AIX
2727 32-bit ABIs.
2728 (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P. Correct case
2729 of vector parameters as named arguments of stdarg function.
2730 (function_arg): Likewise.
2731
2732 * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
2733 -maltivec is specified, not the non-existent -faltivec.
2734
2735 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2736
2737 * config/s390/s390-protos.h (s390_function_value): Declare.
2738 * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
2739 (s390_return_in_memory): New function.
2740 (s390_function_value): New function.
2741 (s390_function_arg_float): Return false for all arguments larger
2742 than 8 bytes.
2743 (s390_function_arg_pass_by_reference): Likewise. Return true for
2744 all vector arguments.
2745 (s390_function_arg_integer): New function.
2746 (s390_function_arg_advance): Call it. Add sanity checks.
2747 (s390_function_arg): Likewise.
2748 * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
2749 (LIBCALL_VALUE): Likewise.
2750 (RET_REG): Remove.
2751 (RETURN_IN_MEMORY): Remove.
2752
2753 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2754
2755 * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
2756 return type to HOST_WIDE_INT.
2757 * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
2758 Make initialized a bool. Make register masks unsigned ints.
2759 (compute_frame_size): Make same mask change here. Use HOST_WIDE_INT
2760 where appropriate.
2761 (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
2762 (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
2763
2764 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2765
2766 * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
2767 negation.
2768
2769 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2770
2771 * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
2772
2773 2003-11-06 Momchil Velikov <velco@fadata.bg>
2774
2775 * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
2776 for VR4111 too.
2777
2778 2003-11-06 Jan Hubicka <jh@suse.cz>
2779
2780 * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
2781 missing casts.
2782
2783 2003-11-06 Zack Weinberg <zack@codesourcery.com>
2784
2785 * genmodes.c: Change the word "bitsize" to "precision" throughout.
2786 * machmode.def: Likewise.
2787 * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
2788 (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
2789 (GET_MODE_PRECISION): New macro.
2790 (mode_bitsize): Renamed mode_precision.
2791 * stor-layout.c (mode_for_size, smallest_mode_for_size):
2792 Use GET_MODE_PRECISION; clarify comments.
2793
2794 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
2795
2796 * doc/install-old.texi: Remove old documentation of building
2797 cross-compilers.
2798 * doc/install.texi: Move some of it to here.
2799
2800 2003-11-05 Per Bothner <pbothner@apple.com>
2801
2802 PR preprocessor/12891
2803 * c-opts.c (finish_options): Set include_cursor to disable premature
2804 calls to push_command_line_include from cpp_scan_nooutput.
2805 Fixes bug reported by DJ Delorie.
2806
2807 2003-11-05 Geoffrey Keating <geoffk@apple.com>
2808
2809 * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
2810 code supporting old-style varargs.
2811
2812 * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
2813 an intermediate register for better optimisation.
2814
2815 2003-11-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2816
2817 PR optimization/10080
2818 * cfgloopanal.c (variable_initial_value, variable_initial_values,
2819 simple_loop_exit_p): Record the fact that initial value is extended
2820 from inner mode.
2821 (count_strange_loop_iterations, count_loop_iterations): Handle
2822 ivs that iterate in a narrower mode. Fix handling of overflows.
2823 Improve handling of NE conditions.
2824 (inverse, fits_in_mode_p): New static functions.
2825 (simple_increment): Detect variables that iterate in a narrower mode.
2826 * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
2827
2828 2003-11-05 Geoffrey Keating <geoffk@apple.com>
2829
2830 * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
2831 error.
2832
2833 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
2834 needs VRSAVE.
2835
2836 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
2837
2838 * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
2839 conditional expressions as lvalues.
2840
2841 2003-11-05 Kazu Hirata <kazu@cs.umass.edu>
2842
2843 * tsystem.h: Add the prototype of strlen.
2844 * unwind-pe.h (read_encoded_value_with_base): Add an
2845 appropriate cast to handle a case where the pointer size is
2846 smaller than sizeof (int).
2847
2848 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
2849
2850 * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
2851 (mips_delegitimize_address): Delete.
2852 (mips_gotoff_global, mips_load_got_page): Declare.
2853 (mips_load_got_global, mips_rewrite_small_data): Declare.
2854
2855 * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
2856 (DANGEROUS_FOR_LA25_P): Use global_got_operand.
2857 (PREDICATE_CODES): Add global_got_operand, local_got_operand and
2858 small_data_pattern. Remove CONST from const_arith_operand's entry.
2859
2860 * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
2861 (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
2862 (mips_constant_type): Delete.
2863 (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
2864 SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
2865 (NUM_SYMBOL_TYPES): New macro.
2866 (mips_address_type): Remove ADDRESS_INVALID.
2867 (machine_function): Add has_gp_insn_p.
2868 (mips_constant_info): Delete.
2869 (mips_address_info): Add the address type as an extra field. Replace
2870 the c field with symbol_type.
2871 (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
2872 (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
2873 (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
2874 (mips_split_const, mips_symbolic_constant_p): New functions.
2875 (mips_symbolic_address_p): Take the symbol type and mode as arguments.
2876 (mips_classify_address): Return true if the address is valid, storing
2877 its type in INFO. Use mips_symbolic_constant_p. Use mips_lo_relocs[]
2878 to test whether a LO_SUM address is allowed.
2879 (mips_symbol_insns): Return 0 for general mips16 symbols.
2880 Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
2881 Handle the new SYMBOL_GOTOFF_*s.
2882 (mips_address_insns): Update call to mips_classify_address.
2883 (mips_const_insns): Be more fussy about HIGH constants. Remove use
2884 of mips_classify_constant. Be more accurate about CONSTs.
2885 (mips_global_pic_constant_p): Delete.
2886 (const_arith_operand): Only accept CONST_INTs.
2887 (call_insn_operand): Remove call to mips_classify_constant.
2888 Let mips_symbolic_constant_p check for invalid offsets.
2889 (move_operand): Check for general_operands first. Only accept symbolic
2890 constants if they satisfy mips_symbolic_constant_p and cannot be split.
2891 (symbolic_constant): Use mips_symbolic_constant_p.
2892 (global_got_operand, local_got_operand): New predicates.
2893 (stack_operand): Update call to mips_classify_address.
2894 (mips_legitimate_address_p): Likewise.
2895 (mips_reloc, mips_lui_reloc): Delete.
2896 (mips_force_temporary): Only use the given temporary if no_new_pseudos.
2897 Use emit_move_insn.
2898 (mips_split_symbol, mips_unspec_address): New functions.
2899 (mips_unspec_offset_high): New function.
2900 (mips_load_got): Replace reloc argument with a symbol_type.
2901 Use mips_unspec_address to create the address and put it in a
2902 LO_SUM with the base register.
2903 (mips_load_got16, mips_load_got32): Delete.
2904 (mips_emit_high, mips_legitimize_symbol): Delete.
2905 (mips_gotoff_global): New function.
2906 (mips_load_got_page, mips_load_got_global): New functions.
2907 (mips_legitimize_symbol): Inline handling of LO_SUM splits.
2908 (mips_legitimize_const_move): Likewise. Remove HIGH handling.
2909 Inline code to handle constants plus invalid offsets. Use
2910 mips_split_symbol to legitimize constant pool addresses.
2911 (mips_delegitimize_address): Delete.
2912 (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
2913 a cost of 1 insn. Give the rest a cost of CONSTANT_POOL_ADDRESS.
2914 (mips_subword): Pass memrefs through mips_rewrite_small_data.
2915 (mips_output_move): Remove use of mips_classify_constant.
2916 (mips_expand_call): Use mips_unspec_offset_high to calculate the
2917 high part of the GOT address for calls to global functions.
2918 (override_options): Initialize mips_split_p[], mips_lo_relocs[]
2919 and mips_hi_relocs[].
2920 (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
2921 Remove use of mips_classify_constant.
2922 (mips_reloc_string): Delete.
2923 (print_operand_reloc): New function.
2924 (print_operand_address): Update call to mips_classify_address.
2925 (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
2926 (small_data_pattern): New predicate.
2927 (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
2928 (mips_function_has_gp_insn): New function.
2929 (mips_global_pointer): Use it.
2930 (mips_gp_insn): Delete.
2931 (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
2932 single loadgp pattern to initialize $gp. Pass it the offset of _gp
2933 from the start of the current function.
2934 (mips16_gp_pseudo_reg): Revert last patch.
2935
2936 * config/mips/mips.md (RELOC_*): Delete.
2937 (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
2938 (got): New insn attribute.
2939 (type): Set to "load" if got == load.
2940 (length): Set to 4 if got == load, 8 if got == xgot_high.
2941 (lui[sd]i): Delete.
2942 (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
2943 (*got_disp[sd]i, *got_page[sd]i): Likewise.
2944 (*low[sd]i): Change constraints to "d". Add a new define_split to
2945 rewrite small data constants into LO_SUMs.
2946 (loadgp): New insns.
2947
2948 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2949
2950 * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
2951
2952 2003-11-04 DJ Delorie <dj@redhat.com>
2953
2954 * config/v850/v850.md (mulhisi3): Expand the const_int case
2955 separately to avoid trying to sign extend the const.
2956
2957 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
2958
2959 * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
2960 addresses to be shared.
2961 (force_const_mem): Return a copy of the pool entry.
2962
2963 2003-11-03 Andreas Jaeger <aj@suse.de>
2964
2965 * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
2966
2967 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
2968
2969 * Makefile.in (cpp.dvi): New target split from cpp.info.
2970 (gcc.dvi): New target split from gcc.info.
2971 (gccint.dvi): New target split from gccint.info.
2972 (cppinternals.dvi): New target split from cppinternals.info
2973 (gccinstall.info): New specific rule.
2974 (gccinstall.dvi): Likewise.
2975 (dvi): Move targets to $(docobjdir).
2976 ($(docobjdir)/%.dvi): New implicit rule.
2977
2978 2003-11-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2979
2980 * doc/gty.texi (tag, desc): Say more about role of desc values in
2981 selecting between tags.
2982
2983 2003-11-03 Alexander Kabaev <ak03@gte.com>
2984
2985 * real.c (encode_ieee_single): Ensure proper promotion.
2986
2987 2003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2988
2989 * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
2990 and Andrew Pinski.
2991
2992 2003-11-03 Syd Polk <spolk@apple.com>
2993
2994 * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
2995 marketing names to the list of supported processors.
2996 * config/rs6000/rs6000.h: Ditto.
2997 * doc/invoke.texi: Ditto.
2998 * config.gcc: Ditto.
2999
3000 2003-11-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3001
3002 * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
3003 Merge two substitutions.
3004 * fixinc/fixincl.x: Regenerate.
3005 Fixes PR bootstrap/12666.
3006
3007 2003-11-03 Joseph S. Myers <jsm@polyomino.org.uk>
3008
3009 * doc/install-old.texi: Remove VMS documentation.
3010
3011 2003-11-03 Jan Hubicka <jh@suse.cz>
3012
3013 * i386.c (override_options): Remove hack enabling 128bit long double
3014 commited by accident.
3015
3016 2003-11-02 Per Bothner <per@bothner.com>
3017
3018 * c-opts.c (needValue): Do cpp_find_main_file before processing
3019 any imacros flags, so pfile->main_file is set for the latter.
3020
3021 2003-11-03 Andreas Jaeger <aj@suse.de>
3022 Zack Weinberg <zack@codesourcery.com>
3023
3024 * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
3025 (SYSCALLS.c.X-warn): Suppress warnings.
3026
3027 2003-11-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3028
3029 PR optimization/12845
3030 * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
3031
3032 2003-11-02 Zack Weinberg <zack@codesourcery.com>
3033
3034 * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
3035 * config/i386/i386.c (print_reg): Abort on a virtual register
3036 if code != -1; not if file == asm_out_file.
3037 * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
3038 (DEBUG_PRINT_REG): Delete, unused.
3039
3040 2003-11-02 Andreas Schwab <schwab@suse.de>
3041
3042 * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
3043 empty to avoid conflict with the definition from configure.
3044
3045 2003-11-02 Roger Sayle <roger@eyesopen.com>
3046
3047 PR optimization/10817
3048 * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
3049 (noce_try_move): New function to optimize an if-the-else into an
3050 unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
3051 (noce_process_if_block): Attempt simplification with noce_try_move.
3052
3053 * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
3054 and improvements to the optimizations of IF_THEN_ELSE expressions.
3055 (simplify_subreg): Silence signed/unsigned comparison warning.
3056
3057 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
3058
3059 * Makefile.in (targhooks.o, reload.o): Update dependencies.
3060 (GTFILES): Add targhooks.c.
3061 (gt-targhooks.h): New rule; depend on s-gtype.
3062 * target.h (direct_pool_load_p): New hook.
3063 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
3064 (TARGET_INITIALIZER): Include it.
3065 * targhooks.h (default_direct_pool_load_p): Declare.
3066 (hook_bool_machine_mode_true): Declare.
3067 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
3068 gt-targhooks.h.
3069 (pool_symbol): New variable.
3070 (default_direct_pool_load_p): New function.
3071 (hook_bool_machine_mode_true): New function.
3072 * reload.c: Include target.h.
3073 (find_reloads): If an alternative will force a constant into memory,
3074 count an extra reload if constant pool symbols are not valid
3075 addresses. If an alternative uses memory to move values between
3076 registers, count the move as two reloads rather than one.
3077 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
3078 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
3079
3080 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3081
3082 PR optimization/12799
3083 * postreload.c (reload_cse_move2add): Generate the add2
3084 patterns manually.
3085
3086 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3087
3088 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
3089 Return 0 for all complex modes whose size is lesser or equal to
3090 a word. Add a ??? comment for the condition used with 16-byte
3091 aligned modes.
3092
3093 2003-11-01 Kelley Cook <kcook@gcc.gnu.org>
3094
3095 * .cvsignore: Remove c-parse* and tradcif.c.
3096 * objc/.cvsignore: Delete.
3097
3098 2003-11-01 Roger Sayle <roger@eyesopen.com>
3099
3100 * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
3101 of NULL.
3102
3103 2003-11-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3104
3105 * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
3106
3107 * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
3108
3109 * collect2.c (scan_libraries): Fix typos.
3110
3111 PR preprocessor/12847
3112 * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
3113 cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
3114 c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
3115 DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
3116 "CPP_".
3117
3118 2003-11-01 Fariborz Jahanian <fjahanian@apple.com>
3119
3120 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
3121 no_units calculation.
3122
3123 2003-11-01 Andreas Jaeger <aj@suse.de>
3124
3125 * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
3126 enumeration list.
3127
3128 2003-11-01 Andreas Schwab <schwab@suse.de>
3129
3130 * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
3131 prototypes.
3132 (SBSS_SECTION_FUNCTION): Likewise.
3133
3134 2003-11-01 Andreas Jaeger <aj@suse.de>
3135
3136 * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
3137
3138 2003-11-01 Andreas Tobler <a.tobler@schweiz.ch>
3139
3140 * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
3141 prototypes.
3142
3143 2003-11-01 Andreas Jaeger <aj@suse.de>
3144
3145 * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
3146 (uw_frame_state_for): Constify variables.
3147 (extract_cie_info): Constify first argument.
3148
3149 * unwind-dw2-fde-darwin.c: Adjust prototype of
3150 _Unwind_Find_registered_FDE for recent changes.
3151 (examine_objects): Constify return value and local variable result.
3152 (_Unwind_Find_FDE): Constify return value and local variable ret.
3153
3154 2003-10-31 Per Bothner <pbothner@apple.com>
3155
3156 * c-opts.c (finish_options): Change to returns boolean - false iff
3157 the call to cpp_find_main_file fails.
3158 (c_common_init): Skip preprocess_file if finish_options failed.
3159 (c_common_parse_file): Break if finish_options failed.
3160 Fixes PR preprocessor/12545.
3161
3162 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3163
3164 * aclocal.m4: Blacklist ultrix* for mmap file.
3165 * configure: Rebuilt.
3166
3167 * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
3168 reg_parm_stack_space.
3169 * toplev.c (default_get_pch_validity): Fix warning.
3170
3171 * vax.c: Include toplev.h.
3172 (vax_init_libfuncs): Fix typo (umod).
3173 * vax.h (ASM_COMMENT_START): Define.
3174 (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
3175
3176 2003-10-31 Roger Sayle <roger@eyesopen.com>
3177
3178 PR middle-end/11968
3179 * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
3180 confusing comment; distributivity isn't handled in expand_expr.
3181 * fold-const.c (extract_muldiv_1 <PLUS_EXPR>): Allow overflow
3182 in distributivity, if wrap-around semantics are specified with
3183 -fwrapv.
3184
3185 2003-11-01 Alan Modra <amodra@bigpond.net.au>
3186
3187 PR 12315
3188 * final.c (profile_function): Allow for NULL svrtx.
3189
3190 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3191
3192 * pa.c (pa_select_section): Use new style declaration.
3193 * som.h (readonly_data): Likewise.
3194
3195 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
3196
3197 * config/rs6000/rs6000.c: Update to C90 prototypes.
3198
3199 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3200
3201 PR target/7513
3202 * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
3203 code.
3204
3205 2003-10-31 Andreas Jaeger <aj@suse.de>,
3206 Zack Weinberg <zack@codesourcery.com>
3207
3208
3209 * crtstuff.c (__register_frame_info, __register_frame_info_bases)
3210 (__deregister_frame_info, __deregister_frame_info_bases):
3211 Constify void * argument.
3212 * unwind-dw2-fde.h (struct fde_vector):
3213 Constify 'orig_data' and 'array' fields.
3214 (__register_frame_info, __register_frame_info_bases)
3215 (__deregister_frame_info, __deregister_frame_info_bases):
3216 Constify void * argument.
3217 (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
3218 return values, and casts of type fde *, struct dwarf_fde *,
3219 and struct dwarf_cie *.
3220 * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
3221 (__deregister_frame_info, __deregister_frame_info_bases):
3222 Constify void * argument.
3223 (get_cie_encoding, ): Constify struct dwarf_cie * argument.
3224 (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
3225 (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
3226 fde_split, SWAP, frame_downheap, frame_heapsort)
3227 (classify_object_over_fdes, add_fdes, linear_search_fdes,
3228 binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
3229 binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
3230 Constify arguments, local variables, return values, and casts
3231 of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
3232 Use const pointer types in sizeof expressions, for clarity.
3233 * unwind-dw2-fde-glibc.c
3234 (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
3235 (struct unw_eh_callback_data): Constify 'ret' field.
3236
3237 2003-10-31 Fariborz Jahanian <fjahanian@apple.com>
3238 David Edelsohn <edelsohn@gnu.org>
3239
3240 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
3241 (function_arg): Call it.
3242 (rs6000_function_value): Widen integral return value to mode based
3243 on TARGET_32BIT, not word_mode.
3244 * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
3245 (UNITS_PER_ARG): New.
3246 (RS6000_ARG_SIZE): Use it.
3247
3248 2003-10-31 Gerald Pfeifer <gerald@pfeifer.com>
3249
3250 * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
3251 and gengtype-yacc.h.
3252
3253 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3254
3255 PR optimization/8896
3256 * postreload.c (reload_combine): Check that REGY doesn't die in an
3257 insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
3258
3259 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
3260
3261 PR/10239
3262 * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
3263
3264 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
3265
3266 PR/11640
3267 * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
3268 immediatelly before BARRIER.
3269
3270 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
3271
3272 * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
3273
3274 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3275
3276 PR target/11271
3277 * reload.c (find_reloads_address): Handle any register in
3278 (PLUS (PLUS (REG) (REG)) (CONST_INT).
3279
3280 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3281
3282 * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
3283 ENABLE_GC_CHECKING not in GGC_POISON.
3284
3285 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
3286
3287 PR bootstrap/9863
3288 * configure.in: Bail out if awk is missing.
3289 * configure: Regenerate.
3290
3291 PR ada/12761
3292 * Makefile.in: Move default definitions of X_ADA_CFLAGS,
3293 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
3294
3295 2003-10-30 Richard Henderson <rth@redhat.com>
3296
3297 * c-objc-common.c (c_tree_printer): Handle types correctly.
3298 Factor code a bit.
3299
3300 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
3301
3302 * value-prof.c, web.c: Update to C90.
3303
3304 2003-10-30 Eric Christopher <echristo@redhat.com>
3305
3306 * function.c (purge_addressof_1): Add case for REG_RETVAL
3307 notes when modes are unequal.
3308
3309 2003-10-31 Jan Hubicka <jh@suse.cz>
3310
3311 * i386-modes.def: Add XFmode format adjustment.
3312
3313 2003-10-30 Jan Hubicka <jh@suse.cz>
3314
3315 * real.c (encode_ieee_extended): Back out previous patch.
3316
3317 2003-10-30 Jan Hubicka <jh@suse.cz>
3318
3319 * real.c (encode_ieee_extended): Initialize whole array.
3320 * reg-stack.c (move_for_stack_reg0: Use always XFmode.
3321 * i386-modes.def: Change definitions of TFmode and XFmode.
3322 * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
3323 code.
3324 (construct_container): Allow constructing of TFmode integer containers.
3325 (ix86_return_in_memory): XFmode is not returned in memory.
3326 (init_ext_80387_constants): Always use XFmode.
3327 (print_operand): Likewise.
3328 (ix86_prepare_fp_compare_regs): Likewise.
3329 (split_to_parts): Deal with TFmode.
3330 (split_long_move): Simplify.
3331 (ix86_init_mmx_sse_builtins): Add __float80, __float128.
3332 (ix86_memory_move_cost): Do not confuse TFmode.
3333 * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
3334 (IS_STACK_MODE): TFmode is not stack mode.
3335 (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
3336 (VALID_SSE_REG_MODE): Allow TFmode.
3337 (VALID_FP_MODE_P): Disallow TFmode.
3338 (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
3339 * i386.md (TFmode patterns): Kill.
3340 (movtf, motf_rex64): New patterns.
3341
3342 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3343
3344 * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
3345
3346 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3347
3348 * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
3349 (mov_lwr, mov_swl, mov_swr): Likewise.
3350 (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
3351
3352 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3353
3354 * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
3355
3356 2003-10-30 Richard Henderson <rth@redhat.com>
3357
3358 * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
3359 test for irix6 rather than preprocessor test.
3360
3361 2003-10-30 Richard Henderson <rth@redhat.com>
3362
3363 * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
3364
3365 2003-10-30 Ulrich Weigand <uweigand@de.ibm.com>
3366
3367 * config/s390/s390.c (struct machine_function): Use save_return_addr_p
3368 as a general flag that the return address register needs to be saved,
3369 not necessarily because of __builtin_return_addr (0).
3370 (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
3371 remove special handling of zSeries machines.
3372 (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
3373 register as a regular register on zSeries machines.
3374 (s390_reorg): Adjust calls to s390_split_branches and
3375 s390_optimize_prolog.
3376 (s390_frame_info): On zSeries machines, do not assume the return
3377 register is always used. Update regs_ever_live with current data
3378 for the special registers.
3379 (s390_emit_epilogue): Use save_return_addr_p to determine whether
3380 the return register was saved.
3381 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
3382 RETURN_REGNUM fixed on zSeries machines.
3383 (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
3384 * config/s390/s390.md ("*doloop_si"): Handle branch overflow
3385 via ahi-jgne pair on zSeries machines.
3386 ("*doloop_di"): Likewise.
3387 ("*doloop_di_long"): Remove.
3388
3389 2003-10-30 Richard Earnshaw <rearnsha@arm.com>
3390
3391 * arm.c (arm_override_options): Revert change of arm_constant_limit
3392 when optimizing for size.
3393
3394 2003-10-29 Richard Henderson <rth@redhat.com>
3395
3396 * fold-const.c (fold_single_bit_test): Convert the input to the
3397 operational intermediate type.
3398
3399 2003-10-29 Richard Henderson <rth@redhat.com>
3400
3401 * builtins.c (std_build_builtin_va_list): New.
3402 * expr.h (std_build_builtin_va_list): Declare.
3403 * defaults.h (BUILD_VA_LIST_TYPE): New.
3404 * system.h (BUILD_VA_LIST_TYPE): Poison.
3405 * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
3406 * target.h (struct gcc_target): Add build_builtin_va_list.
3407 * tree.c (build_common_tree_nodes_2): Use it.
3408
3409 * config/alpha/alpha-protos.h, config/alpha/alpha.c,
3410 config/alpha/alpha.h, config/alpha/unicosmk.h,
3411 config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
3412 config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
3413 config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
3414 config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
3415 config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
3416 config/mips/mips.h, config/rs6000/rs6000-protos.h,
3417 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
3418 config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
3419 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
3420 config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
3421 config/xtensa/xtensa.h: Rename foo_build_va_list to
3422 foo_build_builtin_va_list; make it static. Define
3423 TARGET_BUILD_BUILTIN_VA_LIST. Remove BUILD_VA_LIST_TYPE.
3424 Update protos.
3425
3426 * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
3427 * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
3428
3429 2003-10-29 James E Wilson <wilson@specifixinc.com>
3430
3431 * recog.c (asm_operand_ok): Add missing break after case 'X'.
3432 Change if statements to else if statements in default case.
3433 (extract_constrain_insn_cached): Fix misspelling of constrain_operands
3434 in comment.
3435 (constrain_operands_cached): Likewise.
3436 (constrain_operands): Change if statements to else if statements in
3437 default case.
3438 * reload.c (find_reloads): Likewise.
3439
3440 2003-10-29 Richard Henderson <rth@redhat.com>
3441
3442 * config/m68k/m68k.c (notice_update_cc): Clear cc status for
3443 shifts and rotates.
3444
3445 2003-10-30 Alan Modra <amodra@bigpond.net.au>
3446
3447 * config/rs6000/rs6000.md: Remove duplicate pattern.
3448
3449 2003-10-29 Hans-Peter Nilsson <hp@axis.com>
3450
3451 * real.c (do_divide): Initialize result with a 0.
3452
3453 * configure.in <enable-checking for valgrind>: Look for
3454 <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
3455 if it exists.
3456 * configure, config.in: Regenerate.
3457 * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
3458 HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use
3459 #elif for other alternatives.
3460 * ggc-page.c: Ditto.
3461 * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
3462 include structure from ggc-common.c.
3463
3464 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3465
3466 * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
3467 (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
3468 * pa.c (pa_adjust_insn_length): Check for btable branches using
3469 attribute TYPE_BTABLE_BRANCH.
3470 (pa_reorg): Simplify.
3471 * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
3472 (ASM_OUTPUT_ADDR_VEC_ELT): As above.
3473 (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
3474 * pa.md (btable_branch): New instruction type.
3475 (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
3476 btable branches.
3477 (define_delay): Add btable branches to insn types that may have an
3478 insn in the delay position.
3479 (Z2, Z3): Add btable branch to list.
3480 Simplify unamed pattern set copy pic_label_operand to register. Add
3481 PA 2.0 variant.
3482 (short_jump): New jump for use in branch tables.
3483 (casesi, casesi0): Revise for new branch table formats.
3484 (casesi32, casesi32p, casesi64p): New casesi patterns.
3485 (indirect_jump): Move.
3486
3487 2003-10-29 David Edelsohn <edelsohn@gnu.org>
3488
3489 * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
3490 !TARGET_POWERPC64.
3491 (UNITS_PER_GPR_WORD): Delete.
3492 (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
3493 (HARD_REGNO_MODE_OK): Same.
3494 (CLASS_MAX_NREGS): Same.
3495
3496 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3497
3498 * pa.h (ASM_COMMENT_START): Define.
3499
3500 2003-10-29 Zack Weinberg <zack@codesourcery.com>
3501
3502 * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
3503 MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
3504 component, not zero.
3505
3506 2003-10-29 Andreas Schwab <schwab@suse.de>
3507
3508 * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
3509
3510 2003-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
3511
3512 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
3513 Never return 1 for complex integral modes whose size is lesser or
3514 equal to a word.
3515 (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
3516 in the comment.
3517 (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
3518 modes.
3519 (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
3520 greater than 16 bytes by reference.
3521
3522 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3523
3524 * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
3525 not TARGET_ILP32.
3526 (ia64_initialize_trampoline): Use globalize_label target call.
3527
3528 2003-10-29 Andreas Schwab <schwab@suse.de>
3529
3530 * doc/install.texi (Building): Add a sentence about building Ada
3531 for a canadian cross.
3532
3533 2003-10-28 Zack Weinberg <zack@codesourcery.com>
3534
3535 * config/ia64/ia64.c (cmptf_libfunc): New static.
3536 (ia64_expand_compare): Add logic to open-code calls to
3537 _U_Qfcmp for TFmode comparisons.
3538 (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
3539 Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
3540 never be generated anymore.
3541 * config/ia64/ia64.md (cmptf): New expander.
3542
3543 2003-10-28 Zack Weinberg <zack@codesourcery.com>
3544
3545 * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
3546 (*sqrt_approx): New instruction pattern for approximate square roots.
3547 (*setf_exp_xf): New instruction pattern for exponentiation.
3548 (*maddxf4_alts_truncsf): New instruction pattern for truncation.
3549 (sqrtsf2_internal_thr): New define_and_split implementing
3550 throughput-optimized inline calculation of SFmode square root.
3551 (sqrtdf2_internal_thr): Likewise for DFmode.
3552 (sqrtxf2_internal_thr): Likewise for XFmode.
3553 (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
3554 latency- and throughput-optimized square root algorithms.
3555 * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
3556 TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
3557 New macros.
3558 (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
3559 -minline-sqrt-max-throughput.
3560 * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
3561 and -minline-sqrt-max-throughput are given, notify the user
3562 that both options cannot be used simultaneously.
3563 If -minline-sqrt-min-latency is given, notify the user that
3564 this mode is not yet implemented.
3565 (rtx_needs_barrier): Reformat initial comment to obey
3566 72-character width limit. Support UNSPEC_SETF_EXP and
3567 UNSPEC_FR_SQRT_RECIP_APPROX.
3568
3569 2003-10-29 Alan Modra <amodra@bigpond.net.au>
3570
3571 * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
3572 moves.
3573
3574 2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3575
3576 PR target/11598
3577 PR libgcj/10610
3578 * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
3579
3580 2003-10-28 Richard Earnshaw <rearnsha@arm.com>
3581
3582 * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
3583 an extra stack adjustment insn if the stack pointer is already
3584 pointing at the right place.
3585 (use_return_insn): Allow a return insn to be used when we have a
3586 frame pointer if the stack pointer is in the right place.
3587 (output_return_instruction): Handle it.
3588
3589 2003-10-28 Andreas Jaeger <aj@suse.de>
3590
3591 * ggc-zone.c (check_cookies): Add missing variable.
3592 Add void to prototypes.
3593
3594 2003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3595
3596 * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
3597 * crtstuff.c (__do_global_ctors_1): Move prototype.
3598 * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
3599 appropriate.
3600 * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
3601 Mark parameter with __attribute__((unused)).
3602
3603 2003-10-27 Zack Weinberg <zack@codesourcery.com>
3604
3605 * c-decl.c (pushdecl): Clarify comment.
3606
3607 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
3608
3609 * doc/install.texi: Update instructions for Ada cross builds
3610
3611 PR ada/5909:
3612 * doc/sourcebuild.texi: Document Ada test suite.
3613
3614 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
3615
3616 * config/m68hc11/m68hc11.c: Convert to ISO C90.
3617 * config/m68hc11/m68hc11-protos.h: Likewise.
3618
3619 2003-10-27 Jan Hubicka <jh@suse.cz>
3620 Eric Botcazou <ebotcazou@libertysurf.fr>
3621
3622 * toplev.c (enum dump_file_index, dump_file): Fix ordering of
3623 webizer pass dump.
3624
3625 2003-10-27 Jakub Jelinek <jakub@redhat.com>
3626 Jan Hubicka <jh@suse.cz>
3627
3628 * reload1.c (struct elim_table): Change offset, initial_offset and
3629 previous_offset fields to HOST_WIDE_INT.
3630 (offsets_at): Change from int to HOST_WIDE_INT.
3631 (reload): Adjust offsets_at initialization.
3632 (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
3633 (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
3634 * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
3635 to HOST_WIDE_INT. Don't save regs using mov for huge frame sizes
3636 if TARGET_64BIT.
3637 (pro_epilogue_adjust_stack): New function.
3638 (ix86_expand_prologue, ix86_expand_epilogue): Use it.
3639 * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
3640 (pro_epilogue_adjust_stack_1): Remove * in front of name.
3641 (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
3642 (pro_epilogue_adjust_stack_rex64_2): New insn.
3643
3644 * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
3645
3646 * config/i386/i386.c (ix86_expand_call): Replace 40 with
3647 FIRST_REX_INT_REG + 3 /* R11 */.
3648
3649 2003-10-26 Richard Henderson <rth@redhat.com>
3650
3651 * config/alpha/alpha.md (attr cannot_copy): New.
3652 (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
3653 prologue_ldgp_er_2, prologue_ldgp_1): Set it.
3654 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
3655
3656 2003-10-26 Daniel Berlin <dberlin@dberlin.org>
3657
3658 * ggc-zone.c: New file, zone allocating collector.
3659 * configure: Accept zone option for --with-gc
3660 * configure.in: Ditto.
3661 * ggc.h (ggc_pch_count_object): Pass bool indicating
3662 stringiness. Update all callers.
3663 (ggc_pch_alloc_object): Ditto.
3664 (ggc_pch_write_object): Ditto.
3665 (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
3666 type.
3667 (ggc_alloc_rtvec): Ditto.
3668 (ggc_alloc_tree): Use zone allocation, since some things using this macro
3669 aren't a single typecode.
3670 * ggc-none.c (ggc_alloc_typed): New function.
3671 (ggc_alloc_zone): Ditto.
3672 * ggc-page.c: Ditto on both functions.
3673
3674 2003-10-26 Gunther Nikl <gni@gecko.de>
3675
3676 * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
3677 frame information is always valid.
3678 (m68k_output_function_prologue): Remove superfluous TARGET_68881
3679 test; fix formatting.
3680
3681 2003-10-26 Gunther Nikl <gni@gecko.de>
3682
3683 * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
3684 reg_rev_mask computation.
3685 (m68k_output_function_prologue): Fix usage of current_frame (one typo
3686 and one missing); use reg_rev_mask not reg_mask.
3687 (m68k_output_function_epilogue): Fix usage of current_frame;
3688 use fpu_rev_mask not fpu_mask.
3689
3690 2003-10-26 Bernardo Innocenti <bernie@develer.com>
3691
3692 * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
3693 num_saved_regs, use current_frame.reg_no instead.
3694
3695 2003-10-26 Bernardo Innocenti <bernie@develer.com>
3696 Paul Dale <pauli@snapgear.com>
3697
3698 * doc/extend.texi (interrupt_handler): Add m68k to the
3699 list of processors implementing it.
3700 * doc/invoke.texi (-msep-data): Document new m68k option.
3701 (-mno-sep-data): Likewise.
3702 (-mid-shared-library): Likewise.
3703 (-mno-id-shared-library): Likewise.
3704 (-mshared-library-id): Likewise.
3705
3706 2003-10-26 Andreas Jaeger <aj@suse.de>
3707
3708 * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
3709 comparison.
3710 (_Unwind_SetGR): Likewise.
3711
3712 2003-10-26 Ottavio Campana <ottavio@campana.vi.it>
3713
3714 PR target/12690
3715 * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
3716
3717 2003-10-26 Gunther Nikl <gni@gecko.de>
3718
3719 * config/m68k/m68k.c (m68k_output_function_prologue): Move front
3720 comment from here to...
3721 (m68k_save_reg): ...here. Fix comment formatting.
3722 (m68k_output_function_prologue): Fix comment formatting.
3723 (m68k_output_function_epilogue): Likewise.
3724 (const_method): Likewise.
3725
3726 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
3727
3728 * toplev.c (default_get_pch_validity): Guard the use of
3729 target_options with #ifdef TARGET_OPTIONS.
3730 (default_pch_valid_p): Likewise.
3731
3732 2003-10-26 Andreas Jaeger <aj@suse.de>
3733 Zack Weinberg <zack@codesourcery.com>
3734 Andreas Tobler <toa@pop.agri.ch>
3735
3736 * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
3737 (output_die): Likewise.
3738 (print_die): Likewise.
3739
3740 2003-10-26 Andreas Jaeger <aj@suse.de>
3741
3742 * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
3743 dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
3744 dwarf2out.c change.
3745
3746 * toplev.c (default_pch_valid_p): Fix warning.
3747
3748 2003-10-25 Roger Sayle <roger@eyesopen.com>
3749
3750 * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
3751 RTL nodes. If an operator's operands are unchanged, return the
3752 original argument unchanged.
3753
3754 2003-10-26 Graham Stott <graham.stott@btinternet.com>
3755
3756 Fix bootstrap failure.
3757 * expmed.c (store_bit_field): Don't compare bitsize against
3758 modes with zero bit-size.
3759
3760 (extract_bit_field): Likewise
3761
3762 2003-10-25 Jan Hubicka <jh@suse.cz>
3763
3764 * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
3765 (cfa_loc): Likewise.
3766 (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
3767 HOST_WIDE_INT.
3768 (args_size, old_args_size): change type to HOST_WIDE_INT.
3769 (dwarf2out_def_cfa, dwarf2out_args_size,
3770 dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
3771 (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
3772 (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
3773 AT_offset): Use HOST_WIDE_INT.
3774 (based_loc_descr): offset is HOST_WIDE_INT.
3775 (add_data_member): Likewise.
3776 (add_const_value_attribute): Simplify.
3777
3778 2003-10-25 Richard Henderson <rth@redhat.com>
3779
3780 * config/i386/i386.c (ix86_eax_live_at_start_p): New.
3781 (ix86_expand_prologue): Save and restore eax around stack probe
3782 if it's live.
3783
3784 2003-10-25 Jan Hubicka <jh@suse.cz>
3785
3786 * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
3787
3788 2003-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3789
3790 PR target/12712
3791 * reg-stack.c (convert_regs_1): Create an arbitrary input stack
3792 if the block has no predecessors.
3793 (convert_regs_2): Document the problem with successors whose
3794 only predecessor is the block to be processed.
3795 (convert_regs): Don't create the arbitrary input stack here.
3796
3797 2003-10-24 Zack Weinberg <zack@codesourcery.com>
3798
3799 * genmodes.c (struct mode_data): Add contained and next_cont
3800 fields.
3801 (complete_mode): Maintain linked list of modes that have a
3802 given component.
3803 (emit_mode_unit_size): Delete.
3804 (emit_mode_nunits): New.
3805 (emit_insn_modes_c): Update to match.
3806 (emit_mode_adjustments): Propagate size and alignment
3807 adjustments from component modes to their containers.
3808 * machmode.h (mode_unit_size): Delete.
3809 (mode_nunits): New.
3810 (GET_MODE_NUNITS): Just return the value in the table.
3811 (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
3812 GET_MODE_SIZE.
3813 * expmed.c (store_bit_field, extract_bit_field): Can use a
3814 plain move instruction if bitsize >= GET_MODE_BITSIZE of
3815 destination/source mode, respectively.
3816 * varasm.c (assemble_real): Write out the full size of the
3817 constant, not just its bitsize.
3818 (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
3819
3820 * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
3821 Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
3822 alignment of XF and TF modes in compliance with ia64 ABIs.
3823 Can now hardwire the format of both modes.
3824 * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
3825 (general_tfmode_operand, destination_tfmode_operand)
3826 (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
3827 general_xfmode_operand, destination_xfmode_operand,
3828 xfreg_or_fp01_operand, spill_xfmode_operand respectively.
3829 (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
3830 and float80_type be 96 so they get XFmode. Use !TARGET_HPUX,
3831 not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
3832 __float128.
3833 * config/ia64/ia64.h: Default TARGET_HPUX to 0.
3834 Change TFmode to XFmode wherever appropriate. Remove all
3835 references to INTEL_EXTENDED_IEEE_FORMAT.
3836 (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
3837 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
3838 (PREDICATE_CODES): Update to match function renames.
3839 * config/ia64/ia64.md: Change TF to XF throughout; rename all
3840 patterns to match. Remove all references to
3841 INTEL_EXTENDED_IEEE_FORMAT. Update predicate calls to match
3842 function renames.
3843 * config/ia64/ia64-protos.c: Update all prototypes to match
3844 renamed functions.
3845 * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
3846 Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
3847 * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
3848 __divtf3; keep old name for backward compatibility.
3849 (L__compat): New section providing forwarding stubs for
3850 __fixtfti, __fixunstfti, __floattitf.
3851 * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
3852
3853 2003-10-24 Geoffrey Keating <geoffk@apple.com>
3854
3855 PR 10757
3856 * c-pch.c: Include target.h. Improve comments.
3857 (struct c_pch_validity): Add target_data_length.
3858 (pch_init): Add target's validity data.
3859 (c_common_valid_pch): Check target's validity data.
3860 * target-def.h (TARGET_GET_PCH_VALIDITY): New.
3861 (TARGET_PCH_VALID_P): New.
3862 (TARGET_INITIALIZER): Add new fields.
3863 * target.h: Include tm.h.
3864 (struct gcc_target): Add get_pch_validity, pch_valid_p.
3865 * toplev.h (default_get_pch_validity): New prototype.
3866 (default_pch_valid_p): New prototype.
3867 * toplev.c (default_get_pch_validity): New routine.
3868 (default_pch_valid_p): New routine.
3869 * Makefile.in (TARGET_H): Add TM_H. Replace all users of
3870 target.h with $(TARGET_H).
3871 (c-pch.o): Add TARGET_H.
3872 * doc/tm.texi (PCH Target): New node.
3873 (TARGET_GET_PCH_VALIDITY): Document.
3874 (TARGET_PCH_VALID_P): Document.
3875
3876 2003-10-24 Kelley Cook <kcook@gcc.gnu.org>
3877
3878 * Makefile.in: Define a vpath for %.texi. Remove explicit $(docdir)
3879 and $(docdir)/include from any *.texi dependencies.
3880 ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
3881 ($(docobjdir)/%.1): Depend on .pod instead of .texi.
3882 ($(docobjdir)/%.7): Likewise.
3883 (%.pod): New implicit rule.
3884 (cpp.pod): New dependency only rule.
3885 (gcc.pod): New intermediate rule with dependencies and commands.
3886 (gfdl.pod): Likewise.
3887 (fsf-funding.pod): Likewise.
3888
3889 2003-10-24 Nathanael Nerode <neroden@gcc.gnu.org>
3890
3891 * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
3892 related code.
3893 * fixinc/fixinc.ptx: Remove.
3894 * fixinc/fixinc.svr4: Remove.
3895
3896 2003-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3897
3898 * config/s390/s390.c (load_multiple_operation): Allow both SImode
3899 and DImode if word_mode is DImode.
3900 (store_multiple_operation): Likewise.
3901 * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
3902 ("*load_multiple_di"): Allow only if word_mode == DImode.
3903 ("movqi"): Use LLGC whenever TARGET_ZARCH.
3904 ("fix_truncdfsi2"): Fix incorrect temporary size.
3905 ("fix_truncsfsi2"): Likewise.
3906 ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
3907 string for function return value operand.
3908 ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
3909
3910 2003-10-24 Joseph S. Myers <jsm@polyomino.org.uk>
3911
3912 * c-parse.in (array_declarator): Use expr_no_commas.
3913 Fixes PR c/11943.
3914
3915 2003-10-24 Richard Sandiford <rsandifo@redhat.com>
3916
3917 * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
3918 associated includes in #ifndef inhibit_libc.
3919
3920 2003-10-24 Roger Sayle <roger@eyesopen.com>
3921
3922 * doc/libgcc.texi: Document some more of the libgcc API.
3923
3924 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
3925
3926 * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
3927 comparing a constant with small negative numbers and add costing
3928 for constants in conjunction with AND.
3929 (note_invalid_constants): Tidy previous change.
3930 (thumb_cmp_operand): Tidy.
3931 (thumb_cmpneg_operand): New function.
3932 * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
3933 for size.
3934 (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
3935 (PREDICATE_CODES): Add thumb_cmpneg_operand.
3936 * arm.md (cbranchsi4): Convert to define_expand. Handle comparison
3937 with a negative constant.
3938 (cbranchsi4_insn): Matcher for cbranchsi4.
3939 (cbranchsi4_scratch): Similar, but a scratch is available for
3940 handling negative constants.
3941 (movsi_cbranchsi4): New pattern.
3942 (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
3943 and use the TST instruction.
3944 (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
3945 (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
3946 cannot see high regs or memory alternatives.
3947 (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
3948
3949 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
3950
3951 * arm.c (note_invalid_constants): Try to extract the constant
3952 pool value using avoid_constant_pool_reference; only use
3953 get_pool_constant if that returns the original reference.
3954
3955 2003-10-24 Jan Hubicka <jh@suse.cz>
3956
3957 PR c++/12624
3958 * varasm.c (notice_global_symbol): Disqualify global registers.
3959
3960 2003-10-23 Roger Sayle <roger@eyesopen.com>
3961
3962 PR middle-end/11414
3963 * loop.c (load_mems): Use redirect_jump to forward jumps from
3964 the original loop end label to the new "loop sink" block's label.
3965
3966 2003-10-23 Roger Sayle <roger@eyesopen.com>
3967
3968 PR middle-end/12705
3969 * optabs.c (expand_binop): When expanding complex operations
3970 inline, always calculate result into a new temporary register.
3971 Minor code clean-ups.
3972
3973 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3974
3975 * objc/lang-specs.h: Handle -print-objc-runtime-info.
3976 * doc/invoke.texi (Objective-C Dialect Options): Document it.
3977
3978 2003-10-24 Danny Smith <dannysmith@users.sourceforge.net>
3979
3980 * config/i386/cygwin.asm: Add copyright notice. Add comment
3981 on why this code is needed.
3982
3983 2003-10-23 Kazu Hirata <kazu@cs.umass.edu>
3984
3985 * config/h8300/clzhi2.c: Fix warnings.
3986 * config/h8300/ctzhi2.c: Likewise.
3987 * config/h8300/fixunssfsi.c: Likewise.
3988 * config/h8300/parityhi2.c: Likewise.
3989 * config/h8300/popcounthi2.c: Likewise.
3990
3991 2003-10-23 James E Wilson <wilson@specifixinc.com>
3992
3993 * gcc.c (option_map): Delete --target and --use-version.
3994
3995 2003-10-23 Fariborz Jahanian <fjahanian@apple.com>
3996 David Edelsohn <edelsohn@gnu.org>
3997
3998 * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
3999 TARGET_POWREPC64.
4000 (UNITS_PER_GPR_WORD): Define.
4001 (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
4002 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
4003 (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
4004 (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
4005 * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
4006 DFmode and DImode in 32-bit ABI / 64-bit computation mode.
4007 (rs6000_emit_prologue): Select reg_mode and reg_size using
4008 TARGET_32BIT, not TARGET_POWERPC64.
4009 (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
4010 ABI / 64-bit computation mode
4011
4012 2003-10-22 Andrew Haley <aph@redhat.com>
4013
4014 * toplev.c (output_file_directive): Allow for null input_name.
4015
4016 2003-10-22 Waldek Hebisch <hebisch@math.uni.wroc.pl>
4017
4018 * config/i386/i386.c (classify_argument): Handle SET_TYPE.
4019
4020 2003-10-22 Chris Demetriou <cgd@broadcom.com>
4021
4022 * configure.in: In --enable-generated-files-in-srcdir option
4023 handling, fix default case handling.
4024 * configure: Regenerate.
4025
4026 2003-10-22 Phil Edwards <phil@codesourcery.com>
4027
4028 * config.gcc: Update *-*-vxworks* generic hook and comments.
4029 (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
4030 mips-wrs-windiss, sh-wrs-vxworks): New stanzas.
4031 * genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly.
4032 * config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it.
4033 * config/windiss.h: New file.
4034 * config/arm/t-vxworks: New file.
4035 * config/arm/vxworks.h: New file.
4036 * config/i386/t-vxworks: New file.
4037 * config/i386/vxworks.h: New file.
4038 * config/mips/t-vxworks: New file.
4039 * config/mips/vxworks.h: New file.
4040 * config/mips/windiss.h: New file.
4041 * config/sh/t-vxworks: New file.
4042 * config/sh/vxworks.h: New file.
4043
4044 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
4045
4046 * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
4047 (h8300_saveall_function_p): New.
4048 (h8300_insert_attributes): Insert the saveall attribute if
4049 #pragma saveall is specified.
4050 (h8300_attribute_table): Add saveall.
4051 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
4052 * doc/extend.texi: Mention the saveall attribute.
4053
4054 2003-10-22 Joseph S. Myers <jsm@polyomino.org.uk>
4055
4056 * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
4057 deprecation of casts as lvalues.
4058 * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
4059 * fixinc/fixincl.x: Regenerate.
4060 * fixinc/tests/base/obstack.h: New test.
4061
4062 2003-10-22 Andreas Schwab <schwab@suse.de>
4063
4064 PR target/12676
4065 * config/m68k/m68k.c (output_addsi3): Fix range check to work on
4066 LP64 platforms.
4067
4068 2003-10-22 Jan Hubicka <jh@suse.cz>
4069
4070 * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
4071 presence of DW_AT_inline.
4072 (gen_subprogram_die): Likewise; do not abort instead of emitting
4073 DW_AT_not_inline.
4074
4075 2003-10-22 Jan Hubicka <jh@suse.cz>
4076
4077 * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
4078 global info is not ready.
4079
4080 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
4081
4082 * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
4083
4084 2003-10-22 Ulrich Weigand <uweigand@de.ibm.com>
4085
4086 * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
4087 ("*movstr_short"): ... into this insn pattern.
4088 ("movstr_short"): New expander.
4089 ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
4090 ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
4091 ("movstr_long"): New expander.
4092 ("clrstr_short_64", "clrstr_short_31"): Merge ...
4093 ("*clrstr_short"): ... into this insn pattern.
4094 ("clrstr_short"): New expander.
4095 ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
4096 ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
4097 ("clrstr_long"): New expander.
4098 ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
4099 ("*cmpmem_short"): ... into this insn pattern.
4100 ("cmpmem_short"): New expander.
4101 ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
4102 ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
4103 ("cmpmem_long"): New expander.
4104 * config/s390/s390.c (s390_expand_movstr): Use new expanders.
4105 (s390_expand_clrstr): Likewise.
4106 (s390_expand_cmpmem): Likewise.
4107
4108 2003-10-22 Mark Mitchell <mark@codesourcery.com>
4109
4110 * c-pch.c (struct c_pch_validity): Add pch_init field.
4111 (pch_init): Set it.
4112 (c_common_valid_pch): Check it.
4113
4114 2003-10-22 David Taylor <dtaylor@emc.com>
4115
4116 PR debug/12500
4117 * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
4118
4119 2003-10-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4120
4121 * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
4122 alpha_return_in_memory if no VALTYPE specified.
4123
4124 2003-10-22 Jan Hubicka <jh@suse.cz>
4125
4126 PR debug/12389
4127 * Makefile.in (dwarf2out.o): Depend on cgraph.h.
4128 * cgraph.c (cgraph_function_possibly_inlined_p): New function.
4129 * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
4130 (cgraph_global_info): Add flag inlined
4131 * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
4132 cgraph_function_possibly_inded_p
4133 * cgraphunit.c (mark_inline): Set inlined flag.
4134 * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
4135 only for possibly inlined functions.
4136 * c-decl.c (duplicate_decls): Never output abstract DIE representing old
4137 body of function.
4138
4139 2003-10-22 Andrew Haley <aph@redhat.com>
4140
4141 * varasm.c (output_constructor): Make constructor annotation
4142 conditional on ASM_COMMENT_START.
4143
4144 2003-10-21 Jason Merrill <jason@redhat.com>
4145
4146 * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
4147 (get_narrower): Likewise.
4148
4149 * stor-layout.c (layout_decl): Do packed field alignment for
4150 bit-fields, too.
4151
4152 2003-10-21 Eric Christopher <echristo@redhat.com>
4153
4154 * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
4155
4156 2003-10-21 Geoffrey Keating <geoffk@apple.com>
4157
4158 * c-pch.c: Add comments in various places.
4159 (struct c_pch_validity): Add the lengths of various strings.
4160 (host_machine): New static.
4161 (target_machine): New static.
4162 (get_ident): Bump version number.
4163 (pch_init): Write out version, host, target validity data.
4164 (c_common_valid_pch): Check version, host, target.
4165 * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
4166 TARGET_MACHINE.
4167
4168 2003-10-21 Jason Merrill <jason@redhat.com>
4169
4170 * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
4171 (EXPR_P): New macro.
4172
4173 2003-10-21 Zack Weinberg <zack@codesourcery.com>
4174
4175 * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
4176 * config/ia64/ia64.c (ia64_expand_fetch_and_op,
4177 ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
4178 DImode. Use convert_move to load ar.ccv.
4179 (ia64_expand_compare_and_swap): Likewise.
4180 If expand_expr doesn't put 'old' and 'new' in the proper
4181 modes, run them through convert_to_mode.
4182
4183 2003-10-21 Eric Christopher <echristo@redhat.com>
4184
4185 * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
4186 for too large bitfields.
4187
4188 2003-10-21 Mark Mitchell <mark@codesourcery.com>
4189
4190 * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
4191
4192 2003-10-21 Andrew Haley <aph@redhat.com>
4193
4194 * varasm.c (output_constructor): Annotate constructor.
4195
4196 2003-10-21 Mark Mitchell <mark@codesourcery.com>
4197
4198 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
4199 on existence of destination file.
4200
4201 2003-10-21 Jan Hubicka <jh@suse.cz>
4202
4203 * haifa-sched.c (choose_ready): Initialize index.
4204
4205 2003-10-21 Jason Merrill <jason@redhat.com>
4206
4207 * tree.c (build1): Fix off-by-one error.
4208
4209 2003-10-21 Robert Millan <robertmh@gnu.org>
4210
4211 * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
4212 * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
4213 * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
4214 * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
4215
4216 2003-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
4217
4218 * web.c: Fix various comments.
4219
4220 2003-10-20 Nicolas Pitre <nico@cam.org>
4221
4222 * config/arm/arm.c (arm_override_options): Set arm_constant_limit
4223 to 2 instead of 1 when optimize_size is true. Gather code based on
4224 optimize_size together. Add comment about XScale load latency.
4225
4226 2003-10-21 Gunther Nikl <gni@gecko.de>
4227
4228 * config/m68k/m68k.c (m68k_output_function_prologue): Remove
4229 obsolete comments.
4230
4231 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
4232
4233 * Makefile.in: Get parsedir and docobjdir from configure.
4234 * configure.in: Recogonize --enable-generated-files-in-srcdir.
4235 Pass along parsedir and docobjdir.
4236 * configure: Regenerate.
4237 * doc/install.texi: Document --enable-generated-files-in-srcdir.
4238
4239 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
4240
4241 * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
4242 included.
4243
4244 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
4245
4246 * c-common.c (expand_tree_builtin): Ensure creal and cimag
4247 functions do not return lvalues.
4248
4249 2003-10-20 Jason Merrill <jason@redhat.com>
4250
4251 PR c/12553
4252 * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
4253 appropriately.
4254
4255 PR c/11446
4256 * stor-layout.c (layout_decl): Fix alignment handling.
4257
4258 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
4259
4260 * doc/extend.texi: Deprecate casts as lvalues.
4261
4262 2003-10-20 Jan Hubicka <jh@suse.cz>
4263
4264 * toplev.c (rest_of_compilation): Fix webizer pass ordering.
4265
4266 * cgraphunit.c (decide_is_function_needed): Fix test dealing
4267 with functions implicitly made inline.
4268
4269 * cgraphunit.c (cgraph_decide_inlining_incrementally): New function.
4270 (cgraph_finalize_function): Use it.
4271 (cgraph_mark_inline): Allow incrmental decisions
4272 * invoke.texi (max-inline-slope, min-inline-insns): Kill.
4273 * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
4274 * tree-inline.c (limits_allow_inlining): Kill.
4275 (expand_call_inline): Always use unit-at-a-time path.
4276
4277 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4278
4279 * fixinc/inclhack.def (hpux11_snprintf): New edit.
4280 * fixinc/fixincl.x: Regenerate.
4281 * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
4282
4283 2003-10-20 Mark Mitchell <mark@codesourcery.com>
4284
4285 * Makefile.in (install-info): Simplify.
4286 ($(DESTDIR)$(infodir)/%.info): New rule.
4287 * configure.in (target_list): Remove install-info.
4288 * doc/.cvsignore (gcc.info*): Remove.
4289 (gccint.info*): Likewise.
4290 (gccinstall.info*): Likewise.
4291 (cpp.info*): Likewise.
4292 (cppinternals.info*): Likewise.
4293 (*.info*): Add it.
4294 * doc/sourcebuild.texi: Update description of install-info.
4295 * objc/Make-lang.in (objc.install-info): Remove.
4296
4297 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4298
4299 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
4300 Use it in _MIPS_SIM definition.
4301 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
4302
4303 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4304
4305 * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
4306 virtual register, but only if file == asm_out_file.
4307 * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
4308 for ARG_POINTER_REGNUM.
4309
4310 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4311
4312 * c-common.c (registered_builtin_types): New static.
4313 (c_common_type_for_mode): Consult registered_builtin_types.
4314 (c_register_builtin_type): Add type to registered_builtin_types.
4315 * optabs.c (init_floating_libfuncs): Initialize libfuncs for
4316 all MODE_FLOAT modes, not just the ones corresponding to
4317 float_type_node, double_type_node, and long_double_type_node.
4318
4319 2003-10-20 Richard Henderson <rth@redhat.com>
4320
4321 * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
4322 * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
4323
4324 2003-10-20 Dorit Naishlos <dorit@il.ibm.com>
4325
4326 * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
4327 support new flag -minsert-sched-nops.
4328 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
4329 * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
4330 support new flag -minsert-sched-nops.
4331 (is_cracked_insn, is_microcoded_insn): New functions.
4332 (rs6000_sched_finish): New function.
4333 (rs6000_issue_rate): Return 5 for power4.
4334 (get_next_active_insn, insn_terminates_group_p): New
4335 functions.
4336 (is_costly_group, force_new_group): New functions.
4337 (redefine_groups, pad_groups): New functions.
4338 (rs6000_variable_issue): Use new functions.
4339 * doc/invoke.texi (-minsert-sched-nops): Document new
4340 option.
4341
4342 2003-10-20 David S. Miller <davem@redhat.com>
4343
4344 * config/sparc/sparc.md (type attribute): Add new insn types
4345 fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
4346 (patterns emitting VIS insns): Use them.
4347 * config/sparc/ultra1_2.md: Add VIS scheduling rules.
4348 * config/sparc/ultra3.md: Likewise.
4349
4350 2003-10-20 Falk Hueffner <falk@debian.org>
4351
4352 PR target/12654
4353 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
4354 comparison against constant by adjusting the argument except for
4355 EQ and NE.
4356
4357 2003-10-19 Mark Mitchell <mark@codesourcery.com>
4358
4359 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
4360 arm1136jfs, and armv6j.
4361 * config/arm/arm.c (FL_ARCH6J): New macro.
4362 (FL_VFPV2): Likewise.
4363 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
4364 and arm1136jfs.
4365 (all_architectures): Add entry for armv6j.
4366 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
4367 arm1136js, and arm1136jfs.
4368 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
4369 (TARGET_CPU_arm1026ej_s): Likewise.
4370 (TARGET_CPU_arm1136j_s): Likewise.
4371 (TARGET_CPU_arm1136jf_s): Likewise.
4372 * doc/invoke.texi: Document new ARM cores and architecture
4373 variants.
4374
4375 2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4376
4377 * Makefile.in (toplev.o): Add value-prof.h dependency.
4378 (value-prof.o): Add REGS_H dependency.
4379 * common.opt (fprofile-values, fvpt): New.
4380 * flags.h (flag_value_profile_transformations): Declare.
4381 * opts.c (common_handle_option): Handle -fprofile_values and
4382 -fvpt.
4383 * profile.c (branch_prob): Don't remove death notes here.
4384 * timevar.def (TV_VPT): New.
4385 * value-prof.c: Include regs.h.
4386 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
4387 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
4388 mod_subtract_transform, value_profile_transformations): New.
4389 (insn_values_to_profile): Call insn_divmod_values_to_profile.
4390 (find_values_to_profile): Add dumps.
4391 * value-prof.h (value_profile_transformations): Declare.
4392 * toplev.c: Include value-prof.h.
4393 (rest_of_handle_value_profile_transformations): New.
4394 (enum dump_file_index): Add DFI_vpt.
4395 (dump_file): Add vpt dump.
4396 (flag_value_profile_transformations): New.
4397 (lang_independent_options): Add flag_profile_values and
4398 flag_value_profile_transformations.
4399 (rest_of_compilation): Call
4400 rest_of_handle_value_profile_transformations.
4401 (process_options): Let -fvpt imply -fprofile-values.
4402 * doc/invoke.texi (-fvpt): Document.
4403
4404 2003-10-19 Jan Hubicka <jh@suse.cz>
4405
4406 * i386.c (print_reg): Do not abort on certain registers.
4407
4408 PR optimization/12612
4409 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
4410 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
4411 match_scratch; avoid bogus paralles.
4412
4413 PR target/12674
4414 * i386.c (ix86_function_regparm): Disable implicit register passing
4415 conventions when profiling.
4416
4417 2003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
4418 Richard Henderson <rth@redhat.com>
4419
4420 PR optimization/8178
4421 * config/i386/i386.md (*movsi_zero): Delete.
4422 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
4423
4424 2003-10-19 Richard Henderson <rth@redhat.com>
4425
4426 * config/alpha/alpha.c (fix_operator): New.
4427 (divmod_operator): Tidy.
4428 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
4429 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
4430 (PREDICATE_CODES): Update.
4431 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
4432 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
4433 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
4434 (fix_truncsfdi_ieee): Likewise.
4435 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
4436 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
4437 * config/alpha/alpha-protos.h: Update.
4438
4439 2003-10-19 Richard Sandiford <rsandifo@redhat.com>
4440
4441 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
4442 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
4443 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
4444 constant operands.
4445
4446 2003-10-18 Kazu Hirata <kazu@cs.umass.edu>
4447
4448 * doc/extend.texi: Fix typos.
4449 * doc/invoke.texi: Likewise.
4450
4451 2003-10-18 Nicolas Pitre <nico@cam.org>
4452
4453 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
4454 XScale optimizations not arm_arch_xscale.
4455 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
4456
4457 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
4458
4459 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
4460 * config/s390/s390.c (shift_count_operand): New function.
4461 (s390_extra_constraint): Use it to implement 'Y' constraint.
4462 (print_shift_count_operand): New function.
4463 (print_operand): Use it to implement '%Y'.
4464 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
4465 (PREDICATE_CODES): Add shift_count_operand.
4466 * config/s390/s390.md ("rotldi3"): Merge alternatives,
4467 using "shift_count_operand" predicate and "Y" constraint,
4468 and "%Y" to output the combined shift count.
4469 ("rotlsi3"): Likewise.
4470 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
4471 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
4472 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
4473 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
4474 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
4475 ("lshrsi3"): Likewise.
4476
4477 2003-10-18 Gunther Nikl <gni@gecko.de>
4478
4479 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
4480 argument to asm_fprintf statement.
4481
4482 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
4483
4484 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
4485 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
4486 a "long long" argument.
4487
4488 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
4489
4490 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
4491 as well.
4492
4493 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
4494
4495 * rtl.h (rtl_size): Declare.
4496 (rtunion): Remove rtwint.
4497 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
4498 (RTX_HDR_SIZE, RTX_SIZE): New macros.
4499 (RTL_CHECK1): Adjust for new rtx_def layout.
4500 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
4501 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
4502 (X0WINT): Remove.
4503 (X0ANY): New macro.
4504 * rtl.def: Adjust comments for new rtx_def layout.
4505 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
4506 number of slots.
4507 * rtl.c (rtx_size): New array.
4508 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
4509 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
4510 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
4511 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
4512 * emit-rtl.c (copy_most_rtx): Likewise.
4513 (copy_rtx_if_shared): Use RTX_SIZE.
4514 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
4515 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
4516 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
4517 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
4518 an array. Adjust output for new rtx_def layout.
4519 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
4520 * reload1.c (eliminate_regs): Use RTX_SIZE.
4521 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
4522 * gdbinit.in (pi): Likewise.
4523
4524 2003-10-18 Jan Hubicka <jh@suse.cz>
4525
4526 * integrate.c (copy_decl_for_inlining): Revert previous patch.
4527
4528 2003-10-18 Jan Hubicka <jh@suse.cz>
4529
4530 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
4531
4532 2003-10-18 Roger Sayle <roger@eyesopen.com>
4533
4534 * libgcc.texi: Group multi-word types, such as "long double" and
4535 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
4536 Document __unord?f2 as returning a non-zero value, not just one.
4537
4538 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
4539
4540 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
4541 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
4542
4543 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4544
4545 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
4546 match_operand.
4547
4548 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4549
4550 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
4551 parameter packed_p. Search for a DECL_PACKED field only if
4552 packed_p is false. Pass packed_p recursively.
4553 (function_arg_record_value_2): Likewise.
4554 (function_arg_record_value): Update calls to
4555 function_arg_record_value_1 and function_arg_record_value_2.
4556
4557 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4558
4559 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
4560 was successfully forced to memory before using the result.
4561
4562 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4563
4564 PR optimization/8178
4565 * config/i386/i386.md (*movsi_zero): New insn to set
4566 a register to zero on TARGET_USE_MOV0 targets.
4567
4568 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
4569
4570 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
4571 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
4572
4573 2003-10-17 David Edelsohn <edelsohn@gnu.org>
4574
4575 * doc/invoke.texi (gcse-las): Fix typo.
4576
4577 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4578
4579 * doc/install.texi: Remove first part of the sentence for
4580 zsh not working. Change gcc to GCC.
4581
4582 PR bootstrap/12546
4583 * doc/install.texi: Document that zsh does not work when
4584 configuring gcc.
4585
4586 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
4587
4588 * config/ptx4.h: Switch to DWARF 2; update comments.
4589
4590 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
4591 Hartmut Penner <hpenner@de.ibm.com>
4592
4593 PR 10404, partial 11591, partial 11601
4594 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
4595 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
4596 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
4597 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
4598 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
4599 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
4600 (altivec_expand_stv_builtin): Adjust for the memory_operand.
4601 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
4602 (altivec_init_builtins): Use `long int' for memory offsets.
4603
4604 2003-10-17 Jan Hubicka <jh@suse.cz>
4605
4606 * opts.c (common_handle_option): Handle OPT_fweb
4607 * invoke.texi (-fweb): Add missing parts of documentation.
4608
4609 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4610
4611 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
4612 before redefinition.
4613
4614 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
4615
4616 * common.opt: Add description of the new -fgcse-las flag.
4617 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
4618 * gcse.c (hash_scan_set): Handle the case of store expression and
4619 insert the memory expression to the hash table, this way we make it
4620 possible to discover redundant loads after stores and remove them.
4621 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
4622 to pre_insert_copies, it is not the correct place to call it after
4623 adding stores to be in the available expression hash table.
4624 (pre_insert_copies): Added the call to update_ld_motion_stores when
4625 one or more copies were inserted.
4626 * opts.c (common_handle_option): Handle the -fgcse-las flag.
4627 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
4628
4629 * doc/invoke.tex: Document new -fgcse-las flag.
4630
4631 2003-10-18 Alan Modra <amodra@bigpond.net.au>
4632
4633 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
4634 for posterity, then remove it.
4635
4636 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4637 Nathan Sidwell <nathan@codesourcery.com>
4638
4639 * config/arm/arm.c (use_return_insn): Not a single instruction, if
4640 there's a frame pointer.
4641 (arm_output_epilogue): Protect stack pointer from being corrupted
4642 on interrupt.
4643
4644 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
4645
4646 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
4647
4648 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
4649
4650 * combine.c (simplify_set): Do not clear out undobuf.other_insn
4651 already set elsewhere.
4652
4653 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
4654
4655 * config/i386/i386.c (ix86_expand_prologue): Use
4656 gen_allocate_stack_worker.
4657
4658 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4659
4660 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
4661 without gas.
4662 (mips-sgi-irix6*): Likewise.
4663
4664 * config/mips/iris6gas.h: New file.
4665 * gcc/config.gcc (mips-sgi-irix6*): Use it.
4666
4667 * config/mips/mips.h (TARGET_IRIX): Provide default.
4668 (TARGET_IRIX5): Likewise.
4669 (TARGET_SGI_O32_AS): Likewise.
4670 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
4671 (TARGET_IRIX5): Likewise.
4672 * config/mips/iris6.h (TARGET_IRIX6): Remove.
4673 (TARGET_IRIX5): Redefine as 0.
4674
4675 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
4676 linker workaround with TARGET_IRIX and mips_abi instead of
4677 ASM_OUTPUT_UNDEF_FUNCTION.
4678 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
4679 testing TARGET_IRIX and mips_abi explicitly.
4680 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
4681 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
4682
4683 * config/mips/mips.c (irix_output_external_libcall): Renamed from
4684 mips_output_external_libcall.
4685 Use new TARGET_IRIX in guard.
4686 * config/mips/mips-protos.h (irix_output_external_libcall): Match
4687 this.
4688 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
4689
4690 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
4691 Define as 0.
4692
4693 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
4694 depending on mips_abi.
4695 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
4696 * config/mips/mips.c (mips_output_function_prologue): Test
4697 FUNCTION_NAME_ALREADY_DECLARED at runtime.
4698 (mips_output_function_epilogue): Likewise.
4699 (build_mips16_function_stub): Likewise.
4700 (build_mips16_call_stub): Likewise.
4701 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
4702 default.
4703
4704 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
4705 IRIX 6 O32 assembler.
4706 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
4707 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
4708 _MIPS_SIM for O32 ABI.
4709 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
4710 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
4711 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
4712 Integrate O32 version.
4713 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
4714 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
4715 O32 ABI.
4716 (BSS_SECTION_ASM_OP_32): Define.
4717 (BSS_SECTION_ASM_OP_64): Likewise.
4718 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
4719 using them.
4720 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
4721 Move up to allow override for O32 ABI without GNU as.
4722 (EH_FRAME_SECTION_NAME): Define explicitly.
4723 (MUST_USE_SJLJ_EXCEPTIONS): Define.
4724 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
4725 DTORS_SECTION_ASM_OP): Dummy definitions.
4726 (TARGET_ASM_NAMED_SECTION): Undef statically.
4727 (EH_FRAME_SECTION_NAME): Likewise.
4728 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
4729 (LINK_SPEC): Only use default options -call_shared -no_unresolved
4730 without -r.
4731 Don't pass -init, -fini with -mabi=32.
4732 (COLLECT_PARSE_FLAG): Define.
4733
4734 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
4735 TARGET_IRIX.
4736 Renamed to use irix_ prefix.
4737 (iris6_asm_named_section): Likewise.
4738 (iris_section_align_entry_eq): Likewise.
4739 (iris_section_align_entry_hash): Likewise.
4740 (iris6_file_start): Likewise.
4741 (iris6_section_align_1): Likewise.
4742 (iris6_file_end): Likewise.
4743 (iris6_section_type_flags): Likewise.
4744 (iris_section_align_htab): Likewise.
4745 (iris_orig_asm_out_file): Likewise.
4746 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
4747 (TARGET_ASM_FILE_END): Likewise.
4748 (TARGET_SECTION_TYPE_FLAGS): Likewise.
4749
4750 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
4751 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
4752 override_options instead.
4753 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4754 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
4755 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
4756 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
4757 assemblers.
4758 Likewise for constructor/destructor handling.
4759 (override_options): Handle IRIX O32 assembler quirks.
4760 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
4761 without gas.
4762 (mips_file_start): Use new TARGET_IRIX.
4763 (mips_declare_object_name): No special processing for IRIX O32
4764 assembler.
4765 (mips_finish_declare_object): Likewise.
4766 (irix_asm_output_align): Renamed from iris6_asm_output_align.
4767 Don't record alignment for O32 ABI.
4768 (irix_file_start): Renamed from iris6_file_start.
4769 Return early for O32 ABI.
4770 (irix_file_end): Renamed from iris6_file_end.
4771 Don't emit .section directives for O32 ABI.
4772 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
4773 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
4774
4775 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
4776 (MULTILIB_OSDIRNAMES): Likewise.
4777
4778 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4779
4780 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
4781 (main): Use it.
4782 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
4783
4784 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4785
4786 * arm-modes.def (CC_Nmode): New condition code mode.
4787 * arm.c (thumb_condition_code): Delete.
4788 (arm_select_cc_mode): Handle single-bit test for Thumb.
4789 (arm_print_operand, cases 'd' and 'D'): Don't special case the
4790 condition code logic for Thumb.
4791 (get_arm_condition_code): Handle CC_Nmode.
4792 (thumb_cbrch_target_operand): New function.
4793 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
4794 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
4795 * arm.md: Add Thumb split patterns for zero_extract and
4796 sign_extract.
4797 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
4798 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
4799 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
4800 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
4801 (cbranchne_decr1): Re-work to use CC_Nmode.
4802
4803 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
4804 by the return instruction. Add a use of the link register if it
4805 wasn't stored.
4806
4807 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4808
4809 * flow.c (init_propagate_block_info): Don't abort if a conditional
4810 jump is not a comparison of a register. Instead, just don't record
4811 conditional life information.
4812
4813 2003-10-16 Jan Hubicka <jh@suse.cz>
4814
4815 PR optimization/12630
4816 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
4817 for operands 7 and 8.
4818
4819 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
4820
4821 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
4822
4823 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
4824
4825 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
4826
4827 * config/i386/winnt.c (gen_stdcall_suffix): Make static
4828 (gen_fastcall_suffix): Likewise.
4829 (i386_pe_dllexport_p): Likewise.
4830 (i386_pe_dllimport_p): Likewise.
4831 (i386_pe_mark_dllexport): Likewise.
4832 (i386_pe_mark_dllimport): Likewise.
4833 (i386_pe_asm_named_section): Fix formatting.
4834
4835 2003-10-16 Zack Weinberg <zack@codesourcery.com>
4836
4837 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
4838 * system.h: Declare snprintf if necessary.
4839 * configure, config.in: Regenerate.
4840
4841 2003-10-15 David Edelsohn <edelsohn@gnu.org>
4842
4843 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
4844 arguments if TARGET_ALTIVEC_ABI.
4845
4846 2003-10-15 Roger Sayle <roger@eyesopen.com>
4847
4848 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
4849 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
4850 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
4851 New functions.
4852 (expand_builtin_memcpy): Use integer_zerop instead of testing
4853 host_integerp and tree_low_cst directly. Move misapplied hunk
4854 for optimization wher SRC and DEST point to the same location.
4855 (expand_builtin_mempcpy): From here.
4856 (expand_builtin_memmove): Use integer_zerop instead of testing
4857 host_integerp and tree_low_cst_directly.
4858 (expand_builtin_memset): Likewise.
4859 (expand_builtin_memcmp): Likewise (and for integer_onep).
4860 (expand_builtin_strncmp): Likewise.
4861 (fold_builtin): Call the appropriate fold_builtin_foo functions
4862 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
4863 strcmp and strncmp.
4864
4865 2003-10-15 Geoffrey Keating <geoffk@apple.com>
4866
4867 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
4868 prototype. Clean up some whitespace.
4869 * config/darwin.c: Use gen_rtx_FOO (...) rather than
4870 gen_rtx (FOO, ...).
4871 (machopic_non_lazy_ptr_name): Make static.
4872 (name_needs_quotes): Allow '.' and '$' unquoted.
4873 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
4874 case.
4875
4876 2003-10-15 Gábor Lóki <alga@rgai.hu>
4877
4878 * fold-const.c (tree_swap_operands_p): Disable some features
4879 when optimizing for size.
4880
4881 2003-10-15 David Daney <ddaney@avtrex.com>
4882
4883 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
4884 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
4885 from leaf functions.
4886 (DWARF_FRAME_RETURN_COLUMN): Ditto.
4887 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
4888 by MD_FALLBACK_FRAME_STATE_FOR.
4889 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
4890
4891 2003-10-15 Zack Weinberg <zack@codesourcery.com>
4892
4893 * genmodes.c: Include hashtab.h.
4894 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
4895 (adj_bytesize, adj_alignment, adj_format, new_adjust)
4896 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
4897 (print_maybe_const_decl, emit_mode_adjustments): New.
4898 (known_modes): Rename to modes.
4899 (find_mode): Kill class argument; look up in hash table.
4900 (new_mode): Insert into hash table also.
4901 (new_adjust): New.
4902 (reset_float_format, make_partial_integer_mode)
4903 (make_vector_mode): Tweak error reporting.
4904 (reset_float_format): Correct type of fourth argument.
4905 (emit_insn_modes_h): Add #defines to help make mode_size,
4906 mode_base_align, and real_format_for_mode conditionally const.
4907 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
4908 (emit_real_format_for_mode): Likewise, but temporarily disabled.
4909 (emit_insn_modes_c): Call emit_mode_adjustments.
4910 (main): Initialize modes_by_name.
4911 * Makefile.in: Update dependencies.
4912 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
4913 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
4914 declarations of mode_size and mode_base_align. Declare
4915 init_adjust_machine_modes.
4916 * toplev.c (backend_init): Call init_adjust_machine_modes.
4917
4918 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
4919
4920 * genmodes.c (calc_wider_mode): Allocate enough room for all the
4921 entries we'll possibly assign in the sort buffer.
4922
4923 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
4924
4925 * config.gcc (s390x-ibm-tpf*): New target.
4926 * doc/install.texi: Document it.
4927 * config/s390/t-tpf: New file.
4928 * config/s390/tpf.h: New file.
4929
4930 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
4931
4932 PR target/12598
4933 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
4934 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
4935 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
4936 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
4937 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
4938 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
4939 replace_equiv_address, not gen_rtx_MEM.
4940 * config/cris/cris.c (cris_mem_op): New match_operator function.
4941 (cris_notice_update_cc): Use replace_equiv_address, not
4942 gen_rtx_MEM.
4943 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
4944
4945 2003-10-15 Bernardo Innocenti <bernie@develer.com>
4946
4947 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
4948 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
4949 definitions after the other flags.
4950
4951 2003-10-14 Ziemowit Laski <zlaski@apple.com>
4952
4953 * c-parse.in (methoddef, methodproto): Call objc_add_method()
4954 instead of add_method().
4955 * objc/objc-act.c (objc_check_decl): Do not check for
4956 constant_string_type.
4957 (add_method): Rename to objc_add_method().
4958 (really_start_method): Call objc_add_method() instead of
4959 add_method().
4960 * objc/objc-act.h (add_method): Rename to objc_add_method().
4961
4962 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4963
4964 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
4965 (s390_slb_comparison): Likewise.
4966 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
4967 New functions.
4968 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
4969 and s390_slb_comparison.
4970 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
4971 zSeries machines.
4972 ("*adddi3_31z", "*subdi3_31z"): New insns.
4973 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
4974 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
4975 New insns.
4976
4977 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
4978
4979 * configure.in: Clean up some feedback echoes.
4980 * configure: Regenerate.
4981
4982 * aclocal.m4: Properly quote names of macros being defined.
4983
4984 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
4985
4986 2003-10-14 Steve Ellcey <sje@cup.hp.com>
4987
4988 * config/ia64/ia64.c (ia64_expand_call): Force function address
4989 to DImode.
4990 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
4991
4992 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4993
4994 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
4995 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
4996 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
4997 "*divsf3_ibm"): Likewise.
4998
4999 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
5000
5001 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
5002 target_alias with target_noncanonical.
5003
5004 2003-10-14 Geoffrey Keating <geoffk@apple.com>
5005
5006 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
5007 and add case for machines where outgoing register parameters
5008 get stack space.
5009
5010 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
5011 register when generating indirect address.
5012
5013 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
5014
5015 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
5016 * arm.md (cbranchne_decr1): Fix bootstrap warning.
5017
5018 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5019
5020 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
5021 * fixinc/fixincl.x: Regenerate.
5022 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
5023 testcase.
5024 Fixes PR bootstrap/9330.
5025
5026 2003-10-13 Eric Christopher <echristo@redhat.com>
5027
5028 * config/frv/frv.c (frv_adjust_field_align): Redo check for
5029 too wide bitfields.
5030 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
5031 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
5032 (SBSS_SECTION_ASM_OP): Remove.
5033 (EXTRA_SECTIONS): Remove in_sbss.
5034 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
5035 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
5036 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
5037 named_section.
5038
5039 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
5040
5041 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
5042 uses of ${target_alias} for directory names (and other places which
5043 won't like the empty string) with ${target_noncanonical}. Introduce
5044 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
5045 available.
5046 * configure: Regenerate.
5047
5048 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
5049
5050 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
5051 * config/arm/arm.md: For splits which rely on conditional moves,
5052 remove ! TARGET_IWMMXT condition.
5053
5054 2003-10-13 David S. Miller <davem@redhat.com>
5055
5056 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
5057 (find_cond_trap): Always increment if we emit a conditional
5058 trap insn.
5059
5060 2003-10-13 Zack Weinberg <zack@codesourcery.com>
5061
5062 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
5063 with min-insn-modes.o.
5064 (STAGESTUFF): Add min-insn-modes.c.
5065 (genobjs): Add genmodes.o.
5066 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
5067 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
5068 (min-insn-modes.c, min-insn-modes.o): New rules.
5069 (s-modes): Also generate min-insn-modes.c.
5070 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
5071 * genmodes.c (struct mode_data): Add format field.
5072 (blank_mode, validate_mode, complete_mode): Update to match.
5073 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
5074 (_SCALAR_MODE): Kill.
5075 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
5076 (emit_insn_modes_c_header): Adjust.
5077 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
5078 (emit_min_insn_modes_c): New functions.
5079 (emit_insn_modes_c): Call emit_real_format_for_mode.
5080 (main): Add -m option to generate min-insn-modes.c.
5081 * machmode.h: Update documentation. Add format argument to
5082 all uses of FLOAT_MODE.
5083 * real.c: Don't define real_format_for_mode here.
5084
5085 * dwarfout.c: Move default definition of PRINT_REG...
5086 * defaults.h: ...here.
5087 * print-rtl.c: Include tm_p.h.
5088 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
5089 Kill.
5090 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
5091 this entire block with #ifndef GENERATOR_FILE.
5092 * regclass.c: Unconditionally define reg_names.
5093 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
5094 Don't define DEBUG_REGISTER_NAMES.
5095 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
5096 redefinition of REGISTER_NAMES.
5097 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
5098
5099 * combine.c: Change all preprocessor conditionals on
5100 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
5101 for clarity.
5102 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
5103 * configure.in: Don't define EXTRA_CC_MODES.
5104 * configure, config.in: Regenerate.
5105 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
5106
5107 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
5108 May assume that GET_MODE_CLASS is accurate for extra CC modes
5109 at all times.
5110
5111 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
5112 number of arguments to aggregate_value_p.
5113
5114 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
5115 * machmode.def: Explain ARCH-modes.def. Document
5116 RESET_FLOAT_FORMAT. Improve commentary on various mode
5117 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
5118 XF, or TF modes here. Remove backward-compatibility
5119 definition of CC.
5120
5121 * config/alpha/alpha-modes.def: New file; define TF mode.
5122 * config/arc/arm-modes.def: Define XF mode.
5123 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
5124 float format for SF and DF modes.
5125 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
5126 * config/i386/i386-modes.def: Define XF and TF modes.
5127 * config/i960/i960-modes.def: Define TF mode.
5128 * config/ia64/ia64-modes.def: Define TF and OI modes.
5129 * config/m68k/m68k-modes.def: New file; define XF mode.
5130 * config/mips/mips-modes.def: New file; define TF mode, reset
5131 formats for SF and DF modes.
5132 * config/pa/pa-modes.def: Define TF mode.
5133 * config/rs6000/rs6000.c: Define TF and PSI modes.
5134 * config/s390/s390-modes.def: Define OI mode.
5135 * config/sh/sh-modes.def: New file; define PSI mode.
5136 * config/sparc/sparc-modes.def: Define TF mode.
5137 * config/vax/vax-modes.def: New file; reset formats for SF and
5138 DF modes.
5139
5140 * config/c4x/c4x.c (c4x_override_options): No need to mess
5141 with real_format_for_mode or set REAL_MODE_FORMATs.
5142 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
5143 variable.
5144 * config/i386/i386.c (override_options): No need to set
5145 REAL_MODE_FORMATs here.
5146 * config/i960/i960.c (i960_initialize): Likewise.
5147 * config/m68k/m68k.c (m68k_override_options): Likewise.
5148 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
5149 for TFmode only if not the default.
5150 * config/mips/mips.c (override_options): Likewise.
5151 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
5152 DFmode only if not the default.
5153
5154 * config/i370/i370.h (RET_REG): Don't consider TFmode.
5155 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
5156 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
5157 of modes that don't appear anywhere in the machine description.
5158
5159 * config/arc/arc-modes.def, config/arm/arm-modes.def
5160 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
5161 * config/i386/i386-modes.def, config/i960/i960-modes.def
5162 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
5163 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
5164 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
5165 * config/sparc/sparc-modes.def: Convert to new style for
5166 declaring extra CC modes.
5167
5168 2003-10-13 Zack Weinberg <zack@codesourcery.com>
5169
5170 * cpplex.c (_cpp_clean_line): In the common case of a line
5171 with no trigraphs and no \-newline, avoid writing to memory.
5172 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
5173 of the buffer member. Make c an uchar to avoid unnecessary
5174 sign extensions.
5175
5176 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
5177
5178 * configure.in: Remove unnecessary test.
5179 * configure: Regenerate.
5180
5181 * configure.in: Fix grammatical error. Move UWIN host error to...
5182 * config.host: Here.
5183 * configure: Regenerate.
5184
5185 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
5186
5187 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
5188 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
5189 of flag_unsafe_math_optimizations.
5190 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
5191 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
5192 fused-madd and no-fused-madd.
5193 * doc/invoke.texi: Documented the new options fused-madd and
5194 no-fused-madd for S/390.
5195
5196 2003-10-14 Alan Modra <amodra@bigpond.net.au>
5197
5198 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
5199 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
5200 assign DEFAULT_ABI.
5201 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
5202 * config/rs6000/rs6000.c: Formatting.
5203 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
5204 when rs6000_alignment_string given.
5205
5206 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
5207
5208 PR target/12538
5209 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
5210 (sparc_flat_must_save_register_p): New function to decide whether
5211 a register must be saved/restored in the function prologue/epilogue.
5212 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
5213
5214 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
5215
5216 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
5217 ISO C90 function declarations and definitions.
5218 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
5219
5220 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
5221
5222 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
5223 config files which do the same thing.
5224 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
5225 config/freebsd6.h: Remove now unnecessary files.
5226
5227 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
5228
5229 * c-common.c (c_common_truthvalue_conversion): Warn if the
5230 address of a non-weak function is used as a truth value.
5231
5232 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
5233
5234 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
5235 a literal.
5236 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
5237 instead of a literal.
5238
5239 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
5240
5241 * doc/extend.texi (Function Attributes): Mention the exceptional
5242 path for noreturn-marked functions.
5243
5244 2003-10-12 Jan Hubicka <jh@suse.cz>
5245
5246 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
5247 warning.
5248
5249 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5250
5251 * config/i386/i386.c (x86_this_parameter): Fix typo.
5252
5253 203-10-11 Jan Hubicka <jh@suse.cz>
5254
5255 * Makefile.in (web.o): New.
5256 * web.c: New file.
5257 * rtl.h (web_main): Declare.
5258 * timervar.def (TV_WEB): New.
5259 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
5260 (rest_of_hanle_web): New.
5261 (flag_web): New static variable.
5262 (lang_independent_options): Add "web".
5263 (rest_of_compilation): Call rest_of_handle_web.
5264 * invoke.texi (-fweb): Document.
5265 * common.opt (fweb): New.
5266 * flags.h (flag_web): New.
5267 * opts.c (decode_options): Set flag_web at -O3.
5268
5269 * passes.texi (web construction): Document.
5270 * invoke.texi (-O3): Document that -fweb is enabled.
5271
5272 * regrename.c (regrename_optimize): Deal better with situation when
5273 replacement failed.
5274
5275 * sched-ebb.c: Include params.h and profile.h
5276 (schedule_ebbs): Use tracer parameters to discover superblocks
5277 * Makefile.in (sched-ebb.o): Add dependencies.
5278
5279 2003-10-11 Roger Sayle <roger@eyesopen.com>
5280
5281 * fold-const.c (negate_mathfn_p): New function to determine whether
5282 a built-in mathematical function is sign preserving, f(-x) == -f(x).
5283 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
5284 (tree_swap_operands_p): Change API to take an additional argument
5285 indicating that the swapped operands evaluate in reverse order.
5286 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
5287 operand side-effects or we don't care about flag_evaluation_order.
5288 (reorder_operands_p): New function to check whether its safe to
5289 evaluate the given operands in reverse order.
5290 (negate_expr_p): We can always negate integer constants unless
5291 we honor -ftrapv and the signed type would overflow. Only allow
5292 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
5293 negation of COMPLEX_CST if both real and imaginary parts can be
5294 negated. Allow negation through floating point extensions and
5295 sign-preserving built-in functions.
5296 (negate_expr): Move the code to negate integers from "fold" to
5297 here. Always negate integer constants unless we honor -ftrapv
5298 and the signed type would overflow. Always negate real constants
5299 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
5300 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
5301 Optimize negation through floating point extensions and
5302 sign-preserving built-in functions (as defined by negate_mathfn_p).
5303 (fold): Adjust calls to tree_swap_operands_p.
5304 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
5305 to negate_expr_p/negate_expr.
5306 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
5307 allowed to convert (-A) - B into (-B) - A.
5308
5309 2003-10-11 Roger Sayle <roger@eyesopen.com>
5310
5311 * builtins.c (expand_builtin_strcmp): Defend against the possibility
5312 that gen_cmpstrsi may fail: Stabilize the argument list against
5313 re-evaluation and expand the library call directly using this saved
5314 argument list if a cmpstrsi sequence can't be generated.
5315 (expand_builtin_strncmp): Likewise.
5316
5317 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
5318
5319 2003-10-11 Roger Sayle <roger@eyesopen.com>
5320
5321 PR optimization/12260
5322 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
5323 operations through CONST nodes. Optimize (neg (plus X C)) as
5324 (minus -C X) for constant values C.
5325 (simplify_binary_operation): Optimize (minus (neg X) C) as
5326 (minus -C X) for constant values C.
5327 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
5328 instead create (minus -C X).
5329
5330 2003-10-11 Roger Sayle <roger@eyesopen.com>
5331
5332 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
5333 safe_from_p for us, once it chooses an evaluation order.
5334 (expand_expr <MULT_EXPR>): Likewise.
5335 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
5336 places the second operand in "target", swap the operands.
5337 (do_store_flag): Let expand_operands call safe_from_p for us.
5338
5339 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
5340
5341 PR optimization/12544
5342 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
5343 for DECL_NONLOCAL decls.
5344
5345 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5346
5347 * expr.c: Follow spelling conventions.
5348 * final.c: Likewise.
5349 * optabs.c: Likewise.
5350 * sched-deps.c: Likewise.
5351 * sdbout.c: Likewise.
5352
5353 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
5354
5355 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
5356 re-computing of variable.
5357
5358 2003-10-11 Richard Henderson <rth@redhat.com>
5359
5360 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
5361 return_in_memory, make static, change signature to match target hook.
5362 (alpha_setup_incoming_varargs): Make static, change signature to
5363 match target hook, add code for vms and unicos.
5364 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5365 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
5366 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
5367 TARGET_STRICT_ARGUMENT_NAMING,
5368 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
5369 * config/alpha/alpha-protos.h: Update.
5370 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
5371 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
5372 SETUP_INCOMING_VARARGS): Remove.
5373 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
5374 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
5375
5376 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
5377
5378 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
5379
5380 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5381
5382 * config/m68k/lb1sf68.asm: Follow spelling conventions.
5383 * config/m68k/m68k.c: Likewise.
5384 * config/m68k/m68k.h: Likewise.
5385 * config/m68k/m68k.md: Likewise.
5386
5387 2003-10-11 Roger Sayle <roger@eyesopen.com>
5388
5389 * builtins.c (expand_builtin_memcpy): Optimize case when the two
5390 pointer arguments are the equal, non-volatile and side-effect free.
5391 (expand_builtin_mempcpy): Likewise.
5392 (expand_builtin_memmove): Likewise.
5393 (expand_builtin_strcpy): Likewise.
5394 (expand_builtin_memcmp): Likewise.
5395 (expand_builtin_strcmp): Likewise.
5396 (expand_builtin_strncmp): Likewise.
5397
5398 2003-10-11 Roger Sayle <roger@eyesopen.com>
5399
5400 * combine.c (apply_distributive_law): Enable "distributive" floating
5401 point optimizations with -funsafe-math-optimizations.
5402
5403 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
5404
5405 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
5406
5407 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5408
5409 * config/m68k/m68k-protos.h: Remove the prototype for
5410 finalize_pic.
5411
5412 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5413
5414 * config/m68k/m68k.c: Fix comment typos.
5415
5416 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5417
5418 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
5419 int to bool.
5420 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
5421 (current_frame): New global var.
5422 (m68k_compute_frame_layout): Cache computations in current_frame.
5423 (m68k_initial_elimination_offset): Use values from current_frame
5424 instead of recomputing them.
5425 (use_return_insn): Likewise.
5426 (m68k_output_function_prologue): Likewise.
5427 (m68k_output_function_epilogue): Likewise.
5428 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
5429 inside the block for __pic__.
5430
5431 2003-10-11 Peter Barada <peter@baradas.org>
5432 Bernardo Innocenti <bernie@develer.com>
5433
5434 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
5435 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
5436 (m68k_interrupt_function_p): New function.
5437 (m68k_handle_fndecl_attribute): Ditto.
5438 (m68k_compute_frame_layout): Ditto.
5439 (m68k_attribute_table): Define back-end specific attributes.
5440 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
5441 functions.
5442
5443 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5444
5445 * config/m68k/t-uclinux: New target Makefile fragment.
5446 * config/m68k/uclinux.h: New target macro file.
5447 * config.gcc (m68k-*-uclinux): New target definition.
5448
5449 2003-10-10 Roger Sayle <roger@eyesopen.com>
5450
5451 * builtins.c (builtin_mathfn_code): Generalize to check whether
5452 the call is to any built-in function by comparing the call's
5453 argument list against the builtin decl's function type.
5454
5455 2003-10-10 Roger Sayle <roger@eyesopen.com>
5456
5457 * cse.c (constant_pool_entries_regcost): New global variable to
5458 hold the register cost component of constant_pool_entries_cost.
5459 (fold_rtx): Calculate constant_pool_entries_regcost at the same
5460 time as constant_pool_entries_cost.
5461 (cse_insn): Set both src_folded_cost and src_folded_regcost from
5462 constant_pool_entries_cost and constant_pool_entries_regcost.
5463 (cse_main): Initialize constant_pool_entries_regcost to zero.
5464
5465 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
5466 the semantics of the sequence of bit operations used to negate
5467 a floating-point value.
5468 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
5469 the semantics of the bit operations used to abs a floating point
5470 value.
5471
5472 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5473 Paul Dale <pauli@snapgear.com>
5474
5475 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
5476 support.
5477 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
5478 -fpic, -fPIC, -msep-data and -mid-shared-library.
5479 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
5480 (override_options): Add -msep-data and -mshared-library-id support.
5481 (m68k_output_function_prologue): Generate code to load A5 for
5482 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
5483 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
5484 (m68k_output_pic_call): New function.
5485 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
5486 (TARGET_ID_SHARED_LIBRARY): Ditto.
5487 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
5488 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
5489 (call_value): Likewise.
5490
5491 2003-10-10 Zack Weinberg <zack@codesourcery.com>
5492
5493 * gengenrtl.c (find_formats, genheader): Make i an unsigned
5494 int, remove cast of NUM_RTX_CODE.
5495 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
5496 entire file. Remove the #ifs on GET_MODE_MASK etc and
5497 GET_MODE_WIDER_MODE etc.
5498
5499 2003-10-10 Eric Christopher <echristo@redhat.com>
5500
5501 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
5502 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
5503 that set mode.
5504 * config/sh/sh.h (MODE_ENTRY): New macro.
5505 (MODE_EXIT): Ditto.
5506 (MODE_AFTER): Ditto.
5507 * config/sh/sh.md: Change for MODE_AFTER. Add
5508 fp_set attribute.
5509 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
5510
5511 2003-10-10 Zack Weinberg <zack@codesourcery.com>
5512
5513 * genmodes.c, mode-classes.def: New files.
5514 * machmode.def: Rewritten to genmodes.c interface.
5515 * Makefile.in (extra_modes_file): New substitution variable.
5516 (MACHMODE_H): No longer includes machmode.def or
5517 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
5518 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
5519 (OBJS-common): Add insn-modes.o.
5520 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
5521 genmodes$(build_exeext).
5522 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
5523 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
5524 (s-genrtl): Don't depend on $(RTL_BASE_H).
5525 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
5526 or $(RTL_BASE_H); just rtl.def.
5527 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
5528 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
5529 substitute definition of NUM_RTX_CODE. Add casts to avoid
5530 warnings.
5531 * machmode.h: Include insn-modes.h, not machmode.def. Include
5532 mode-classes.def to define enum mode_class. Tweak definitions
5533 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
5534 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
5535 (inner_mode_array): Renamed mode_inner.
5536 (mode_base_align): New.
5537 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
5538 mode_unit_size, mode_wider_mode, mode_mask_array,
5539 inner_mode_array, class_narrowest_mode): Delete definitions.
5540 * stor-layout.c (get_mode_alignment): Use mode_base_align.
5541 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
5542 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
5543
5544 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
5545 No need to define BITS_PER_UNIT.
5546
5547 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5548
5549 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
5550 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
5551 (ia64_initialize_trampoline): If not using GAS, declare trampoline
5552 as global.
5553 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
5554 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
5555
5556 * stor-layout.c (compute_record_mode): Don't force BLKmode if
5557 field is zero-length BLKmode.
5558 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
5559 zero-size references.
5560
5561 * combine.c (distribute_links): Properly test for REG being set.
5562
5563 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
5564 gen_lowpart and company except for REG.
5565
5566 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5567
5568 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
5569
5570 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
5571
5572 * config.gcc (mips*-*-netbsd*): Remove content-free line.
5573
5574 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5575
5576 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
5577 gcov_position_t and gcov_type.
5578
5579 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
5580
5581 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
5582 * configure: Regenerate.
5583
5584 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
5585
5586 * config/h8300/h8300.md (define_asm_attributes): Specify
5587 the length of an asm insn more precisely.
5588
5589 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5590
5591 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
5592
5593 2003-10-09 Bob Wilson <bob.wilson@acm.org>
5594
5595 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
5596 FP register number to 48 and MAC16 accumulator to 0x210.
5597
5598 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
5599
5600 * config.gcc: Remove redundant thread_file setting clauses for
5601 various *-*-linux* targets.
5602
5603 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
5604
5605 * config/h8300/h8300.md (define_asm_attributes): New.
5606
5607 2003-10-09 Roger Sayle <roger@eyesopen.com>
5608
5609 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
5610 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
5611
5612 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
5613
5614 * haifa-sched.c (ok_for_early_schedule): New function.
5615 (early_queue_to_ready): New function.
5616 (schedule_block): Allow early removal of insns from Q.
5617 (schedule_insn): Update INSN_TICK in case of premature
5618 issue.
5619 * common.opt (sched_stalled_insns): New flag.
5620 (sched_stalled_insns_dep): New flag.
5621 * flags.h: Same above flags.
5622 * opts.c: Same as above.
5623 * toplev.c: Same as above.
5624 * target.h (targetm.sched.is_costly_dependence): New
5625 hook.
5626 * target-def.h: Same as above.
5627 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
5628 Support new flag -msched-costly-dep.
5629 (DEFAULT_SCHED_COSTLY_DEP): Define.
5630 * config/rs6000/rs6000.c:
5631 (rs6000_is_costly_dependence): New function.
5632 (is_load_insn, is_store_insn): New functions.
5633 (is_load_insn1, is_store_insn1, is_mem_ref): New
5634 functions.
5635 * doc/invoke.texi (-fsched-stalled-insns-dep)
5636 (-fsched-stalled-insns, -msched-costly-dep): Document
5637 options.
5638 * doc/tm.texi (is_costly_dependence): Define new
5639 scheduler target hook.
5640
5641 2003-10-09 Jason Merrill <jason@redhat.com>
5642
5643 PR c++/6392
5644 * c-common.c (c_build_qualified_type): Look through arrays first.
5645 (c_apply_type_quals_to_decl): Look through arrays.
5646
5647 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
5648 types with constructors.
5649
5650 * coverage.c (build_ctr_info_value): Use build_decl to make a
5651 VAR_DECL.
5652 (create_coverage): Likewise.
5653
5654 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
5655 here.
5656 (expand_asm_operands): Not here.
5657 (parse_input_constraint): No longer static.
5658 * tree.h: Declare it.
5659
5660 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
5661
5662 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
5663 libgcc_s.so.
5664 (SHLIB_INSTALL): Likewise.
5665
5666 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
5667
5668 * doc/install.texi: Remove reference to removed 'pthreads' thread
5669 option.
5670
5671 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
5672
5673 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
5674 operand 2.
5675
5676 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
5677
5678 * config.gcc: Don't accept --enable-threads=pthreads. Clean
5679 up related case statements.
5680 * configure.in: Don't accept --enable-threads=pthreads,
5681 decosf1, mach, or os2 (none of which work anyway). Alphabetize
5682 supported thread files in case clause.
5683 * configure: Regenerate.
5684
5685 2003-10-08 Geoffrey Keating <geoffk@apple.com>
5686
5687 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
5688 definition to above SPARC_STACK_BOUNDARY_HACK.
5689
5690 2003-10-08 Jason Merrill <jason@redhat.com>
5691
5692 * c-pretty-print.c (pp_c_postfix_expression)
5693 <COMPOUND_LITERAL_EXPR>: Fix thinko.
5694
5695 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5696
5697 * mklibgcc.in: Don't hide undefined or typeless symbols.
5698
5699 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5700
5701 PR optimization/12142
5702 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
5703 uses of the register in the SET_SRC. Remove unnecessary argument.
5704 * pa.c (legitimize_pic_address): Before reload, use a scratch register
5705 for the intermediate result in loading the address of a SYMBOL_REF.
5706 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
5707 which loads the SYMBOL_REF address.
5708
5709 2003-10-08 Timo Kokkonen <tjko@iki.fi>
5710 Eric Botcazou <ebotcazou@libertysurf.fr>
5711
5712 PR bootstrap/12490
5713 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
5714 to define the size of the extern_C_braces array. Set it to 200.
5715 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
5716
5717 2003-10-08 Carlo Wood <carlo@alinoe.com>
5718
5719 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
5720 a space after the -o option. flex 2.5.31 understands both, with
5721 and without the space. Removed that space.
5722
5723 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
5724
5725 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
5726 (compute_frame_size): Initialize it. Remove the .cprestore slot
5727 from args_size.
5728 (mips_output_function_prologue): Simplify accordingly.
5729 (mips_debugger_offset): Change the mips16 frame pointer offset from
5730 current_function_outgoing_args to cfun->machine->frame.args_size.
5731 (mips_initial_elimination_offset): Likewise.
5732 (mips_expand_prologue): Likewise.
5733 (mips_expand_epilogue): Likewise.
5734
5735 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
5736
5737 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
5738 (EXTRA_MEMORY_CONSTRAINT): Define.
5739 (CAN_ELIMINATE): Remove lwu workaround.
5740 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
5741 Use a 'W' constraint for the source operand.
5742
5743 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
5744
5745 * genopinit.c (main): Output code to declare undefined
5746 variables.
5747
5748 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
5749
5750 * gengtype-lex.l: Remove -Wtraditional cruft.
5751 * Makefile.in (gengtype-lex.c): Likewise.
5752
5753 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5754
5755 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
5756
5757 2003-10-07 Jason Merrill <jason@redhat.com>
5758
5759 PR c++/12519
5760 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
5761 it isn't a decl.
5762
5763 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
5764
5765 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
5766 not overridden.
5767 Fixes PR bootstrap/12173.
5768
5769 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5770
5771 * errors.c: Don't include coretypes.h or tm.h.
5772 (trim_filename): Use IS_DIR_SEPARATOR.
5773 * Makefile.in: Update dependencies of errors.o and
5774 $(BUILD_PREFIX_1)errors.o.
5775
5776 2003-10-07 Geoffrey Keating <geoffk@apple.com>
5777
5778 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
5779 account when aligning arguments.
5780 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
5781 * defaults.h (STACK_POINTER_OFFSET): ... to here.
5782 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
5783 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
5784 (SPARC_STACK_BOUNDARY_HACK): Define.
5785 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
5786 arrange for vector parameters to varargs functions to be passed
5787 in both memory and GPRs when appropriate.
5788 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
5789 aligned.
5790
5791 * hooks.c (hook_bool_tree_true): New.
5792 (hook_rtx_tree_int_null): New.
5793 (hook_rtx_rtx_null): Use NULL, not 0.
5794 * hooks.h: Add 'extern' to everything.
5795 (hook_bool_tree_true): New.
5796 (hook_rtx_tree_int_null): New.
5797 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
5798 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
5799 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
5800 prototype.
5801 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
5802 (setup_incoming_varargs): Prototype.
5803 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
5804 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
5805 (TARGET_STRUCT_VALUE_RTX): Define.
5806 (TARGET_RETURN_IN_MEMORY): Define.
5807 (TARGET_SETUP_INCOMING_VARARGS): Define.
5808 (TARGET_STRICT_ARGUMENT_NAMING): Define.
5809 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
5810 (init_cumulative_args): Use rs6000_return_in_memory.
5811 (setup_incoming_varargs): Make 'static'.
5812 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
5813 (PROMOTE_FUNCTION_RETURN): Delete.
5814 (STRUCT_VALUE): Delete.
5815 (RETURN_IN_MEMORY): Delete.
5816 (SETUP_INCOMING_VARARGS): Delete.
5817
5818 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
5819
5820 * doc/invoke.texi (Warning Options): Simplify and clarify the
5821 descriptions of -Wnonnull and -Winit-self.
5822
5823 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
5824
5825 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
5826 indicees for floating-point conversersion libcalls.
5827
5828 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
5829
5830 * Makefile.in: Add more comments separating large conceptually
5831 separate sections.
5832
5833 * configure.in: Clean up thread file logic.
5834 * configure: Regenerate.
5835
5836 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
5837
5838 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
5839 (switch_to_section): Handle in_readonly_data.
5840 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
5841 readonly data.
5842
5843 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
5844
5845 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
5846 it.
5847 (cbranchne_decr1): New Thumb pattern.
5848 * arm.c (arm_addimm_operand): New insn predicate.
5849 * arm-protos.h: Add a prototype for it.
5850 * arm.h (PREDICATE_CODES): Add it.
5851
5852 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
5853
5854 * sched-int.h (sched_info): New field
5855 sched_max_insns_priority.
5856 * sched-rgn.c (init_ready_list): Add invocations to
5857 targetm.sched.adjust_priority.
5858 (sched_max_insns_priority): Init new field.
5859 * sched-ebb.c (sched_max_insns_priority): Init new field.
5860 * haifa-sched.c (set_priorities): Set
5861 sched_info->sched_max_insns_priority.
5862 * config/rs6000/rs6000.h:
5863 (rs6000_sched_restricted_insns_priority_str): Support new
5864 flag -mprioritize-restricted-insns.
5865 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
5866 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
5867 function.
5868 (rs6000_adjust_priority): Change priority of restricted
5869 insns, using above new function and new flag.
5870 * doc/invoke.texi (-mprioritize-restricted-insns): Document
5871 new option.
5872
5873 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5874
5875 * expr.c (cmpstr_optab, cmpmem_optab): New.
5876 * genopinit.c: Initialize them.
5877 * optabs.h: Declare them.
5878 * optabs.c (init_optabs): Clear them.
5879 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
5880 block memory compare insns, not conditional chains. Restructure
5881 the fallback generation of a call to memcmp/bcmp for better
5882 readability.
5883
5884 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5885
5886 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
5887 (mips_save_restore_fn): New typedef.
5888 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
5889 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
5890 (save_restore_insns): Remove, replacing with...
5891 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
5892 (mips_save_reg, mips_restore_reg): New function.
5893 (mips_expand_prologue, mips_expand_epilogue): Rework.
5894 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
5895 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
5896 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
5897
5898 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5899
5900 * config/mips/mips.c (mips_expand_prologue): Remove unused
5901 traversal of function arguments.
5902
5903 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5904
5905 * doc/invoke.texi: Remove documentation of -mentry.
5906 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
5907 (override_options, mips_save_reg_p): Remove handling.
5908 (compute_frame_size, mips_output_function_prologue): Likewise.
5909 (mips_expand_prologue, mips_expand_epilogue): Likewise.
5910 * config/mips/mips.h (mips_entry_string): Remove declaration.
5911 (TARGET_OPTIONS): Remove -mentry.
5912 * config/mips/mips16.S: Remove mention of -mentry.
5913
5914 2003-10-06 Zack Weinberg <zack@codesourcery.com>
5915
5916 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
5917 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
5918 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
5919 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
5920 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
5921 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
5922 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
5923 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
5924 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
5925 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
5926 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
5927 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
5928 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
5929 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
5930 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
5931 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
5932 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
5933 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
5934 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
5935 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
5936 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
5937 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
5938 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
5939 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
5940 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
5941 (fixunstfti_libfunc): Delete.
5942 * optabs.h (struct optab_handlers): Break out of struct optab.
5943 (struct convert_optab, convert_optab, enum convert_optab_index,
5944 convert_optab_table, sext_optab, zext_optab, trunc_optab,
5945 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
5946 sfloat_optab, ufloat_optab): New.
5947 (set_conv_libfunc): Prototype.
5948 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
5949 (trunc_optab): Renamed btrunc_optab.
5950 * builtins.c (expand_builtin_mathfn): Update to match.
5951 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
5952 (convert_optab_table, new_convert_optab, init_convert_optab)
5953 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
5954 (set_conv_libfunc): New.
5955 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
5956 (expand_float, expand_fix): Use new conversion optabs,
5957 not old insn code tables or long chains of ifs.
5958 (init_optabs): No need to clear old insn code tables.
5959 Initialize the new optabs, not the old libfunc array entries.
5960 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5961 * genopinit.c: Initialize conversion optabs, not the
5962 former insn code tables. Remove unnecessary casts.
5963 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5964 * expr.c (convert_move): Remove redundant check that
5965 to_real==from_real. Use the conversion optabs instead
5966 of long chains of tests of modes. Move partial-integer-mode
5967 interconversion above all integer conversion. Do not recurse
5968 on a value forced into a register in the original mode.
5969
5970 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
5971 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5972 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
5973 in new conversion optabs; do not reference the old libfunc
5974 array entries. No need to include libfuncs.h.
5975
5976 2003-10-06 Roger Sayle <roger@eyesopen.com>
5977
5978 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
5979 point comparison sequence with a REG_EQUAL note that describes
5980 the comparison's semantics.
5981
5982 2003-10-06 Roger Sayle <roger@eyesopen.com>
5983
5984 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
5985 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
5986
5987 2003-10-06 Roger Sayle <roger@eyesopen.com>
5988 Zack Weinberg <zack@codesourcery.com>
5989
5990 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
5991 instruction by using LCT_CONST and then calling emit_libcall_block
5992 ourselves.
5993
5994 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5995
5996 PR optimization/11974
5997 * optabs.c (expand_unop): Promote libcall outmode according to
5998 hard_libcall_value.
5999
6000 2003-10-06 Zack Weinberg <zack@codesourcery.com>
6001
6002 * real.h (REAL_MODE_FORMAT): New macro.
6003 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
6004 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
6005 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
6006 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
6007 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
6008 directly to real_format_for_mode array, wherever possible.
6009
6010 2003-10-06 Devang Patel <dpatel@apple.com>
6011
6012 * dwarf2out.c (is_main_source): Remove variable.
6013 (dwarf2out_start_source_file): Do not check is_main_source.
6014 Do not reset is_main_source.
6015 (dwarf2out_init): Do not initialize is_main_source.
6016
6017 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6018
6019 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
6020 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
6021 introduced some multi-line prototypes.
6022 * fixinc/fixincl.x: Regenerate.
6023
6024 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6025
6026 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
6027 * config/mips/mips.c (stack_operand): New predicate.
6028 * config/mips/mips.md: Use it for the destination of mips16 insns
6029 that store $31.
6030
6031 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6032
6033 * config/mips/mips.md (*lowsi): Renamed from lowsi.
6034 (*lowdi): Likewise lowdi.
6035 (*lowsi_mips16, *lowdi_mips16): New patterns.
6036 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
6037 mips16 CONSTANT_RELOC handling.
6038 (mips_delegitimize_address): Adjust for new sdata representation.
6039
6040 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6041
6042 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
6043 skip any remaining register arguments.
6044
6045 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
6046
6047 * reload.c (find_reloads_subreg_address): Use correct offset for
6048 paradoxical MEM subregs on big-endian targets.
6049
6050 2003-10-06 Andrew Haley <aph@redhat.com>
6051
6052 * tree.c (get_callee_fndecl): Call
6053 lang_hooks.lang_get_callee_fndecl.
6054 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
6055 (lhd_get_callee_fndecl): New.
6056
6057 2003-10-06 Andrew Pinski <apinski@apple.com>
6058
6059 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
6060 error in calculating the length of the string.
6061 (machopic_stub_name): Likewise.
6062
6063 2003-10-06 Roger Sayle <roger@eyesopen.com>
6064
6065 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
6066 describing the return value of the comparison libcall to the
6067 REG_RETVAL instruction of the emitted sequence.
6068
6069 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
6070
6071 PR optimization/12215
6072 * cse.c (cse_set_around_loop): Emit the move at the beginning
6073 of the next basic block for trapping sets.
6074
6075 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
6076
6077 PR optimization/11637
6078 * combine.c (adjust_for_new_dest): New function to adjust the
6079 notes and LOG_LINKS when the dest of an insn has changed.
6080 (try_combine): Use it when deleting the first insn of a two-insn
6081 parallel or splitting a two-load parallel.
6082
6083 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6084
6085 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
6086 if TARGET_EXPLICIT_RELOCS.
6087
6088 2003-10-06 Mark Mitchell <mark@codesourcery.com>
6089
6090 PR bootstrap/12512
6091 * Makefile.in (info): Use double-colon rules.
6092 (dvi): Likewise.
6093 (generated-manpages): Likewise.
6094 * configure.in: Do not create lang.info, lang.dvi, or
6095 lang.generated-manpages hooks.
6096 * configure: Regenerated.
6097 * objc/Make-lang.in (objc.info): Remove.
6098 (objc.dvi): Remove.
6099 (objc.generated-manpages): Remove.
6100 * doc/sourcebuild.texi: Update description of info, dvi, and
6101 generated-manpages hooks.
6102
6103 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6104
6105 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
6106
6107 2003-10-05 Andrew Pinski <apinski@apple.com>
6108
6109 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
6110 errors in memcpy destinations.
6111 (machopic_stub_name): Likewise.
6112
6113 2003-10-05 Andrew Pinski <apinski@apple.com>
6114
6115 * config/darwin.c (machopic_non_lazy_ptr_name):
6116 Change strcat to memcpy and add length together.
6117 (machopic_stub_name): Likewise.
6118
6119 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
6120
6121 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
6122 signal trampoline codes.
6123
6124 2003-10-05 Chris Demetriou <cgd@broadcom.com>
6125
6126 * config/mips/mips.md (*divsf3): Move description of
6127 SB-1 F2 erratum from here to...
6128 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
6129 flag_unsafe_math_optimizations is not.
6130
6131 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
6132
6133 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
6134 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
6135
6136 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6137
6138 * c-pretty-print.c: Fix comment typos.
6139 * c-pretty-print.h: Likewise.
6140 * calls.c: Likewise.
6141 * cfgloopmanip.c: Likewise.
6142 * cgraphunit.c: Likewise.
6143 * cppfiles.c: Likewise.
6144 * final.c: Likewise.
6145 * function.c: Likewise.
6146 * gcov-io.h: Likewise.
6147 * gcse.c: Likewise.
6148 * genoutput.c: Likewise.
6149 * loop.c: Likewise.
6150 * postreload.c: Likewise.
6151 * reg-stack.c: Likewise.
6152 * regmove.c: Likewise.
6153 * sched-int.h: Likewise.
6154 * sched-rgn.c: Likewise.
6155 * simplify-rtx.c: Likewise.
6156 * tree-inline.c: Likewise.
6157 * config/m68hc11/m68hc11.h: Likewise.
6158 * config/mmix/mmix.c: Likewise.
6159 * config/mn10300/mn10300.md: Likewise.
6160 * config/sh/sh.h: Likewise.
6161
6162 2003-10-05 Richard Henderson <rth@redhat.com>
6163
6164 * tree-inline.c (remap_type): New.
6165 (remap_decl): Use it. Remap DECL_SIZE*.
6166 (copy_body_r): Use it.
6167 (walk_tree): Walk TREE_TYPE too.
6168 (copy_tree_r): Don't walk subtrees of types.
6169 * tree.c (variably_modified_type_p): Restructure. Consider integer
6170 types with non-const bounds variably modified.
6171
6172 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6173
6174 * doc/invoke.texi: Fix typos.
6175
6176 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6177
6178 * fold-const.c: Follow spelling conventions.
6179 * function.c: Likewise.
6180 * config/c4x/c4x.h: Likewise.
6181 * config/c4x/c4x.md: Likewise.
6182 * config/frv/frv.md: Likewise.
6183 * config/rs6000/aix.h: Likewise.
6184 * config/rs6000/linux64.h: Likewise.
6185 * config/xtensa/xtensa.c: Likewise.
6186
6187 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6188
6189 * c-pretty-print.c: Fix comment formatting.
6190 * cfglayout.c: Likewise.
6191 * cfgloopanal.c: Likewise.
6192 * cppcharset.c: Likewise.
6193 * dbxout.c: Likewise.
6194 * ggc-page.c: Likewise.
6195 * ggc.h: Likewise.
6196 * target.h: Likewise.
6197
6198 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
6199
6200 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
6201
6202 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
6203
6204 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
6205 Convert to ISO C90 function declarations and definitions.
6206
6207 2003-10-04 Zack Weinberg <zack@codesourcery.com>
6208
6209 * libfuncs.h
6210 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
6211 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
6212 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
6213 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
6214 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
6215 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
6216 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
6217 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
6218 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
6219 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
6220 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
6221 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
6222 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
6223 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
6224 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
6225 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
6226 Delete.
6227 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
6228 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
6229 (le_optab, unord_optab): New.
6230
6231 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
6232 from the code_to_optab table, not a giant switch; use
6233 swap_condition; do widening only if a comparison function that
6234 we can call exists in a wider mode, not if a cmp_optab insn or
6235 libfunc exists in a wider mode; call protect_from_queue
6236 exactly once on each operand.
6237 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
6238
6239 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
6240 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
6241 Set floating point comparison libfuncs using set_optab_libfunc
6242 on the appropriate optab.
6243
6244 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
6245 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
6246 selector conditionals.
6247
6248 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
6249
6250 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
6251 identical to m68hc12 as far as libraries are concerned.
6252
6253 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6254
6255 PR c/12446
6256 * c-typeck.c (convert_for_assignment): Issue an error for
6257 array to pointer assignment after default conversion.
6258 (digest_init): Likewise.
6259
6260 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
6261
6262 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
6263
6264 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
6265
6266 * doc/extend.texi (Function Attributes): Fix title of GNU C
6267 Preprocessor manual.
6268 (C++ Extensions): Fix reference to "Predefined Macros" in the
6269 GNU C Preprocessor manual.
6270
6271 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
6272
6273 * doc/extend.texi: Document how GCC estimates and relies on the size
6274 of an asm.
6275
6276 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
6277
6278 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
6279 arguments downward for big-endian o64.
6280
6281 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
6282
6283 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
6284 PCH generation, avoiding too-frequent flushes when writing to NFS
6285 file system.
6286
6287 2003-10-03 Ziemowit Laski <zlaski@apple.com>
6288
6289 * objc/objc-act.c (lookup_category): Mark as 'inline'.
6290
6291 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
6292 Ziemowit Laski <zlaski@apple.com>
6293
6294 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
6295 New functions.
6296 (lookup_method_in_hash_lists): New parameter indicating whether
6297 we are messaging 'Class' or 'id'.
6298 (check_duplicates): Likewise; do not assume all methods will
6299 be either class or instance methods.
6300 (generate_category, finish_class): Use lookup_category().
6301 (add_method): Use add_method_to_hash_list(); insert instance
6302 methods of root classes into the global class method hash table.
6303 (add_category): Use lookup_category(); avoid constructing
6304 duplicate categories.
6305 (really_start_method): Add method to corresponding @interface,
6306 if not already there (and if the @interface exists).
6307 (finish_message_expr, finish_objc): Adjust calls to
6308 check_duplicates().
6309
6310 2003-10-03 Roger Sayle <roger@eyesopen.com>
6311
6312 PR optimization/9325, PR java/6391
6313 * fold-const.c (fold_convert): For floating point to integer
6314 conversions, return the maximum/minimum representable integer
6315 value if the real constant overflows the destination type.
6316 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
6317 meaning don't truncate the result to a floating point mode.
6318 Simplify the logic by calling real_from_integer directly.
6319 * simplify-rtx.c (simplify_unary_operation): Implement the
6320 same semantics for folding floating point to integer conversions
6321 in RTL.
6322
6323 2003-10-03 Chris Demetriou <cgd@broadcom.com>
6324
6325 * config/mips/mips.c (mips_emit_prefetch): Restructure
6326 to avoid use of arrays, handle indexed prefetch.
6327 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
6328 (ISA_HAS_PREFETCHX): New deffine.
6329 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
6330 update comments.
6331 (prefetch_indexed_di, prefetch_indexed_si): New insns.
6332
6333 2003-10-03 Jeff Sturm <jsturm@one-point.com>
6334 Roger Sayle <roger@eyesopen.com>
6335
6336 PR optimization/12289
6337 * calls.c (emit_call_1): Pretend to have popped the arguments
6338 to noreturn and longjmp functions instead of ignoring them.
6339 (expand_call): Don't adjust stack_pointer_dela while
6340 inhibit_defer_pop is set.
6341
6342 2003-10-03 Andreas Schwab <schwab@suse.de>
6343
6344 PR bootstrap/12276
6345 * configure.in: Check for libunwind on the host only if building
6346 a native compiler.
6347 * configure: Regenerated.
6348
6349 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
6350
6351 * unwind-pe.h (read_encoded_value_with_base): Constify u and
6352 its inizialization cast.
6353
6354 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
6355
6356 PR target/12485
6357 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
6358
6359 2003-10-02 Mark Mitchell <mark@codesourcery.com>
6360
6361 PR optimization/12180
6362 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
6363 functions containing calls to __builtin_next_arg.
6364
6365 2003-10-02 Chris Demetriou <cgd@broadcom.com>
6366
6367 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
6368 in instructions being output.
6369 * config/mips/mips.md (prefetch_si_address): Change third
6370 operand's constraint letter to 'I'.
6371 (prefetch_di_address): Likewise.
6372 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
6373
6374 2003-10-02 Zack Weinberg <zack@codesourcery.com>
6375
6376 * system.h: Poison macros obsoleted by earlier patch.
6377 * config/cris/cris.c: C90-ify a function definition.
6378
6379 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6380
6381 PR/12292
6382 * combine.c (make_field_assignment): Check whether rtx's code
6383 is CONST_INT before using INTVAL.
6384
6385 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6386
6387 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
6388 htab_find_slot_with_hash.
6389 (cgraph_node_for_identifier): Use NO_INSERT.
6390 (cgraph_remove_node): Use NO_INSERT.
6391 (cgraph_varpool_node): Use INSERT.
6392 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
6393
6394 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6395
6396 Waldek Hebisch <hebisch@math.uni.wroc.pl>
6397 PR/12072
6398 * varasm.c (compare_constant): Fix thinko.
6399
6400 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
6401
6402 * config/frv/frv.c (frv_issue_rate): New function.
6403 (frv_pack_insns): Use it.
6404 (TARGET_SCHED_ISSUE_RATE): Define.
6405
6406 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
6407
6408 * config/mcore/mcore.c: Convert to ISO C90 function declarations
6409 and definitions.
6410 * config/mcore/mcore.h: Likewise.
6411 * config/mcore/mcore-protos.h: Likewise.
6412
6413 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
6414
6415 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
6416 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6417
6418 2003-10-01 Per Bothner <pbothner@apple.com>
6419
6420 * c-lex.c (src_line): Remove unneeded static variable.
6421 (cb_line_change): Set input_line directly, instead of src_line.
6422 (get_non_padding_token): We no longer need to compensate for the
6423 "horrible things" the C++ front-end does with the current line number,
6424
6425 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
6426 callback even when popping the main file.
6427 * c-lex.c (fe_file_change): Handle a NULL new_map.
6428 * fix-header.c (cb_file_change): Likewise.
6429 * c-ppoutput.c (pp_file_change): Likewise.
6430
6431 * cppinit.c (cpp_read_main_file): Split into two functions:
6432 Distribute _cpp_stack_file call over the two functions.
6433 (cpp_find_main_file): New function.
6434 Don't call _cpp_do_file_change even if working_directory flag set.
6435 (cpp_push_main_file): New function.
6436 * cppfiles.c (_cpp_find_failed): New helper function.
6437 (find_file): Made non-static and renamed to _cpp_find_file.
6438 (_cpp_stack_file): No longer needed. But note the following.
6439 (stack_file): Made non-static and renamed to _cpp_stack_file.
6440 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
6441 call with calls to cpp_find_main_file and cpp_push_main_file.
6442 (search_path_head): If there is no current buffer, use main_file.
6443 * cpphash.h: Update function declarations.
6444 * cpplib.h: Update function declarations.
6445
6446 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
6447 (c_common_parse_file): No longer need to call cpp_read_main_file
6448 when file_index > 0 (as in multi-file or server compiation).
6449 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
6450 as this now happens before cpp_push_main_file.
6451 (push_command_line_include): When done with options, pass LC_LEAVE
6452 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
6453 (fe_file_change): Handle NULL new_map, and simplify.
6454 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
6455 08-28 change, since we're never called with a NULL buffer.
6456 (_cpp_lex_direct): Likewise.
6457 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
6458 Return false if buffer is NULL at end.
6459
6460 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
6461 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
6462 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
6463 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
6464 remove the unused return_at_eof parameter.
6465 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
6466 Update callers of cpp_push_buffer.
6467
6468 2003-10-01 Zack Weinberg <zack@codesourcery.com>
6469
6470 * target.h (init_libfuncs): New hook.
6471 * target-def.h: Default TARGET_INIT_BUILTINS and
6472 TARGET_INIT_LIBFUNCS to hook_void_void. Add
6473 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
6474 * builtins.c (default_init_builtins): Delete.
6475 * expr.h (default_init_builtins): Delete prototype.
6476 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
6477 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
6478 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
6479 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
6480 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
6481 and UMODDI3_LIBCALL,
6482
6483 * Makefile.in (optabs.o): Depends on target.h.
6484 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
6485 * optabs.c: Include target.h.
6486 (prepare_float_lib_cmp): No need for #ifdef around use of
6487 FLOAT_LIB_COMPARE_RETURNS_BOOL.
6488 (set_optab_libfunc): New function.
6489 (init_optabs): Delete use of all *_LIBCALL defines.
6490 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
6491 * optabs.h: Prototype set_optab_libfunc.
6492
6493 * config.gcc: Remove all references to pa/long_double.h,
6494 ia64/hpux_longdouble.h, and gofast.h.
6495 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
6496 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
6497
6498 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
6499 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
6500 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
6501 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
6502 * config/sparc/sparc.c, config/vax/vax.c:
6503 Provide a definition for TARGET_INIT_LIBFUNCS. Where
6504 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
6505
6506 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
6507 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
6508 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
6509 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
6510 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
6511 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
6512 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
6513 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
6514 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
6515
6516 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
6517 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
6518 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
6519 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
6520 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
6521
6522 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
6523 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
6524 SUN_INTEGER_MULTIPLY_64 to 0.
6525 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
6526 SUN_INTEGER_MULTIPLY_64 to 1.
6527 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
6528 SUN_INTEGER_MULTIPLY_64 to 0.
6529 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
6530 Define US_SOFTWARE_GOFAST.
6531 * config/vax/vax.h: Default TARGET_ELF to 0.
6532 * config/vax/elf.h: Redefine TARGET_ELF to 1.
6533
6534 * config/gofast.h: Don't define any macros here. Provide one
6535 static function, gofast_maybe_init_libfuncs, which does what
6536 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
6537 is already defined. Do not clear negation libfuncs. Do
6538 not mess with HFmode, XFmode, or TFmode libfuncs.
6539
6540 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
6541
6542 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
6543
6544 PR C/12466
6545 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
6546
6547 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6548
6549 * config/mips/xm-iris5.h: Remove, unnecessary.
6550 * config.build (mips-sgi-irix5*): Remove.
6551 (mips-sgi-irix6*o32): Likewise.
6552 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
6553 (mips-sgi-irix5cross64): Likewise.
6554 (mips-sgi-irix5*): Likewise.
6555 * config.host (mips-sgi-irix5*): Remove.
6556 (mips-sgi-irix6*o32): Likewise.
6557
6558 2003-10-01 Zack Weinberg <zack@codesourcery.com>
6559
6560 * dbxout.c (dbxout_fptype_value): Delete.
6561 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
6562
6563 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
6564
6565 * output.h (compute_reloc_for_constant): Declare.
6566 * varasm.c (compute_reloc_for_constant): Extract from...
6567 (output_addressed_constants): ... here. Adjust all callers.
6568
6569 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6570
6571 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
6572 * configure: Rebuilt.
6573
6574 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6575
6576 * fold-const.c (make_range): When handling unsigned, don't reverse
6577 range if high bound is zero.
6578
6579 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
6580
6581 * config/frv/frv.h (PREDICATE_CODES): Added
6582 condexec_si_media_operator, condexec_sf_add_operator and
6583 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
6584 and condexec_sf_unary_operator.
6585
6586 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6587
6588 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
6589 * configure: Rebuilt.
6590
6591 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6592
6593 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
6594 Allow override.
6595 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
6596
6597 2003-09-23 David S. Miller <davem@redhat.com>
6598
6599 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
6600 before redefining.
6601 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6602
6603 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
6604
6605 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
6606 C90 function declarations and definitions.
6607
6608 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
6609
6610 * config.gcc (cris-*-linux*): Revert mistaken commit.
6611
6612 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
6613
6614 PR optimization/11753
6615 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
6616 the length in the non-V9 case.
6617
6618 2003-09-30 Richard Henderson <rth@redhat.com>
6619
6620 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
6621 DWARF_ALT_FRAME_RETURN_COLUMN.
6622 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
6623 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
6624 (uw_frame_state_for): Return end-of-stack for null return address.
6625 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
6626
6627 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
6628 (alpha_expand_prologue): Store a zero for it.
6629 (alpha_expand_epilogue): Don't reload it.
6630 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
6631 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
6632 for the sigframe return address.
6633
6634 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
6635
6636 * sdbout.c: Convert to ISO C90 prototypes.
6637 * objc/objc-act.c: Likewise.
6638
6639 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
6640
6641 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
6642 * config/i386/winnt.c: Likewise.
6643 * config/i386/cygming.h: Likewise.
6644
6645 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
6646
6647 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6648 (A ^ B) - B for any B.
6649
6650 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
6651
6652 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
6653 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
6654
6655 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
6656
6657 * arm/ieee754-sf.S: Tidy formatting.
6658
6659 2003-09-30 Nicolas Pitre <nico@cam.org>
6660
6661 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
6662 and ARM_MOD_BODY.
6663 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
6664 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
6665 added better divisor alignment in the other case.
6666 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
6667 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
6668 macros above, add fast exits for divisor >= dividend, etc.
6669
6670 2003-09-30 Nicolas Pitre <nico@cam.org>
6671
6672 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
6673 L_fixdfsi target.
6674 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
6675
6676 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
6677
6678 * config.gcc: Default use_fixproto to 'no'.
6679
6680 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
6681
6682 PR optimization/12345
6683 * config/mips/mips-protos.h (mips_restore_gp): Remove.
6684 (mips_gp_save_slot): Declare.
6685 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
6686 (mips_gp_save_slot): ...this new function.
6687 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
6688 and mips_output_move to generate the output template.
6689 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
6690 a gp load after a noreturn call. Load the gp using a move rather
6691 than an exception_receiver pattern.
6692 (call_value_internal, call_value_multiple_internal): Likewise.
6693 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
6694
6695 2003-09-30 Carlo Wood <carlo@alinoe.com>
6696
6697 PR debug/12319
6698 * cfglayout.c (insn_scope): Use prologue_locator and
6699 epilogue_locator; return the outer function scope for
6700 pro- and epilogue insns.
6701
6702 2003-09-29 Zack Weinberg <zack@codesourcery.com>
6703
6704 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
6705 REAL_TYPEs based on the bitsize of the type's mode, not the
6706 mode directly.
6707
6708 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6709
6710 * dwarf2out.c (default_eh_frame_section): Split into ...
6711 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
6712 functions.
6713 * output.h (named_section_eh_frame_section): Declare.
6714 (collect2_eh_frame_section): Likewise.
6715
6716 2003-09-29 Zack Weinberg <zack@codesourcery.com>
6717
6718 * real.c (real_sqrt): Use get_canonical_qnan directly.
6719
6720 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
6721
6722 * varasm.c (assemble_real): Use real_to_target directly,
6723 calculate the number of significant elements of the result
6724 array and write them out in a loop, instead of using a giant
6725 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
6726 macro.
6727
6728 2003-09-29 Jan Hubicka <jh@suse.cz>
6729
6730 PR c++/12175
6731 * varasm.c (notice_global_symbol): Discard external symbols.
6732
6733 PR optimization/12286
6734 * gcov-io.c (gcov_read_words): Fix memmove call.
6735 * profile.c (compute_branch_probabilities): Add extra sanity checks.
6736
6737 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6738
6739 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
6740 Solaris 7-9.
6741
6742 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
6743 wildcards which explicitly match micro versions.
6744 * fixinc/fixincl.x: Regenerate.
6745
6746 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6747
6748 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6749 (A ^ B) - B, where B is any power of 2 minus 1.
6750
6751 2003-09-29 Jan Hubicka <jh@suse.cz>
6752
6753 * libgcov.c (gcov_exit): Fix two pastos.
6754
6755 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6756
6757 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
6758 define_split immediately below to form define_insn_and_split.
6759
6760 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6761
6762 * config/h8300/h8300.md (*tstsi_variable_bit): New.
6763 (*tstsi_variable_bit_qi): Likewise.
6764
6765 2003-09-28 Phil Edwards <phil@codesourcery.com>
6766
6767 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
6768 reference name.
6769
6770 2003-09-28 Richard Henderson <rth@redhat.com>
6771
6772 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
6773 file and line separately.
6774
6775 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6776
6777 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
6778 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
6779 "*subdi3_borrow_cconly"): New insns.
6780 ("*addsi3_sub", "*subsi3_sub"): Remove.
6781 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
6782 ("*subsi3_cc"): Fix op_type attribute.
6783
6784 2003-09-28 Richard Henderson <rth@redhat.com>
6785
6786 * stmt.c (expand_asm_operands): Take a location_t, instead of
6787 individual file and line.
6788 * c-typeck.c (c_expand_asm_operands): Likewise.
6789 * tree.h (expand_asm_operands): Update decl.
6790 * c-common.h (c_expand_asm_operands): Likewise.
6791 * c-semantics (genrtl_asm_stmt): Update call.
6792
6793 2003-09-28 Philip Blundell <philb@gnu.org>
6794
6795 * config/arm/arm.c (legitimize_pic_address): Check
6796 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
6797 (arm_assemble_integer): Likewise.
6798
6799 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
6800
6801 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6802 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
6803 config/c4x/c4x.h:
6804 Convert to ISO C90 function declarations and definitions.
6805
6806 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
6807
6808 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
6809 Convert to ISO C90 function declarations and definitions.
6810
6811 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
6812
6813 * config/mips/mips.c (mips_constant_info): Add reloc field.
6814 (mips_classify_constant): Initialize it. Always set SYMBOL to the
6815 underlying symbol, not to an unspec.
6816 (mips_delegitimize_address, print_operand): Clean up accordingly.
6817
6818 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
6819
6820 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
6821 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
6822 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
6823 (mips_classify_constant): Use it.
6824 (mips_splittable_symbol_p): Add an offset argument.
6825 (mips_classify_address): Adjust call accordingly.
6826 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
6827 than a relocation unspec. Update call to mips_splittable_symbol_p.
6828 Generalize the code that copes with symbols + invalid offsets.
6829 (print_operand): Allow '%R' to be applied to small data addresses.
6830 (mips_reloc_string): Remove RELOC_GPREL16.
6831 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
6832 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
6833 relocation operators.
6834 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
6835 constants accordingly.
6836
6837 2003-09-27 Roger Sayle <roger@eyesopen.com>
6838
6839 * toplev.c (flag_evaluation_order): New global variable.
6840 * flags.h (flag_evaluation_order): Prototype here.
6841 * expr.c (expand_operands): If we need to preserve observable
6842 evaluation order, protect exp1 from clobbering exp0's result.
6843
6844 2003-09-28 Andreas Jaeger <aj@suse.de>
6845
6846 * c-decl.c (finish_function): Convert definition to ISO C90.
6847 * ifcvt.c (mark_loop_exit_edges): Likewise.
6848 * ra-rewrite.c (emit_colors): Likewise.
6849
6850 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
6851
6852 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
6853 * config.gcc (arm*-*-uclinux*): Disable fixproto.
6854 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
6855 powerpc-*-eabialtivec*): Disable fixproto.
6856
6857 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
6858
6859 PR optimization/12340
6860 * loop.h (struct induction): Document the new semantics
6861 of the 'same' field for bivs.
6862 * unroll.c (biv_total_increment): Don't count the same
6863 biv increment several times.
6864 (loop_iterations) [GENERAL_INDUCT]: Likewise.
6865
6866 2003-09-27 Graham Stott <graham.stott@btinternet.com>
6867
6868 * unroll.c (loop_interations)[GT]: Add missing break.
6869
6870 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
6871
6872 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
6873 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
6874 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
6875 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
6876 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
6877 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
6878 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
6879 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
6880 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
6881 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
6882 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
6883 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
6884 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
6885 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
6886 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
6887 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
6888 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
6889 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
6890 config/alpha/xm-vms.h, config/arc/arc-modes.def,
6891 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
6892 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
6893 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6894 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
6895 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
6896 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
6897 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
6898 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
6899 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
6900 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
6901 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
6902 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
6903 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
6904 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6905 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
6906 config/i960/i960-c.c, config/i960/i960-coff.h,
6907 config/i960/i960-modes.def, config/i960/i960-protos.h,
6908 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6909 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
6910 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6911 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
6912 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6913 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
6914 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
6915 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
6916 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
6917 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
6918 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
6919 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
6920 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
6921 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
6922 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
6923 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6924 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
6925 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
6926 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
6927 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
6928 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
6929 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
6930 config/mips/vr.h, config/mn10300/linux.h,
6931 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
6932 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
6933 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
6934 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
6935 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
6936 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
6937 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6938 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
6939 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
6940 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
6941 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
6942 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
6943 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
6944 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
6945 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
6946 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
6947 fixinc/fixinc.svr4: GNU CC -> GCC.
6948
6949 2003-09-26 Loren James Rittle <ljrittle@acm.org>
6950
6951 * objc/objc-act.c (tm_p.h): Tweak order.
6952 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
6953
6954 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
6955
6956 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
6957 Include t-slibgcc-elf-ver and t-linux in tmake_file.
6958 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
6959 Disable fixproto.
6960 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
6961 Disable fixproto.
6962 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
6963 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
6964
6965 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
6966
6967 2003-09-26 Loren James Rittle <ljrittle@acm.org>
6968
6969 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
6970 * objc/objc-act.c (tm_p.h): Include.
6971
6972 2003-09-26 Per Bothner <pbothner@apple.com>
6973
6974 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
6975 No longer any need to reverse by recursion.
6976
6977 2003-09-26 Roger Sayle <roger@eyesopen.com>
6978 Richard Henderson <rth@redhat.com>
6979
6980 PR optimization/11741
6981 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
6982 appropriate set to match that in hash_scan_insn. Fall back to
6983 the original copy method, if we can't validate changing insn.
6984 (pre_delete): Only delete instructions that have a single_set,
6985 instead of aborting when we encounter an PARALLEL insn with more
6986 then one SET.
6987
6988 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
6989
6990 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
6991 ("builtin_longjmp"): Insn deleted.
6992 ("save_stack_nonlocal"): Save literal pool base pointer behind
6993 backchain and stack pointer.
6994 ("restore_stack_nonlocal"): Restore literal pool base pointer.
6995 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
6996 the stack save area for the nonlocal goto case.
6997
6998 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6999
7000 PR bootstrap/12358
7001 * pa.c (output_bvb): Fix typo.
7002
7003 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
7004
7005 * expmed.c (store_bit_field): Don't search for an integer mode
7006 unless we need the result.
7007
7008 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
7009
7010 * expr.c (emit_move_insn_1): If there is no move pattern for the
7011 original mode, try using a pattern for the corresponding integer mode.
7012
7013 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
7014
7015 PR middle-end/9200
7016 * combine.c (if_then_else_cond): Tighten mode check.
7017
7018 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7019
7020 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
7021 'struct _cpp_strbuf'.
7022
7023 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7024 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
7025 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
7026 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
7027 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
7028 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
7029 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
7030 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
7031 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
7032 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
7033 * config/i386/i386-aout.h, config/i386/i386-coff.h,
7034 config/i386/i386-interix.h, config/i386/i386-interix3.h,
7035 config/i386/i386-modes.def, config/i386/i386-protos.h,
7036 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
7037 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
7038 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
7039 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
7040 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
7041 "GNU compiler" -> GCC.
7042 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
7043 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
7044 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
7045 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
7046 config/i386/freebsd-aout.h, config/i386/freebsd.h,
7047 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
7048
7049 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
7050
7051 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
7052 "local" to the callgraph dump. Output "after inlining" earlier.
7053 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
7054 callgraph dumps. Correct misspellings.
7055 (cgraph_decide_inlining): Output number of insns before inlining.
7056 Output the calling function into which a function is inlined.
7057 (cgraph_decide_small_functions): Format dump file like always_inline.
7058
7059 2003-09-25 Loren James Rittle <ljrittle@acm.org>
7060
7061 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
7062
7063 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
7064
7065 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
7066 FPR slots in the save area.
7067 (s390_emit_epilogue): Likewise.
7068
7069 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
7070
7071 * cgraph.h (cgraph_remove_edge): Declare.
7072 * cgraph.c (cgraph_remove_edge): Make extern.
7073 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
7074 instead of cgraph_remove_call.
7075
7076 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
7077
7078 * objc/objc-act.c (gen_declaration_1): Fix printf format.
7079
7080 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
7081
7082 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
7083 arm7tdmi core.
7084
7085 2003-09-25 Ziemowit Laski <zlaski@apple.com>
7086
7087 * config/darwin-protos.h (objc_image_info_section):
7088 New prototype.
7089
7090 2003-09-25 Ziemowit Laski <zlaski@apple.com>
7091
7092 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
7093
7094 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7095
7096 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
7097 tsc701 as a --with-cpu, --with-tune setting for sparc.
7098
7099 2003-09-25 Ziemowit Laski <zlaski@apple.com>
7100
7101 * c-parse.in (objc_try_stmt): Do not specify a %type.
7102
7103 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7104
7105 * config.gcc: New 'widely ported system' clause for rtems.
7106 Set thread file there, not in individual clauses.
7107
7108 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
7109
7110 PR target/6222
7111 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
7112 passed on the stack.
7113
7114 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7115
7116 * config.gcc (widely ported systems section): Mostly alphabetize
7117 by system. Comment the case where we can't.
7118 * config.gcc (widely ported systems section): Reindent and clean up.
7119
7120 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
7121 Actually allow ep9312 as an arm --with-arch setting.
7122
7123 * config.gcc (*-hpux11): Disable fixproto.
7124
7125 2003-09-24 Phil Edwards <phil@codesourcery.com>
7126
7127 PR pch/12112
7128 * gcc/cppfiles.c (pch_open_file): Return based on combined
7129 result of all files.
7130 (validate_pch): Return validate flag for current file.
7131
7132 2003-09-24 Roger Sayle <roger@eyesopen.com>
7133
7134 PR bootstrap/12358
7135 * fold-const.c (tree_swap_operands_p): Only reorder operands when
7136 one of the operands is constant.
7137
7138 2003-09-24 Ziemowit Laski <zlaski@apple.com>
7139
7140 MERGE OF objc-improvements-branch into MAINLINE:
7141 * Makefile.in (C_OBJS): Add in stub-objc.o.
7142 (c-parse.y): Change sed demarcations to begin with '@@'.
7143 (stub-objc.o): New rule.
7144 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
7145 flag_replace_objc_classes): New flags.
7146 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
7147 RID_AT_SYNCHRONIZED): New keywords.
7148 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
7149 flag_replace_objc_classes): New flags.
7150 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
7151 objc_comptypes, objc_message_selector, lookup_objc_ivar,
7152 get_current_scope, objc_mark_locals_volatile): New prototypes,
7153 some moved from c-tree.h.
7154 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
7155 (finish_decl): Adjust where objc_check_decl() gets called.
7156 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
7157 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
7158 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
7159 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
7160 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
7161 '@@end_ifc', respectively.
7162 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
7163 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
7164 objc_finally_block): New rules.
7165 (component_decl_list2): Clean up semantic action for @defs construct.
7166 (component_decl, c99_block_start): Remove call to add_objc_decls().
7167 (poplevel): Add call to objc_clear_super_receiver().
7168 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
7169 constructs.
7170 (classdef, methodprotolist): Clean up/simplify.
7171 (methodprotolist2): Eliminate.
7172 (methodproto): Call add_method() instead of add_class_method() and
7173 add_instance_method().
7174 (receiver): Add TYPENAME production.
7175 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
7176 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
7177 AT_SYNCHRONIZED.
7178 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
7179 objc_comptypes, objc_message_selector)
7180 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
7181 struct and pointer types.
7182 (build_c_cast): Do not discard ObjC protocol qualifiers.
7183 (convert_for_assignment): Cache result of comp_target_types() instead
7184 of calling it more than once.
7185 * c.opt (fnext-runtime): Update description string.
7186 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
7187 New ObjC/ObjC++-specific flags.
7188 * function.h (GCC_FUNCTION_H): Header guard.
7189 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
7190 * stub-objc.c: New file, to be used to satisfy references to ObjC
7191 functions by the C and C++ front-ends.
7192 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
7193 * config/darwin.h (FUNCTION): Add in_objc_image_info.
7194 (SECTION_FUNCTION): Add objc_image_info_section.
7195 * doc/invoke.texi: Link to GCC web site for Objective-C information.
7196 (-fconstant-string-class): Update documentation.
7197 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
7198 -fzero-link): New documentation.
7199 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
7200 with '@@'.
7201 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
7202 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
7203 throughout; provide casts for return values from memory allocation
7204 functions (xmalloc, alloca, ggc_alloc, etc.).
7205 (OBJC_VOID_AT_END): New macro.
7206 (rtl.h): Do not #include any more.
7207 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
7208 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
7209 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
7210 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
7211 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
7212 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
7213 val_stack_pop): New.
7214 (objc_check_decl): Fix precondition for error message, along with
7215 the message itself.
7216 (lookup_and_install_protocols): Remove nonexistent protocols from
7217 protocol list instead of returning error_mark_node.
7218 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
7219 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
7220 (synth_module_prologue): General clean-up; construct NeXT-specific
7221 runtime API prototypes if needed.
7222 (build_string_class_template): Remove.
7223 (check_string_class_template, string_layout_checked): New.
7224 (build_objc_string_object): Generalize to work with
7225 -fconstant-string-class.
7226 (build_objc_symtab_template): Fix layout for the NeXT runtime.
7227 (build_metadata_decl): New.
7228 (forward_declare_categories): Call build_metadata_decl() instead of
7229 create_builtin_decl() et al.
7230 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
7231 void_list_node_1.
7232 (build_selector_reference_decl, build_class_reference_decl,
7233 build_objc_string_decl): Do not set TREE_READONLY.
7234 (get_proto_encoding): Do not call hack_method_prototype().
7235 (get_class_reference): Add failure mode for invalid class names;
7236 support -fzero-link; defer if in an ObjC++ template declaration.
7237 (objc_declare_alias, objc_declare_class): Fix up duplicate name
7238 lookup; check for global scope if in ObjC++.
7239 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
7240 RECORD_TYPE, IDENTIFIER_NODE, etc.)
7241 (objc_is_id): Removed.
7242 (objc_is_object_ptr): New function.
7243 (get_class_ivars_from_name): New function, used for @defs construct.
7244 (get_class_ivars): Add option to return raw ivars; create a
7245 ClASS_OWN_IVARS list for each class as needed.
7246 (objc_enter_block, objc_exit_block, objc_declare_variable,
7247 objc_build_throw_stmt, val_stack_push, val_stack_pop,
7248 objc_build_try_enter_fragment, objc_build_extract_expr,
7249 objc_build_try_exit_fragment, objc_build_extract_fragment,
7250 objc_build_try_prologue, objc_build_try_epilogue,
7251 objc_build_catch_stmt, objc_build_catch_epilogue,
7252 objc_build_finally_prologue, objc_build_finally_epilogue,
7253 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
7254 objc_build_synchronized_epilogue, build_objc_exception_stuff):
7255 New functions.
7256 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
7257 the future).
7258 (build_private_template): Fix up calls to get_class_ivars().
7259 (offset_is_register, forwarding_offset): Remove.
7260 (objc_method_parm_type, objc_encoded_type_size): New functions.
7261 (encode_method_prototype): Simplify to no longer depend on
7262 back-end information.
7263 (build_tmp_function_decl_xxx, build_tmp_function_decl,
7264 hack_method_prototype): Removed.
7265 (generate_protocol_references): Remove calls to
7266 build_tmp_function_decl().
7267 (generate_protocols): Adjust calls to encode_method_prototype().
7268 (build_class_template): Generate sel_id' and 'gc_object_type' fields
7269 for the NeXT runtime.
7270 (synth_forward_declarations): Call build_metadata_decl().
7271 (check_ivars): Check that the number of ivars matches also.
7272 (build_super_template): Modify super_type directly; disable debugging
7273 output while generating decl.
7274 (build_ivar_list_initializer): Skip list elements that are not
7275 FIELD_DECLs.
7276 (ivar_list_length): New function.
7277 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
7278 and encode_method_prototype() instead of encode_method_def().
7279 (build_shared_structure_initializer): Generate 'sel_id' field for
7280 the NeXT runtime.
7281 (generate_category): Do not set TREE_USED.
7282 (build_keyword_selector): Ditto; transform into a function argument
7283 chain.
7284 (get_arg_type_list): If there are no user-specified arguments, use
7285 '...'; use OBJC_VOID_AT_END.
7286 (check_duplicates): Add a parameter indicating whether methods or
7287 selectors are being checked.
7288 (receiver_is_class_object): Add parameters indicating whether
7289 receiver is 'self' or 'super'; robustify.
7290 (build_message_expr): Defer call to finish_message_expr() if
7291 inside an ObjC++ template.
7292 (lookup_method_in_hash_lists): New function.
7293 (finish_message_expr): Complete rewrite/fix.
7294 (build_objc_method_call): Ditto; factor out commonalities between
7295 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
7296 messenger variants on the NeXT.
7297 (lookup_instance_method_static, lookup_class_method_static):
7298 Fold into a single lookup_method_static() function with an
7299 additional parameter.
7300 (add_class_method, add_instance_method): Fold into a single
7301 add_method() function with an additional parameter.
7302 (add_category): Make duplicate categories a hard error in ObjC++.
7303 (add_instance_variable): Properly handle unnamed ivars, arrays of
7304 zero or no size and bitfields. In ObjC++, check for nontrivial
7305 C++ class instances.
7306 (is_public): Allow C functions to access non-@public ivars, with
7307 a warning.
7308 (start_class): Move common initializations to
7309 synth_module_prologue(); check for global scope if in ObjC++.
7310 (continue_class): Fix calls to finish_struct().
7311 (objc_declare_protocols, start_protocol): Check for global scope
7312 if in ObjC++.
7313 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
7314 (encode_aggregate_within): Rewrite to properly distinguish
7315 struct tags from typedefs in both ObjC and ObjC++.
7316 (encode_bitfield, encode_complete_bitfield): Remove.
7317 (encode_next_bitfield, encode_gnu_bitfield): New functions.
7318 (encode_field_decl): Call encode_next_bitfield() or
7319 encode_gnu_bitfield() as needed.
7320 (synth_self_and_ucmd_args): New function.
7321 (start_method_def): Use it.
7322 (objc_types_are_equivalent): New function.
7323 (comp_proto_with_proto): Use it instead of comptypes(), since
7324 we need symmetry.
7325 (really_start_method): Use lookup_method_static() instead of
7326 lookup_class_method_static() and lookup_instance_method_static();
7327 Emit 'extern "C"' if in ObjC++ mode.
7328 (add_objc_decls): Removed.
7329 (UOBJC_SUPER_scope): New variable.
7330 (get_super_receiver): Move construction of 'super' from
7331 add_objc_decls(); remove dependency on struct objc_class.
7332 (encode_method_def): Removed; encode_method_prototype() is
7333 used instead.
7334 (objc_clear_super_receiver): New function.
7335 (objc_expand_function_end): Do not do anything for ordinary
7336 C functions.
7337 (finish_method_def): Mark ObjC methods as un-inlinable.
7338 (gen_declaration_1): Emit widths of bitfields.
7339 (finish_objc): Call generate_objc_image_info() if needed;
7340 use check_duplicates() when checking for selector duplicates.
7341 (generate_objc_image_info): New function.
7342 * objc/objc-act.h (add_instance_method, add_class_method,
7343 get_class_ivars): Remove prototypes.
7344 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
7345 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
7346 objc_build_catch_stmt, objc_build_catch_epilogue,
7347 objc_build_finally_prologue, objc_build_finally_epilogue,
7348 add_method, get_class_ivars_from_name): New prototypes.
7349 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
7350 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
7351 TRANSLATION_UNIT_DECLs.
7352 (OBJC_TYPE_NAME): New.
7353 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
7354 got included.
7355 (IS_SUPER): Robustify.
7356 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
7357 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
7358 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
7359 objc_exception_match_decl, objc_exception_throw_decl,
7360 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
7361 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
7362 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
7363 objc_catch_type): New ObjC/ObjC++ roots.
7364 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
7365 ObjC/ObjC++ tree node codes.
7366
7367 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
7368
7369 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
7370 code path that calls a handler.
7371
7372 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
7373
7374 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
7375 Disable fixproto.
7376
7377 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
7378 the section giving $with_cpu defaults by target.
7379
7380 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
7381 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
7382 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
7383 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
7384 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
7385 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
7386
7387 2003-09-24 David Edelsohn <edelsohn@gnu.org>
7388
7389 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
7390 together. Protect load string instruction with TARGET_STRING.
7391 (movti_string): Collapse case 1 and 2 together.
7392
7393 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
7394
7395 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
7396
7397 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
7398
7399 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
7400 do...while(0)
7401
7402 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7403
7404 * config.gcc: Move use_fixproto=no from generic vxworks clause to
7405 specific one.
7406
7407 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
7408 (accidentally missed in last pass).
7409
7410 2003-09-23 Andrew Pinski <apinski@apple.com>
7411
7412 PR bootstrap/12383
7413 * configure: Regenerate.
7414
7415 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7416
7417 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
7418 missed in last pass).
7419
7420 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
7421
7422 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
7423 constant.
7424
7425 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7426
7427 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
7428
7429 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
7430 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
7431 powerpcle-*-eabi*): Disable fixproto.
7432
7433 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
7434 specific FreeBSD clauses.
7435 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
7436 specific NetBSD clauses.
7437 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
7438 to specific OpenBSD clauses.
7439
7440 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7441
7442 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
7443 without adding a frame note.
7444 * pa.md (allocate_stack): Save pic register in new frame marker when
7445 generating pic code.
7446
7447 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
7448
7449 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
7450 cgraph_expand_functions.
7451
7452 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7453
7454 * Makefile.in (gnucompare*): Merge into ...
7455 (slowcompare*): ... here.
7456 (fastcompare*): New targets.
7457 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
7458 other "fast" cmp programs.
7459 * configure: Regenerate.
7460
7461 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7462
7463 * targhooks.c: Include output.h.
7464 * Makefile.in (targhooks.o): Add output.h to dependency list.
7465
7466 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7467
7468 * config.host: Removed superfluous newline.
7469
7470 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7471
7472 * config.gcc: Use ${target}, not $machine.
7473 * configure.in: Don't set $machine.
7474 * configure: Regenerate.
7475
7476 2003-09-23 Geoffrey Keating <geoffk@apple.com>
7477
7478 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
7479
7480 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
7481 pass zero-size arrays by reference.
7482 (rs6000_va_arg): Likewise.
7483
7484 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7485
7486 * config.gcc: Set use_fixproto=no in each specific *-gnu*
7487 configuration, rather than the generic one.
7488
7489 2003-09-23 Richard Henderson <rth@redhat.com>
7490
7491 * tree-inline.c (remap_save_expr): Map new save_expr to identity
7492 rather than to error_mark_node.
7493
7494 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7495
7496 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
7497 Update description.
7498 * configure: Regenerate.
7499 * config.in: Likewise.
7500 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
7501 HAVE_GAS_SHF_MERGE value.
7502 * varasm.c (mergeable_string_section): Likewise.
7503 (mergeable_constant_section): Likewise.
7504
7505 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7506
7507 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
7508 value.
7509
7510 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7511
7512 * target.h (struct gcc_target): New member external_libcall.
7513 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
7514 (TARGET_ASM_OUT): Use it.
7515 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
7516 * targhooks.c: Convert to ISO C 90.
7517 (default_external_libcall): New function.
7518 * targhooks.h (default_external_libcall): Declare.
7519 * varasm.c (assemble_external_libcall): Use
7520 targetm.asm_out.external_libcall instead of
7521 ASM_OUTPUT_EXTERNAL_LIBCALL.
7522 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
7523 (mips_output_external_libcall): Declare.
7524 * config/mips/mips.c (mips_output_external_libcall): Change
7525 definition guard.
7526 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
7527 Only operate for O32 ABI.
7528 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
7529 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
7530 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
7531 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
7532
7533 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
7534
7535 * config.gcc: Do per-target disabling of fixproto here in clauses,
7536 not in t- fragments.
7537 * configure.in: Adjust to set STMP_FIXPROTO correctly.
7538 * configure: Regenerate.
7539 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
7540 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
7541 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
7542 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
7543 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
7544 t-interix, t-linux-aout: Delete files consisting only of
7545 setting of STMP_FIXPROTO.
7546
7547 * config.host: Allow unknown hosts (not targets). Allow
7548 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
7549 empty clauses. Remove useless obsolete-configuration clause.
7550 Prune unsupported configuration list. Collapse identical
7551 clauses for closely related systems. Rewrite comment for
7552 unsupported hosts list. Reorganize a little.
7553
7554 2003-09-22 Richard Henderson <rth@redhat.com>
7555
7556 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
7557 not precision.
7558
7559 2003-09-22 David Edelsohn <edelsohn@gnu.org>
7560 Hartmut Penner <hpenner@de.ibm.com>
7561 Segher Boessenkool <boessen@de.ibm.com>
7562
7563 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
7564 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
7565 (rs6000_split_altivec_in_gprs): Rename to ...
7566 (rs6000_split_multireg_move): Add support for update addressing.
7567 * config/rs6000/rs6000-protos.h: Same.
7568 * config/rs6000/altivec.md: Same.
7569 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
7570 multiple GPRs.
7571 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
7572 (movti_power): Use new splitter for multiple GPRs.
7573 (movti_string): Same.
7574 (movti_ppc64): Same.
7575
7576 2003-09-22 Bob Wilson <bob.wilson@acm.org>
7577
7578 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
7579 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
7580
7581 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
7582
7583 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
7584 (andsi3): Set attr cc to set_zn when using shifts or adds.
7585
7586 2003-09-22 Bernardo Innocenti <bernie@develer.com>
7587
7588 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
7589
7590 2003-09-22 Bernardo Innocenti <bernie@develer.com>
7591
7592 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
7593 Resurrect -mrtd option.
7594
7595 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
7596
7597 PR target/12281
7598 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
7599 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
7600
7601 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
7602
7603 PR target/9786
7604 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
7605 after potential deletion of trapping insn. Avoids later ICE
7606 from call to fixup_abnormal_edges.
7607 (convert_regs_2): Stack the current block successors before
7608 processing this block, that is, before the potential deletion of
7609 dead edges by convert_regs_1, because these edges have been used
7610 to initialize the predecessors count.
7611
7612 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
7613
7614 * real.c: Fix several nits in the head comment.
7615
7616 2003-09-21 Richard Henderson <rth@redhat.com>
7617
7618 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7619 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7620 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7621 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7622 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
7623
7624 2003-09-21 Richard Henderson <rth@redhat.com>
7625
7626 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
7627 (TREE_FILENAME, TREE_LINENO): Likewise.
7628 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
7629 (TREE_LOCUS_SET_P): New.
7630 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7631 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7632 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7633 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7634 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
7635
7636 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
7637
7638 * config/vax/vax-protos.h: Convert to ISO C90.
7639 * config/vax/vax.c: Convert to ISO C90.
7640
7641 2003-09-21 Graham Stott <grahams@btinternet.com>
7642
7643 PR target/12353
7644 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
7645
7646 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
7647
7648 PR target/12301
7649 * reorg.c (stop_search_p): Return 1 for insns that can
7650 throw internally.
7651
7652 2003-09-20 Richard Henderson <rth@redhat.com>
7653
7654 * c-format.c (gcc_diag_char_table): Add %J.
7655 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
7656 (check_format_types): Fix wanted_type name lookup.
7657 (init_dynamic_diag_info): Setup %J.
7658 * diagnostic.c (text_specifies_location): Implement %J.
7659 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
7660 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
7661 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
7662 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
7663 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
7664
7665 * tree-inline.c: Include intl.h
7666 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
7667 * Makefile.in (tree-inline.o): Update.
7668
7669 2003-09-20 Roger Sayle <roger@eyesopen.com>
7670
7671 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
7672 transformation of a>=0 into (unsigned)a<0x80000000.
7673
7674 2003-09-20 Andrew Pinski <apinski@apple.com>
7675
7676 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
7677
7678 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
7679
7680 * Makefile.in: Don't set (unused) DLLTOOL.
7681
7682 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
7683 Remove obsolete references to ENQUIRE.
7684
7685 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
7686
7687 * configure.in: Remove --with-elf, which doesn't work.
7688 * configure: Regenerate.
7689 * config.gcc: Remove references to $elf, which does nothing.
7690
7691 * config/i386/xm-vsta.h: Remove xm-file believed useless.
7692 * config.build (i386-vsta): Remove reference to it.
7693 * config.host (i386-vsta): Remove reference to it.
7694
7695 2003-09-19 Phil Edwards <phil@codesourcery.com>
7696
7697 * doc/install.texi: Document the multiple testsuite options.
7698
7699 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
7700
7701 * doc/install.texi (Specific): Add the specific versions of GCC
7702 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
7703 version 3 and older was discontinued.
7704
7705 2003-09-19 Joel Sherrill <joel@oarcorp.com>
7706
7707 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
7708 68881.
7709
7710 2003-09-19 Bernardo Innocenti <bernie@develer.com>
7711
7712 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
7713 for -m68030, -m68020-60 and -m68020-40.
7714 * config/m68k/m68k.h (TARGET_68030): New target flag.
7715 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
7716 TARGET_REGPARM): Remove.
7717 * config/m68k/m68k.h: Regroup and renumber target flags.
7718 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
7719 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
7720 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
7721 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
7722 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
7723
7724 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7725
7726 * config/m68k/t-rtems (m68k-*-rtems*): New.
7727 * config.gcc: Use config/m68k/t-rtems.
7728
7729 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7730
7731 * config/mips/t-rtems: New.
7732 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
7733
7734 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
7735
7736 * cgraph.c: Fix typo in debugging output.
7737
7738 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7739 Eric Botcazou <ebotcazou@libertysurf.fr>
7740
7741 PR target/12166
7742 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
7743
7744 2003-09-18 Mike Stump <mrs@apple.com>
7745
7746 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
7747 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
7748 cb_ident, cb_def_pragma): Use fileline typedef.
7749 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
7750
7751 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
7752
7753 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
7754 total parm size if a parm has incomplete type.
7755 (gen_fastcall_suffix): Likewise.
7756
7757 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7758
7759 * except.c (output_function_exception_table): Adjust last change
7760 to handle TYPE of INTEGER_CST.
7761
7762 2003-09-18 Mark Mitchell <mark@codesourcery.com>
7763
7764 PR target/11184
7765 * builtins.c (expand_builtin_apply): Use convert_memory_address
7766 before returning the value.
7767
7768 * alias.c (find_base_value): Simplify use of
7769 convert_memory_address.
7770 (find_base_term): Likewise.
7771 * builtins.c (expand_builtin_stejmp_setup): Likewise.
7772 (expand_builtin_longjmp): Likewise.
7773 (expand_builtin_prefetch): Likewise.
7774 (get_memory_rtx): Likewise.
7775 (expand_builtin_return): Likewise.
7776 (expand_builtin_memcpy): Likewise.
7777 (expand_builtin_strncpy): Likewise.
7778 (expand_builtin_memset): Likewise.
7779 (expand_builtin_va_arg): Likewise.
7780 (expand_builtin_va_copy): Likewise.
7781 (expand_builtin_alloca): Likewise.
7782 * calls.c (expand_call): Likewise.
7783 * except.c (expand_builtin_extract_return_addr): Likewise.
7784 (expand_builtin_eh_return): Likewise.
7785 * explow.c (convert_memory_address): Define even when
7786 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
7787 is already in the right mode.
7788 * explow.c (memory_address): Simplify use of convert_memory_address.
7789 (probe_stack_range): Likewise.
7790 * expmed.c (make_tree): Likewise.
7791 * expr.c (emit_block_move_in_libcall): Likewise.
7792 (expand_assignment): Likewise.
7793 (expand_expr): Likewise.
7794 * function.c (assign_parms): Likewise.
7795 (expand_function_end): Likewise.
7796 * integrate.c (copy_rtx_and_substitute): Likewise.
7797 * stmt.c (expand_computed_goto): Likewise.
7798
7799 2003-09-18 Roger Sayle <roger@eyesopen.com>
7800
7801 * simplify-rtx.c (simplify_unary_operation): Only transform
7802 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
7803 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
7804
7805 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7806
7807 PR target/11674
7808 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
7809
7810 2003-09-18 Roger Sayle <roger@eyesopen.com>
7811
7812 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
7813 PARITY_EXPR): Delete unused tree codes.
7814 * c-common.c (c_common_truthvalue_conversion): Delete references
7815 to FFS_EXPR and POPCOUNT_EXPR.
7816 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
7817 (pp_c_expression): Likewise.
7818 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
7819 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
7820 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
7821 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
7822 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
7823 and long long variants.
7824
7825 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
7826
7827 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
7828 * c-pretty-print.c: Fix formatting.
7829 (pp_c_integer_constant): Append type annotation to literals. Tidy.
7830 (pp_c_type_specifier): Tidy.
7831 (pp_c_compound_literal): New function.
7832 (pp_c_initializer): Simplify..
7833 (pp_c_initializer_list): Likewise.
7834 (pp_c_brace_enclosed_initializer_list): New function.
7835 (pp_c_postfix_expression): Simplify.
7836
7837 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
7838
7839 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
7840 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
7841
7842 2003-09-17 Richard Henderson <rth@redhat.com>
7843
7844 * tree-optimize.c (tree_rest_of_compilation): Save and restore
7845 input_location.
7846
7847 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7848
7849 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
7850
7851 2003-09-17 Richard Henderson <rth@redhat.com>
7852
7853 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
7854
7855 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7856
7857 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
7858 * configure: Regenerate.
7859
7860 2003-09-17 Mark Mitchell <mark@codesourcery.com>
7861
7862 PR debug/12066
7863 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
7864 * langhooks-def.h (lhd_return_null_tree_v): New function.
7865 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
7866 (LANG_HOOKS_DECLS): Add it to the intializer.
7867 * langhooks.c (lhd_return_null_tree_v): New function.
7868 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
7869
7870 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7871
7872 * configure.in: Quote gcc_config_arguments for configargs.h.
7873 * configure: Regenerated.
7874 * gccbug.in: Don't shell-expand gcc_config_arguments.
7875
7876 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
7877
7878 PR c++/11357
7879 * c-pretty-print.c (pp_c_floating_constant): Append
7880 type-annotation to floating constants.
7881
7882 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7883
7884 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
7885 Define _ABIO32.
7886 Use it for _MIPS_SIM.
7887 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
7888
7889 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
7890 Moved ...
7891 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
7892 updating comment.
7893 Fixes PR target/10190.
7894
7895 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7896
7897 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
7898 to shared libraries.
7899
7900 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
7901
7902 PR optimization/11646
7903 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
7904 EDGE_ABNORMAL flag for EH edges.
7905 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
7906 if dead edges were purged.
7907
7908 2003-09-16 Bernardo Innocenti <bernie@develer.com>
7909
7910 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
7911 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
7912 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
7913 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
7914
7915 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
7916
7917 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
7918 returned by tablejump_p.
7919
7920 2003-09-16 Joel Brobecker <brobecker@gnat.com>
7921
7922 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
7923
7924 2003-09-16 Roger Sayle <roger@eyesopen.com>
7925
7926 PR bootstrap/12269
7927 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
7928 argument to be VOIDmode, taking the mode of the comparison from
7929 the operands. Only call simplify_relational_operation if we
7930 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
7931 if comparison has a floating point result. Ensure that the
7932 result is always of the specified mode.
7933 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
7934 (simplify_unary_operation): Ensure the correct mode and cmp_mode
7935 are always passed to simplify_gen_relational. Simplify NOT of
7936 comparison operator in any mode, not just BImode.
7937 (simplify_ternary_operation): Correct tests on the return value
7938 of simplify_relational_operation to use const_true_rtx, not
7939 const1_rtx. Abort if it ever returns a non-constant result.
7940
7941 * cfgloopanal.c (count_strange_loop_iterations): Use the function
7942 simplify_relational_operation, not simplify_gen_relational, if
7943 we're only interested in constant comparisons and will ignore
7944 non-constant results.
7945
7946 2003-09-16 Roger Sayle <roger@eyesopen.com>
7947
7948 * fold-const.c (tree_swap_operands_p): New function to determine
7949 the prefered ordering of operands.
7950 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
7951 operands to commutative, comparison or ternary operators. Replace
7952 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
7953 transformation of A ? B : C into !A ? C : B.
7954
7955 2003-09-16 Jakub Jelinek <jakub@redhat.com>
7956
7957 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7958 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7959 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7960 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7961 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7962 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7963 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7964 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7965
7966 2003-09-16 Jason Merrill <jason@redhat.com>
7967 Jakub Jelinek <jakub@redhat.com>
7968
7969 * c-common.c (handle_warn_unused_result_attribute): New function.
7970 (c_common_attribute_table): Add warn_unused_result.
7971 (c_expand_expr): Issue warning when result of inlined function
7972 with warn_unused_result attribute is ignored.
7973 * calls.c (expand_call): Issue warning when result of function
7974 with warn_unused_result attribute is ignored.
7975 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
7976 * expr.c (expr_wfl_stack): Define.
7977 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
7978 pass const0_rtx as target. Chain locations into expr_wfl_stack.
7979 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
7980 bit if inlined function has warn_unused_result attribute.
7981 * input.h (expr_wfl_stack): Declare.
7982 * doc/extend.texi: Document warn_unused_result attribute.
7983
7984 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
7985
7986 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
7987
7988 2003-09-15 Bob Wilson <bob.wilson@acm.org>
7989
7990 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
7991 ATTRIBUTE_UNUSED.
7992 (call_insn_operand): For PIC, don't allow a direct call to a
7993 function in a different section than the current one.
7994
7995 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7996
7997 * doc/invoke.texi (Warning Options): Add missing hyphen before
7998 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
7999 Move "-Wold-style-definition" to the C-only section.
8000 Fix the ordering of the warning options.
8001
8002 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8003 Jeff Law <law@redhat.com>
8004
8005 * gcse.c (remove_reachable_equiv_notes): New.
8006 replace_store_insn): Call it. Update antic list.
8007 (store_killed_in_insn): Take REG_EQUAL notes into account.
8008 (build_store_vectors, delete_store): Add parameter to
8009 replace_store_insn call.
8010
8011 2003-09-15 Bob Wilson <bob.wilson@acm.org>
8012
8013 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
8014 SYMBOL_REF_LOCAL_P.
8015
8016 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
8017
8018 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
8019 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
8020 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
8021 Likewise.
8022 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
8023 Likewise.
8024 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
8025 * config/sparc/sparc.c (function_arg_padding): Likewise.
8026
8027 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
8028
8029 * haifa-sched.c (schedule_block): Use ready_remove_first instead
8030 of choose_ready for non-dfa insn scheduling.
8031
8032 2003-09-15 Andreas Jaeger <aj@suse.de>
8033 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8034
8035 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
8036 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
8037 * c-parse.in: Warn about old-style parameter definition.
8038 * c-common.c: Define warn_old_style_defintion.
8039 * c-common.h: Declare it.
8040 * c.opt: Add Wold-style-defintion.
8041
8042 2003-09-15 Andreas Jaeger <aj@suse.de>
8043
8044 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
8045 * config/rs6000/rs6000.c: Likewise.
8046
8047 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8048
8049 PR optimization/10914
8050 * expr.h (get_condition, canonicalize_condition): Declaration changed.
8051 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
8052 and canonicalize_condition calls.
8053 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
8054 delete_null_pointer_checks): Ditto.
8055 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
8056 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
8057 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
8058 (canonicalize_condition, get_condition): Allow to return comparisons
8059 of cc mode registers.
8060 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
8061 cc mode registers comparison in condition.
8062
8063 2003-09-12 Mark Mitchell <mark@codesourcery.com>
8064
8065 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
8066 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
8067 function.
8068 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
8069
8070 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
8071
8072 * combine.c (simplify_comparison): Convert
8073 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
8074 (eq (and (lshiftrt X Y) 1) 0).
8075
8076 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
8077
8078 * alias.c: Follow spelling conventions.
8079 * cpphash.h: Likewise.
8080 * fold-const.c: Likewise.
8081
8082 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
8083
8084 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
8085 * c-lex.c (cb_line_change): Skip line changing whenever
8086 c-ppoutput.c would.
8087
8088 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
8089
8090 * ra.c: Convert to ISO C90 prototypes.
8091 * ra-build.c: Likewise.
8092 * ra-colorize.c: Likewise.
8093 * ra-debug.c: Likewise.
8094 * ra-rewrite.c: Likewise.
8095
8096 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
8097
8098 * Makefile.in (%.dvi): Remove excess $(docdir).
8099
8100 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
8101
8102 * function.c (STACK_BYTES): Move definition to head of file.
8103 (assign_parms): Don't pass current_function_pretend_args_size
8104 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
8105 round current_function_pretend_args_size up to STACK_BYTES. Skip any
8106 excess before laying out the argument.
8107
8108 2003-09-14 Andreas Jaeger <aj@suse.de>
8109
8110 * objc/objc-act.c: Convert to ISO C90 prototypes.
8111 * objc/objc-act.h: Likewise.
8112
8113 2003-09-14 Olaf Hering <olh@suse.de>
8114
8115 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
8116
8117 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
8118
8119 PR target/12021
8120 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
8121 as they already are done in config/m68k/m68k.h.
8122 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
8123
8124 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
8125 (machopic_output_stub): Only generate pic base symbols when using pic
8126 and generate them in the form L00000000$spb.
8127
8128 2003-09-13 Richard Henderson <rth@redhat.com>
8129
8130 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
8131 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
8132 * cgraph.h: Update.
8133
8134 2003-09-12 Dale Johannesen <dalej@apple.com>
8135
8136 * config/rs6000/rs6000.c: Fix typos in previous.
8137
8138 2003-09-12 Ziemowit Laski <zlaski@apple.com>
8139
8140 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
8141 when allocating pp->buffer.
8142
8143 2003-09-12 Geoffrey Keating <geoffk@apple.com>
8144
8145 * config/darwin.c (machopic_select_rtx_section): Use
8146 const_data_section for things that might require relocation.
8147
8148 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
8149
8150 PR bootstrap/12264
8151 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
8152
8153 2003-09-12 Bob Wilson <bob.wilson@acm.org>
8154
8155 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
8156 * config/xtensa/linux.h (ASM_SPEC): Likewise.
8157 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
8158 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
8159 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
8160 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
8161 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
8162 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
8163 and redefine corresponding TARGET_* macros with constants from the
8164 xtensa-config.h header.
8165 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
8166 for the options listed above.
8167
8168 2003-09-12 Dale Johannesen <dalej@apple.com>
8169
8170 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
8171 * config/rs6000/rs6000-c.c: Ditto.
8172 * config/rs6000/rs6000.c: Ditto.
8173 * config/rs6000/ sysv4.h: Ditto.
8174
8175 2003-09-12 Chris Lattner <sabre@nondot.org>
8176
8177 * loop.c: Move comments describing BIV's and GIV's to top of file
8178
8179 2003-09-12 Roger Sayle <roger@eyesopen.com>
8180
8181 PR optimization/8967
8182 * alias.c (write_dependence_p): Modify to take an additional constp
8183 argument that controls whether the UNCHANGING_RTX_P flags are used.
8184 (anti_dependence, output_dependence): Adjust write_dependence_p
8185 callers to pass this additional argument, to return the same result.
8186 (unchanging_anti_dependence): New variant of anti_dependence that
8187 ignores the UNCHANGING_RTX_P property on memory references.
8188 * rtl.h (unchaning_anti_dependence): Prototype here.
8189 * flow.c (init_propagate_block): Place fake constant mem writes on
8190 the mem_set_list so that dead writes to const variables are deleted.
8191 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
8192 (mark_used_regs): Likewise.
8193
8194 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
8195
8196 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
8197 (mcore_secondary_reload_class): Declare.
8198 (mcore_output_inline_const_forced): Remove.
8199 * config/mcore/mcore.md (movsi): Remove the code that forced
8200 non-inlineable constants into a register if the target was r15
8201 or the stack pointer. Remove constant restrictions from the main
8202 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
8203 of an r <- P alternative. Remove fallback define_insn for reload.
8204 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
8205 define_insn. Use mcore_output_move in the remaining define_insn.
8206 Adjust condition and constraints in the way as for movsi.
8207 (movdi): Always split unacceptable constants into two. Use
8208 simplify_gen_subreg instead of operand_subword{,_force}.
8209 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
8210 (mcore_output_move): Support HImode and QImode moves as well.
8211 (mcore_m15_operand_p): New function.
8212 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
8213 (mcore_secondary_reload_class): New function.
8214 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
8215 terms of mcore_secondary_reload_class.
8216
8217 2003-09-11 Mike Stump <mrs@apple.com>
8218
8219 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
8220
8221 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8222
8223 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
8224 MODE exactly, then only convert logN(N) -> 1.0 if
8225 flag_unsafe_math_optimizations is set.
8226
8227 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
8228 init_builtin_dconsts): Delete.
8229 * emit-rtl.c (dconstpi, dconste): Define.
8230 (init_emit_once): Initialize dconstpi & dconste.
8231 * real.h (dconstpi, dconste): Declare.
8232
8233 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
8234
8235 PR fortran/11522
8236 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
8237 for ultimate origin even if block is abstract.
8238
8239 2003-09-11 Roger Sayle <roger@eyesopen.com>
8240
8241 * combine.c (combine_simplify_rtx): Move several NOT and NEG
8242 optimizations from here...
8243 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
8244 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
8245
8246 2003-09-11 Richard Henderson <rth@redhat.com>
8247
8248 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
8249 Tweek tests for function already generated.
8250 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
8251 * cgraph.h (cgraph_finalize_function): Update for extra arg.
8252 * c-decl.c (finish_function): Likewise.
8253
8254 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
8255
8256 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
8257
8258 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
8259
8260 * real.c: Update URL to VAX floating point docs.
8261 (decode_vax_d): Extract 8 exponent bits instead of 7.
8262
8263 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
8264
8265 * combine.c (force_to_mode): Set fuller_mask based only on mask,
8266 not op_mode.
8267
8268 2003-09-11 Jan Hubicka <jh@suse.cz>
8269
8270 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
8271 on why function is not inlinable; do not check
8272 the body.
8273 (inline_forbidden_p): Move to...
8274 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
8275 deal with alloca, longjmp.
8276 (inline_forbidden_p): New static function.
8277 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
8278 find_builtin_longjmp_call): Kill.
8279
8280 2003-09-10 Richard Henderson <rth@redhat.com>
8281
8282 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
8283 * cgraphunit.c: Update to match.
8284 (record_call_1): Rearrange. Call lang hook for language nodes.
8285 (cgraph_analyze_function): Don't call lower_function.
8286 * langhooks.h (struct lang_hooks_for_callgraph): Replace
8287 lower_function with analyze_expr.
8288 * langhooks-def.h: Update to match.
8289 * langhooks.c (lhd_callgraph_analyze_expr): New.
8290
8291 2003-09-10 Martin Husemann <martin@duskware.de>
8292
8293 PR target/11965
8294 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
8295 constants greater than 63.
8296 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
8297 against constants greater than 31.
8298 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
8299 constants greater than 63.
8300
8301 2003-09-09 Richard Henderson <rth@redhat.com>
8302
8303 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
8304 * cgraph.h (cgraph_finalize_function): Update.
8305 * c-decl.c (finish_function): Update.
8306
8307 2003-09-09 Devang Patel <dpatel@apple.com>
8308
8309 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
8310 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
8311
8312 2003-09-09 Eric Christopher <echristo@redhat.com>
8313
8314 * configure.in: Change usage of 'head' to 'sed 1q'.
8315 * configure: Regenerate.
8316
8317 2003-09-09 Richard Henderson <rth@redhat.com>
8318
8319 * except.c: Include cgraph.h.
8320 (output_function_exception_table): Invoke
8321 cgraph_varpool_mark_needed_node.
8322 * Makefile.in (except.o): Update.
8323
8324 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
8325
8326 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
8327 and use it throughout.
8328
8329 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8330
8331 * builtins.c (real_dconstp, fold_builtin_logarithm,
8332 fold_builtin_exponent): New, split out from fold_builtin. Also
8333 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
8334 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
8335 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
8336 of hardcoded array size.
8337 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
8338 (tree_expr_nonnegative_p): Likewise.
8339 * real.h (dconst3, dconst10, dconstthird): New.
8340
8341 2003-09-09 Jan Hubicka <jh@suse.cz>
8342
8343 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
8344 inline functions.
8345 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
8346 DECL_SAVED_TREE.
8347
8348 2003-09-09 Roger Sayle <roger@eyesopen.com>
8349
8350 * builtins.c (fold_builtin_cabs): Protect the complex argument
8351 against multiple evaluation when optimizing cabs* into sqrt*.
8352
8353 2003-09-09 Jan Hubicka <jh@suse.cz>
8354
8355 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
8356
8357 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
8358
8359 * Makefile.in: Revert yesterday's change.
8360
8361 2003-09-08 Bernardo Innocenti <bernie@develer.com>
8362 Peter Barada <peter@baradas.org>
8363
8364 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
8365 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
8366 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
8367 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
8368 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
8369 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
8370 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
8371 (m68k_compute_frame_layout): New function.
8372 (m68k_initial_elimination_offset): New function.
8373 (m68k_output_function_prologue): ColdFire-specific movem handling.
8374 (m68k_output_function_epilogue): Likewise.
8375 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
8376 (ARG_POINTER_REGNUM): Add new definition.
8377 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
8378 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
8379 (CAN_ELIMINATE): Likewise.
8380 (INITIAL_ELIMINATION_OFFSET): Likewise.
8381
8382 2003-09-08 Bernardo Innocenti <bernie@develer.com>
8383
8384 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
8385 by removing redundant variable cfa_store_offset.
8386
8387 2003-09-08 Mark Mitchell <mark@codesourcery.com>
8388
8389 * langhooks-def.h (lhd_register_builtin_type): New function.
8390 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
8391 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8392 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
8393 * langhooks.c (lhd_register_builtin_type): New function.
8394 * c-common.h (c_register_builtin_type): Declare.
8395 * c-common.c (c_register_builtin_type): New function.
8396 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
8397 c_register_builtin_type.
8398 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
8399 __float80, and __float128 macros.
8400 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
8401 __float80, and __float128 types.
8402
8403 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8404
8405 * builtin-types.def
8406 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
8407 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
8408 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
8409 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
8410 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
8411 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
8412 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
8413 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
8414 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
8415 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
8416 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
8417 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
8418 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
8419 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
8420 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
8421 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
8422 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
8423 New.
8424 * doc/extend.texi: Document new builtins.
8425
8426 2003-09-09 Jan Hubicka <jh@suse.cz>
8427
8428 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
8429 finalization.
8430 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
8431 functions, check for COMDAT.
8432 (cgraph_assemble_pending_functions): Break out from...
8433 (cgraph_finalize_function): ... here; allow redefinig of extern inline
8434 functions.
8435 (record_call_1): Record function references only in non-unit-at-a-time
8436 mode.
8437 (cgraph_analyze_function): Reset current_function_decl.
8438 (cgraph_finalize_compilation_unit): Assemble pending functions.
8439
8440 2003-09-08 Mark Mitchell <mark@codesourcery.com>
8441
8442 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
8443 (libgov.a): Likewise.
8444 (libgcc_eh.a): Likewise.
8445
8446 2003-09-08 Roger Sayle <roger@eyesopen.com>
8447
8448 * fold-const.c (operand_equal_p): Clarify documentation.
8449
8450 2003-09-08 Richard Henderson <rth@redhat.com>
8451
8452 * c-decl.c (c_expand_body_1): Push and pop function context here.
8453 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
8454 nested argument instead of computing nesting ourselves.
8455
8456 2003-09-08 Jakub Jelinek <jakub@redhat.com>
8457
8458 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
8459 regstack if optimizing but not scheduling after reload.
8460
8461 2003-09-08 Jakub Jelinek <jakub@redhat.com>
8462
8463 * config/sparc/sparc.c (struct machine_function): New type.
8464 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
8465 (sparc_override_options): Initialize init_machine_status.
8466 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
8467 tie_symbolic_operand, tle_symbolic_operand): New functions.
8468 (symbolic_operand): Disallow tls_symbolic_operand.
8469 (symbolic_memory_operand): Likewise.
8470 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
8471 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
8472 New functions.
8473 (sparc_tls_symbol): New variable.
8474 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
8475 legitimize_address): New functions.
8476 (print_operand): Handle %&.
8477 (sparc_init_machine_status, get_some_local_dynamic_name,
8478 get_some_local_dynamic_name_1): New functions.
8479 (sparc_output_dwarf_dtprel): New function.
8480 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
8481 constant_address_p.
8482 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
8483 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
8484 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
8485 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
8486 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
8487 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
8488 (ASM_OUTPUT_DWARF_DTPREL): Define.
8489 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
8490 tie_symbolic_operand, tle_symbolic_operand.
8491 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
8492 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
8493 (tls_call_delay): New attribute.
8494 (in_call_delay): Use it.
8495 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
8496 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
8497 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
8498 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
8499 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
8500 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
8501 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
8502 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
8503 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
8504 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
8505 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
8506 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
8507 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
8508 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
8509 insns.
8510 * config/sparc/sparc-protos.h (legitimate_constant_p,
8511 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
8512 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
8513 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
8514 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8515 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
8516 * configure.in (sparc*-*-*): Add TLS check.
8517 * configure: Rebuilt.
8518
8519 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8520
8521 PR target/11689
8522 * config/i386/i386.c (memory_address_length): Fix computation when
8523 the base is esp or ebp.
8524
8525 2003-09-07 Mark Mitchell <mark@codesourcery.com>
8526
8527 PR c++/11852
8528 * varasm.c (initializer_constant_valid_p): Correct logic for
8529 CONSTRUCTORs.
8530
8531 2003-09-07 Roger Sayle <roger@eyesopen.com>
8532
8533 * expr.c (expand_operands): New function to expand an operand pair.
8534 (expand_expr): Call expand_operands whenever we need to expand both
8535 operands of a binary operator.
8536 (do_store_flag): Likewise for operands of comparison operations.
8537
8538 2003-09-07 Roger Sayle <roger@eyesopen.com>
8539
8540 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
8541 (-A)*B if we care about sign-dependent rounding.
8542
8543 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
8544
8545 * c-pretty-print.h (pp_c_left_brace): Declare.
8546 (pp_c_right_brace): Likewise.
8547 * c-pretty-print.c (pp_c_left_brace): Now a function
8548 (pp_c_right_brace): Likewise.
8549
8550 2003-09-07 Jan Hubicka <jh@suse.cz>
8551
8552 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
8553
8554 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
8555
8556 * diagnostic.c (warn_deprecated_use): Move to toplev.c
8557
8558 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
8559
8560 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
8561 * Makefile.in (langhooks.o): Depend on diagnostic.h
8562
8563 2003-09-06 James E Wilson <wilson@tuliptree.org>
8564
8565 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
8566 simplify.
8567
8568 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
8569
8570 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
8571 and use it throughout.
8572
8573 2003-09-07 Jan Hubicka <jh@suse.cz>
8574
8575 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
8576
8577 * toplev.c (rest_of_decl_compilation): Do not finalize external
8578 virables.
8579
8580 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
8581 functions.
8582 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
8583
8584 2003-09-06 Jan Hubicka <jh@suse.cz>
8585
8586 PR target/12070
8587 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
8588
8589 PR opt/12082
8590 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
8591
8592 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
8593
8594 * diagnostic.c (announce_function): Move to toplev.c.
8595
8596 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8597
8598 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
8599 volatile mem.
8600
8601 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8602
8603 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
8604 when gc checking is enabled.
8605
8606 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
8607
8608 PR c/9862
8609 * c-decl.c (c_expand_body_1): Move return warning from here...
8610 (finish_function): ...to here.
8611
8612 2003-09-05 Geoffrey Keating <geoffk@apple.com>
8613
8614 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
8615 a subset of the input class.
8616
8617 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
8618
8619 * config/i860/i860.c: Follow spelling conventions.
8620 * config/i860/i860.h: Likewise.
8621 * config/sh/sh.h: Likewise.
8622
8623 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
8624
8625 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
8626 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
8627 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
8628
8629 2003-09-05 Roger Sayle <roger@eyesopen.com>
8630 Richard Henderson <rth@redhat.com>
8631
8632 PR optimization/1823
8633 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
8634 multiplication to implement division by constant integer.
8635
8636 2003-09-05 Jan Hubicka <jh@suse.cz>
8637
8638 * opts.c (decode_options): Enable unit-at-a-time at -O2.
8639 * params.def (max-inline-insns-single): Set to 500
8640 (max-inline-insns-auto): Set to 150
8641 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
8642
8643 2003-09-04 Richard Henderson <rth@redhat.com>
8644
8645 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
8646 (cgraph_mark_needed_node): Remove needed argument.
8647 * cgraph.h: Update to match.
8648 * cgraphunit.c (decide_is_function_needed): Split out from ...
8649 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
8650 if we generated the function.
8651 (record_call_1): Update for cgraph_mark_reachable_node.
8652 * varasm.c (mark_referenced): Likewise.
8653 * objc/objc-act.c (mark_referenced_methods): Likewise.
8654
8655 2003-09-04 DJ Delorie <dj@redhat.com>
8656
8657 * targhooks.c: Add comment explaining the migration process.
8658
8659 2003-09-04 Eric Christopher <echristo@redhat.com>
8660
8661 * config/frv/t-frv: Fix path for frv-abi.h.
8662 * config/frv/frv-asm.h: Fix string concatenation.
8663
8664 2003-09-04 DJ Delorie <dj@redhat.com>
8665
8666 * builtins.c (apply_args_size): Guard against a NULL cfun.
8667 (expand_builtin_apply_args_1): Likewise.
8668 (expand_builtin_apply): Likewise.
8669 Fixes PR bootstrap/12172.
8670
8671 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8672
8673 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
8674 assembler supports Sun syntax for cmov.
8675 * configure: Regenerate.
8676 * config.in: Likewise.
8677 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
8678 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
8679 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
8680 Fixes PR target/12101.
8681
8682 2003-09-04 Matt Austern <austern@apple.com>
8683
8684 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
8685 with verbosity 0, instead of DECL_NAME, for human-readable string.
8686
8687 2003-09-04 Eric Christopher <echristo@redhat.com>
8688
8689 * targhooks.c (default_return_in_memory): Allow
8690 unconverted ports.
8691
8692 2003-09-04 Eric Christopher <echristo@redhat.com>
8693
8694 * targhooks.c (default_return_in_memory): Fix typo
8695 in last checkin.
8696
8697 2003-09-04 Eric Christopher <echristo@redhat.com>
8698
8699 * targhooks.c (default_return_in_memory): Fix default
8700 definition.
8701
8702 2003-09-04 Bernardo Innocenti <bernie@develer.com>
8703
8704 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
8705 deleted function.
8706 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
8707 enable coff-only code in m68k.c.
8708
8709 2003-09-04 Nick Clifton <nickc@redhat.com>
8710
8711 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
8712 v850e1.
8713 * config/v850/v850.h: Accept v850e1 as a default CPU.
8714 Accept -mv850e1 as a command line option.
8715 * doc/invoke.texi: Document new -mv850e1 command line switch.
8716 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
8717 -mv850e.
8718
8719 2003-09-04 Nick Clifton <nickc@redhat.com>
8720
8721 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
8722 * config/v850/t-v850: Only produce one extra multilib - for
8723 the v850e.
8724 * config/v850/t-v850e: New file: Only produce one extra
8725 multilib - for the v850.
8726
8727 2003-09-04 Jakub Jelinek <jakub@redhat.com>
8728
8729 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
8730 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
8731 * unwind.h (_Unwind_GetBSP): New prototype.
8732 * libgcc-std.ver: Add empty GCC_3.3.2 version.
8733 * mkmap-symver.awk: For symbol versions with no exported symbols,
8734 don't put anything into version script, just change all symbol
8735 versions which inherit from it to inherit from its ancestor.
8736
8737 2003-09-04 Eric Christopher <echristo@redhat.com>
8738
8739 * config/mips/mips.c (mips_expand_prologue): Convert to
8740 calls.struct_value_rtx hook.
8741 (reg_or_const_float_1_operand): New.
8742 * config/mips/mips.h: Update Comments.
8743 (mips_arg): Add reg_or_const_float_1_operand.
8744 * config/mips/mips.md (divdf3); Convert to expander.
8745 (divsf3): Ditto.
8746 (*divdf3): New pattern.
8747 (*divsf3): Ditto.
8748
8749 2003-09-04 Jan Hubicka <jh@suse.cz>
8750
8751 * toplev.c (wrapup_global_declarations): Fix final pass in
8752 unit-at-atime mode.
8753
8754 2003-09-04 Mark Mitchell <mark@codesourcery.com>
8755
8756 * doc/extend.texi: Document removal of cast-as-lvalue extension in
8757 C++.
8758
8759 2003-09-04 Nicolas Roche <roche@act-europe.fr>
8760
8761 * gcc.c (process_command): Fix typo.
8762
8763 2003-09-03 David O'Brien <obrien@FreeBSD.org>
8764
8765 optimization/11980
8766 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
8767 (PTRDIFF_TYPE): Likewise.
8768 (WCHAR_TYPE_SIZE): Likewise.
8769
8770 2003-09-03 DJ Delorie <dj@redhat.com>
8771
8772 * targhooks.c: New file.
8773 * targhooks.h: New file.
8774 * Makefile.in: Add targhooks.o support.
8775 (function.o): Depend on$(TARGET_H).
8776 (stmt.o): Likewise.
8777 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
8778 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
8779 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
8780 (expand_builtin_saveregs): Convert to
8781 calls.expand_builtin_saveregs hook.
8782 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
8783 here, instead of ...
8784 (get_parm_info) ... here.
8785 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
8786 hook.
8787 (finish_function): Handle calls.promote_prototypes hook here too.
8788 * c-typeck.c (convert_arguments): Convert to
8789 calls.promote_prototypes hook.
8790 (c_convert_parm_for_inlining): Likewise.
8791 * calls.c (initialize_argument_information): Convert to
8792 calls.promote_function_args hook.
8793 (expand_call): Convert to calls.struct_value_rtx,
8794 calls.strict_argument_naming,
8795 calls.pretend_outgoing_varargs_named, and
8796 calls.promote_function_return hooks. Pass fndecl to
8797 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
8798 hooks, so they can use that.
8799 (emit_library_call_value_1): Likewise.
8800 * combine.c (setup_incoming_promotions): Convert to
8801 calls.promote_function_args hook.
8802 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
8803 * expr.c (expand_assignment): Pass call to aggregate_value_p.
8804 (expand_expr): Likewise.
8805 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
8806 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8807 RETURN_IN_MEMORY macro defaults.
8808 * final.c (profile_function): Convert to calls.struct_value_rtx
8809 hook.
8810 * function.c (aggregate_value_p): Accept function type tree as
8811 second parameter; try to deduce fntype from it. Convert to
8812 calls.return_in_memory hook.
8813 (assign_parms): Convert to calls.setup_incoming_varargs,
8814 calls.strict_argument_naming, calls.promote_function_args,
8815 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
8816 aggregate_value_p.
8817 (expand_function_start): Likewise. Convert to
8818 calls.struct_value_rtx hook.
8819 (expand_function_end): Convert to calls.promote_function_return hook.
8820 (allocate_struct_function): Pass fndecl to aggregate_value_p.
8821 * hard-reg-set.h: Update comments to new hook names.
8822 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
8823 * reg-stack.c (stack_result): Likewise.
8824 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
8825 * stmt.c (expand_value_return): Convert to
8826 calls.promote_function_return hook.
8827 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
8828 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8829 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
8830 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
8831 TARGET_STRICT_ARGUMENT_NAMING,
8832 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
8833 * target.h: Likewise.
8834 * tree.h (aggregate_value_p): Also takes a tree to deduce function
8835 attributes from (for target hooks).
8836 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
8837 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
8838 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
8839 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
8840 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
8841 to hooks.
8842
8843 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
8844 to aggregate_value_p.
8845 * config/arm/arm.c (arm_init_cumulative_args,
8846 arm_output_mi_thunk): Likewise.
8847 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
8848 Likewise.
8849 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
8850 mips_can_use_return_insn): Likewise.
8851 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8852 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8853 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
8854 aggregate_value_p.
8855 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
8856 function to aggregate_value_p.
8857 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
8858 aggregate_value_p.
8859
8860 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
8861 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
8862 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
8863 (sh_handle_renesas_attribute, sh_promote_prototypes,
8864 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
8865 sh_setup_incoming_varargs, sh_strict_argument_naming,
8866 sh_pretend_outgoing_varargs_named): New decls.
8867 (targetm): Add new hooks.
8868 (calc_live_regs): Save MACL and MACH if the function has the
8869 renesas attribute.
8870 (sh_expand_prologue): Support renesas attribute.
8871 (sh_builtin_saveregs): Make static.
8872 (sh_build_va_list): Support renesas attribute.
8873 (sh_va_start): Likewise.
8874 (sh_va_arg): Likewise.
8875 (sh_promote_prototypes): New.
8876 (sh_function_arg): New, moved from sh.h. Support renesas
8877 attribute.
8878 (sh_function_arg_advance): Likewise.
8879 (sh_return_in_memory): Likewise.
8880 (sh_strict_argument_naming): Likewise.
8881 (sh_pretend_outgoing_varargs_named): Likewise.
8882 (sh_struct_value_rtx): New.
8883 (sh_attribute): Add renesas attribute.
8884 (sh_handle_renesas_attribute): New.
8885 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
8886 (sh_ms_bitfield_layout_p): Support renesas attribute also.
8887 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
8888 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
8889 -mhitachi.
8890 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
8891 target hooks.
8892 (sh_args): Add renesas_abi flag.
8893 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
8894 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
8895 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
8896 stack for the renesas abi.
8897 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8898 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
8899 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
8900 call cookie to indicate renesas calls.
8901
8902 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
8903
8904 * gcse.c (replace_one_set): New function.
8905 (pre_insert_copy_insn): Change the order of copying
8906 to make copy propagation discover additional PRE opportunities.
8907
8908 2003-09-03 Roger Sayle <roger@eyesopen.com>
8909
8910 PR optimization/11700.
8911 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
8912 of a hard register is representable before trying to simplify it
8913 using subreg_hard_regno.
8914
8915 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8916
8917 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
8918 * configure: Regenerate.
8919
8920 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8921
8922 * intl.h (N_): Remove parentheses.
8923
8924 2003-09-03 Bernardo Innocenti <bernie@develer.com>
8925
8926 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
8927 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
8928 definition and code blocks compiled when not defined.
8929 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
8930 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
8931 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
8932 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
8933
8934 2003-09-03 Jeff Sturm <jsturm@one-point.com>
8935
8936 * cgraphunit.c (visited_nodes): New static variable.
8937 (record_call_1): Use walk_tree with visited_nodes.
8938 (cgraph_create_edges): Use walk_tree with visited_nodes.
8939 Setup/teardown visited_nodes hashtable.
8940
8941 2003-09-03 Roger Sayle <roger@eyesopen.com>
8942
8943 * toplev.c (flag_rounding_math): New global variable.
8944 (f_options): Add to the list of language independent options.
8945 * flags.h (flag_rounding_math): Prototype here.
8946 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
8947 * common.opt (frounding-math): New common command line option.
8948 * opts.c (common_handle_option): Handle OPT_frounding_math.
8949 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
8950
8951 * doc/invoke.texi: Document this new command line option.
8952
8953 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8954
8955 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
8956
8957 2003-09-03 Jan Hubicka <jh@suse.cz>
8958
8959 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
8960 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
8961 * c-objc-common.c: Kill include of gt-c-objc-common.h
8962 (expand_deferred_fns, deffer_fn): Kill function.
8963 (deferred_fns): Kill variable.
8964 (finish_cdtor): Update finish_function call.
8965 (c_objc_common_finish_file): Always call cgraph code.
8966 * c-parse.c: Regenerate.
8967 * c-parse.y: Regenerate.
8968 * c-tree.h (finish_function): Update prototype.
8969 * objc-acct.c (build_module_descriptor, finish_method_def):
8970 Update call of finish_function.
8971 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
8972 forward prototype.
8973 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
8974 function and assemble it if needed.
8975 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
8976 mode.
8977 (cgraph_optimize): Likewise.
8978 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
8979 even when it has no inline callees.
8980 * c-parse.in: Update calls to finish_function.
8981
8982 2003-09-03 Nick Clifton <nickc@redhat.com>
8983
8984 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
8985 Use #error to generate the message if TARGET_DEFAULT is not
8986 recognised.
8987
8988 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
8989
8990 * config/mips/mips.h (MASK_UNUSED1): Remove.
8991 (MASK_XGOT, TARGET_XGOT): Define.
8992 (TARGET_SWITCHES): Add an entry for -mxgot.
8993 (ASM_SPEC): Map -mxgot to -xgot.
8994 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
8995 whether we're using a big-GOT sequences.
8996 (mips_legitimize_const_move, mips_expand_call): Likewise.
8997 (override_options): Revert 2003-01-09 change.
8998 * doc/invoke.texi: Document -mxgot.
8999
9000 2003-09-02 Jason Merrill <jason@redhat.com>
9001
9002 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
9003 * config/sparc/sol2.h: Not here.
9004
9005 2003-09-02 Roger Sayle <roger@eyesopen.com>
9006
9007 * expr.c (expand_expr): The code following both_summands performs
9008 the same task as simplify_gen_binary. Replace all gotos to
9009 both_summands with a call to simplify_gen_binary and delete the
9010 now unused label.
9011
9012 2003-09-02 Jason Merrill <jason@redhat.com>
9013
9014 PR c++/7327
9015 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
9016
9017 2003-09-02 Jeff Sturm <jsturm@one-point.com>
9018
9019 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
9020 (cgraph_optimize_function): Set current_function_decl to the
9021 fndecl we're integrating from.
9022
9023 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9024
9025 * builtins.def: Break out _Complex math functions into their
9026 own category.
9027
9028 2003-09-02 Andreas Jaeger <aj@suse.de>
9029
9030 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
9031
9032 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
9033
9034 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
9035 finding the note again.
9036
9037 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
9038
9039 * config.gcc: Remove host-specific rewrites of target_alias.
9040
9041 2003-09-01 Mark Mitchell <mark@codesourcery.com>
9042
9043 * Makefile.in (genprogs): Fix typo.
9044
9045 * Makefile.in (gencheck.o): Remove build commands.
9046 (dummy-conditions.o): Likewise.
9047 (read-rtl.o): Likewise.
9048 (gensupport.o): Likewise.
9049 (genconfig$(build_exeext)): Remove rule.
9050 (genconfig.o): Remove build commands.
9051 (genflags$(build_exeext)): Remove rule.
9052 (genflags.o): Remove build commands.
9053 (gencodes$(build_exeext)): Remove rule.
9054 (gencodes.o): Remove build commands.
9055 (genconstants.o): Remove build commands.
9056 (genemit$(build_exeext)): Remove rule.
9057 (genemit.o): Remove build commands.
9058 (genrecog$(build_exeext)): Remove rule.
9059 (genrecog.o): Remove build commands.
9060 (genextract$(build_exeext)): Remove rule.
9061 (genextract.o): Remove build commands.
9062 (genpeep$(build_exeext)): Remove rule.
9063 (genpeep.o): Remove build commands.
9064 (genattr$(build_exeext)): Remove rule.
9065 (genattr.o): Remove build commands.
9066 (genprognames): New variable.
9067 (genprogs): Likewise.
9068 (genobjs): Likewise.
9069 (genprogs): New rule.
9070 (genobjs): Likewise.
9071 (genattrtab.o): Remove build commands.
9072 (genautomata.o): Likewise.
9073 (genoutput$(build_exeext)): Remove rule.
9074 (genoutput.o): Remove build commands.
9075 (gengenrtl.o): Likewise.
9076 (genpreds.o): Likewise.
9077 (gengtype.o): Likewise.
9078 (genconditions.o): Likewise.
9079 (gen-protos.o): Likewise.
9080 (scan.o): Likewise.
9081 (fix-header.o): Likewise.
9082 (scan-decls.o): Likewise.
9083 (check-g++): Combine with other check targets.
9084 (check-gcc): Likewise.
9085 (check-g77): Likewise.
9086 (check-objc): Likewise.
9087
9088 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
9089
9090 * config.gcc: Remove host-specific stuff which is unused here
9091 since the introduction of config.host.
9092
9093 * doc/fragments.texi: Mention config.host.
9094 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
9095 of config.build, config.host, and config.gcc.
9096
9097 2003-09-01 Zack Weinberg <zack@codesourcery.com>
9098
9099 * c-decl.c (pushdecl): Don't put variables on
9100 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
9101 incomplete.
9102
9103 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
9104
9105 * config.host: New file.
9106 * config.gcc: Remove some host-specific stuff and some
9107 logic needed only for repeated invocation.
9108 * configure.in: Use config.host.
9109 * configure: Regenerate.
9110
9111 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
9112
9113 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
9114 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
9115 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
9116 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
9117 * tree.def (BIT_ANDTC_EXPR): Kill.
9118
9119 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
9120
9121 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
9122 * configure: Regenerate.
9123
9124 * config.gcc: Remove references to install_headers_dir, now unused
9125 since introduction of config.build.
9126 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
9127
9128 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
9129 config.build.
9130
9131 * config.build: New file.
9132 * config.gcc: Remove some build-specific stuff.
9133 * configure.in: Use config.build.
9134 * configure: Regnerate.
9135
9136 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
9137 Roger Sayle <roger@eyesopen.com>
9138
9139 PR middle-end/11823
9140 * stmt.c (expand_end_case_type): Only use jump tables for dense
9141 switch statements when optimizing for size.
9142
9143 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
9144
9145 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
9146 the != 0 case, which ensures pending stack adjustments are flushed.
9147
9148 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9149
9150 * configure.frag: Delete file.
9151 * configure.in: Rename the substitution variables
9152 dep_host_xmake_file and dep_tmake_file to xmake_file and
9153 tmake_file respectively. Do not expand $srcdir in the
9154 value of these; leave that for Make. Introduce a new
9155 substitution varaible, all_lang_makefrags, which lists
9156 subdirectory Make-lang.in files; exclude these from
9157 all_lang_makefiles, which is now only for subdirectory
9158 outputs. Do not invoke configure.frag. Do not set nor
9159 AC_SUBST_FILE target_overrides, host_overrides, or
9160 language_fragments. Create build subdirectories in
9161 config.status extra commands.
9162 * configure: Regenerate.
9163 * Makefile.in: Update substitutions to match changes to
9164 configure. Use include directives instead of @-insertions
9165 to read in host, target, and language fragments.
9166 (Makefile rule): Do not invoke configure.frag. Do not copy
9167 config.status to config.run before executing it. Set
9168 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
9169 regenerated.
9170 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
9171
9172 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9173
9174 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
9175 * c-typeck.c (same_translation_unit_p): New function.
9176 (comptypes): Use it instead of flags parameter to identify
9177 structure types from different translation units.
9178 * c-decl.c (duplicate_decls): Always call comptypes with
9179 COMPTYPE_STRICT flags argument.
9180 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
9181 to file_scope_decl.
9182
9183 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9184
9185 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
9186 * c-decl.c (struct c_scope): Remove "incomplete" field.
9187 (pushdecl): Attach variables with incomplete types to
9188 the TYPE_MAIN_VARIANT of the incomplete type in question.
9189 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
9190 to complete, not at current_scope->incomplete. All such
9191 variables do need completion.
9192
9193 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
9194 Nicolas Pitre <nico@cam.org>
9195
9196 * arm/lib1funcs.asm (RETCOND): Delete.
9197 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
9198 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
9199 (__ARM_ARCH__): Move here from ieee754-?f.S.
9200 (RET, RETc): Clean up definitions.
9201 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
9202 (FUNC_END): New macro that marks the end of any function.
9203 (ARM_FUNC_START): New macro that allows an assembler routine to be
9204 implemented in ARM code even if a Thumb-only build.
9205 Unconditionally include ieee754-?f.S.
9206 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
9207 Mark ends of functions.
9208 Split into separate conditionally-compiled units.
9209 Use RETLDM to return from routines.
9210 * arm/ieee754-sf.S: Similarly.
9211 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
9212 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
9213 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
9214 _fixsfsi and _fixunssfsi.
9215
9216 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
9217 multiplication underflows to zero.
9218 (__adddf3): Fix bug when using VFP ordering on little-endian
9219 processors.
9220 (__fixdfsi): Use rrx to extract the carry into a register instead of
9221 MRS instruction. Optimize later use of result.
9222 * arm/ieee754-sf.S (__fixsfsi): Likewise.
9223 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
9224
9225 2003-08-29 Richard Henderson <rth@redhat.com>
9226
9227 * tree-optimize.c: New file.
9228 * Makefile.in (OBJS-archive): Add tree-optimize.o.
9229 (tree-optimize.o): New.
9230 * c-decl.c (store_parm_decls): Use allocate_struct_function.
9231 (finish_function): Don't free_after_parsing or free_after_compilation.
9232 (set_save_expr_context): Move to tree-optimize.c.
9233 (c_expand_body_1): Use tree_rest_of_compilation.
9234 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
9235 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
9236 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
9237 iterate until closure.
9238 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
9239 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
9240 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
9241 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
9242 * toplev.h (tree_rest_of_compilation): Declare it.
9243
9244 2003-08-29 Richard Henderson <rth@redhat.com>
9245
9246 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
9247 * integrate.c (save_for_inline): Set saved_for_inline.
9248 * c-semantics.c (genrtl_scope_stmt): Check it.
9249 * toplev.c (wrapup_global_declarations): Check it.
9250 (rest_of_handle_inlining): Set and check rtl_inline_init.
9251 (rest_of_compilation): Remove out of date comment.
9252
9253 2003-08-29 Richard Henderson <rth@redhat.com>
9254
9255 * function.c (allocate_struct_function): New, split out of ...
9256 (prepare_function_start, init_function_start): ... here.
9257 * expr.c (init_expr): Use ggc_alloc_cleared.
9258 * stmt.c (init_stmt_for_function): Likewise.
9259 * tree.h (allocate_struct_function): Declare.
9260
9261 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9262
9263 * config.gcc: Don't use negated character class in shell case
9264 clause.
9265
9266 2003-08-29 Richard Henderson <rth@redhat.com>
9267
9268 * function.h (struct function): Move function_frequency and
9269 max_jumptable_ents before start of bit field members.
9270
9271 2003-08-29 Richard Henderson <rth@redhat.com>
9272
9273 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
9274 (fold_builtin_constant_p) ... not here.
9275
9276 2003-08-29 Richard Henderson <rth@redhat.com>
9277
9278 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
9279 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
9280 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
9281
9282 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9283
9284 * builtins.def: Fix typos.
9285 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
9286 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
9287 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
9288 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
9289 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
9290
9291 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
9292 Use ATTR_MATHFN_FPROUNDING_ERRNO.
9293
9294 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9295
9296 * config.gcc (i386-*-vsta): Fix obvious bogosity.
9297
9298 * fixinc/inclhack.def: Remove special cases for unsupported
9299 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
9300 * fixinc/fixincl.x: Regenerate.
9301
9302 2003-08-29 Mark Mitchell <mark@codesourcery.com>
9303
9304 * Makefile.in (cpp.info): Just state dependencies.
9305 (gcc.info): Likewise.
9306 (gccint.info): Likewise.
9307 (gccinstall.info): Likewise.
9308 (cppinternals.info): Likewise.
9309 (cpp.dvi): Likewise.
9310 (gcc.dvi): Likewise.
9311 (gccint.dvi): Likewise.
9312 (gccinstall.dvi): Likewise.
9313 (cppinternals.dvi): Likewise.
9314 (gcov.1): Likewise.
9315 (cpp.1): Likewise.
9316 (gcc.1): Likewise.
9317 (gfdl.7): Likewise.
9318 (gpl.7): Likewise.
9319 (fsf-funding.7): Likewise.
9320 ($(objdir)/%.info): New pattern rule.
9321 (%.dvi): Likewise.
9322
9323 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
9324
9325 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
9326 (restage2): Likewise.
9327 (restage3): Likewise.
9328 (restage4): Likewise.
9329 (restageprofile): Likewise.
9330 (restagefeedback): Likewise.
9331 (bubblestrap): Likewise.
9332
9333 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9334
9335 * config.gcc: Narrow unsupported target match to avoid clobbering
9336 i?86-sequent-sysv4*.
9337
9338 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9339
9340 * builtins.c (mathfn_built_in): Handle new math builtins.
9341
9342 2003-08-28 Per Bothner <per@bothner.com>
9343
9344 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
9345 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
9346 (_cpp_lex_buffer): Likewise.
9347 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
9348
9349 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9350
9351 * config/s390/s390.md ("*mulsi3_sign"): New insn.
9352 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
9353 ("mulsidi3"): ... this new insn.
9354 ("umulsidi3"): New insn.
9355 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
9356 mixed-mode matching constraints.
9357 ("udivmodsi4", "udivmoddisi3"): New insns.
9358 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
9359
9360 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9361
9362 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
9363 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
9364 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
9365 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
9366 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
9367 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
9368 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
9369 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
9370 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
9371 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
9372 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
9373 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
9374 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
9375 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
9376 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
9377 * tree.c: Assign new type_nodes.
9378 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
9379 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
9380 (float_ptr_type_node, double_ptr_type_node,
9381 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
9382
9383 * doc/extend.texi: Document new builtins.
9384
9385 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9386
9387 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
9388 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
9389
9390 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
9391 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
9392 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
9393 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
9394 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
9395 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
9396 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
9397 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
9398 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
9399 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
9400
9401 * doc/extend.texi: Document new builtins.
9402
9403 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
9404
9405 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9406 variants of i?86, powerpcle, and thumb.
9407 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9408 arm and hppa variants.
9409
9410 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9411
9412 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
9413 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
9414 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
9415 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
9416 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
9417 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
9418 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
9419 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
9420 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
9421 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
9422
9423 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
9424 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
9425 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
9426 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
9427 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
9428 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
9429 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
9430 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
9431 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
9432 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
9433 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
9434 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
9435 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
9436 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
9437 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
9438 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
9439 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
9440 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
9441 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
9442 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
9443 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
9444 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
9445 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
9446 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
9447 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
9448 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
9449 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
9450 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
9451 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
9452 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
9453 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
9454
9455 * doc/extend.texi: Document new builtins.
9456
9457 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9458
9459 * config/s390/s390.c (legitmate_constant_p): Use LARL on
9460 zSeries machines even in 31-bit addressing mode.
9461 (legitimate_reload_constant_p): Likewise.
9462 (legitimize_pic_address): Likewise.
9463 (legitimize_tls_address): Likewise.
9464 (s390_split_branches): Likewise.
9465 (s390_dump_pool): Likewise.
9466 (s390_mainpool_finish): Likewise.
9467 (s390_chunkify_start): Likewise.
9468 (s390_select_rtx_section): Likewise.
9469 * config/s390/s390.md ("doloop_si"): Likewise.
9470 ("pool_start_31", "pool_end_31"): Likewise.
9471 ("pool_start_64", "pool_end_64"): Likewise.
9472 ("main_base_31_small", "main_base_31_large"): Likewise.
9473 ("main_base_64"): Likewise.
9474 ("reload_base_31", "reload_base_64"): Likewise.
9475 ("*movsi_larl"): New insn.
9476 ("cjump", "icjump"): Use long branches on zSeries machines.
9477 ("jump"): Likewise.
9478 ("call"): Use BRASL on zSeries machines.
9479 ("call_value", "call_value_tls"): Likewise.
9480 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
9481 and replace by ...
9482 ("*bras", "*brasl", "*basr") ... these new insns.
9483 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
9484 "bas_31_r"): Remove and replace by ...
9485 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
9486 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
9487 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
9488 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
9489 ("*return_si", "*return_di"): Remove and replace by ...
9490 ("*return"): ... this new insn.
9491 ("rotlsi3"): Allow on zSeries machines.
9492
9493 * config/s390/s390.c (legitimize_reload_constant_p): Use
9494 LL/LH type instructions in z/Architecture mode.
9495 * config/s390/s390.md ("*movsi_lli"): Likewise.
9496 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
9497 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
9498 ("*extendqisi2"): Use LB in z/Architecture mode.
9499 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
9500 z/Architecture mode.
9501 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
9502 Likewise.
9503
9504 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
9505 and 31-bit mode.
9506 ("ptr_extend"): Allow only in 64-bit mode.
9507
9508 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
9509
9510 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
9511 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
9512 definitions.
9513 (main): Only use standard_startfile_prefix if native.
9514 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
9515
9516 2003-08-27 Per Bothner <pbothner@apple.com>
9517
9518 * cpperror.c (print_location): Don't check for !pfile->buffer. That
9519 test fails following my 08-21 change, and it seems unnecessary anyway.
9520 (cpp_error): Likewise.
9521
9522 2003-08-27 Jason Merrill <jason@redhat.com>
9523
9524 * real.c (do_multiply): Initialize with memset.
9525
9526 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9527
9528 * gcov.c (typedef struct arc_info): New field cs_count.
9529 (accumulate_line_counts): Find cycles correctly.
9530
9531 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
9532
9533 * config/s390/s390.c (struct machine_function): Remove member
9534 literal_pool_label.
9535 (s390_optimize_prolog): Replace TEMP_REG argument with
9536 TEMP_USED and BASE_USED. Do not check get_pool_size ().
9537 (general_s_operand): Accept all immediates before reload if
9538 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
9539 references.
9540 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
9541 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
9542 (s390_alloc_pool): New function.
9543 (s390_new_pool): Call it.
9544 (s390_dump_pool): Add REMOTE_LABEL argument.
9545 (s390_chunkify_start): Add BASE_REG argument. Do not check
9546 get_pool_size ().
9547 (s390_chunkify_finish): Add BASE_REG argument. Adapt
9548 s390_dump_pool call.
9549 (s390_pool_count, s390_nr_constants): Remove.
9550 (s390_output_constant_pool): Remove.
9551 (s390_mainpool_start): New function.
9552 (s390_mainpool_finish): New function.
9553 (s390_mainpool_cancel): New function.
9554 (s390_reorg): Implement main literal pool handling.
9555 (s390_emit_prologue): Emit main_pool placeholder instead of
9556 literal_pool_31 / literal_pool_64 insns.
9557 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
9558 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
9559 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
9560 ("main_base_31_small", "main_base_31_large"): New insns.
9561 ("main_base_64", "main_pool"): New insns.
9562 ("literal_pool_31", "literal_pool_64"): Remove.
9563
9564 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
9565
9566 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
9567 fixinc.ptx.
9568 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
9569 Prettify a little.
9570 * fixinc/fixincl.x: Regenerate.
9571
9572 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
9573
9574 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
9575 (L_ieee754_dp): New. Include ieee754-df.S.
9576 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
9577 and compilation in apcs-26 mode.
9578 * arm/ieee754-df.S: Likewise.
9579 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
9580 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
9581
9582 2003-08-27 Nicolas Pitre <nico@cam.org>
9583
9584 * arm/ieee754-sf.S: New.
9585 * arm/ieee754-df.S: New.
9586
9587 2003-08-27 Jakub Jelinek <jakub@redhat.com>
9588
9589 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
9590 and restore it if returning NULL.
9591
9592 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
9593
9594 * calls.c (initialize_argument_information): If an argument has no
9595 stack space associated with it, and BLOCK_REG_PADDING is defined,
9596 use it to decide at which end the argument should be padded.
9597 * function.c (assign_parms): Allocate BLKmode stack slots.
9598 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
9599 (mips_pad_reg_upward): Declare.
9600 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
9601 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
9602 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
9603 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
9604 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
9605 (mips_expand_call): Remove code for generating structure shifts.
9606 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
9607 types unless using the EABI.
9608 (function_arg_advance): Don't generate shift instructions.
9609 (function_arg): Don't return them. Don't short-circuit the
9610 check for double structure chunks for DFmode arguments.
9611 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
9612 (mips_expand_prologue): Remove code to emit structure shifts.
9613 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
9614 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
9615 comments to say that only structure returns are a problem.
9616
9617 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
9618
9619 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
9620 Fix to match produced versions.
9621 * fixinc/inclhack.def (longlong_t): New disabled test, ported
9622 from fixinc.svr4.
9623 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
9624 from fixinc.ptx.
9625 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
9626 ported from fixinc.ptx.
9627
9628 2003-08-26 Per Bothner <pbothner@apple.com>
9629
9630 * cpplib.h (struct cpp_token): Change type of field line to fileline.
9631 (cpp_error_with_line): Use fileline for appropriate parameter.
9632 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
9633 (struct cpp_reader): Likewise for fields line and directive_line.
9634 (_cpp_begin_message): Use fileline for appropriate parameter.
9635 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
9636 cpp_error): Use fileline for appropriate parameters and variables.
9637 (print_location): New local lin, since it is not a fileline.
9638
9639 2003-08-26 Roger Sayle <roger@eyesopen.com>
9640
9641 PR middle-end/12002
9642 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
9643 (FLOAT_TYPE_P): Define in terms of these two new macros.
9644 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
9645 for complex floating point types.
9646
9647 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
9648
9649 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
9650 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
9651 s390_output_pool_entry.
9652
9653 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
9654
9655 * fixinc/inclhack.def (svr4_preproc_lint_on,
9656 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
9657 fixes, ported from fixinc.svr4.
9658
9659 2003-08-26 Mark Mitchell <mark@codesourcery.com>
9660
9661 * doc/install.texi (Prerequisites): Mention GNU make requirement.
9662
9663 * Makefile.in (AR_FOR_TARGET): Export it.
9664 (AR_CREATE_FOR_TARGET): Likewise.
9665 (AR_FLAGS_FOR_TARGET): Likewise.
9666 (AR_EXTRACT_FOR_TARGET): Likewise.
9667 (AWK): Likewise.
9668 (BUILD_PREFIX): Likewise.
9669 (BUILD_PREFIX_1): Likewise.
9670 (DESTDIR): Likewise.
9671 (GCC_FOR_TARGET): Likewise.
9672 (INCLUDES): Likewise.
9673 (INSTALL_DATA): Likewise.
9674 (LIB1ASMSRC): Likewise.
9675 (LIBGCC2_CFLAGS): Likewise.
9676 (MACHMODE_H): Likewise.
9677 (NM_FOR_TARGET): Likewise.
9678 (RANLIB_FOR_TARGET): Likewise.
9679 (libsubdir): Likewise.
9680 (slibdir): Likewise.
9681 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
9682 exporting.
9683 (libgcc.a): Don't pass them here.
9684 (stmp-multilib): Or here.
9685 (install-libgcc): Or here.
9686 (install-multilib): Or here.
9687 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
9688 (stage1_build): Or here.
9689
9690 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
9691
9692 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
9693 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
9694
9695 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
9696
9697 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
9698 "*fmaddsf", "*fmsubsf"): New insns.
9699
9700 2003-08-26 Roger Sayle <roger@eyesopen.com>
9701
9702 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
9703 (C1*C2)/X when unsafe math optimizations are allowed.
9704 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
9705 math optimizations. Minor code clean-ups. Recursively call
9706 fold when constructing sub-expressions.
9707
9708 2003-08-26 Roger Sayle <roger@eyesopen.com>
9709
9710 * builtins.c (fold_builtin_bitop): New function to perform constant
9711 folding of ffs, clz, ctz, popcount and parity builtin functions
9712 and their long and long long variants (such as ffsl and ffsll).
9713 (fold_builtin): fold_builtin_bitop when appropriate.
9714 * simplify-rtx.c (simplify_unary_operation): Honor both
9715 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
9716 evaluating clz and ctz at compile-time, for operands wider
9717 than HOST_WIDE_INT.
9718
9719 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
9720
9721 * builtins.c (build_function_call_expr): Don't set
9722 TREE_SIDE_EFFECTS here.
9723 * expr.c (emit_block_move_via_libcall): Likewise.
9724 (clear_storage_via_libcall): Likewise.
9725 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
9726 CALL_EXPRs.
9727
9728 * gcse.c (is_too_expensive): New function.
9729 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
9730
9731 2003-08-25 Zack Weinberg <zack@codesourcery.com>
9732
9733 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
9734 commented-out logic to use DCE threads (if present), add
9735 support for POSIX threads.
9736 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
9737 #defines for -pthread. Add -lpthread to LIB_SPEC when
9738 -pthread. In both cases take -mt as a synonym for -pthread
9739 for acc compatibility.
9740 Define GTHREAD_USE_WEAK to 0.
9741 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
9742 Remove old logic for DCE threads from LIB_SPEC.
9743 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
9744
9745 2003-08-25 Roger Sayle <roger@eyesopen.com>
9746
9747 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
9748 return 0 for invalid argument types. Instead drop through to a
9749 call of expand_call at the bottom of function. If op is SQRT,
9750 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
9751
9752 2003-08-25 Richard Henderson <rth@redhat.com>
9753
9754 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
9755 result when op0 is SImode.
9756
9757 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
9758
9759 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
9760 from fixinc.svr4.
9761 * fixinc/fixincl.x: Regenerate.
9762 * fixinc/tests/base/sys/signal.h: Regenerate.
9763
9764 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9765
9766 * combine.c (simplify_comparison): Re-enable widening of comparisons
9767 with non-paradoxical subregs of non-REG expressions.
9768
9769 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9770
9771 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
9772
9773 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9774
9775 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
9776
9777 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9778
9779 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
9780 * c-pretty-print.h (c_pretty_printer): Now typedef to the
9781 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
9782 (struct c_pretty_print_info): Document. Add new fields.
9783 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
9784 (pp_direct_abstract_declarator): New macro.
9785 (pp_ptr_operator): Likewise.
9786 (pp_simple_type_specifier): Likewise.
9787 (pp_expression): Likewise.
9788 (pp_parameter_list): Rename from pp_parameter_declaration.
9789 * c-pretty-print.c (pp_c_whitespace): Now a function.
9790 (pp_c_left_paren): Likewise.
9791 (pp_c_right_paren): Likewise.
9792 (pp_c_dot): Likewise.
9793 (pp_c_ampersand): Likewise.
9794 (pp_c_arrow): Likewise.
9795 (pp_c_semicolon): Likewise.
9796 (pp_c_type_cast): New function.
9797 (pp_c_space_for_pointer_operator): Likewise.
9798 (pp_c_call_argument_list): Likewise.
9799 (pp_c_cv_qualifier): Adjust prototype.
9800 (pp_c_type_qualifier_list): Likewise.
9801 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
9802 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
9803 Adjust to follow standard grammar.
9804 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
9805 REFERENCE_TYPE. Tidy.
9806 (pp_c_parameter_type_list): Adjust prototype. Tidy.
9807 (pp_c_parameter_declaration): Remove.
9808 (pp_c_abstract_declarator): Adjust prototype.
9809 (pp_c_direct_abstract_declarator): Likewise.
9810 (pp_c_type_id): Likewise.
9811 (pp_c_storage_class_specifier): Likewise.
9812 (pp_c_function_specifier): Likewise.
9813 (pp_c_declaration_specifiers): Likewise.
9814 (pp_c_direct_declarator): Likewise.
9815 (pp_c_declarator): Likewise.
9816 (pp_c_declarator): Likewise.
9817 (pp_c_declaration): Likewise.
9818 (pp_c_attributes): Likewise. Tidy.
9819 (pp_c_function_definition): Adjust prototype.
9820 (pp_c_char): Likewise.
9821 (pp_c_string_literal): Likewise.
9822 (pp_c_integer_constant): Likewise.
9823 (pp_c_character_constant): Likewise.
9824 (pp_c_bool_constant): Likewise.
9825 (pp_c_enumeration_constant): Likewise.
9826 (pp_c_floating_constant): Likewise.
9827 (pp_c_constant): Likewise.
9828 (pp_c_identifier): Likewise.
9829 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
9830 (pp_c_initializer): Adjust prototype.
9831 (pp_c_init_declarator): Likewise.
9832 (pp_c_initializer_list): Likewise.
9833 (pp_c_id_expression): Likewise.
9834 (pp_c_postfix_expression): Likewise.
9835 (pp_c_expression_list): Likewise.
9836 (pp_c_unary_expression): Likewise.
9837 (pp_c_cast_expression): Likewise.
9838 (pp_c_multiplicative_expression): Likewise.
9839 (pp_c_additive_expression): Likewise.
9840 (pp_c_shift_expression): Likewise.
9841 (pp_c_relational_expression): Likewise.
9842 (pp_c_equality_expression): Likewise.
9843 (pp_c_and_expression): Likewise.
9844 (pp_c_exclusive_or_expression): Likewise.
9845 (pp_c_inclusive_or_expression): Likewise.
9846 (pp_c_logical_and_expression): Likewise.
9847 (pp_c_logical_or_expression): Likewise.
9848 (pp_c_conditional_expression): Likewise.
9849 (pp_c_assignment_expression): Likewise.
9850 (pp_c_expression): Likewise. Tidy.
9851 (pp_c_statement): Likewise. Document.
9852 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
9853
9854 * c-lang.c (c_initialize_diagnostics): Update.
9855 * c-common.h (strip_pointer_operator): Declare.
9856 * c-common.c (strip_pointer_operator): Define.
9857
9858 2003-08-25 Mark Mitchell <mark@codesourcery.com>
9859
9860 PR c++/8795
9861 * tree.h (build_method_type_directly): Declare.
9862 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
9863 (vector_size_helper): Likewise.
9864 * tree.c (build_method_type_directly): New function.
9865 (build_method_type): Use it.
9866
9867 2003-08-24 Richard Henderson <rth@redhat.com>
9868
9869 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
9870 for 16-byte vector modes if sse not enabled; warn for abi change.
9871 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
9872
9873 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
9874
9875 * rtlanal.c (may_trap_p): Simplify an integer comparison.
9876
9877 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
9878
9879 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
9880 comment. Enable for DYNIX/ptx systems (when they switch to
9881 regular fixincludes).
9882 * fixinc/fixincl.x: Regenerate.
9883
9884 2003-08-23 Jason Eckhardt <jle@rice.edu>
9885
9886 * config/i860/t-i860: New.
9887 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
9888
9889 2003-08-23 Jakub Jelinek <jakub@redhat.com>
9890
9891 * c-decl.c (pushdecl): Only put decls which finish_struct will do
9892 something about onto incomplete chain.
9893 (finish_struct): If not removing type from incomplete
9894 list, update prev.
9895
9896 2003-08-20 Jan Hubicka <jh@suse.cz>
9897
9898 PR target/11369
9899 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
9900
9901 PR target/11031
9902 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
9903 const_0_to_15_operand, const_0_to_255_operand): New predicates.
9904 * i386.h (PREDICATE_CODES): Add these.
9905 * i386.c (pinsrw and pextrw patterns): Use them.
9906
9907 PR target/10984
9908 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
9909
9910 PR target/8869
9911 * expr.c (convert_modes): Deal properly with integer to vector
9912 constant conversion.
9913
9914 PR target/8871
9915 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
9916
9917 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9918
9919 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
9920 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
9921 ("*movhi"): ... this.
9922 ("movqi", "*movqi"): Likewise.
9923 ("movqi_64"): Remove.
9924 ("*zero_extendhisi2_31"): Change predicate to s_operand.
9925
9926 2003-08-23 Dale Johannesen <dalej@apple.com>
9927 * calls.c (emit_library_call_value_1): Fix obvious errors in
9928 arguments to emit_group_store.
9929
9930 2003-08-23 Jason Eckhardt <jle@rice.edu>
9931
9932 * calls.c (emit_library_call_value_1): Remove code related
9933 to LIBGCC_NEEDS_DOUBLE.
9934 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
9935 * doc/tm.texi: Likewise.
9936 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
9937
9938 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
9939
9940 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
9941
9942 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
9943
9944 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
9945 as well. Put memory references in the varargs alias set.
9946 (mips_expand_prologue): Remove varargs handling from here.
9947
9948 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9949
9950 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
9951 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
9952 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
9953 for function pointer calls.
9954 * config/s390/s390.md ("*negdi2_31"): Likewise.
9955
9956 2003-08-23 Roger Sayle <roger@eyesopen.com>
9957
9958 * combine.c (apply_distributive_law): Correct comment.
9959
9960 2003-08-23 Jason Eckhardt <jle@rice.edu>
9961
9962 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
9963
9964 2003-08-22 Jason Eckhardt <jle@rice.edu>
9965
9966 * config/i860/i860.c (i860_build_va_list): Create the va_decl
9967 declaration. Document the va_list structure.
9968 (i860_va_start): Initialize the va_list structure.
9969 (i860_va_arg): Rewrite completely.
9970 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
9971 * config/i860/varargs.asm: Do not allocate or initialize
9972 a va_list. Return the address of the register save area.
9973
9974 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9975
9976 * config/iq2000/iq2000.c: Fix comment typos.
9977 * config/iq2000/iq2000.md: Likewise.
9978
9979 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9980
9981 * config/iq2000/iq2000.c: Follow spelling conventions.
9982 * config/iq2000/iq2000.h: Likewise.
9983 * config/mn10300/mn10300.c: Likewise.
9984
9985 2003-08-22 Jason Eckhardt <jle@rice.edu>
9986
9987 * config/i860/i860.c (output_move_double): Don't set latehalf
9988 to zero for CONST_INT (since it could be, e.g., -1).
9989
9990 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
9991 (MODSI3_LIBCALL): ...with this one.
9992 (UREMSI3_LIBCALL): Replace this macro...
9993 (UMODSI3_LIBCALL): ...with this one.
9994
9995 2003-08-22 Jason Eckhardt <jle@rice.edu>
9996
9997 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
9998 (output_delayed_branch): Remove prototype.
9999 (single_insn_src_p): Remove prototype.
10000 * config/i860/i860.c (single_insn_src_p): Remove function.
10001 (output_delayed_branch): Remove function.
10002 (output_delay_insn): Remove function.
10003 (va_start): Remove unconditional test and dead code, re-format.
10004 Fix coding style and spelling problems in various comments.
10005 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
10006 (blockage pattern): ...and use it here.
10007 (all define_peephole patterns related to delayed branches): Remove.
10008 Fix coding style and spelling problems in various comments.
10009
10010 2003-08-22 Jason Eckhardt <jle@rice.edu>
10011
10012 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
10013 Remove all uses of the PARAMS macro. Remove superflous prototypes.
10014 Convert all function definitions from traditional to ISO C90 syntax.
10015 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
10016 with 'GCC'. Remove all uses of the PARAMS macro.
10017 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
10018 * config/i860/i860.md: Likewise.
10019 * config/i860/sysv4.h: Likewise.
10020 * config/i860/varargs.asm: Likewise.
10021
10022 2003-08-22 Jason Eckhardt <jle@rice.edu>
10023
10024 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
10025 argument.
10026 (tdesc_section): Add prototype.
10027 Update copyright dates.
10028 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
10029 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
10030 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
10031 (targetm): Likewise.
10032 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
10033 for '%d' where necessary.
10034 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
10035 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
10036 by UNITS_PER_WORD when referencing (likewise for .floats).
10037 (I860_SVR4_VARARGS): Rename...
10038 (I860_SVR4_VA_LIST): ...to this.
10039 Call build() with 't' rather than 'field'.
10040 (i860_rtx_costs): New function.
10041 (TARGET_RTX_COSTS): Define.
10042 (i860_internal_label): New function.
10043 (TARGET_ASM_INTERNAL_LABEL): Define.
10044 (i860_file_start): New function.
10045 Update copyright dates.
10046 * config/i860/i860.h (CPP_PREDEFINES): Remove.
10047 (TARGET_CPU_CPP_BUILTINS): Define.
10048 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
10049 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
10050 (ASM_FILE_START): Remove.
10051 (ASM_FILE_START_1): Remove.
10052 (ASM_GLOBALIZE_LABEL): Remove.
10053 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
10054 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
10055 with targetm.asm_out.internal_label.
10056 Update copyright dates.
10057 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
10058 (CPP_PREDEFINES): Remove.
10059 (TARGET_OS_CPP_BUILTINS): Define.
10060 (GLOBAL_ASM_OP): Define.
10061 (ASM_FILE_START): Remove.
10062 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
10063 (TARGET_ASM_FILE_START): Define.
10064 Update copyright dates.
10065
10066 2003-08-22 Jason Eckhardt <jle@rice.edu>
10067
10068 * gcc/config.gcc (i860-*-sysv4*): Add target.
10069 * config/i860/i860-protos.h: New.
10070 * config/i860/i860.c: New.
10071 * config/i860/i860.h: New.
10072 * config/i860/i860.md: New.
10073 * config/i860/sysv4.h: New.
10074 * config/i860/varargs.asm: New.
10075 * config/i860/x-sysv4: New.
10076
10077 2003-08-22 Jason Eckhardt <jle@rice.edu>
10078
10079 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
10080 Remove all uses of PARAMS macro.
10081 Convert all function definitions to ISO C90 syntax.
10082 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
10083 * config/pa/fptr.c: Likewise.
10084 * config/pa/lib2funcs.asm: Likewise.
10085 * config/pa/long_double.h: Likewise.
10086 * config/pa/milli64.S: Likewise.
10087 * config/pa/pa-64.h: Likewise.
10088 * config/pa/pa-hpux.h: Likewise.
10089 * config/pa/pa-hpux10.h: Likewise.
10090 * config/pa/pa-hpux11.h: Likewise.
10091 * config/pa/pa-linux.h: Likewise.
10092 * config/pa/pa-modes.def: Likewise.
10093 * config/pa/pa-osf.h: Likewise.
10094 * config/pa/pa-pro-end.h: Likewise.
10095 * config/pa/pa.md: Likewise.
10096 * config/pa/pa32-linux.h: Likewise.
10097 * config/pa/pa64-linux.h: Likewise.
10098 * config/pa/pa64-hpux.h: Likewise.
10099 * config/pa/pa64-regs.h: Likewise.
10100 * config/pa/quadlib.c: Likewise.
10101 * config/pa/rtems.h: Likewise.
10102 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
10103 all uses of the PARAMS macro.
10104 * config/pa/pa.h: Likewise.
10105 * config/pa/som.h: Likewise.
10106
10107 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
10108 Remove all uses of PARAMS macro.
10109 Convert all function definitions to ISO C90 syntax.
10110 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
10111 Remove all uses of PARAMS macro.
10112 * config/iq2000.h: Remove all uses of PARAMS macro.
10113 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
10114
10115 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
10116
10117 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
10118 * config/s390/s390.c (gen_consttable): Remove.
10119 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
10120 (s390_output_pool_entry): New function.
10121 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
10122 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
10123 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
10124 (UNSPECV_POOL_ENTRY): ... this new constant.
10125 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
10126 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
10127 ("*pool_entry"): ... and replace by this new insn.
10128 ("literal_pool_31"): Do not emit anchor label if pool empty.
10129
10130 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
10131 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
10132 (s390_fixup_clobbered_return_reg): Remove.
10133 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
10134 (s390_return_addr_rtx): Always retrieve return address from save area
10135 slot. Use save_return_addr_p to force slot to be filled.
10136 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
10137
10138 2003-08-22 Chris Demetriou <cgd@broadcom.com>
10139
10140 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
10141 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
10142 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
10143 around SB-1 errata if TARGET_FIX_SB1 is set.
10144 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
10145 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
10146
10147 2003-08-22 Roger Sayle <roger@eyesopen.com>
10148
10149 * hashtable.c (ht_expand): Avoid calculating rehash for the common
10150 case that the first probe hits an empty hash table slot.
10151
10152 2003-08-22 Mark Mitchell <mark@codesourcery.com>
10153
10154 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
10155
10156 2003-08-22 Mark Mitchell <mark@codesourcery.com>
10157
10158 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
10159 (ptr_extend_plus_imm): ... this.
10160 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
10161 optimization in C++.
10162 (ia64_output_mi_thunk): Support ILP32 mode.
10163
10164 2003-08-22 Bernardo Innocenti <bernie@develer.com>
10165
10166 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
10167 function.
10168 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
10169
10170 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10171
10172 * config/i386/i386.c (const_int_1_operand): Simplify an
10173 integer comparison.
10174
10175 2003-08-22 Alan Modra <amodra@bigpond.net.au>
10176
10177 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
10178 * config/rs6000/ppc64-fp.c: Likewise.
10179
10180 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10181
10182 * cfgcleanup.c: Fix comment typos.
10183 * emit-rtl.c: Likewise.
10184 * optabs.c: Likewise.
10185 * ra-build.c: Likewise.
10186 * rtlanal.c: Likewise.
10187 * tree.h: Likewise.
10188
10189 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10190
10191 * c-decl.c: Fix comment formatting.
10192 * cfgrtl.c: Likewise.
10193 * combine.c: Likewise.
10194 * convert.c: Likewise.
10195 * dominance.c: Likewise.
10196 * dwarf2out.c: Likewise.
10197 * dwarfout.c: Likewise.
10198 * expmed.c: Likewise.
10199 * fold-const.c: Likewise.
10200 * gcov.c: Likewise.
10201 * genattrtab.c: Likewise.
10202 * ggc-common.c: Likewise.
10203 * mips-tfile.c: Likewise.
10204 * regmove.c: Likewise.
10205
10206 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10207
10208 * builtin-attrs.def: Fix comment formatting.
10209 * c-pretty-print.c: Likewise.
10210 * diagnostic.h: Likewise.
10211 * langhooks.h: Likewise.
10212 * recog.c: Likewise.
10213 * simplify-rtx.c: Likewise.
10214 * tree.def: Likewise.
10215
10216 2003-08-22 Bernardo Innocenti <bernie@develer.com>
10217
10218 * config/m68k/m68k-protos.h: Convert to ISO C90.
10219 * config/m68k/m68k.c: Likewise.
10220
10221 2003-08-21 Bernardo Innocenti <bernie@develer.com>
10222 Paul Dale <pauli@snapgear.com>
10223 Peter Barada <peter@baradas.org>
10224
10225 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
10226 ColdFire cores.
10227
10228 2003-08-21 Zack Weinberg <zack@codesourcery.com>
10229
10230 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
10231 * config.gcc (*-*-openbsd): Don't set tm_file.
10232 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
10233 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
10234 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
10235 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
10236 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
10237 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
10238 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
10239 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
10240 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
10241 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
10242 xscale-*-coff): Use explicit and complete lists of target headers
10243 to include. Move definitions to tm_defines where appropriate.
10244 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
10245 not-yet-contributed configuration.
10246
10247 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
10248 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
10249 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
10250 * config/i386/nto.h, config/iq2000/iq2000.h,
10251 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
10252 * config/m68k/linux.h, config/m68k/m68k-aout.h
10253 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
10254 * config/m68k/netbsd.h, config/m68k/openbsd.h
10255 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
10256 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
10257 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
10258 Remove includes of other target config headers, and
10259 definitions of macros moved to tm_defines lists. Add #undefs
10260 where now necessary to prevent redefinition warnings.
10261
10262 * config/h8300/coff.h: New file split out of...
10263 * config/h8300/elf.h: ...here.
10264 * config/m68k/hp320base.h: New file split out of...
10265 * config/m68k/hp320.h: ...here.
10266 * config/rs6000/lynxbase.h: New file split out of...
10267 * config/rs6000/lynx.h: ...here.
10268
10269 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
10270 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
10271
10272 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
10273 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
10274 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
10275 Remove unnecessary #ifndef.
10276 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
10277 [under IN_LIBGCC2] with config/.
10278
10279 2003-08-21 Per Bothner <pbothner@apple.com>
10280
10281 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
10282 to cpp_push_buffer.
10283 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
10284 by return_at_eof check. Always call _cpp_pop_buffer at end.
10285
10286 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
10287
10288 PR target/11805
10289 * config/h8300/h8300.md (two anonymous patterns): Remove.
10290
10291 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
10292
10293 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
10294 * config/mips/mips.c (function_arg_pass_by_reference): Never return
10295 true for n32 & n64.
10296
10297 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
10298
10299 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
10300 and similarly in (A | C) == D where C & ~D != 0.
10301
10302 2003-08-20 Geoffrey Keating <geoffk@apple.com>
10303
10304 PR 8180
10305 * configure.in: When testing with_libs and with_headers, treat
10306 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
10307 * configure: Regenerate.
10308
10309 2003-08-20 Peter Barada <peter@baradas.org>
10310
10311 * longlong.h (umul_ppmm): Add ColdFire support.
10312
10313 2003-08-20 Peter Barada <peter@baradas.org>
10314 Bernardo Innocenti <bernie@develer.com>
10315
10316 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
10317 * config/m68k/m68k.h: Likewise.
10318 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
10319 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
10320 * config/m68k/linux.h: Likewise.
10321 * config/m68k/m68k.c: Likewise.
10322 * config/m68k/m68k.md: Likewise.
10323 * config/m68k/m68kelf.h: Likewise.
10324 * config/m68k/netbsd-elf.h: Likewise.
10325 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
10326
10327 2003-08-20 Bernardo Innocenti <bernie@develer.com>
10328
10329 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
10330 * config/m68k/m68k.md: Likewise.
10331
10332 2003-08-20 Mark Mitchell <mark@codesourcery.com>
10333
10334 PR java/11996
10335 Revert this change:
10336 2003-08-19 Mark Mitchell <mark@codesourcery.com>
10337 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10338 types with precisions other than those given by native machine
10339 modes.
10340
10341 2003-08-20 Gunther Nikl <gni@gecko.de>
10342
10343 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
10344 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
10345 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
10346 * config/m68k/m68k.md (anonymous define_insn): Likewise
10347 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
10348 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
10349 code selected by NO_ASM_FMOVECR
10350
10351 2003-08-20 Gunther Nikl <gni@gecko.de>
10352
10353 * config/m68k/m68k.c (output_move_const_into_data_reg,
10354 output_move_himode): unify MOTOROLA/MIT handling of moveq
10355 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
10356 Likewise
10357
10358 2003-08-20 Gunther Nikl <gni@gecko.de>
10359
10360 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
10361 label name
10362 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
10363 HOST_WIDE_INT_PRINT_DEC with %wd
10364
10365 2003-08-20 Loren James Rittle <ljrittle@acm.org>
10366
10367 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
10368 redefine warning.
10369
10370 2003-08-20 Roger Sayle <roger@eyesopen.com>
10371
10372 PR middle-end/11984
10373 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
10374 operands before calling tree_int_cst_lt when performing associative
10375 transformations.
10376
10377 2003-08-20 Jason Merrill <jason@redhat.com>
10378
10379 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
10380 (EXPR_CHECK): Don't check for 'r' or 's' if we're
10381 checking IS_EXPR_CODE_CLASS.
10382 * calls.c (calls_function_1): Likewise.
10383 * fold-const.c (fold): Likewise.
10384 * tree.c (iterative_hash_expr): Likewise.
10385 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
10386
10387 2003-08-20 Gunther Nikl <gni@gecko.de>
10388
10389 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
10390 depending on MOTOROLA_BSR
10391 * config/m68k/m68k.md (anonymous define_insn): Likewise
10392
10393 2003-08-20 Jason Merrill <jason@redhat.com>
10394
10395 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
10396 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
10397 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
10398 * dojump.c (do_jump): Likewise.
10399 * fold-const.c (operand_equal_p, fold): Likewise.
10400 (tree_expr_nonnegative_p): Likewise.
10401
10402 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
10403 TYPE_USER_ALIGN for FIELD_DECLs.
10404
10405 * attribs.c (decl_attributes): Rebuild the function pointer type after
10406 changing the target type.
10407 * tree.c (get_qualified_type): Also check that the attributes match.
10408
10409 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
10410
10411 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
10412 * objc/config-lang.in (stagestuff): ... to here.
10413
10414 2003-08-19 Mark Mitchell <mark@codesourcery.com>
10415
10416 PR c++/11946
10417 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
10418 NOP_EXPR) when necessary.
10419 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10420 types with precisions other than those given by native machine
10421 modes.
10422
10423 2003-08-19 Geoffrey Keating <geoffk@apple.com>
10424
10425 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
10426 because some macro is defined.
10427
10428 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
10429 options.
10430 * config/i386/darwin.h (ASM_SPEC): New.
10431 (SUBTARGET_EXTRA_SPECS): New.
10432 * config/rs6000/darwin.h (ASM_SPEC): New.
10433 (SUBTARGET_EXTRA_SPECS): New.
10434 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
10435 a cross-compiler between two different processors on Darwin.
10436 * configure: Regenerate.
10437
10438 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10439
10440 * builtins.c: Fix comment typos.
10441 * c-common.c: Likewise.
10442 * c-decl.c: Likewise.
10443 * c-pretty-print.c: Likewise.
10444 * cfgbuild.c: Likewise.
10445 * cfglayout.c: Likewise.
10446 * cfgloopanal.c: Likewise.
10447 * cgraphunit.c: Likewise.
10448 * cppfiles.c: Likewise.
10449 * dwarfout.c: Likewise.
10450 * expr.c: Likewise.
10451 * fold-const.c: Likewise.
10452 * gcse.c: Likewise.
10453 * ggc-page.c: Likewise.
10454 * haifa-sched.c: Likewise.
10455 * pretty-print.c: Likewise.
10456 * tree.c: Likewise.
10457 * tree.h: Likewise.
10458 * value-prof.c: Likewise.
10459
10460 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10461
10462 * c-decl.c: Follow spelling conventions.
10463 * cppfiles.c: Likewise.
10464
10465 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10466
10467 * c-common.c: Fix comment formatting.
10468 * c-common.h: Likewise.
10469 * c-decl.c: Likewise.
10470 * cppinit.c: Likewise.
10471 * cpplib.h: Likewise.
10472 * emit-rtl.c: Likewise.
10473 * input.h: Likewise.
10474 * line-map.h: Likewise.
10475 * opts.c: Likewise.
10476 * opts.h: Likewise.
10477 * simplify-rtx.c: Likewise.
10478
10479 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
10480
10481 * unwind-c.c: Add libgcc-style exception.
10482 * unwind-dw2.c: Likewise.
10483 * unwind-pe.h: Likewise.
10484 * unwind-sjlj.c: Likewise.
10485 * unwind.inc: Likewise.
10486
10487 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
10488
10489 PR c/5582 PR c++/10538
10490 * langhooks-def.h (lhd_decl_uninit): Declare.
10491 (LANG_HOOKS_DECL_UNINIT): New macro.
10492 (LANG_HOOKS_INITIALIZER): Adjust.
10493 * langhooks.h (struct lang_hooks): Add new field
10494 decl_uninit.
10495 * langhooks.c (lhd_decl_uninit): Define.
10496 * c-common.c (c_decl_uninit_1): New function.
10497 (c_decl_uninit): New function.
10498 (warn_init_self): Define.
10499 * c-common.h (c_decl_uninit): Declare.
10500 (warn_init_self): Declare.
10501 * c.opt: Introduce -Winit-self.
10502 * c-opts.c (c_common_handle_options): Set warn_init_self.
10503 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
10504 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
10505 * function.c (uninitialized_vars_warning): Call the language hook.
10506 * doc/invoke.texi: Document -Winit-self.
10507
10508 2003-08-19 Chris Demetriou <cgd@broadcom.com>
10509
10510 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
10511 to use better predicates and constraints. Define new
10512 instruction to handle "trap_if" with DI-mode arguments.
10513 (conditional_trap): FAIL if trap code is not 0.
10514
10515 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
10516
10517 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
10518 strstr with $pb to a strcompare with "<pic base>"
10519 (ix86_output_addr_diff_elt): Output the real pic base.
10520
10521 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
10522
10523 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
10524 (LANG_HOOKS_INITIALIZER): Correct.
10525 * c-lang.c: Likewise.
10526
10527 2003-08-19 Jan Hubicka <jh@suse.cz>
10528
10529 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
10530 (cgraph_varpool_mark_needed_node): Likewise.
10531 * cgraph.h (notice_global_symbol): Declare
10532 * varasm.c (notice_global_symbol): Break out from ...
10533 (assemble_start_function): ... here; update for variables.
10534 (assemble_variable): Use notice_global_symbol.
10535
10536 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
10537
10538 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
10539 expect SFmode and DFmode arguments to be passed in FPRs,
10540 regardless of the underlying type.
10541
10542 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
10543
10544 PR target/11924
10545 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
10546 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
10547
10548 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
10549
10550 PR c/11207
10551 * c-typeck.c (set_init_index): Check for negative index.
10552
10553 2003-08-18 Bob Wilson <bob.wilson@acm.org>
10554
10555 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
10556 call0 ABI.
10557 * config/xtensa/crtn.asm (_init, _fini): Likewise.
10558 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
10559 __umodsi3, __modsi3): Likewise.
10560 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
10561 $(INCLUDES).
10562
10563 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
10564
10565 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
10566
10567 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10568
10569 * config/mips/mips.md: Quote C code in braces. Remove use of
10570 fake const0_rtx operands. Remove double backslashes. Use \;.
10571 Remove workarounds for bogus warnings.
10572
10573 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10574
10575 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
10576 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
10577 rather than TARGET_MIPS4300.
10578 (mulsf3_internal, mulsf3_r4300): Likewise.
10579
10580 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10581
10582 * config/mips/mips.md: Renumber unspecs. Clean up comments.
10583
10584 2003-08-17 Roger Sayle <roger@eyesopen.com>
10585
10586 * simplify-rtx.c (associative_constant_p): New function to test
10587 whether an RTX expression is an immediate constant.
10588 (simplify_associative_operation): New function to perform some
10589 reassociation optimizations of associative binary expressions.
10590 (simplify_binary_operation): Use simplify_associative_operation
10591 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
10592 Floating point expressions are only reassociated when unsafe
10593 math optimizations are permitted.
10594
10595 2003-08-17 Andreas Jaeger <aj@suse.de>
10596
10597 * config/alpha/alpha.md: Remove usage of PARAMS.
10598
10599 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
10600 * config/i386/i386-interix.h: Likewise.
10601 * config/i386/winnt.c: Likewise.
10602 * config/i386/cygming.h: Likewise.
10603 * config/i386/cygwin2.c: Likewise.
10604 * config/darwin.c: Likewise.
10605 * config/darwin-c.c: Likewise.
10606 * config/darwin-protos.h: Likewise.
10607 * config/darwin.h: Likewise.
10608 * config/s390/s390-protos.h: Likewise.
10609 * config/s390/s390.c: Likewise.
10610 * config/ia64/ia64.c: Likewse
10611 * config/ia64/ia64-protos.h: Likewise.
10612 * config/ia64/ia64-c.c: Likewise.
10613
10614 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10615
10616 * config/sparc/sparc.c: Convert to ISO C.
10617
10618 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
10619 * config/sparc/sparc.c: Likewise.
10620
10621 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
10622
10623 PR c++/11512
10624 * stmt.c (expand_expr_stmt_value): Don't warn about any void
10625 typed expression.
10626
10627 2003-08-16 Jan Hubicka <jh@suse.cz>
10628
10629 * i386.c (ix86_fntype_regparm): Rename from ...
10630 (ix86_function_regparm): ... this one; add fastcall and local
10631 functions.
10632 (ix86_function_ok_for_sibcall): Update.
10633 (ix86_return_pops_args): Likewise.
10634 (init_cumulative_args): Likewise.
10635 (x86_can_output_mi_thunk): Likewise.
10636 (function_arg): Fix formating.
10637 (x86_this_parameter): Fix fastcall.
10638 (x86_output_mi_thunk): Likewise.
10639
10640 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
10641 body as reachable; mark nested functions as needed too.
10642 (dump_cgraph): Do not output global.calls.
10643 * cgraph.h (cgraph_global_info): Kill.
10644 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
10645 (record_call_1): Speedup.
10646 (cgraph_analyze_function): Break out from ...; compute inlining
10647 parameters.
10648 (cgraph_finalize_compilation_unit): ... here.
10649 (cgraph_mark_inline): Kill computation of calls.
10650 (cgraph_decide_inlining): Do not compute most of initial values.
10651
10652 2003-08-14 Roger Sayle <roger@eyesopen.com>
10653
10654 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
10655 to negate if either operand is easy to negate, if we don't care
10656 about sign-dependent rounding.
10657 (negate_expr): Make the logic to negate a REAL_CST explicit.
10658 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
10659 that's easy to negate, if we don't honor sign-dependent rounding.
10660 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
10661 negate, and the symmetric A * -B as -A * B if A is easy to negate.
10662 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
10663 -C/D if B and C are cheap to negate. Add an explicit rule to
10664 optimize X/-1.0 as -X when we don't care about signaling NaNs.
10665
10666 2003-08-14 Zack Weinberg <zack@codesourcery.com>
10667
10668 * Makefile.in (tm_file): Rename tm_include_list.
10669 (tm_p_file): Rename tm_p_include_list.
10670 (build_xm_file): Rename build_xm_include_list.
10671 (host_xm_file): Rename host_xm_include_list.
10672 (xm_file): Rename xm_include_list.
10673 (xm_file_list): Add to be substituted.
10674 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
10675 Update to match.
10676 (bt-load.o): Add missing dependency on $(TM_H).
10677 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
10678 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
10679 build_xm_file, generate both *_file_list and *_include_list
10680 values from it. (xm_file_list was formerly not being generated.)
10681 In *_include_list, prefix the names of all headers found in
10682 $(srcdir)/config with config/. In each loop, consider only
10683 the special case files that can actually appear in that list.
10684 AC_SUBST all *_file_list and all *_include_list variables; do
10685 not AC_SUBST the plain *_file variables.
10686 * configure: Regenerate.
10687
10688 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10689
10690 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
10691
10692 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10693
10694 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
10695 direct calls.
10696 (attr_length_call): Include it here. Improve length estimate for
10697 local calls.
10698 (output_call): Use targetm.binds_local_p.
10699
10700 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10701
10702 * builtins.c (CASE_MATHFN): New helper macro.
10703 (mathfn_built_in): Simplify and sort.
10704
10705 * protoize.c (substr): Delete, callers changed to `strstr'.
10706
10707 2003-08-13 Zack Weinberg <zack@codesourcery.com>
10708
10709 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
10710 * config/iq2000/xm-iq2000.h: Delete file.
10711
10712 2003-08-13 Geoffrey Keating <geoffk@apple.com>
10713
10714 * gengtype.c (walk_type): Process a subobject before processing
10715 the pointer that points to the subobject.
10716
10717 2003-08-13 Per Bothner <pbothner@apple.com>
10718
10719 * regclass.c (init_reg_modes): Make non-static.
10720 Rename to init_reg_modes_once per new naming convention.
10721 (init_regs): Don't call init_reg_modes here.
10722 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
10723 * rtl.h (init_reg_modes_once): New declaration.
10724 * toplev.c (backend_init): Call init_regs after init_emit_once.
10725
10726 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
10727
10728 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
10729 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
10730
10731 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
10732
10733 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
10734 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
10735
10736 2003-08-13 Dale Johannesen <dalej@apple.com>
10737
10738 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
10739 handling of decrement-and-branch farther than 32 bits.
10740
10741 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
10742
10743 * configure.in (make_compare_target): Move test to ...
10744 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
10745 * configure: Regenerate.
10746
10747 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
10748
10749 * config/mips/iris6.h: Convert to C90 prototypes.
10750 * config/mips/irix6-libc-compat.c: Likewise.
10751 * config/mips/mips-protos.h: Likewise.
10752 * config/mips/mips.c: Likewise.
10753
10754 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
10755
10756 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
10757 for selected machines. Comment heavily.
10758 fixinc/fixincl.x: Rebuild.
10759 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
10760
10761 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
10762
10763 * config/mips/mips.h: Tweak various comments.
10764 * config/mips/mips.c: Likewise.
10765
10766 2003-08-11 James E Wilson <wilson@tuliptree.org>
10767
10768 PR optimization/11319
10769 PR target/10021
10770 * alias.c (find_base_value, case REG): Return 0 not src if no base
10771 found.
10772
10773 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10774
10775 * gcse.c (gmalloc): Fix last change.
10776
10777 2003-08-11 Roger Sayle <roger@eyesopen.com>
10778
10779 * simplify-rtx.c (simplify_binary_operation): Replace calls to
10780 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
10781 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
10782 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
10783
10784 2003-08-11 Roger Sayle <roger@eyesopen.com>
10785
10786 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
10787 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
10788 typecode for an ABS_EXPR.
10789
10790 * doc/c-tree.texi: Document ABS_EXPR.
10791
10792 2003-08-11 Roger Sayle <roger@eyesopen.com>
10793
10794 * fold-const.c (fold): Optimize any associative floating point
10795 operator with -funsafe-math-optimizations, not just MULT_EXPR.
10796
10797 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
10798
10799 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
10800 information in SHmedia case too.
10801 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
10802 Likewise.
10803 (__set_fpscr): Use an access via GOT for PIC case.
10804
10805 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
10806
10807 * configure.in (intermodule): Make switch test more portable.
10808 * configure: Regenerate.
10809
10810 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
10811
10812 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
10813 (restrap): Likewise.
10814
10815 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10816
10817 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
10818 (grealloc): Size argument is a size_t.
10819 (gcalloc): New function. Use throughout in lieu of
10820 gmalloc/memset.
10821
10822 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
10823 xmalloc/memset.
10824 * config/ia64/ia64.c (ia64_reorg): Likewise.
10825 * conflict.c (conflict_graph_new): Likewise.
10826 * fixinc/fixincl.c (run_compiles): Likewise.
10827 * genattrtab.c (optimize_attrs): Likewise.
10828 * genrecog.c (new_decision): Likewise.
10829 * haifa-sched.c (schedule_block): Likewise.
10830 * hashtable.c (ht_create): Likewise.
10831
10832 2003-08-11 Bob Wilson <bob.wilson@acm.org>
10833
10834 * config/xtensa/lib2funcs.S: Fix whitespace.
10835 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
10836 syntax where appropriate. Remove unnecessary backslash escapes.
10837 Reformat comments and fix some code formatting.
10838 (extendqisi2): Rearrange conditional.
10839 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
10840 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
10841 of fatal_insn.
10842
10843 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
10844
10845 * config/mips/mips.c: Various formatting fixes.
10846 (override_options): Resync -mtune handling with gas.
10847 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
10848 * config/mips/mips.h: More formatting fixes.
10849 (mips_abi): Move declaration.
10850 * config/mips/mips.md (exception_receiver): Add mode to
10851 unspec_volatile.
10852
10853 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
10854
10855 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
10856 evsplatfi here.
10857 (bdesc_1arg): Remove evsplati and evsplatfi.
10858
10859 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
10860
10861 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
10862 into account.
10863
10864 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10865
10866 * builtins.c (expand_builtin_strcat): Optimize constant strings.
10867
10868 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
10869
10870 * pretty-print.c (pp_base_indent): Rename from pp_indent.
10871 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
10872 (struct c_pretty_print_info): Add more fields.
10873 (pp_c_left_paren): Move to c-pretty-print.c.
10874 (pp_c_right_paren): Likewise.
10875 (pp_c_left_brace): Likewise.
10876 (pp_c_right_brace): Likewise.
10877 (pp_c_left_bracket): Likewise.
10878 (pp_c_right_bracket): Likewise.
10879 (pp_c_declarator): Declare.
10880 (pp_c_direct_declarator): Likewise.
10881 (pp_c_specifier_qualifier_list): Likewise.
10882 (pp_c_type_id): Likewise.
10883 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
10884 (pp_c_type_qualifier_list): New.
10885 (pp_c_pointer): Likewise.
10886 (pp_c_parameter_type_list): Likewise.
10887 (pp_c_function_definition): Likewise.
10888 (pp_c_id_expression): Likewise.
10889 (pp_c_simple_type_specifier): Tidy.
10890 (pp_c_unary_expression): Likewise.
10891 (pp_c_expression): Likewise.
10892 (pp_c_pretty_printer_init): Likewise.
10893 (pp_c_specifier_qualifier_list): Rework..
10894 (pp_c_abstract_declarator): Likewise.
10895 (pp_c_postfix_expression): Likewise.
10896 (pp_c_primary_expression): Likewise.
10897 (pp_c_cast_expression): Likewise.
10898 (pp_c_direct_abstract_declarator): Likewise.
10899 (pp_c_storage_class_specifier): Likewise.
10900 (pp_c_function_specifier): Likewise.
10901 (pp_c_declaration_specifiers): Likewise.
10902 (pp_c_direct_declarator): Likewise.
10903 (pp_c_declarator): Likewise.
10904 (pp_c_declaration): Likewise.
10905 (pp_c_statement): Likewise.
10906 (pp_c_integer_constant): Rename from pp_c_integer_literal.
10907 (pp_c_character_constant): Rename from pp_c_character_literal.
10908 (pp_c_bool_constant): Rename from pp_c_bool_literal.
10909 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
10910 (pp_c_floating_constant): Rename from pp_c_real_literal.
10911 (pp_c_constant): Rename from pp_c_literal.
10912 * c-lang.c: Include diagnostic.h and c-pretty-print.h
10913 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
10914 (c_initialize_diagnostics): New.
10915 * Makefile.in (c-lang.o): Update dependency.
10916
10917 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
10918
10919 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
10920
10921 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
10922
10923 * config/mips/mips.c (mips_no_mips16_string): Remove.
10924 (override_options): Don't handle -mips16 as part of -mipsN.
10925 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
10926 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
10927 (TARGET_OPTIONS): Remove -mno-mips16.
10928
10929 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
10930
10931 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
10932 (coprocessor2_operand): Likewise.
10933 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
10934 (lookup_name): Remove declaration.
10935 (abort_with_insn): Remove. Replace all uses with fatal_insn.
10936 (mips16, mips_abicalls): Remove.
10937 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
10938 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
10939 (coprocessor_operand, coprocessor2_operand): Remove.
10940 (override_options): Don't set mips16 or mips_abicalls.
10941 (print_operand): Don't expect SIGN_EXTEND operands.
10942 (mips_secondary_reload_class): Likewise.
10943 (mips_output_conditional_branch): Remove disabled long-branch code.
10944 * config/mips/mips.h (call_used_regs): Remove declaration.
10945 (may_call_alloca): Likewise.
10946 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
10947 (mips_abicalls, mips16): Remove declarations.
10948 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
10949 (CC1_SPEC): Remove outdated comment.
10950 (MIPS_VERSION, MACHINE_TYPE): Remove.
10951 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10952 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
10953 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
10954 (PUSH_ROUNDING): Likewise.
10955 (ASSEMBLER_SCRATCH_REGNUM): Remove.
10956 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
10957 and mips16 with TARGET_MIPS16.
10958
10959 2003-08-09 Per Bothner <pbothner@apple.com>
10960
10961 * cppinit.c (cpp_read_main_file): Split out source-independent
10962 initialization to separate function ...
10963 (cpp_post_options): New function.
10964 * cppfiles.c (cpp_stack_file): Rename public name to ...
10965 (_cpp_stack_file): New internal function name.
10966 * cpplib.h: Update accordingly.
10967 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
10968 (cpp_read_main_file): Don't initialize line here.
10969 * c-opts.c (c_common_post_options): Call cpp_post_options.
10970 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
10971 * fix-header.c (read_scan_file): Call cpp_post_options.
10972
10973 2003-08-09 Per Bothner <per@bothner.com>
10974
10975 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
10976
10977 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10978
10979 * pa.c (pa_asm_output_mi_thunk): Fix typo.
10980
10981 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
10982
10983 PR preprocessor/11839
10984 * cppfiles.c (open_file): Handle ENOTDIR.
10985
10986 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
10987
10988 PR target/11699
10989 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
10990
10991 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10992
10993 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
10994 source/destination is not a register operand.
10995
10996 2003-08-08 Richard Henderson <rth@redhat.com>
10997
10998 PR target/11535
10999 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
11000 RETURN_ADDRESS_POINTER_REGNUM.
11001 (ia64_expand_prologue): Don't frob it.
11002 (ia64_output_function_epilogue): Likewise.
11003 (ia64_return_addr_rtx): New.
11004 (ia64_split_return_addr_rtx): New.
11005 * config/ia64/ia64-protos.h: Update.
11006 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
11007 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
11008 (GENERAL_REGNO_P): Don't check it.
11009 (AR_*_REGNUM): Renumber.
11010 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
11011 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
11012 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
11013 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
11014 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
11015 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
11016 (movdi_ret_addr): New.
11017
11018 2003-08-08 Geoffrey Keating <geoffk@apple.com>
11019
11020 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
11021
11022 2003-08-08 Roger Sayle <roger@eyesopen.com>
11023
11024 * tree.h (get_identifier) Define a macro form of get_identifier
11025 that calls get_identifier_with_length when the string is constant.
11026 (get_identifier_with_length): Change type of second argument to
11027 size_t in prototype.
11028 * stringpool.c (get_identifier): Undefine the macro before giving
11029 the function definition.
11030 (get_identifier_with_length): Change type of second argument to
11031 size_t in function definition.
11032 * hashtable.c (calc_hash): Change type of second argument to size_t.
11033 (ht_lookup): Change type of third argument to size_t. Reorganize
11034 to speed-up the cases where the hash table slot is empty, or the
11035 first probe matches (i.e. there isn't a collision).
11036 * hashtable.h (ht_lookup): Adjust function prototype.
11037
11038 2003-08-08 Bernardo Innocenti <bernie@develer.com>
11039
11040 PR target/9697
11041 PR target/11777
11042 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
11043
11044 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
11045
11046 * common.opt: Add debug switches.
11047 * flags.h (use_gnu_debug_info_extensions): Boolify.
11048 * opts.c (write_symbols, debug_info_level,
11049 use_gnu_debug_info_extensions): Move from toplev.c.
11050 (set_debug_level): New.
11051 (common_handle_options): Handle debug switches.
11052 (print_help): Display target options directly.
11053 * toplev.c (debug_hooks): Don't initialize.
11054 (write_symbols, debug_info_level,
11055 use_gnu_debug_info_extensions): Move to opts.c.
11056 (debug_args, display_help, decode_g_option): Remove.
11057 (process_options): Set no debug if level zero here,
11058 and no-debug-hooks. Error here if impossible debug format selected.
11059 * toplev.h (display_help, decode_g_option): Remove.
11060
11061 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
11062
11063 * tree.c (get_file_function_name_long): Fix size of alloca() area.
11064
11065 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
11066
11067 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
11068 and gcc_cv_prog_cmp_skip.
11069 * configure: Regenerate.
11070
11071 2003-08-08 Stan Cox <scox@redhat.com>
11072
11073 * config/iq2000: New port.
11074 * config.gcc (iq2000-*-elf): Added.
11075 * doc/install.texi (Specific): Add iq2000 description.
11076
11077 2003-08-08 Andreas Schwab <schwab@suse.de>
11078
11079 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
11080 and insert missing empty argument.
11081 * configure: Regenerate.
11082
11083 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11084
11085 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
11086 (attr_length_millicode_call): Likewise.
11087 (attr_length_call): Likewise. Revise some maximum insn lengths.
11088 (attr_length_indirect_call): Likewise.
11089 (output_call): Fix thinko that added extra nop.
11090 * pa.h (IN_NAMED_SECTION_P): Define.
11091
11092 PR c++/11712
11093 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
11094 __STDC_EXT__ when using C++ dialect.
11095
11096 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
11097
11098 * sh.c (calc_live_regs): If the return address pointer is live,
11099 force pr live.
11100 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
11101 for saves / restores.
11102 (sh_expand_epilogue): If sh_media_register_for_return returns a
11103 register number, flag the instructions that restores PR_MEDIA_REG
11104 as possibly dead.
11105 Remove dead update of offset.
11106 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
11107 we can use the result of get_hard_reg_initial_val.
11108 * sh.md (UNSPEC_RA): New constant.
11109 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
11110 (load_ra). Handle UNSPEC_RA.
11111 (sibcall_media): Use PR_MEDIA_REG.
11112
11113 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
11114 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
11115 needs saving on SHmedia.
11116
11117 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
11118
11119 * config/s390/s390.md: Replace all occurrences of \\t with \t.
11120
11121 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
11122
11123 * local-alloc.c (combine_regs): Fix comment typo.
11124
11125 2003-08-06 Zack Weinberg <zack@codesourcery.com>
11126
11127 * c-decl.c (builtin_decls): Replace with first_builtin_decl
11128 and last_builtin_decl.
11129 (c_init_decl_processing): Initialize both.
11130 (c_reset_state): Iterate from first_builtin_decl to
11131 last_builtin_decl inclusive to reintroduce builtins.
11132
11133 2003-08-06 David Mosberger <davidm@hpl.hp.com>
11134
11135 * doc/extend.texi (Function Attributes): Document the IA-64 version
11136 of the "model" attribute.
11137
11138 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
11139 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
11140 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
11141
11142 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
11143 (ia64_encode_section_info): Likewise.
11144 (ia64_attribute_table): Add "model" attribute.
11145 (TARGET_ENCODE_SECTION_INFO): Define.
11146 (small_addr_symbolic_operand): New function.
11147 (got_symbolic_operand): Return 0 for a symbolref to an object
11148 in the small address area.
11149 (enum ia64_addr_area): New type.
11150 (small_ident1): New variable.
11151 (small_ident2): Likewise.
11152 (init_idents): New function.
11153 (ia64_get_addr_area): Likewise.
11154 (ia64_encode_addr_area): Likewise.
11155 (ia64_encode_section_info): Likewise.
11156 (ia64_expand_load_address): For symbolic references to objects in
11157 the small-address-area, load the address via gen_rtx_SET() (which,
11158 eventually, will expand into "addl").
11159
11160 2003-08-06 Per Bothner <pbothner@apple.com>
11161
11162 * line-map.h (fileline): New typedef.
11163 (struct line_map, linemap_add, linemap_lookup): Use it.
11164 * input.h (struct location_s): Comment notes that long-term we want
11165 to replace it by fileline.
11166
11167 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
11168
11169 Fix SHcompact exception handling:
11170 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
11171 by the prologue, return a MEM with return_address_pointer_rtx
11172 as address.
11173 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
11174 (RETURN_ADDR_OFFSET): Don't define.
11175 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
11176 registers that are visible in compact mode. Show that SHmedia
11177 registers still exist in compact mode, even if there are not
11178 readily accessible.
11179 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
11180 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
11181 and DW_EH_PE_pcrel for pic data.
11182 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
11183 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
11184 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
11185 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
11186 * sh.md (movsi_media-1): New splitter.
11187
11188 2003-08-06 Graeme Peterson <gp@qnx.com>
11189
11190 * config/i386/nto.h: New.
11191 * config/i386/t-nto: New.
11192 * config.gcc (i[34567]86-*-nto-qnx*): New.
11193
11194 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
11195
11196 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
11197
11198 2003-08-06 Alan Modra <amodra@bigpond.net.au>
11199
11200 * calls.c (load_register_parameters): Arrange for call_fusage to
11201 report the whole register as used when shifting to the msb.
11202
11203 2003-08-05 Roger Sayle <roger@eyesopen.com>
11204
11205 * builtins.c (expand_builtin): When not optimizing, call the library
11206 function for all builtins that have library functions (except alloca).
11207
11208 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
11209
11210 * c.opt: Introduce -fworking-directory.
11211 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
11212 * c-common.h (flag_working_directory): Declare.
11213 * c-common.c (flag_working_directory): Define.
11214 * c-opts.c (c_common_handle_options): Set it.
11215 (sanitize_cpp_opts): Set...
11216 * cpplib.h (struct cpp_options): ... working_directory option.
11217 (struct cpp_callbacks): Add dir_change.
11218 * cppinit.c (read_original_filename): Call...
11219 (read_original_directory): New. Look for # 1 "directory//"
11220 and process it.
11221 (cpp_read_main_file): Call dir_change callback if working_directory
11222 option is set.
11223 * gcc.c (cpp_unique_options): Pass -g*.
11224 * c-lex.c (cb_dir_change): New.
11225 (init_c_lex): Set dir_change callback.
11226 * toplev.c (src_pwd): New static variable.
11227 (set_src_pwd, get_src_pwd): New functions.
11228 * toplev.h (get_src_pwd, set_src_pwd): Declare.
11229 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
11230 * dwarf2out.c (gen_compile_unit_die): Likewise.
11231 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
11232
11233 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
11234
11235 * pretty-print.h (pp_set_line_maximum_length): Make macro.
11236 (pp_set_prefix): Likewise.
11237 (pp_destroy_prefix): Likewise.
11238 (pp_remaining_character_count_for_line): Likewise.
11239 (pp_clear_output_area): Likewise.
11240 (pp_formatted_text): Likewise.
11241 (pp_last_position_in_text): Likewise.
11242 (pp_emit_prefix): Likewise.
11243 (pp_append_text): Likewise.
11244 (pp_flush): Likewise.
11245 (pp_format_text): Likewise.
11246 (pp_format_verbatim): Likewise.
11247 (pp_tree_identifier): Tidy.
11248 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
11249 (pp_base_format_verbatim): Rename from pp_format_verbatim.
11250 (pp_base_flush): Rename from pp_flush.
11251 (pp_base_set_line_maximum_length): Rename from
11252 pp_set_line_maximum_length.
11253 (pp_base_clear_output_area): Rename from pp_clear_output_area.
11254 (pp_base_set_prefix): Rename from pp_set_prefix.
11255 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
11256 (pp_base_emit_prefix): Rename from pp_emit_prefix.
11257 (pp_base_append_text): Rename from pp_append_text.
11258 (pp_base_formatted_text): Rename from pp_formatted_text.
11259 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
11260 (pp_base_remaining_character_count_for_line): Rename from
11261 pp_remaining_character_count_for_line.
11262 * diagnostic.h (diagnostic_format_decoder): Tidy.
11263 (diagnostic_flush_buffer): Likewise.
11264 * c-pretty-print.h: (pp_c_string_literal): Declare.
11265 (pp_c_real_literal): Likewise.
11266 (pp_c_integer_literal): Likewise.
11267 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
11268 pp_identifier.
11269 (pp_c_character_literal): Tidy.
11270 (pp_c_string_literal): Make public.
11271 (pp_c_bool_literal): Likewise.
11272 (pp_c_integer_literal): Likewise.
11273 (pp_c_real_literal): Likewise.
11274
11275 * Makefile.in (C_PRETTY_PRINT_H): New variable.
11276 (c-pretty-print.o): Update dependence.
11277
11278 2003-08-05 Chris Demetriou <cgd@broadcom.com>
11279
11280 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
11281 ".set nomacro" state.
11282 (fix_truncsfsi2_macro): Likewise.
11283
11284 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
11285
11286 * tree.h (DID_INLINE_FUNC): Remove macro.
11287 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
11288 add tree check for FUNCTION_DECL.
11289 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
11290 (struct tree_decl): Rename inlined_function_flag to
11291 declared_inline_flag.
11292 * c-common.h (c_lang_decl): Remove.
11293 (DECL_ESTIMATED_INSNS): Remove.
11294 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
11295 (DECL_DECLARED_INLINE_P): Remove.
11296 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
11297 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
11298 (finish_function): Make uninlinable a bool. Fixup call to
11299 tree_inlinable_function_p() and fix some code style issues.
11300 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
11301 * cgraph.c (dump_cgraph): Likewise.
11302 * cgraphunit.c (cgraph_decide_inlining): Likewise
11303 (cgraph_finalize_compilation_unit): Likewise.
11304 Also update call to tree_inlinable_function_p().
11305 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
11306 look at DECL_DECLARED_INLINE and reverse logic.
11307 * print-tree.c (print_node): Likewise.
11308 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
11309 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
11310 prototype.
11311 * tree-inline.c (inlinable_function_p): Split up in this function to
11312 check for basic inlining inhibiting conditions, and new
11313 limits_allow_inlining() function. Warn if inlining is impossible
11314 because the inline candidate calls alloca or uses sjlj exceptions.
11315 (limits_allow_inlining): this new function to check if the inlining
11316 limits are satisfied. Throttle from currfn_max_inline_insns, not from
11317 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
11318 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
11319 Update prototypes.
11320 (tree_inlinable_function_p): Make a bool. Update call to
11321 inlinable_function_p
11322 (expand_call_inline): Use limits_allow_inlining() when not in
11323 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
11324 instead see if the function was declared `inline'.
11325
11326 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
11327
11328 * gcse.c (try_replace_reg): Fix updating of note.
11329
11330 2003-08-04 Roger Sayle <roger@eyesopen.com>
11331
11332 PR middle-end/11771
11333 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
11334 logic in negate_expr, i.e. we don't invert (A-B) for floating
11335 point types unless flag_unsafe_math_optimizations.
11336
11337 2003-08-04 Roger Sayle <roger@eyesopen.com>
11338
11339 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
11340 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
11341 for floating point expressions with -ffast-math.
11342 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
11343 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
11344
11345 2003-08-04 Roger Sayle <roger@eyesopen.com>
11346
11347 * c-common.c (flag_noniso_default_format_attributes): Delete.
11348 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
11349 (c_attrs_initialized): Delete.
11350 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
11351 always call c_init_attributes.
11352 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
11353 set c_attrs_initialized when done.
11354 (c_common_insert_default_attributes): Delete.
11355 * c-common.h (flag_noniso_default_format_attributes): Delete.
11356 (c_coomon_insert_default_attributes): Delete prototype.
11357 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
11358 flag_noniso_default_format_attributes.
11359
11360 * c-decl.c (c_insert_default_attributes): Delete.
11361 * c-tree.h (c_insert_default_attributes): Delete prototype.
11362
11363 * attribs.c (decl_attributes): Don't call insert_default_attributes
11364 langhook. Update function description comment.
11365 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
11366 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
11367 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
11368 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
11369
11370 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
11371 define.
11372
11373 2003-08-04 Richard Sandiford <rsandif@redhat.com>
11374
11375 * config/mips/mips.c (override_options): Disable -G on targets that
11376 have no .section support.
11377 (mips_select_section): Use default_select_section for such targets.
11378
11379 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
11380
11381 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
11382 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
11383 * fixinc/fixincl.x: Rebuild.
11384 * fixinc/tests/base/regexp.h: New test.
11385
11386 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
11387
11388 * c-ppoutput.c (cb_line_change): Don't skip line changing while
11389 parsing macro arguments in the top-level context.
11390
11391 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
11392
11393 * config.in: Remove HAVE_LSTAT.
11394 * configure, configure.in: Don't test for lstat.
11395
11396 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11397
11398 * opts.c (decode_options): Do language-specific initialization for
11399 the global diagnostic context.
11400 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
11401 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
11402 (LANG_HOOKS_INITIALIZER): Adjust.
11403 * langhooks.h (struct lang_hooks): Add new field
11404 initialize_diagnostics.
11405 * langhooks.c (lhd_initialize_diagnostics): Define.
11406
11407 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11408
11409 * pretty-print.h: Adjust macro definitions.
11410 * pretty-print.c (pp_newline): Rename to pp_base_newline.
11411 (pp_character): Rename to pp_base_character.
11412 (pp_string): Rename to pp_base_string.
11413 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
11414 (pp_newline): Likewise. Adjust.
11415 (pp_c_char): Adjust.
11416
11417 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11418
11419 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
11420 BUILT_IN_LLABS): Move to miscellaneous section.
11421
11422 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
11423
11424 PR preprocessor/11534
11425 * cppexp.c (parse_defined): Warn only if -pedantic.
11426
11427 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
11428
11429 * cppfiles.c (stack_file): Use file path.
11430
11431 2003-08-02 Roger Sayle <roger@eyesopen.com>
11432
11433 * builtin-types.def (BT_SSIZE): New primitive type.
11434 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
11435 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
11436 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
11437 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
11438 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
11439 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
11440 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
11441 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
11442 few functions that define default attributes using it.
11443 * c-common.c (c_common_insert_default_attributes): Do nothing.
11444
11445 * doc/extend.texi: Document these "new" builtins.
11446
11447 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
11448
11449 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
11450 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
11451 when -mieee-fp set and -shared not set.
11452 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
11453
11454 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
11455
11456 * cppfiles.c (struct _cpp_file): Rename once_only_next to
11457 next_file. Remove import and pragma_once, add once_only.
11458 (find_file): Add new file structures to the all_files list.
11459 (should_stack_file): Mark #import-ed files once-only, and
11460 don't stack them if the file has already been stacked.
11461 (_cp_mark_file_once_only): Simplify.
11462 * cpphash.h (struct cpp_reader): Rename once_only_files
11463 to all_files. Rename saw_pragma_once to seen_once_only.
11464 (_cpp_mark_file_once_only): Update prototype.
11465 * cpplib.c (do_pragma_once): Update.
11466
11467 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
11468
11469 * cppfiles.c (ENOTDIR): Remove.
11470 (open_file_in_dir): Rename find_file_in_dir. Handle errors
11471 other than ENOENT here.
11472 (once_only_file_p): Rename should_stack_file.
11473 (find_file, open_file_failed, read_file_guts): Report errors
11474 with full path name.
11475 (read_file): Move pch handling to should_stack_file.
11476 (should_stack_file): Handle PCH and once-only issues, and
11477 reading the file.
11478 (stack_file): Don't do file reads.
11479
11480 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11481
11482 * libgcov.c (gcov_exit): Cleanup and fix.
11483 * profile.c (compute_value_histograms): Don't try to read profiles
11484 that are not present.
11485
11486 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11487
11488 * builtins.def: Categorize.
11489
11490 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
11491 Mind fp rounding.
11492 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
11493
11494 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
11495
11496 * config.gcc: Enable posix threads by default on darwin.
11497
11498 2003-08-01 Jakub Jelinek <jakub@redhat.com>
11499
11500 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
11501 even if nehedges1 is 0.
11502
11503 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
11504
11505 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
11506 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
11507 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
11508 and defintions.
11509
11510 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
11511 * fixinc/fixincl.x: Regenerate.
11512 * fixinc/tests/base/math.h: Regenerate to match test_text change.
11513
11514 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11515
11516 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
11517
11518 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11519
11520 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
11521 for accesses to exc_ptr.
11522
11523 2003-08-01 Geoffrey Keating <geoffk@apple.com>
11524
11525 * doc/sourcebuild.texi (Front End Directory): Don't make references
11526 to libsubdir, it's not part of the interface to frontends.
11527 * doc/install.texi (Configuration): Help users read faster by saying
11528 that GCC's configure options are the standard autoconf ones.
11529 Mention --libdir. Update the default rules for finding the
11530 assembler. Don't use libsubdir since we haven't said what it means.
11531 (Specific): In the Solaris 7 notes, update the place to put the
11532 assembler.
11533 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
11534 * doc/cpp.texi (Search Path): Actually, the search path
11535 depends on libdir, which can relocate with cpp.
11536 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
11537 now a private interface between the Makefile and the driver.
11538
11539 2003-08-01 Richard Henderson <rth@redhat.com>
11540
11541 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
11542
11543 * varasm.c (lookup_constant_def): New function.
11544 * rtl.h (lookup_constant_def): Declare it.
11545 * dwarf2out.c (loc_descriptor_from_tree): Use it.
11546 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
11547
11548 2003-08-01 Zack Weinberg <zack@codesourcery.com>
11549
11550 * c-decl.c (gettags, pushdecl_function_level): Delete.
11551 (last_function_parm_vars): Rename last_function_parm_others.
11552 (current_function_parm_vars): Rename current_function_parm_others.
11553 (struct c_scope): Rewrite comment explaining this data structure.
11554 Add names_last, blocks_last, parms_last fields. Rename
11555 incomplete_list to incomplete.
11556 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
11557 (poplevel): Ignore second argument. No need to nreverse
11558 anything. Restructure such that each list is processed
11559 exactly once. Use 'const location_t *locus' syntactic sugar
11560 variable where useful. Issue unused variable warnings
11561 ourselves, do not rely on function.c.
11562 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
11563 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
11564 (implicitly_declare): decl cannot be error_mark_node.
11565 (undeclared_variable): Manipulate scope structure directly.
11566 (c_make_fname_decl): Likewise.
11567 (getdecls, c_init_decl_processing): Fix comment.
11568 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
11569 for 'last' variable.
11570 (grokparms): No need to nreverse parms list.
11571 (store_parm_decls_newstyle): Set up the parms_last and
11572 names_last fields of the new scope too.
11573 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
11574 on parms to begin with; check this under ENABLE_CHECKING. Set
11575 up parms_last.
11576 (check_for_loop_decls): Refer directly to current_scope->tags.
11577 Use consistent quote style in diagnostics.
11578 (c_write_global_declarations): The names list is not backward.
11579
11580 * c-common.h: Don't prototype gettags.
11581 * c-parse.in: Call poplevel with second argument 0 always.
11582
11583 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11584
11585 * builtins.def: Resort builtins.
11586
11587 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11588
11589 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
11590 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
11591 Prepend "__builtin_" onto NAME with string concatenation. Remove
11592 explicit "__builtin_" from each macro call.
11593
11594 Reformat entire file.
11595
11596 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11597
11598 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
11599 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
11600
11601 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
11602
11603 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
11604 CCL1, or CCL2 modes with floating point operations.
11605
11606 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
11607 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
11608 "*subdf3_cconly"): New insns.
11609 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
11610
11611 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
11612
11613 * Makefile.in: Refine dependencies.
11614 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
11615 * c.opt: Update help for -Wimport.
11616 * cppfiles.c: Include hashtab.h. Update comments.
11617 (stack_file): Read the file before updating dependencies.
11618 (once_only_file_p): Be smarter about marking once-only files.
11619 (_cpp_mark_file_once_only): Correct the check for existence on
11620 the list.
11621 (open_file_failed): Use name not path, which is NULL.
11622 * cpphash.h: Don't include hashtab.h.
11623 (struct _cpp_file): Remove.
11624 (struct cpp_reader): Update.
11625 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
11626 * cpplib.h (struct cpp_options): Remove warn_import.
11627 (cpp_simplify_path): Remove.
11628
11629 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
11630
11631 PR c++/11295
11632 * doc/extend.texi (Statement Expressions): Document C++ semantics.
11633
11634 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11635
11636 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
11637
11638 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11639
11640 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
11641 throughout.
11642 * builtins.def: Likewise.
11643
11644 2003-07-31 Jason Merrill <jason@redhat.com>
11645
11646 * Makefile.in (bubblestrap): Don't require a previous full
11647 bootstrap.
11648
11649 * expr.c (mostly_zeros_p): No longer static.
11650 * tree.h: Declare it.
11651 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
11652 unless we need to do substitutions.
11653
11654 2003-07-31 Roger Sayle <roger@eyesopen.com>
11655
11656 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
11657 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
11658 as pow(x,2.0) when the latter will be expanded back into x*x.
11659 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
11660 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
11661 pow can never set errno when used with an integer exponent.
11662 Always use expand_powi when exponent is -1, 0, 1 or 2.
11663 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
11664 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
11665 the pow forms of these expressions.
11666
11667 2003-07-31 Geoffrey Keating <geoffk@apple.com>
11668
11669 * Makefile.in (libexecdir): New.
11670 (libsubdir): Use gcc instead of gcc-lib.
11671 (libexecsubdir): New.
11672 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
11673 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
11674 gcc-lib.
11675 (installdirs): Make libexecsubdir.
11676 (install-common): Put executables in libexecsubdir.
11677 (itoolsdir): Use libexecsubdir.
11678 (itoolsdatadir): New.
11679 (install-mkheaders): Separate data files and executables.
11680 (install-collect2): Put executables in libexecsubdir.
11681 (uninstall): Remove libexecsubdir.
11682 * mkheaders.in: Update for new arrangement of files.
11683 (libexecdir): New.
11684 (libexecsubdir): New.
11685 (itoolsdir): Use libexecsubdir.
11686 (itoolsdatadir): New.
11687 * gcc.c (gcc_libexec_prefix): New.
11688 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
11689 (standard_exec_prefix_1): Use libexec.
11690 (standard_exec_prefix_2): New.
11691 (standard_libexec_prefix): New.
11692 (process_command): Update for new arrangement of files. Compute
11693 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
11694
11695 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
11696
11697 * inclhack.def (stdio_va_list): Avoid bogus replacement which
11698 triggers on Interix.
11699 * fixincl.x: Regenerate.
11700
11701 2003-07-31 Jakub Jelinek <jakub@redhat.com>
11702
11703 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
11704 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
11705
11706 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11707
11708 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
11709
11710 2003-07-31 Per Bothner <pbothner@apple.com>
11711
11712 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
11713 (add_input_filename): New function.
11714 (handle_options): Call add_input_filename directly instead of
11715 with a lang hook.
11716 * opts.h (in_fnames, num_in_fnames): Moved here.
11717 (add_input_filename): Declare.
11718 * c-decl.c: Need to #include opts.h.
11719 * Makefile.in (c-decl.o): Also depends on opts.h.
11720 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
11721 (c_common_handle_filename): Replaced by add_input_filename.
11722 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
11723 Remove.
11724 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
11725 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
11726 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
11727 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
11728
11729 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11730
11731 * combine.c (try_combine): Set JUMP_LABEL for newly created
11732 unconditional jump.
11733
11734 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11735
11736 * fold-const.c (fold): Fold some comparisons of bit operations.
11737
11738 2003-07-31 Jan Hubicka <jh@suse.cz>
11739
11740 * cgraph.c (create_edge): Fix typo.
11741 * i386.c (pic_symbolic_operand): Reorder tests.
11742
11743 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
11744
11745 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
11746 more fully.
11747 (Gcov Data Files): Update.
11748
11749 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11750
11751 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
11752 default.
11753
11754 * gthr-posix.c: New file.
11755 * gthr-posix.h: Define _REENTRANT if missing.
11756 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
11757
11758 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
11759 by gthr-posix.o.
11760 * config/alpha/t-osf-pthread: New file.
11761
11762 * fixinc/inclhack.def (alpha_pthread): New fix.
11763 * fixinc/fixincl.x: Regenerate.
11764 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
11765
11766 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
11767 warning.
11768 Fixes PR bootstrap/9330.
11769
11770 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11771
11772 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
11773 without GNU ld.
11774 Update comment.
11775 * configure: Regenerate.
11776
11777 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
11778
11779 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
11780 setter.
11781
11782 2003-07-30 Roger Sayle <roger@eyesopen.com>
11783
11784 * builtins.def: Alphabetize.
11785
11786 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
11787
11788 * doc/c-tree.texi: Normalize spellings of "lowercase" and
11789 "uppercase".
11790 * doc/cpp.texi: Likewise.
11791 * doc/md.texi: Likewise.
11792 * doc/rtl.texi: Likewise.
11793 * doc/tm.texi: Likewise.
11794
11795 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
11796
11797 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
11798 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
11799 of cc1obj.
11800
11801 2003-07-30 Chris Demetriou <cgd@broadcom.com>
11802
11803 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
11804 macros before defining them.
11805
11806 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
11807
11808 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
11809 UNSPECV_BLOCKAGE): New constants.
11810 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
11811 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
11812 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
11813 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
11814
11815 (all insns and expanders): Write output control string as brace block
11816 where appropriate. Remove \-escapes for doublequote characters.
11817
11818 2003-07-31 Jan Hubicka <jh@suse.cz>
11819
11820 * gcse.c (insert_store): Fix typo in previous patch.
11821
11822 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
11823
11824 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
11825
11826 2003-07-30 Andi Kleen <ak@muc.de>
11827
11828 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
11829
11830 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11831
11832 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
11833 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
11834 GCOV_N_VALUE_COUNTERS): New.
11835 * profile.c (compute_value_histograms): New static function.
11836 (branch_prob): Read back the value histograms.
11837 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
11838 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
11839 * value-prof.c: Add comment on reading the profile.
11840 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
11841 * doc/invoke.texi (-fprofile-values): Document behavior with
11842 -fbranch-probabilities.
11843
11844 2003-07-30 David Edelsohn <edelsohn@gnu.org>
11845
11846 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
11847
11848 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
11849
11850 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
11851 symbolically.
11852
11853 2003-07-30 Jan Hubicka <jh@suse.cz>
11854
11855 * gcse.c (insert_store): Ignore fake edges.
11856
11857 * c-common.c (flag_vtable_gc): Kill.
11858 * c-common.g (flag_vtable_gc): Kill.
11859 * c-opts (c_common_handle_option): Kill.
11860 * c.opt (fvtable-gc): Kill.
11861 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
11862 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11863 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11864
11865 * invoke.texi (-ftable-gc): Kill documentation.
11866
11867 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
11868 just because function body is missing.
11869
11870 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
11871
11872 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
11873
11874 * unwind-sjlj.c: Fix typo in file description.
11875
11876 2003-07-30 Alan Modra <amodra@bigpond.net.au>
11877
11878 * calls.c (load_register_parameters): When shifting reg sized values
11879 to the msb, move the value to a reg first.
11880
11881 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11882
11883 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
11884 * line-map.h (linemap_add): Update comments.
11885 * line-map.c (linemap_add): Update comments, interpret zero-length
11886 filename as "<stdin>".
11887
11888 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
11889
11890 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
11891
11892 2003-07-29 Zack Weinberg <zack@codesourcery.com>
11893
11894 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
11895 New static variables.
11896 (struct c_scope): Add parms and warned_forward_parm_decls
11897 fields; remove parm_order.
11898 (storedecls, storetags): Delete.
11899 (poplevel): Also clear bindings on the parms chain.
11900 (pushdecl): Handle forward declarations of parameters, and
11901 chain PARM_DECLs on the parms list, not the names list.
11902 (lookup_name_current_level): Check for PARM_DECLs on the parms
11903 list too.
11904 (push_parm_decl): Don't update parm_order.
11905 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
11906 warning, only once per parameter list, and set TREE_ASM_WRITTEN
11907 on the decls here. Then move the forward decls to the names list.
11908 (grokparms): Set last_function_parm_vars.
11909 (get_parm_info): Don't use gettags or getdecls. No need to
11910 extract non-parms from the parms list, or reorganize the parms
11911 list. Feed nonparms back in the TREE_TYPE of the list node
11912 returned. Issue only one error per parameter list for "void"
11913 appearing more than once in said parameter list. Collapse
11914 parmlist_tags_warning into this function to avoid double scan
11915 of tags list.
11916 (start_function): Set current_function_parm_vars.
11917 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
11918 directly. Get non-parms from current_function_parm_vars; no
11919 need to extract them from the parms chain. Properly bind tags
11920 in the new scope.
11921 (store_parm_decls_oldstyle): No need to extract non-parameters
11922 from the parms chain, nor to store them back afterward. Move
11923 declaration to top of function, restructure code reordering
11924 DECL_ARGUMENTS.
11925 (store_parm_decls): No need to save and restore warn_shadow.
11926 * c-parse.in: Don't call parmlist_tags_warning nor
11927 clear_parm_order. Call mark_forward_parm_decls when forward
11928 parm decls are encountered.
11929 * c-tree.h: Prototype mark_forward_parm_decls; not
11930 clear_parm_order or parmlist_tags_warning.
11931
11932 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11933
11934 * c-common.c (allow_pch): Remove.
11935 * c-common.h (allow_pch): Remove.
11936 (c_common_no_more_pch): Declare.
11937 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
11938 * c-pch.c: Include hosthooks.h.
11939 (c_common_valid_pch): Don't check allow_pch.
11940 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
11941 (c_common_no_more_pch): New.
11942 * ggc-common.c: Include hosthooks.h.
11943 (gt_pch_save): Call gt_pch_get_address.
11944 (gt_pch_restore): Call gt_pch_use_address.
11945 * hooks.c (hook_voidp_size_t_null): New.
11946 (hook_bool_voidp_size_t_false): New.
11947 * hooks.h (hook_voidp_size_t_null): New.
11948 (hook_bool_voidp_size_t_false): New.
11949 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
11950 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
11951 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
11952 HOST_HOOKS_GT_PCH_USE_ADDRESS.
11953 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
11954 gt_pch_use_address.
11955 * doc/hostconfig.texi (Host Common): Document
11956 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
11957 * Makefile.in (c-pch.o): Depend on hosthooks.h.
11958 (ggc-common.o): Likewise.
11959
11960 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
11961 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
11962 (pch_address_space): New.
11963 (darwin_rs6000_gt_pch_get_address): New.
11964 (darwin_rs6000_gt_pch_use_address): New.
11965
11966 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
11967
11968 PR preprocessor/11569
11969 PR preprocessor/11649
11970 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
11971 * cppfiles.c: Completely rewritten.
11972 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
11973 struct cpp_path is now struct cpp_dir.
11974 (remove_duplicates): Don't simplify path names.
11975 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
11976 cpp_stack_file.
11977 * cpphash.h: Include hashtab.h.
11978 (_cpp_file): Declare.
11979 (struct cpp_buffer): struct include_file is now struct _cpp_file,
11980 and struct cpp_path is now struct cpp_dir. Rename members.
11981 (struct cpp_reader): Similarly. New members once_only_files,
11982 file_hash, file_hash_entries, quote_ignores_source_dir,
11983 no_search_path, saw_pragma_once. Remove all_include_files and
11984 max_include_len. Make some members bool.
11985 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
11986 (_cpp_stack_file): Renamed from _cpp_read_file.
11987 (_cpp_stack_include): Renamed from _cpp_execute_include.
11988 (_cpp_init_files): Renamed from _cpp_init_includes.
11989 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
11990 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
11991 (cpp_read_next_file): Rename and move to cppfiles.c.
11992 (cpp_read_main_file): Update.
11993 * cpplib.c (run_directive): Update for renamed members.
11994 (do_include_common, _cpp_pop_buffer): Update.
11995 (do_import): Undeprecate #import.
11996 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
11997 * cpplib.h: Remove file_name_map_list.
11998 (cpp_options): Remove map_list.
11999 (cpp_dir): Rename from cpp_path. New datatype for name_map.
12000 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
12001
12002 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
12003
12004 * Makefile.in: Make stamp-objdir safe for parallel builds.
12005
12006 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
12007
12008 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
12009 (info): Depend on stmp-docobjdir.
12010
12011 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12012
12013 * configure: Regenerate.
12014
12015 2003-07-29 Jan Hubicka <jh@suse.cz>
12016
12017 PR C++/11131
12018 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
12019 in !unit-at-a-time mode.
12020
12021 2003-07-28 Geoffrey Keating <geoffk@apple.com>
12022
12023 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
12024 main function.
12025
12026 2003-07-28 Mark Mitchell <mark@codesourcery.com>
12027
12028 PR c++/11667
12029 * c-common.c (shorten_compare): Take into account differences
12030 between C and C++ representation for enumeration types.
12031 * tree.h (set_min_and_max_values_for_integral_type): Declare.
12032 * stor-layout.c (set_min_and_max_values_for_integral_type): New
12033 function, broken out from ...
12034 (fixup_signed_type): ... here and ...
12035 (fixup_unsigned_type): ... here.
12036
12037 2003-07-28 Zack Weinberg <zack@codesourcery.com>
12038
12039 * c-decl.c: Update commentary, adjust blank lines throughout.
12040 (struct c_scope): Fix indentation. Reorder members so
12041 outer-context pointers come first, booleans last.
12042 (duplicate_decls, define_label): Use a 'locus' variable for
12043 diagnostic locations in a few more places.
12044 (warn_if_shadowing): Un-split a conditional that fits on one line.
12045 (c_init_decl_processing): No need to clear current_scope and
12046 current_function_scope.
12047 (start_decl): Merge if/else if statements with same action.
12048 (push_parm_decl): Rename old_immediate_size_expand to use
12049 save_foo convention; save/restore around entire function.
12050 (grokdeclarator): Remove unnecessary braces.
12051
12052 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
12053 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
12054
12055 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
12056 when warn_declaration_after_statement. Call pedwarn_c90, not
12057 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
12058 * c-common.c (warn_declaration_after_statement): Define.
12059 * c-common.h (warn_declaration_after_statement): Declare.
12060 * c.opt (Wdeclaration-after-statement): New.
12061 * c-errors.c (pedwarn_c90): New function.
12062 * c-opts.c (c_common_handle_option) <case
12063 OPT_Wdeclaration_after_statement>: New.
12064 * c-tree.h (pedwarn_c90): Declare.
12065 * doc/invoke.texi (Option Summary): Document
12066 -Wdeclaration-after-statement.
12067 (Warning Options): Ditto.
12068
12069 2003-07-28 Jan Hubicka <jh@suse.cz>
12070
12071 * i386.md (memory attribute) Avoid accessing uninitialized memory
12072 for ishift1 type instructions.
12073
12074 2003-07-28 Jakub Jelinek <jakub@redhat.com>
12075
12076 * configure.in (--enable-checking): Add fold category.
12077 (ENABLE_FOLD_CHECKING): Define if requested.
12078 * configure: Rebuilt.
12079 * config.in: Rebuilt.
12080 * doc/install.texi: Document it.
12081 * fold-const.c: Include md5.h.
12082 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
12083 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
12084 print_fold_checksum): New functions.
12085
12086 * fold-const.c (fold): Never modify argument passed to fold, instead
12087 change a copy and return it.
12088 * convert.c (convert_to_integer): Likewise.
12089
12090 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
12091
12092 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
12093 cleanup of junk after #else and #endif directives. Collapse repeated
12094 clauses into for statment.
12095
12096 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
12097
12098 2003-07-27 Zack Weinberg <zack@codesourcery.com>
12099
12100 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
12101 (keep_next_if_subblocks): Rename next_is_function_body.
12102 (pushlevel): Adjust commentary. Always set ->keep on the
12103 outermost level of a function. Don't set ->keep_if_subblocks.
12104 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
12105 (store_parm_decls): Adjust to match.
12106 (finish_function): Adjust to match.
12107 Call poplevel with all three arguments zero.
12108
12109 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
12110 New functions split out of store_parm_decls.
12111 Avoid unnecessary work. Use local variables consistently.
12112 (store_parm_decls): Likewise.
12113
12114 (finish_function): No need to set functionbody flag on call to
12115 poplevel.
12116 (struct language_function): Remove scope field.
12117 (c_push_function_context, c_pop_function_context): No need to
12118 save and restore current_scope.
12119
12120 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
12121
12122 * doc/extend.texi (Deprecated Features): Implicit typename is
12123 gone. Default args on types is going.
12124
12125 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
12126
12127 * Makefile.in (ifcvt.o): Depend on target.h
12128 * ifcvt.c (target.h): Include.
12129 (if_convert): Don't call mark_loop_exit_edges if we can't
12130 modify jumps.
12131
12132 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12133
12134 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
12135
12136 2003-07-26 Richard Henderson <rth@redhat.com>
12137
12138 PR inline-asm/11676
12139 * cse.c (count_reg_usage): Handle asm_operands properly.
12140
12141 2003-07-26 Roger Sayle <roger@eyesopen.com>
12142
12143 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
12144 (DEF_EXT_FALLBACK_BUILTIN): Delete.
12145 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
12146 the regular DEF_EXT_LIB_BUILTIN macro.
12147 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
12148 the regular DEF_LIB_BUILTIN macro.
12149 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
12150 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
12151 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
12152 DEF_EXT_LIB_BUILTIN macro.
12153
12154 * c-decl.c (duplicate_decls): Remove code to handle builtin
12155 functions prototyped without an argument list.
12156
12157 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
12158
12159 * config/i386/winnt.c: Revert 2003-07-08 change.
12160 (i386_pe_section_type_flags): Remove error_with_decl here too.
12161
12162 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
12163
12164 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
12165 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
12166 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
12167 (v850_handle_data_area_attribute): Likewise.
12168
12169 2003-07-26 Geoffrey Keating <geoffk@apple.com>
12170
12171 * varasm.c (output_constant_def_contents): Use
12172 ASM_DECLARE_CONSTANT_NAME if defined.
12173 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
12174 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
12175 objects get at least one byte to prevent assembler problems.
12176 (ASM_DECLARE_CONSTANT_NAME): New.
12177
12178 * Makefile.in (libbackend.o): Remove options_.h.
12179 (mostlyclean): Likewise.
12180
12181 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
12182 insert a label at the end of an function under Mach-O.
12183
12184 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
12185
12186 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
12187
12188 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
12189 equality.
12190 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
12191
12192 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
12193
12194 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12195
12196 * doc/passes.texi (Passes): Mention pretty-printing and
12197 diagnostic files.
12198
12199 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
12200
12201 * doc/extend.texi (Function Attributes): GNU C++ does now allow
12202 unused parameter decls.
12203 (Attribute Syntax): GNU C++ does not allow label attributes to be
12204 after the ':'.
12205
12206 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12207
12208 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
12209 (objc_declare_class): Likewise.
12210 (error_with_ivar): Likewise.
12211 (start_class): Likewise.
12212 (warn_with_method): Likewise.
12213
12214 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12215
12216 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
12217 from GCC.
12218 * calls.c (try_to_integrate): Don't use xxx_with_decl.
12219 (expand_call): Likewise.
12220 * dwarfout.c (output_reg_number): Likewise.
12221 * expr.c (expand_expr): Likewise.
12222 * function.c (assign_temp): Likewise.
12223 (uninitialized_vars_warning): Likewise.
12224 (setjmp_args_warning): Likewise.
12225 (expand_function_end): Likewise.
12226 * stmt.c (fixup_gotos): Likewise.
12227 (warn_about_unused_variables): Likewise.
12228 (expand_end_bindings): Likewise.
12229 * stor-layout.c (layout_decl): Likewise.
12230 (place_field): Likewise.
12231 * toplev.c (check_global_declarations): Likewise.
12232 (rest_of_handle_inlining): Likewise.
12233 (default_tree_printer): New function.
12234 (general_init): Initialize diagnostic machinery before routing
12235 signals to the ICE machinery. Set default tree printer.
12236 * toplev.h (pedwarn_with_decl): Remove declaration.
12237 (warning_with_decl): Likewise.
12238 (error_with_decl): Likewise.
12239 (pedwarn): Remove attribute for the time being.
12240 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
12241 * varasm.c (named_section): Likewise.
12242 (make_decl_rtl): Likewise.
12243 (assemble_variable): Likewise.
12244 (merge_weak): Likewise.
12245 (declare_weak): Likewise.
12246
12247 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
12248 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
12249 (format_with_decl): Remove.
12250 (diagnostic_for_decl): Likewise.
12251 (pedwarn_with_decl): Likewise.
12252 (warning_with_decl): Likewise.
12253 (error_with_decl): Likewise.
12254 (diagnostic_initialize): Adjust.
12255 (diagnostic_count_diagnostic): Likewise.
12256 (announce_function): Likewise.
12257 (lhd_print_error_function): Likewise.
12258 (diagnostic_report_current_module): Likewise.
12259 (default_diagnostic_starter): Likewise.
12260 (diagnostic_report_diagnostic): Likewise.
12261 (default_diagnostic_finalizer): Likewise.
12262 (verbatim): Likewise.
12263 (error): Likewise.
12264 (warning): Likewise.
12265 * opts.c (common_handle_option): Likewise.
12266 * pretty-print.c: New file.
12267 * c-pretty-print.h (pp_base): Override.
12268 * c-pretty-print.c: Adjust use of macros throughout.
12269 (pp_buffer): New macro.
12270 (pp_newline): Likewise.
12271 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
12272 * Makefile.in (DIAGNOSTIC_H): New variable.
12273 (c-errors.o): Use it.
12274 (c-objc-common.o): Likewise.
12275 (c-common.o): Likewise.
12276 (c-opts.o): Likewise.
12277 (c-format.o): Likewise.
12278 (diagnostic.o): Likewise.
12279 (opts.o): Likewise.
12280 (toplev.o): Likewise.
12281 (rtl-error.o): Likewise.
12282 (dwarf2out.o): Likewise.
12283 (jump.o): Likewise.
12284 (pretty-print.o): New rule.
12285
12286 2003-07-24 Roger Sayle <roger@eyesopen.com>
12287
12288 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
12289 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
12290 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
12291 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
12292 (DEF_FRONT_END_LIB_BUILTIN): Delete.
12293 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
12294 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
12295
12296 * builtins.c (build_string_literal): New function to construct
12297 a char* pointer to a string literal.
12298 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
12299 "rtx target" to be consistent with other expand_builtin_* functions.
12300 Change 3rd argument from "int unlocked" to "bool unlocked".
12301 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
12302 c-common.c to avoid front-end dependencies. Optimize printf("")
12303 as a no-op when the result isn't required. Handle embedded NULs
12304 in format string.
12305 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
12306 from c-common.c to avoid front-end dependencies. Likewise, optimize
12307 fprintf(fp,"") as a no-op when the result isn't required, evaluating
12308 fp for side-effects. Handle embedded NULs in format string.
12309 (expand_builtin_sprintf): Fix typo.
12310 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
12311 optimizing. Adjust calls of expand_builtin_fputs to match the API
12312 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
12313 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
12314 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
12315
12316 * c-common.c (is_valid_printf_arglist): Delete.
12317 (c_expand_builtin): Delete.
12318 (c_expand_builtin_printf): Moved to builtins.c. Delete.
12319 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
12320 (c_expand_expr): No longer treat CALL_EXPRs specially.
12321 (CALLED_AS_BUILT_IN): Delete.
12322
12323 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12324
12325 PR optimization/11631
12326 * gcse.c (store_motion): Connect infinite loops to exit.
12327
12328 2003-07-24 Jason Merrill <jason@redhat.com>
12329
12330 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
12331 (boolean_true_node, boolean_false_node): Likewise.
12332 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
12333 * tree.c (build_common_tree_nodes): Init boolean_type_node.
12334 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
12335 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
12336 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
12337 (truthvalue_true_node): Renamed from boolean_true_node.
12338 (truthvalue_false_node): Renamed from boolean_false_node.
12339 * c-decl.c: Just set truthvalue_* to integer_*.
12340 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
12341
12342 2003-07-24 Roger Sayle <roger@eyesopen.com>
12343
12344 * c-decl.c (match_builtin_function_types): New subroutine of
12345 duplicate_decls to test whether a redeclaration of a builtin
12346 function is suitably close, i.e. the return type and all of
12347 the argument types have the same modes as the builtin expects.
12348 (duplicate_decls): Fuzzy type matching for builtin functions
12349 moved to match_builtin_function_types.
12350
12351 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12352
12353 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
12354 flag correctly.
12355
12356 2003-07-24 Zack Weinberg <zack@codesourcery.com>
12357
12358 * c-decl.c: Search-and-replace change 'binding level' to
12359 'scope' in commentary.
12360 (struct binding_level): Now struct c_scope.
12361 (current_binding_level): Now current_scope.
12362 (free_binding_level): Now scope_freelist.
12363 (current_function_level): Now current_function_scope.
12364 (global_binding_level): Now global_scope.
12365 (make_binding_level): Now make_scope.
12366 (pop_binding_level): Now pop_scope.
12367
12368 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12369
12370 * configure.in (libgcc_visibility): Add missing whitespace.
12371
12372 2003-07-24 Richard Henderson <rth@redhat.com>
12373
12374 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
12375 __gcc_personality_v0.
12376
12377 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12378
12379 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
12380
12381 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
12382
12383 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
12384 documentation missed from my 2003-07-09 patch.
12385
12386 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
12387
12388 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
12389 it's not provided.
12390 * configure: Rebuild.
12391
12392 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
12393
12394 PR c/10602
12395 * c-typeck.c (type_lists_compatible_p): Do not compare
12396 arguments if one of them is an error_mark_node
12397
12398 2003-07-24 Alan Modra <amodra@bigpond.net.au>
12399
12400 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
12401 if current_function_calls_eh_return.
12402
12403 2003-07-23 Mark Mitchell <mark@codesourcery.com>
12404
12405 * doc/c-tree.texi (OFFSET_TYPE): Update description.
12406
12407 2003-07-23 Bob Wilson <bob.wilson@acm.org>
12408
12409 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
12410 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
12411 __umodsi3, __modsi3): Increase frame size to 32.
12412
12413 2003-07-23 Geoffrey Keating <geoffk@apple.com>
12414
12415 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
12416 prototype.
12417
12418 2003-07-23 Mark Mitchell <mark@codesourcery.com>
12419
12420 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
12421
12422 PR optimization/10679
12423 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
12424
12425 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12426
12427 PR target/11607 and PR target/11516
12428 * pa.md (extzv, extv, insv): Revert latter half of last patch.
12429
12430 2003-07-22 Mark Mitchell <mark@codesourcery.com>
12431
12432 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
12433 * varasam.c (output_constant): Likewise.
12434
12435 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12436
12437 * alias.c: Fix comment formatting.
12438 * c-common.c: Likewise.
12439 * c-decl.c: Likewise.
12440 * c-opts.c: Likewise.
12441 * combine.c: Likewise.
12442 * cpplib.c: Likewise.
12443 * diagnostic.c: Likewise.
12444 * dojump.c: Likewise.
12445 * final.c: Likewise.
12446 * fold-const.c: Likewise.
12447 * gcc.c: Likewise.
12448 * gcse.c: Likewise.
12449 * ggc-page.c: Likewise.
12450 * jump.c: Likewise.
12451 * loop.c: Likewise.
12452 * mips-tfile.c: Likewise.
12453 * recog.c: Likewise.
12454 * regclass.c: Likewise.
12455 * regmove.c: Likewise.
12456 * tree.c: Likewise.
12457 * tree.h: Likewise.
12458
12459 2003-07-22 Per Bothner <pbothner@apple.com>
12460
12461 * line-map.c (add_line_map): Handle invalid LEAVE request.
12462 Fixes PR preprocessor/11361.
12463
12464 2003-07-22 Per Bothner <pbothner@apple.com>
12465
12466 * diagnostic.c.(diagnostic_report_current_module): Update to match
12467 2003-06-05 changes to push_srcloc and pop_srcloc.
12468
12469 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
12470
12471 * doc/trouble.texi: Better document two-stage name lookup.
12472
12473 2003-07-22 Eric Christopher <echristo@redhat.com>
12474
12475 * config/s390.c (s390_valid_pointer_mode): New.
12476 (TARGET_VALID_POINTER_MODE): Use.
12477 (s390_emit_prologue): Add tpf profiling hooks.
12478 (s390_emit_epilogue): Ditto.
12479 * config/s390.h (MASK_TPF): New.
12480 (TARGET_TPF): Use.
12481 (POINTERS_EXTEND_UNSIGNED): Define.
12482 * config/s390.md (ptr_extend): New pattern.
12483
12484 2003-07-22 Zack Weinberg <zack@codesourcery.com>
12485
12486 * hashtable.c (approx_sqrt): Make static.
12487 * hashtable.h: Don't prototype approx_sqrt.
12488 * line-map.c (init_line_maps): Rename linemap_init.
12489 (free_line_maps): Rename linemap_free.
12490 (add_line_map): Rename linemap_add.
12491 (lookup_line): Rename linemap_lookup.
12492 (print_containing_files): Rename linemap_print_containing_files.
12493 * linemap.h: Update to match.
12494
12495 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
12496 linemap routines to use new names.
12497
12498 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
12499
12500 * c-common.c (handle_packed_attribute): Don't pack a struct via a
12501 typedef. Propagate packedness from a main variant.
12502
12503 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
12504
12505 * Makefile.in (install-common): Add dependency on installdirs.
12506
12507 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
12508
12509 * c-common.c (c_common_type_for_mode): Return integer types for
12510 pointer modes.
12511
12512 2003-07-22 Geoffrey Keating <geoffk@apple.com>
12513
12514 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
12515 (finish_decl): Call maybe_apply_pragma_weak here.
12516 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
12517 TREE_PUBLIC and TREE_STATIC are decided.
12518 (start_function): Move call to maybe_apply_pragma_weak. Check that
12519 DECL_ASSEMBLER_NAME isn't set too early.
12520
12521 * cpplex.c (_cpp_process_line_notes): Mention option name in
12522 trigraphs warning.
12523
12524 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12525
12526 * combine.c (if_then_else_cond): Simplify the comparison of
12527 rtx against -1, 0, and 1.
12528 * loop.c (check_dbra_loop): Likewise.
12529 * optabs.c (emit_conditional_move): Likewise.
12530 (emit_conditional_add): Likewise.
12531 * config/i386/i386.md (*movsi_or): Likewise.
12532 (*movdi_or_rex6): Likewise.
12533
12534 2003-07-22 Jan Hubicka <jh@suse.cz>
12535
12536 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
12537
12538 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
12539
12540 * cppfiles.c (open_file_pch): Don't put unused entries in the
12541 splay tree. Remove dead code.
12542
12543 2003-07-21 Geoffrey Keating <geoffk@apple.com>
12544
12545 * c-common.h (num_in_fnames): Declare.
12546 (c_static_assembler_name): Move from here...
12547 * c-tree.h (c_static_assembler_name): ... to here.
12548 * c-opts.c: Don't include langhooks-def.h.
12549 (c_static_assembler_name): Move to c-decl.c.
12550 (num_in_fnames): Make externally visible.
12551 * c-decl.c: Include langhooks-def.h.
12552 (c_static_assembler_name): Move from c-opts.c.
12553 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
12554 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
12555
12556 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
12557 when it's not needed.
12558
12559 2003-07-21 Jakub Jelinek <jakub@redhat.com>
12560
12561 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
12562 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
12563 (rs6000_emit_prologue): Save FPRs inline if set.
12564
12565 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
12566
12567 * config/ia64/ia64.md (prefetch): Support predicate.
12568
12569 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
12570
12571 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
12572 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
12573 table.
12574
12575 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12576
12577 PR optimization/11536
12578 * unroll.c (loop_iterations): Do not replace a register holding
12579 the final value by its equivalent before the loop if it is not
12580 invariant.
12581
12582 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
12583
12584 * doc/extend.texi: Fixes to spelling, grammar, and diction.
12585
12586 2003-07-21 Ben Elliston <bje@wasabisystems.com>
12587
12588 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
12589 (V850 Options): Spelling fixes.
12590
12591 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
12592
12593 * doc/invoke.texi: Fixes to style, grammar and diction.
12594
12595 2003-07-20 Roger Sayle <roger@eyesopen.com>
12596
12597 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
12598 * system.h (SMALL_STACK): Poison obsolete target macro.
12599 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
12600
12601 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
12602
12603 * configure.in: Cache the results of testing for cmp's capabilities.
12604 * configure: Regenerate.
12605
12606 2003-07-20 Mark Mitchell <mark@codesourcery.com>
12607
12608 PR debug/11279
12609 * dwarf2out.c (gen_enumeration_type_die): Remember that
12610 enumerators can be unsigned.
12611
12612 2003-07-19 Zack Weinberg <zack@codesourcery.com>
12613
12614 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
12615 (push_label_level, pop_label_level): Kill.
12616 (struct binding_level): Rename level_chain to outer.
12617 Add outer_function field. Change parm_flag, function_body,
12618 keep, keep_if_subblocks to 1-bit bitfields of type bool.
12619 (current_function_level): New variable.
12620 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
12621 (keep_next_level, declare_parm_level, warn_if_shadowing):
12622 Update to match.
12623 (struct language_function): Kill named_labels, shadowed_labels fields.
12624 (c_init_decl_processing, start_function, c_push__function_context)
12625 (c_pop_function_context): No need to muck with named_labels nor
12626 shadowed_labels.
12627
12628 (make_binding_level): No need to clear the structure here.
12629 (pop_binding_level): Always operate on current_binding_level.
12630 Update current_function_level if necessary.
12631 (pushlevel): Don't clear named_labels. Update current_function_level
12632 if necessary. Use "true" and "false" where appropriate.
12633 (poplevel): Diagnose labels defined but not used, or vice
12634 versa, and clear out label-meanings leaving scope, while
12635 walking down the decls list, for all binding levels.
12636 Handle LABEL_DECLs appearing in the shadowed list.
12637 pop_binding_level takes no arguments.
12638 (pushdecl_function_level): Use current_function_level.
12639
12640 (make_label, bind_label): New static functions.
12641 (declare_label): New exported function.
12642 (lookup_label, define_label): Rewritten for new data structure.
12643 (shadow_label): Kill.
12644
12645 * c-tree.h: Prototype declare_label; don't prototype
12646 push_label_level, pop_label_level, nor shadow_label.
12647 * c-parse.in: Remove all calls to push_label_level and
12648 pop_label_level. Use declare_label for __label__ decls.
12649
12650 * doc/extend.texi: Clarify that __label__ can be used to
12651 declare labels with local scope in any nested block, not
12652 just statement expressions. Cross-reference nested functions
12653 section from local labels section.
12654
12655 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12656
12657 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
12658
12659 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
12660
12661 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
12662
12663 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12664
12665 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
12666 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
12667
12668 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
12669
12670 * config/s390/s390.c (legitimize_pic_address): Access local symbols
12671 relative to the GOT instead of relative to the literal pool base.
12672 (s390_output_symbolic_const): Handle new GOT-relative accesses.
12673 * config/s390/s390.md ("call"): Access local functions and PLT stubs
12674 relative to the GOT instead of relative to the literal pool base.
12675 ("call_value"): Likewise.
12676 ("call_value_tls"): Likewise.
12677
12678 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
12679 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
12680 (s390_chunkify_finish): Likewise.
12681 (s390_chunkify_cancel): Likewise.
12682 (s390_reorg): Adapt caller.
12683 (find_base_register_in_addr,
12684 find_base_register_ref, replace_base_register_ref): Delete.
12685 (find_ltrel_base, replace_ltrel_base): New functions.
12686 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
12687 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
12688 base vs. index register usage.
12689 (struct constant_pool): Remove 'anchor'.
12690 (s390_add_anchor): Delete.
12691 (s390_dump_pool): Remove anchor handling.
12692 * config/s390/s390.md ("reload_anchor"): Remove.
12693
12694 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
12695 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
12696 (s390_emit_prologue): Use it.
12697 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
12698 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
12699 hard-code register 14.
12700 * config/s390/s390-protos.h (s390_load_got): Declare.
12701
12702 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
12703 Support TImode constants.
12704 * config/s390/s390.md ("consttable_ti"): New.
12705 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
12706
12707 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
12708 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
12709 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
12710 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
12711 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
12712 New symbolic constants.
12713 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
12714 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
12715 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
12716 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
12717 symbolic UNSPEC values.
12718 * config/s390/s390.c (larl_operand, s390_short_displacement,
12719 bras_sym_operand, s390_cannot_force_const_mem,
12720 s390_delegitimize_address, s390_decompose_address,
12721 legitimize_pic_address, s390_output_symbolic_const,
12722 s390_function_profiler): Use symbolic UNSPEC values.
12723
12724 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12725
12726 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
12727 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
12728 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
12729 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
12730 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
12731 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
12732 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
12733 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
12734 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
12735 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
12736 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
12737 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
12738 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
12739 postreload.c prefix.c print-tree.c protoize.c ra-build.c
12740 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
12741 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
12742 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
12743 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
12744 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
12745 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
12746 casts.
12747
12748 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12749
12750 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
12751 * toplev.h (warning): Remove attribute.
12752
12753 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12754
12755 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
12756 (pop_label_level): Likewise.
12757 (duplicate_decls): Likewise.
12758 (implicitly_declare): Likewise.
12759 (shadow_label): Likewise.
12760 (start_decl): Likewise.
12761 (finish_decl): Likewise.
12762 (grokdeclarator): Likewise.
12763 (get_parm_info): Likewise.
12764 (detect_field_duplicates): Likewise.
12765 (finish_struct): Likewise.
12766 (start_function): Likewise.
12767 (store_parm_decls): Likewise.
12768 (finish_function): Likewise.
12769 (c_expand_body_1): Likewise.
12770 (check_for_loop_decls): Likewise.
12771 (merge_translation_unit_decls): Likewise.
12772
12773 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
12774
12775 * common.opt: Document --param.
12776 * opts.c (columns, undocumented_msg): New.
12777 (print_help): Get number of columns from environment. Print
12778 --param help. Tweak newline handling.
12779 (print_param_help): New.
12780 (print_filtered_help): Better handling of duplicates. Complain
12781 about undocumented switches.
12782 (print_switch): New.
12783 (wrap_help): Improve wrapping, use COLUMNS.
12784 * opts.sh: Ignore comments in records.
12785 * params.def: Fix typos and remove trailing periods.
12786 * toplev.c (display_help): Don't dump --param help.
12787 * doc/sourcebuild.texi: Update.
12788
12789 2003-07-18 Richard Henderson <rth@redhat.com>
12790
12791 PR target/11556
12792 * optabs.c (prepare_operand): Fail gracefully instead of abort
12793 if the predicate doesn't satisfy.
12794 (gen_cond_trap): Allow prepare_operand to fail.
12795
12796 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12797
12798 * c-common.c: Don't undefine GCC_DIAG_STYLE.
12799 (fname_decl): Don't use xxx_with_decl.
12800 (c_add_case_label): Likewise.
12801 (handle_section_attribute): Likewise.
12802 (handle_alias_attribute): Likewise.
12803 (handle_no_instrument_function_attribute): Likewise.
12804 (handle_no_limit_stack_attribute): Likewise.
12805 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
12806 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
12807
12808 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12809
12810 * Makefile.in (ifcvt.o): Add cfgloop.h.
12811 * basic-block.h (EDGE_LOOP_EXIT): New flag.
12812 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
12813 * ifcvt.c: Include cfgloop.h.
12814 (mark_loop_exit_edges): New static function.
12815 (if_convert): Call it.
12816 (find_if_header): Ignore branches out of loops.
12817
12818 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
12819
12820 * combine.c (simplify_comparison): Don't share rtx when converting
12821 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
12822
12823 2003-07-18 David Edelsohn <edelsohn@gnu.org>
12824
12825 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
12826 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12827 (MUST_PASS_IN_STACK): Define.
12828 (BLOCK_REG_PADDING): Define.
12829
12830 2003-07-18 Richard Henderson <rth@redhat.com>
12831
12832 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
12833 to skip the addr_vec.
12834
12835 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
12836
12837 * combine.c (combinable_i3pat): Don't forbid occurrences of
12838 i2dest or i1dest in inner_dest if inner_dest is a mem.
12839
12840 2003-07-18 Jan Hubicka <jh@suse.cz>
12841
12842 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
12843
12844 2003-07-17 Jakub Jelinek <jakub@redhat.com>
12845
12846 PR target/11087
12847 * loop.c (basic_induction_var): Check if convert_modes emitted any
12848 instructions. Remove them and return 0 if so.
12849
12850 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
12851
12852 PR optimization/11083
12853 * toplev.c (rest_of_handle_addresof): Rename into
12854 rest_of_handle_addressof. Delete unreachable blocks
12855 if dead edges were purged after the addressof pass.
12856
12857 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
12858
12859 * Makefile.in, configure, configure.in: Remove handling of
12860 lang-options.h and options_.h.
12861 * toplev.c (struct lang_opt, documented_lang_options): Remove.
12862 (display_help): Don't use documented_lang_options.
12863
12864 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12865
12866 * c-decl.c (pushdecl_function_level): Make static, return nothing.
12867 (kept_level_p): Fold into poplevel.
12868 (undeclared_variable): Moved here from c-typeck.c. Export.
12869 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
12870 (undeclared_variable): Prototype here. Don't prototype
12871 kept_level_p nor pushdecl_function_level.
12872 * c-parse.in: Change first argument to poplevel from
12873 "kept_level_p()" to "KEEP_MAYBE".
12874 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
12875
12876 2003-07-17 Roger Sayle <roger@eyesopen.com>
12877
12878 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
12879 commutative operands instead of modifying the RTL in-place.
12880
12881 2003-07-17 Mark Mitchell <mark@codesourcery.com>
12882
12883 PR optimization/11557
12884 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
12885 unless we know which function is being called.
12886
12887 2003-07-17 Roger Sayle <roger@eyesopen.com>
12888
12889 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
12890 whether to reorder the operands of a commutative binary operator.
12891
12892 2003-07-17 Roger Sayle <roger@eyesopen.com>
12893
12894 * fold-const.c (const_binop): Avoid performing the FP operation at
12895 compile-time, if either operand is NaN and we honor signaling NaNs,
12896 or if we're dividing by zero and either flag_trapping_math is set
12897 or the desired mode doesn't support infinities.
12898 (fold_initializer): New function to fold an expression ignoring any
12899 potential run-time exceptions or traps.
12900 * tree.h (fold_initializer): Prototype here.
12901 * c-typeck.c (build_binary_op): Move to the end of the file so
12902 that intializer_stack is in scope. If constructing an initializer,
12903 i.e. when initializer_stack is not NULL, use fold_initializer to
12904 fold expressions.
12905 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
12906 performing FP operations at compile-time, if they would raise an
12907 exception at run-time.
12908
12909 2003-07-17 Geoffrey Keating <geoffk@apple.com>
12910
12911 PR 11498
12912 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
12913 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
12914 (GTFILES): Add langhooks.c.
12915 (gt-langhooks.h): New.
12916 * c-common.h (c_static_assembler_name): Prototype.
12917 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12918 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12919 * c-opts.c: Include langhooks-def.h.
12920 (c_static_assembler_name): New.
12921 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
12922 (var_labelno): New.
12923 (lhd_set_decl_assembler_name): Give static objects with context
12924 unique names.
12925 * varasm.c (var_labelno): Delete.
12926 (make_decl_rtl): Don't change the assembler name once it's set.
12927
12928 * c-opts.c (this_input_filename): New.
12929 (finish_options): Take new parameter, name of file being compiled.
12930 Update callers. Set this_input_filename.
12931 (push_command_line_include): Use this_input_filename not
12932 main_input_filename.
12933
12934 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
12935
12936 * Makefile.in: Depend .pot generation on options.c.
12937 * po/exgettext: Add an extra_files variable containing additional
12938 files to scan.
12939
12940 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12941
12942 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
12943 c_write_global_declarations.
12944
12945 * c-decl.c: Fix typos in several comments. Remove all
12946 #if 0 blocks; reindent as needed. Remove unused argument
12947 to declare_parm_level; all callers changed.
12948 * c-parse.in: Update calls to declare_parm_level. Avoid
12949 issuing a double warning in some circumstances.
12950 * c-typeck.c: Update calls to declare_parm_level.
12951 * c-tree.h: Update prototype of declare_parm_level.
12952
12953 * c-pragma.c (apply_pragma_weak): Don't complain about a
12954 redundant #pragma weak.
12955
12956 * objc/objc-act.c (forward_declare_categories,
12957 build_selector_reference_decl, build_class_reference_decl,
12958 build_objc_string_decl, synth_forward_declarations,
12959 build_protocol_reference): Set TREE_PUBLIC on synthetic
12960 forward decl to 0, consistent with eventual definition.
12961 Correct comments to match.
12962
12963 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
12964 in regexp that don't form a range expression.
12965 * fixinc/fixincl.def: Regenerate.
12966
12967 2003-07-17 Richard Henderson <rth@redhat.com>
12968
12969 PR target/10907
12970 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
12971 even with !TARGET_CONST_GP.
12972 (ia64_function_ok_for_sibcall): Reject non-local functions.
12973
12974 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
12975
12976 * c-common.c (c_estimate_num_insns_1): Don't handle
12977 METHOD_CALL_EXPR.
12978 * expr.c (safe_from_p): Likewise.
12979 * gengtype.c (adjust_field_tree_exp): Likewise.
12980 * stmt.c (warn_if_unused_value): Likewise
12981 * tree.c (first_rtl_op): Likewise.
12982 * tree.def: Don't define METHOD_CALL_EXPR.
12983 * java/lang.c (java_estimate_num_insns_1): Don't handle
12984 METHOD_CALL_EXPR.
12985
12986 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12987
12988 PR other/11466
12989 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
12990 and its restrictions for the SPARC64 port.
12991 Move the entry of "-mimpure-text" before that of "-mv8".
12992
12993 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12994 Phil Edwards <phil@jaj.com>
12995
12996 * doc/install.texi (*-*-solaris2*): Document the step-by-step
12997 procedure to bootstrap and install.
12998 Document the preference for the legacy Sun tools in /usr/bin
12999 over the POSIX tools in /usr/xpg4/bin for the build process.
13000
13001 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
13002
13003 * c.opt: Document Uncodumented; use it. Document ObjC options.
13004 * opts.c (print_filtered_help): Skip undocumented switches.
13005 * opts.h (CL_UNDOCUMENTED): New.
13006 * opts.sh: Handle Undocumented.
13007 * toplev.c (documented_lang_options): Prevent its becoming empty.
13008 objc:
13009 * lang-options.h: Remove.
13010
13011 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
13012
13013 * loop.c (check_ext_dependent_givs): Pass const struct loop *
13014 instead of struct loop_info * as argument. Accept BIVs with
13015 increment +/- 1 provided there is a friendly exit test against
13016 a loop-invariant value.
13017 (strength_reduce): Adapt call to check_ext_dependent_givs.
13018
13019 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
13020 Con Bradley <con.bradley@superh.com>
13021
13022 * sh-protos.h (sh_get_pr_initial_val): Declare.
13023 * sh.c (regno_reg_class): Make its elements type enum reg_class.
13024 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
13025 and live_regs_mask arguments. Changed all callers.
13026 (save_schedule_s): New structure.
13027 (save_schedule): New typedef.
13028 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
13029 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
13030 In interrupts handlers, also save registers that are usually
13031 partially saved, and make sure there is at least one general purpose
13032 register saved if a target register needs saving.
13033 Add casts in comparisons to avoid warnings.
13034 (sh_media_register_for_return): return -1 for interrupt handlers.
13035 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
13036 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
13037 registers used are available.
13038 Set RTX_FRAME_RELATED_P where appropriate.
13039 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
13040 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
13041 (initial_elimination_offset): Likewise.
13042 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
13043 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
13044 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
13045 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
13046 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
13047 and for target registers.
13048 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
13049 (regno_reg_class): Make its elements type enum reg_class.
13050 (CONSTRAINT_LEN): Don't use isdigit.
13051 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
13052 (FUNCTION_ARG): Add parentheses to avoid warnings.
13053 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
13054 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
13055 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
13056 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
13057 * sh.md (xordi3+1): Remove unused variable regno.
13058 (return_media): Check that tr0 is available before using it.
13059
13060 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
13061
13062 * c.opt: Document more options.
13063
13064 2003-07-16 Roger Sayle <roger@eyesopen.com>
13065
13066 * combine.c (subst): Also handle (subreg (const_double ...)) case
13067 if created by a substitution, by using the original inner mode.
13068
13069 2003-07-16 Roger Sayle <roger@eyesopen.com>
13070
13071 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
13072 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
13073 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
13074
13075 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
13076
13077 * doc/install.texi (--without-headers): New.
13078
13079 Partial Fix PR/10129
13080 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
13081 (machopic_output_function_base_name): New; print the true pic label.
13082 (machopic_classify_ident): Pic Base is always a defined data.
13083 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
13084 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
13085
13086 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
13087 if they are not floating point registers.
13088
13089 PR c/10962
13090 * ggc.h: Add header guards.
13091 * c-decl.c (finish_struct): Sort fields if
13092 number greater than 15 and there are no
13093 anonymous structs/unions.
13094 * c-common.h: Include ggc.h.
13095 (sorted_fields_type): New struct.
13096 (field_decl_cmp): New prototype.
13097 (resort_sorted_fields): New prototype.
13098 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
13099 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
13100 as s, removing other fields.
13101 * c-typeck.c (lookup_field): Use s in lang_type.
13102 These were mostly moved from cp/class.c:
13103 * c-common.c (field_decl_cmp): New static function.
13104 (field_decl_cmp): New function.
13105 (resort_sorted_fields): New function.
13106
13107 2003-07-16 Geoffrey Keating <geoffk@apple.com>
13108
13109 * config/darwin.c (machopic_select_section): Use decl_readonly_section
13110 to do most of the work.
13111
13112 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
13113
13114 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
13115 * config/mmix/mmix.c: Convert functions to ISO C90.
13116 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
13117 formatting.
13118 (mmix_get_hard_reg_initial_val): Tweak section head comment.
13119
13120 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
13121
13122 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
13123
13124 2003-07-16 Jakub Jelinek <jakub@redhat.com>
13125
13126 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
13127 (uw_update_context_1): Use it.
13128 * config/rs6000/rs6000.c (insn_after_throw): Remove.
13129 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
13130 in parent frame if _Unwind_* called directly instead of through
13131 .plt.
13132 (rs6000_emit_eh_toc_restore): Remove.
13133 (rs6000_emit_prologue): Update stack pointer before doing any saving
13134 if current_function_calls_eh_return. Generate unwind info for $r2.
13135 (rs6000_emit_epilogue): Restore stack pointer after doing all
13136 restoring if current_function_calls_eh_return. Restore $r2.
13137 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
13138 * config/rs6000/rs6000.md (eh_return): Remove call to
13139 rs6000_emit_eh_toc_restore.
13140 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
13141 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
13142
13143 2003-07-15 Jakub Jelinek <jakub@redhat.com>
13144
13145 * expr.c (emit_block_move): Don't move anything if size is const 0.
13146 (clear_storage): Test against const0_rtx instead of comparing INTVAL
13147 against 0.
13148
13149 2003-07-15 David S. Miller <davem@redhat.com>
13150
13151 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
13152 emit nop if the last real insn is CALL_INSN.
13153
13154 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
13155
13156 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
13157 as "nul".
13158 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
13159
13160 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
13161
13162 * config/i386/winnt.c (associated_type): Artificial methods are not
13163 affected by the import/export status of their class unless they are
13164 COMDAT.
13165 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
13166
13167 * config/i386/winnt.c: Fix GCC copyright comment.
13168
13169 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
13170
13171 PR c++/11531
13172 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
13173 not recursing on hard error.
13174 (diagnostic_for_decl): Likewise.
13175 * diagnostic.def: Rearrange.
13176
13177 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
13178
13179 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13180 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
13181
13182 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
13183 Richard Henderson <rth@redhat.com>
13184
13185 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
13186 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
13187 (_Unwind_SetGR): Likewise.
13188 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
13189 (Unwind_SpTmp): New typedef.
13190 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
13191 (uw_update_context): Use _Unwind_GetPtr.
13192 (init_dwarf_reg_size_table): Move above uw_init_context_1.
13193 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
13194 Use _Unwind_SetSpColumn.
13195 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
13196 Use _Unwind_GetPtr.
13197
13198 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
13199
13200 * c.opt: Document more options.
13201 * toplev.c (documented_lang_options): Remove all local help strings.
13202
13203 2003-07-15 Mark Mitchell <mark@codesourcery.com>
13204
13205 PR debug/11473
13206 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
13207 base classes.
13208
13209 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
13210
13211 PR target/10795
13212 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
13213 swap comparison operands if doing so would generate an
13214 unrecognizable insn.
13215
13216 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
13217
13218 PR optimization/11320
13219 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
13220 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
13221 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
13222 current_sched_info->compute_jump_reg_dependencies. Record which
13223 registers are used and which registers are set by the jump.
13224 Clear deps->reg_conditional_sets after a barrier.
13225 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
13226 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
13227 (init_deps): Initialize reg_conditional_sets.
13228 (free_deps): Clear reg_conditional_sets.
13229 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
13230 Mark registers live on entry of the fallthrough block and conditionally
13231 set as set by the jump. Mark registers live on entry of non-fallthrough
13232 blocks as used by the jump.
13233 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
13234 Mark new parameters as unused.
13235
13236 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13237
13238 * doc/invoke.texi: Resync MIPS -march documentation.
13239
13240 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13241
13242 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
13243 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
13244 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
13245 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
13246 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
13247 (mips_issue_rate): Handle PROCESSOR_R9000.
13248 (mips_use_dfa_pipeline_interface): Likewise.
13249 * config/mips/9000.md: New file.
13250 * config/mips/mips.md: Include it.
13251 (define_attr cpu): Add r9000.
13252 (mulsi3_mult3): Use "mul" for rm9000 code.
13253
13254 2003-07-15 Stan Cox <scox@redhat.com>
13255
13256 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
13257 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
13258 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
13259 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
13260 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
13261 (mips_issue_rate): Handle PROCESSOR_R7000.
13262 (mips_use_dfa_pipeline_interface): Likewise.
13263 * config/mips/7000.md: New file.
13264 * config/mips/mips.md: Include it.
13265 (define_attr cpu): Add r7000.
13266 (mulsi3_mult3): Use "mul" for rm7000 code.
13267
13268 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13269
13270 * config/mips/mips.md (define_attr type): Add condmove. Use it for
13271 the conditional move patterns.
13272 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
13273 Check for condmove type.
13274 (ir_vr54_arith): Add move type.
13275 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
13276 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
13277
13278 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
13279
13280 * c-opts.c (print_help): Remove.
13281 (c_common_handle_option): Don't handle --help.
13282 * c.opt: Document some options.
13283 (--help): Remove.
13284 * opts.c (print_filtered_help): New.
13285 (print_help): Use it.
13286
13287 2003-07-14 Geoffrey Keating <geoffk@apple.com>
13288
13289 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
13290 * tree.c: (build_common_tree_nodes_2): Likewise.
13291 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
13292 (V4DF_type_node): New.
13293
13294 * c-opts.c (push_command_line_include): Don't free deferred_opts,
13295 we'll need it.
13296 (finish_options): Reset init_cursor.
13297
13298 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
13299
13300 * expr.c (expand_assignment): Remove an unused argument
13301 SUGGEST_REG.
13302 * expr.h: Update the prototype.
13303 * function.c: Update the callers.
13304 * stmt.c: Likewise.
13305
13306 2003-07-14 Mark Mitchell <mark@codesourcery.com>
13307
13308 PR debug/11098
13309 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
13310 as DECL_ABSTRACT.
13311
13312 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13313
13314 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
13315 with __cplusplus, not "we must use the C++ compiler's type"
13316 * fixinc/inclhack.def (void_null): Note that Interix needs this.
13317 * fixinc/fixincl.x: Regenerate.
13318
13319 2003-07-14 Geoffrey Keating <geoffk@apple.com>
13320
13321 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
13322 and unseen_objects from the global data before calling
13323 __deregister_frame_info_bases.
13324 (examine_objects): Insert objects into the seen_objects list,
13325 not unseen_objects.
13326 (_Unwind_Find_FDE): Always unlock the global object lists, even if
13327 we couldn't allocate a data structure to put in it.
13328
13329 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
13330 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
13331 (SET_TYPE_PROTOCOL_LIST): New.
13332 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
13333 (get_object_reference): Likewise.
13334
13335 2003-07-14 Jan Hubicka <jh@suse.cz>
13336
13337 * cfglayout.c (locator_file): Break out from ....
13338 (insn_file): ... here.
13339 (locator_line): Break out from ....
13340 (insn_line): ... here.
13341 * rtl.h (locator_file, locator_line): Declare.
13342 (final_start_function): Set proper line/file info.
13343
13344 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
13345
13346 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
13347 handled by pp_c_cast_expression.
13348
13349 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13350
13351 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
13352 allocate 32768 bytes of stack. Use addition rather than subtraction
13353 when a single insn is enough.
13354 * config/mips/mips.md: Remove insns and splitters for subtracting
13355 constants.
13356 (subsi3): Only accept register operands.
13357 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
13358 (subdi3_internal_3, subsi3_internal_2): Likewise.
13359 (casesi): Use expand_binop to subtract the lower bound.
13360
13361 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13362
13363 * config/mips/mips.c (mips_in_small_data_p): Don't handle
13364 TARGET_MIPS16 specially.
13365
13366 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13367
13368 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
13369 mips_output_aligned_bss.
13370 * config/mips/linux.h: Likewise.
13371 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
13372 * config/mips/mips.c (mips_output_aligned_bss): New function.
13373
13374 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
13375 * config/mips/elf64.h: Likewise.
13376
13377 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
13378 mips_declare_object_name.
13379 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
13380 * config/mips/elf64.h: As for elf.h.
13381 * config/mips/iris6.h: Likewise.
13382 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
13383 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
13384 do...while (0) block.
13385 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
13386 (mips_finish_declare_object): Declare.
13387 * config/mips/mips.c (mips_declare_object_name): New function.
13388 (mips_finish_declare_object): New function.
13389
13390 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
13391 * config/mips/linux.h: Likewise.
13392
13393 * config/mips/mips.c (inside_function): Delete.
13394 (file_in_function_warning, ignore_line_number): Delete.
13395 (mips_output_filename): Don't warn about changing filenames within
13396 a function.
13397 (mips_output_lineno): Update accordingly.
13398 (mips_output_function_prologue): Don't reset the deleted variables.
13399 * config/mips/mips.h (inside_function): Delete.
13400 (file_in_function_warning, ignore_line_number): Delete.
13401
13402 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
13403 * config/mips/elf64.h: Likewise.
13404 * config/mips/openbsd.h: Likewise.
13405 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
13406 * config/mips/linux.h: Likewise.
13407 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
13408 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
13409
13410 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
13411 to the list of include files when using gas.
13412 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
13413 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
13414 * config/mips/elf64.h: Likewise.
13415 * config/mips/iris5.h: Likewise.
13416 * config/mips/linux.h: Likewise.
13417 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
13418 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
13419 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
13420 * config/mips/sdb.h: ...this new file.
13421
13422 2003-07-14 Douglas Rupp <rupp@gnat.com>
13423
13424 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
13425 argument to getcwd; use fixed buffer instead.
13426
13427 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13428
13429 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
13430 * fixinc/fixinc.wrap: Delete.
13431
13432 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13433
13434 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
13435 don't have 2.
13436
13437 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13438
13439 * ggc-page.c (struct globals): Add new fields to keep track of the
13440 total allocated memory and overhead.
13441 (ggc_print_statistics): Print them.
13442 (ggc_alloc): Keep track of the total allocated memory and the
13443 overhead.
13444
13445 * tree.c (dump_tree_statistics): Increase spacing.
13446 (enum tree_node_kind): Move to ...
13447 * tree.h (enum tree_node_kind): ... here.
13448 (tree_node_counts, tree_node_sizes): Declare.
13449
13450 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
13451
13452 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
13453
13454 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13455
13456 PR optimization/11440
13457 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
13458 SIGN_EXTRACT SETs.
13459
13460 2003-07-14 Alan Modra <amodra@bigpond.net.au>
13461
13462 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
13463 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
13464 (emit_group_load, emit_group_store): Adjust declarations.
13465 Remove most occurrences of #ifdef TREE_CODE.
13466 * expr.c (emit_group_load): Add "type" param, and use
13467 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
13468 aligned accesses if !SLOW_UNALIGNED_ACCESS.
13469 (emit_group_store): Likewise.
13470 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
13471 emit_group_load and emit_group_store calls.
13472 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
13473 BLOCK_REG_PADDING to determine whether we need endian_correction.
13474 (load_register_parameters): Localize vars. Handle shifting of
13475 small values to the correct end of regs. Adjust emit_group_load
13476 call.
13477 (expand_call, emit_library_call_value_1): Adjust emit_group_load
13478 and emit_group_store calls.
13479 * function.c (assign_parms): Set mem alignment for stack slots.
13480 Adjust emit_group_store call. Store values at the "wrong" end
13481 of regs to the stack. Use BLOCK_REG_PADDING.
13482 (locate_and_pad_parm): Save where_pad.
13483 (expand_function_end): Adjust emit_group_load call.
13484 * stmt.c (expand_value_return): Adjust emit_group_load call.
13485 * Makefile.in (calls.o): Depend on $(OPTABS_H).
13486 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
13487 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
13488 (MUST_PASS_IN_STACK): Define.
13489 (BLOCK_REG_PADDING): Define.
13490 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
13491 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
13492 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
13493 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
13494 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
13495
13496 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
13497
13498 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
13499
13500 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13501
13502 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
13503 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
13504
13505 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
13506
13507 PR other/11123
13508 * toplev.c: Don't cut off option names.
13509
13510 2003-07-13 Andreas Jaeger <aj@suse.de>
13511
13512 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
13513 to integer of different size.
13514
13515 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
13516
13517 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
13518 to (eq (and X 1) 0).
13519
13520 2003-07-13 Andreas Jaeger <aj@suse.de>
13521
13522 * config.gcc: Add pmmintrin.h for x86_64-*-*.
13523
13524 2003-07-13 Zack Weinberg <zack@codesourcery.com>
13525
13526 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
13527 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
13528 list. Move these all together down by cpplib.
13529
13530 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
13531 definition of CPPCHAR_SIGNED_T.
13532
13533 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
13534 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
13535 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
13536
13537 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
13538 * cppinit.c (cpp_create_reader): Likewise.
13539
13540 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
13541 * cpptrad.c: Likewise. All callers changed.
13542 * cpplib.c: All callers changed.
13543 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
13544 * hashtable.h: Define GTY(x) to nothing here too.
13545
13546 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13547
13548 * stor-layout.c (compute_record_mode): Remove very obsolete test
13549 that forces BLKmode for records with fields crossing word boundary.
13550
13551 2003-07-13 Zack Weinberg <zack@codesourcery.com>
13552
13553 * Makefile.in: Remove orphan reference to acconfig.h.
13554
13555 2003-07-13 Andreas Jaeger <aj@suse.de>
13556
13557 * cgraphunit.c: Convert prototypes to ISO C90.
13558
13559 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
13560
13561 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
13562 (for OpenBSD).
13563 * fixinc/fixincl.x: Rebuild.
13564
13565 2003-07-12 Zack Weinberg <zack@codesourcery.com>
13566
13567 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
13568 i?86-*-*. Use correct name of cache variable.
13569 * configure: Regenerate.
13570
13571 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
13572
13573 * config/alpha/alpha.c: Fix comment typos.
13574 * config/alpha/alpha.md: Likewise.
13575 * config/arm/arm.c: Likewise.
13576 * config/arm/arm.md: Likewise.
13577 * config/arm/lib1funcs.asm: Likewise.
13578 * config/avr/avr.md: Likewise.
13579 * config/arm/README-interworking: Fix typos.
13580
13581 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
13582
13583 * c-format.c: Fix comment formatting.
13584 * c-typeck.c: Likewise.
13585 * coverage.c: Likewise.
13586 * cppcharset.c: Likewise.
13587 * cpplib.c: Likewise.
13588 * dbxout.c: Likewise.
13589 * gcov-io.h: Likewise.
13590 * toplev.c: Likewise.
13591
13592 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
13593
13594 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
13595 fix.
13596
13597 2003-07-12 Zack Weinberg <zack@codesourcery.com>
13598
13599 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
13600 uses three-argument AC_DEFINE so no acconfig.h entries are
13601 needed.
13602 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
13603 which contains the GAS version number as a scaled integer.
13604 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
13605 ability to check for ELF assembler.
13606 (gcc_GAS_CHECK_FEATURE): New macro.
13607 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
13608 assembler feature checks using gcc_GAS_CHECK_FEATURE.
13609 Use three-argument AC_DEFINE everywhere.
13610 * acconfig.h: Deleted.
13611 * config.in, configure: Regenerate.
13612
13613 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
13614
13615 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
13616 (on OpenBSD).
13617 * fixinc/fixincl.x: Regenerate.
13618
13619 * fixinc/inclhack.def (gnu_types): Improve comment.
13620
13621 2003-07-12 Andreas Jaeger <aj@suse.de>
13622
13623 * fp-test.c (main): Use ISO C90 prototype.
13624
13625 * version.c: Remove unneded include of ansidecl.h.
13626
13627 * cgraph.h: Convert prototypes to ISO C90.
13628 * cgraph.c: Likewise.
13629 * fix-header.c: Likewise.
13630 * ra.h: Likewise.
13631 * protoize.c: Likewise.
13632
13633 2003-07-12 Jan Hubicka <jh@suse.cz>
13634
13635 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
13636 warning.
13637
13638 2003-07-12 Jan Hubicka <jh@suse.cz>
13639 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13640
13641 * cgraph.c (cgraph_max_uid): New global variable.
13642 (cgraph_node): Set uid field.
13643 (create_edge): Keep inline flags consistent.
13644 (dump_cgraph): Dump more info.
13645 * cgraph.h (struct cgraph_local_info): Remove inline_many and
13646 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
13647 (struct cgraph_global_info): Add insns, calls, cloned_times,
13648 will_be_output.
13649 (struct cgraph_node): Add uid.
13650 (struct cgraph_edge): Add inline_call.
13651 (cgraph_max_uid, cgraph_inline_p): Declare.
13652 * cgraph.c: Include params.h and fibheap.h
13653 (cgraph_mark_functions_to_inline_once): Kill.
13654 (INSNS_PER_CALL): New constant.
13655 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
13656 static variables.
13657 (cgraph_finalize_function): Do not analyze inlining.
13658 (cgraph_finalize_compilation_unit): Set inlining attributes.
13659 (cgraph_mark_functions_to_output): More consistency checks.
13660 (cgraph_optimize_function): Set current_function_decl to NULL.
13661 (cgraph_expand_function): Use new inline flags.
13662 (cgraph_postorder): Expand from cgraph_expand_functions.
13663 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
13664 (cgraph_inlined_into, cgraph_inlined_callees,
13665 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
13666 cgraph_mark_inline, cgraph_check_inline_limits,
13667 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
13668 cgraph_decide_inlining, cgraph_inline_p): New functions.
13669 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
13670 PARAM_INLINE_UNIT_GROWTH): New parameters.
13671 * tree-inline.c (struct inline_data): New field current_decl.
13672 (expand_call_inline): Avoid forward declarations; use
13673 inlinable_function_p.
13674 (optimize_inline_calls): Set id.current_decl.
13675
13676 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
13677
13678 * configure.in: Remove wrongly added definition of
13679 local_prefix.
13680 * configure: Regenerate.
13681
13682 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13683
13684 * rtl.def (NOTE): Do not use padding.
13685
13686 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
13687
13688 * doc/install.tex: Update required binutils for i?86-*-linux*
13689
13690 2003-07-11 Richard Henderson <rth@redhat.com>
13691
13692 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
13693
13694 2003-07-11 Mark Mitchell <mark@codesourcery.com>
13695
13696 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
13697 TRANSLATION_UNIT_DECL as top_level.
13698
13699 2003-07-11 Jakub Jelinek <jakub@redhat.com>
13700
13701 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
13702 then fall back to cmpstrM.
13703 * builtins.c (expand_builtin_memcmp): Likewise.
13704 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
13705 (s390_expand_cmpmem): ... this.
13706 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
13707 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
13708 from cmpstr* patterns. Rename call to s390_expand_cmpstr
13709 to s390_expand_cmpmem.
13710 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
13711 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
13712 to cmpmem*.
13713 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
13714 cmpstr* patterns.
13715 * doc/md.texi (cmpstrM): Describe as String compare insn, not
13716 Block compare insn.
13717 (cmpmemM): Add.
13718
13719 2003-07-11 Loren James Rittle <ljrittle@acm.org>
13720
13721 * config/i386/freebsd.h (SET_ASM_OP): Remove.
13722 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
13723 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
13724 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
13725
13726 2003-07-11 Richard Henderson <rth@redhat.com>
13727
13728 * function.c (assign_parms): Don't recombine complex args if
13729 fnargs is unchanged from orig_fnargs.
13730 (split_complex_args): Return args without complex before copying.
13731 Re-layout the modified parameters.
13732
13733 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
13734
13735 * regclass.c (choose_hard_reg_mode): Add third argument.
13736 Changed all callers.
13737 * rtl.h (choose_hard_reg_mode): Update declaration.
13738 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13739 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
13740
13741 2003-07-11 Geoffrey Keating <geoffk@apple.com>
13742
13743 * c-decl.c (finish_decl): Handle 'used' here...
13744 * cgraphunit.c (cgraph_finalize_function): ... and here ...
13745 * c-common.c: (handle_used_attribute): ... not here.
13746
13747 * configure.in (onstep): Support --enable-intermodule.
13748 * Makefile.in (OBJS-common): New.
13749 (OBJS-md): New.
13750 (OBJS-archive): New.
13751 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
13752 (OBJS-onestep): New.
13753 (libbackend.a): Support @onestep@.
13754 (libbackend.o): New.
13755 * configure: Regenerate.
13756
13757 * c-common.h (c_reset_state): New prototype.
13758 (c_parse_file): New prototype.
13759 (finish_file): Move prototype from c-tree.h.
13760 * c-decl.c: Include <hashtab.h>.
13761 (builtin_decls): New.
13762 (current_file_decl): New.
13763 (duplicate_decls): Add extra parameter. Change all callers. Don't
13764 output duplicate common symbols.
13765 (link_hash_hash): New.
13766 (link_hash_eq): New.
13767 (poplevel): Handle popping of the top level.
13768 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
13769 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
13770 (pushdecl_top_level): Likewise.
13771 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
13772 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
13773 (finish_decl): Handle TRANSLATION_UNIT_DECL.
13774 (merge_translation_unit_decls): New.
13775 (c_write_global_declarations): New.
13776 (c_reset_state): New.
13777 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
13778 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
13779 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
13780 TRANSLATION_UNIT_DECL.
13781 (c_objc_common_finish_file): Call merge_translation_unit_decls.
13782 * c-opts.c (in_fnames): Rename from in_fname.
13783 (c_common_decode_option): Handle multiple input filenames.
13784 (c_common_post_options): Likewise.
13785 (c_common_parse_file): Likewise; also, call c_parse_file rather than
13786 yyparse.
13787 * c-parse.in: Move cleanup code to c_parse_file.
13788 (free_parser_stacks): Move contents to c_parse_file.
13789 (c_parse_file): New.
13790 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
13791 for integer types.
13792 (C_DECL_FILE_SCOPE): New.
13793 (finish_file): Move prototype to c-common.h.
13794 (merge_translation_unit_decls): New prototype.
13795 (comptypes): Add extra parameter to prototype.
13796 (c_write_global_declarations): New prototype.
13797 * c-typeck.c (tagged_types_tu_compatible_p): New.
13798 (function_types_compatible_p): Add extra parameter, change all callers.
13799 (type_lists_compatible_p): Likewise.
13800 (comptypes): Likewise.
13801 (struct tagged_tu_seen): New.
13802 (tagged_tu_seen_base): New.
13803 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
13804 (c_mark_addressable): Remove #if 0 code.
13805 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
13806 comment explaining why it shouldn't have to.
13807 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
13808 options.
13809 * cppinit.c (cpp_read_next_file): New.
13810 (cpp_read_main_file): Use it.
13811 * cpplib.c (undefine_macros): New.
13812 (cpp_undef_all): New.
13813 * cpplib.h (cpp_read_next_file): Prototype.
13814 (cpp_undef_all): Prototype.
13815 * langhooks-def.h (write_global_declarations): Remove prototype.
13816 * toplev.h (write_global_declarations): Add prototype.
13817 * tree.c (decl_type_context): Use switch statement, handle
13818 TRANSLATION_UNIT_DECL.
13819 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
13820 (TRANSLATION_UNIT_DECL): New kind of tree.
13821 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
13822 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
13823 * doc/invoke.texi: Make attempt to document new functionality.
13824
13825 2003-05-19 Per Bothner <bothner@apple.com>
13826
13827 * gcc.c (combine_inputs): New.
13828 (process_command): Set combine_inputs.
13829 (do_spec_1): Handle combine_inputs.
13830 (main): Likewise.
13831
13832 2003-07-10 James E Wilson <wilson@tuliptree.org>
13833
13834 PR optimization/9745
13835 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
13836 loop_insn_emit_before.
13837 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13838
13839 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13840
13841 * cppcharset.c: Fix comment.
13842 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
13843 (EILSEQ): #define to EINVAL if not already defined.
13844 (convert_using_iconv): #if out when !HAVE_ICONV.
13845 (init_iconv_desc): Handle !HAVE_ICONV here...
13846 (cpp_init_iconv): ...not here.
13847
13848 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
13849
13850 * common.opt: More --help messages.
13851 * opts.c (print_help): Use puts().
13852 * toplev.c (f_options): Remove help text.
13853 (display_help): Don't dump f_options.
13854
13855 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
13856
13857 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
13858 Move i?86-*-interix* to the don't-fix list.
13859 * fixinc/fixinc.interix: Delete with extreme prejudice.
13860
13861 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
13862
13863 PR bootstrap/10758
13864 * doc/install.texi: Document requirements for ia64-*-hpux* target.
13865
13866 2003-07-10 Roger Sayle <roger@eyesopen.com>
13867
13868 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
13869
13870 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13871
13872 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
13873 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
13874 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
13875 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
13876 convert_no_conversion, convert_using_iconv): New functions.
13877 (APPLY_CONVERSION): New macro.
13878 (struct conversion, conversion_tab): New data structure.
13879 (init_iconv_desc): Check conversion_tab for a custom conversion
13880 primitive before trying to use iconv.
13881 (convert_cset): Deleted.
13882 (cpp_init_iconv): Use UTF- terminology, not UCS-.
13883 (_cpp_destroy_iconv): Update to match.
13884 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
13885 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
13886 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
13887 (_cpp_interpret_string_notranslate): New function, moved here
13888 from cpplib.c.
13889
13890 * cpphash.h (convert_f, struct cset_converter): New types.
13891 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
13892 are now struct cset_converter, not bare iconv_t.
13893 Update prototypes.
13894 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
13895 all callers changed.
13896
13897 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
13898
13899 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
13900 to opts.sh command line.
13901 * opts.sh: Write to temporary files with a move-if-change at the end.
13902
13903 2003-07-10 Denis Chertykov <denisc@overta.ru>
13904 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13905
13906 * combine.c (gen_binary): Handle the CLOBBER rtx and
13907 don't build a binary operation with it.
13908
13909 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13910
13911 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
13912 store_killed_after, store_killed_before): Keep track of the correct
13913 dependency function to use.
13914
13915 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
13916 * toplev.c (do_compile): Don't try to open dump files before
13917 lang_dependent_init initializes dump_base_name.
13918
13919 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13920
13921 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
13922 Use ARRAY_SIZE.
13923 * config/frv/frv.c (frv_expand_builtin): Likewise.
13924 * config/sh/sh.c (sh_media_init_builtins): Likewise.
13925
13926 2003-07-09 Mark Mitchell <mark@codesourcery.com>
13927
13928 PR c++/10032
13929 * doc/invoke.texi (C++ Dialect Options): Change documentation of
13930 -fpermissive.
13931
13932 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
13933
13934 * tm.texi (RETURN_ADDR_OFFSET): Document.
13935
13936 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
13937
13938 * gcov-io.h: Update documentation.
13939 (GCOV_UNSIGNED2STRING): New.
13940 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
13941 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
13942 GCOV_TAG_SUMMARY_LENGTH): Adjust.
13943 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
13944 GCOV_TAG_COUNTER_NUM): New.
13945 (GCOV_BLOCK_SIZE): Number of words.
13946 (gcov_var): Adjust buffer type.
13947 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
13948 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
13949 count, not byte count.
13950 (gcov_open): Adjust overread init.
13951 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
13952 gcov_write_string, gcov_write_tag, gcov_write_length,
13953 gcov_write_tag_length): Adjust.
13954 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
13955 (gcov_sync, gcov_seek): Adjust.
13956 * gcov-dump.c (print_usage): Show gcc version only.
13957 (dump_file): Use GCOV_UNSIGNED2STRING.
13958 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
13959 * gcov.c (print_version): Show gcc version only.
13960 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
13961 GCOV_TAG_*_NUM macros.
13962 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
13963 GCOV_TAG_COUNTER_LENGTH.
13964 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
13965 Use GCOV_TAG_COUNTER_NUM.
13966 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
13967 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
13968
13969 2003-07-10 Andreas Schwab <schwab@suse.de>
13970
13971 * gcov-dump.c (dump_file): Fix missing address operator.
13972
13973 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
13974
13975 PR c/11449
13976 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
13977 of HOST_WIDE_INT.
13978 (fold_single_bit_test): If sign_bit_p() fails, assume that the
13979 bit being tested is not a sign bit.
13980
13981 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
13982
13983 * config/h8300/h8300.md (a peephole2): New.
13984
13985 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
13986
13987 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
13988 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
13989 from ld-linux.so.2 to ld.so.1.
13990 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
13991 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
13992 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
13993 nor -Wl,-rpath-link.
13994 (LIB_SPEC): Add -rpath-link if !static.
13995 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
13996 * config/mn10300/mn10300.c (mn10300_protect_label): New
13997 variable.
13998 * config/mn10300/linux.h (PRINT_OPERAND,
13999 PRINT_OPERAND_ADDRESS): Set it during their execution.
14000 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
14001 mn10300_protect_label is set.
14002 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
14003 -Wl,-rpath-link.
14004 (LIB_SPEC, STARTFILE_SPEC): Define.
14005 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
14006 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
14007 FLOAT_BIT_ORDER_MISMATCH.
14008 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
14009 * config.gcc (am33_2.0-*-linux*): Added.
14010 * config/mn10300/linux.h: New.
14011 * config/mn10300/t-linux: New.
14012
14013 2003-07-10 Andreas Jaeger <aj@suse.de>
14014
14015 * fold-const.c: Properly wrap prototypes.
14016
14017 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
14018
14019 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
14020 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
14021 Moved from...
14022 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
14023 * config/mn10300/mn10300.h: GTY-declare it.
14024 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
14025 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
14026 prototype. Use incoming RTL argument.
14027 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
14028 * config/mn10300/mn10300.md (int_label): Move C statements...
14029 (GOTaddr2picreg): ... here.
14030 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
14031 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
14032 * config/mn10300/mn10300.c (mn10300_encode_section_info):
14033 ... here. New function.
14034 (TARGET_ENCODE_SECTION_INFO): Define to it.
14035 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
14036 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
14037 pattern name.
14038 (mn10300_loadPC): Define as insn splittable after reload.
14039 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
14040 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
14041 be defined in .rodata even in PIC, now that the assembler
14042 supports that.
14043 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
14044 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
14045 symbol take an underscore prefix.
14046 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14047 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
14048 legitimize_pic_address): Declare.
14049 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
14050 the PIC register as fixed.
14051 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
14052 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
14053 PIC.
14054 (LEGITIMATE_PIC_OPERAND_P): Define.
14055 (PIC_OFFSET_TABLE_REGNUM): Define.
14056 (GOT_SYMBOL_NAME): Define.
14057 (SYMBOLIC_CONST_P): Define.
14058 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
14059 symbols.
14060 (MN10300_GLOBAL_P): Test it.
14061 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
14062 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
14063 * config/mn10300/mn10300.c (print_operand): Handle unspec.
14064 (expand_prologue): Set PIC register.
14065 (call_address_operand): Don't match SYMBOL_REFs in PIC.
14066 (legitimize_address): Call legitimize_pic_address.
14067 (legitimize_pic_address): New fn.
14068 (legitimate_pic_operand_p): New fn.
14069 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
14070 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
14071 UNSPEC_PLT): New constants.
14072 (pop_pic_reg): New insn.
14073 (movsi): Adjust non-PIC addresses.
14074 (builtin_setjmp_receiver): Restore the PIC register.
14075 (casesi): New insn.
14076 (call): Adjust non-PIC addresses.
14077 (int_label, GOTaddr2picreg): New expands.
14078 (am33_loadPC): New insn.
14079 (mn10300_loadPC): New expand.
14080 (call_next_insn): New insn.
14081 (add_GOT_to_pic_reg): New expand.
14082 (symGOT2reg, symGOT2reg_i): New expands.
14083 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
14084 (sym2PIC, sym2PLT): New expands.
14085
14086 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
14087
14088 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
14089 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
14090 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
14091 to flag_unsafe_math_optimizations.
14092 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14093 * config/mn10300/mn10300.c (expand_prologue): Mark
14094 FP-register-saving insns as frame-related.
14095 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
14096 * config/mn10300/mn10300.c
14097 (mn10300_get_live_callee_saved_regs): Don't search past
14098 LAST_EXTENDED_REGNUM.
14099 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
14100 * config/mn10300/mn10300.md: Remove excessive line breaks from
14101 `@' output patterns that were accounted as additional
14102 alternatives.
14103 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
14104 Re-introduce changes accidentally removed in Richard Sandiford's
14105 2000-12-05's patch.
14106 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
14107 Re-instate am33-2 lost in merge from net GCC.
14108 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
14109 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
14110 floating-point registers.
14111 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
14112 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
14113 pessimizations that had gone in on 2000-05-08.
14114 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
14115 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
14116 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
14117 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
14118 operand 0.
14119 * (movhi): Likewise.
14120 * (movsi): Likewise.
14121 * (movsf): Likewise.
14122 * (movdi): Likewise.
14123 * (movdf): Likewise.
14124 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
14125 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
14126 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
14127 (expand_prologue, expand_epilogue): Save and restore FP regs.
14128 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
14129 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
14130 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
14131 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
14132 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
14133 Do not clobber cc0.
14134 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
14135 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
14136 Discourage the two-argument, longer opcodes.
14137 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
14138 ones.
14139 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
14140 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
14141 * config/mn10300/mn10300.md (cmpsf): New pattern.
14142 (branch): Test mdep.fpCC and output fbCC.
14143 * config/mn10300/mn10300.c (print_operand): Output conditions.
14144 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
14145 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
14146 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
14147 mulsf3, divsf3): Use the `F' constraint for FP values.
14148 * config/mn10300/mn10300.c (const_1f_operand): New function.
14149 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
14150 * config/mn10300/mn10300.md (sqrtsf2): New expand.
14151 (rsqrtsf2): New insn.
14152 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
14153 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
14154 previous check-in.
14155 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
14156 * config/mn10300/mn10300.md (abssf2, negdf2): On
14157 TARGET_AM33_2, expand to...
14158 (abssf2_am33_2, negdf2_am33_2): New insns.
14159 (addsf3, subsf3, mulsf3, divsf3): Likewise.
14160 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
14161 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
14162 movdi, movdf): Added FP regs.
14163 * invoke.texi (-mam33-2, -mno-am33-2): Document.
14164 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
14165 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
14166 New macros.
14167 (REGNO_AM33_2_FP_P): Renamed to...
14168 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
14169 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
14170 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
14171 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
14172 regs from GENERAL_REGS.
14173 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
14174 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
14175 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
14176 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
14177 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
14178 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
14179 as FP_REGS.
14180 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
14181 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
14182 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
14183 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
14184 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
14185 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
14186 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
14187 AM33/2.0 floating-point registers.
14188 (CONDITIONAL_REGISTER_USAGE): Adjust.
14189 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
14190 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
14191 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
14192 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
14193 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
14194 (MULTILIB_DIRNAMES): Likewise.
14195 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
14196 `__AM33_2__' when `-mam33-2' is given.
14197 (TARGET_AM33_2): Define.
14198 (TARGET_SWITCHES): Adjust.
14199 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
14200 when appropriate.
14201
14202 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
14203
14204 * doc/install.texi: Add missing @.
14205
14206 2003-07-09 Bob Wilson <bob.wilson@acm.org>
14207
14208 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
14209
14210 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
14211
14212 PR/11144
14213 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
14214
14215 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
14216
14217 PR bootstrap/11043
14218 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
14219 "x-crtfini.o" with "crtinit.o", "crtfini.o".
14220
14221 * fixinc/inclhack.def (limits_ifndefs): Add select test.
14222 * fixinc/fixincl.x: Rebuild.
14223
14224 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
14225 * fixinc/fixincl.x: Rebuild.
14226
14227 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
14228
14229 * doc/install.texi (Configuration): Document the valgrind option
14230 to --enable-checking.
14231
14232 2003-07-09 Jan Hubicka <jh@suse.cz>
14233
14234 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14235
14236 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14237
14238 * c-lex.c (cb_ident): Cast cstr.text to const char *.
14239
14240 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
14241
14242 * gcov-io.h: Update documentation.
14243 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
14244 GCOV_NOTE_MAGIC.
14245 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
14246 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
14247 (struct gcov_var): Change buffer's type. Add endian flag.
14248 (gcov_open): Remove mode in libgcov.
14249 (gcov_magic): Prototype.
14250 * gcov-io.c (from_file): New.
14251 (gcov_open): Clear endian flag.
14252 (gcov_magic): New.
14253 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
14254 pointers.
14255 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
14256 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
14257 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
14258 * gcov-iov.c (main): Correct cast.
14259 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
14260 conversion.
14261 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
14262 (coverage_init): Use GCOV_NOTE_SUFFIX.
14263 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
14264 Rename to gcov_version, and return flag.
14265 (gcov_exit): Use gcov_version.
14266 (__gcov_init): Use gcov_version.
14267 * Makefile.in (coverageexts): Update.
14268 * gcov.c (print_version): Remove endianness conversion.
14269 (create_file_names): Use GCOV_NOTE_SUFFIX.
14270 (read_graph_file): Use gcov_magic.
14271 (read_count_file): Likewise.
14272 * gcov-dump.c (dump_file): Remove endianness conversion, use
14273 gcov_magic.
14274
14275 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
14276
14277 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
14278 coverage is on.
14279 * configure: Regenerated.
14280 * Makefile.in (ALL_CFLAGS): Correct its comment.
14281
14282 2003-07-08 Mark Mitchell <mark@codesourcery.com>
14283
14284 * fold-const.c (make_range): Do not access operand 1 for a
14285 zero-operand operator.
14286
14287 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
14288
14289 * toplev.c (warn_dummy, W_options): Die.
14290 (display_help): Don't print W_options.
14291 * common.opt: Add W_options help from toplev.c.
14292
14293 2003-07-09 Andreas Jaeger <aj@suse.de>
14294
14295 * opts.c (wrap_help): Only pass int arguments as arguments to
14296 printf's '*' modifier. Change argument of function.
14297
14298 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
14299
14300 * doc/invoke.texi: Fix misspelling of "@item".
14301
14302 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
14303
14304 * config/i386/i386.md: Remove an old comment about
14305 NOTICE_UPDATE_CC.
14306
14307 2003-07-09 Jan Hubicka <jh@suse.cz>
14308
14309 * cgraph.c (cgraph_node_name): New function.
14310 (dump_cgraph): Use it.
14311 * cgraph.h (cgraph_dump_file): Declare.
14312 (cgraph_node_name): Declare.
14313 * cgraphunit.c: Include timevar.h
14314 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
14315 (cgraph_optimize_function): Use TV_INTEGRATION.
14316 (cgraph_mark_local_functions): reorganize dumps.
14317 (cgraph_mark_functions_to_inline_once): Likewise.
14318 (cgraph_optimize): Likewise; use timevar.
14319 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
14320 * toplev.c (dump_file_index): Add DFI_cgraph.
14321 (dump_file_info): Likewise.
14322 (cgraph_dump_file): New global variable.
14323 (do_compile): Open and close cgraph dump.
14324 * invoke.texi (-d): Document new flag; renumber.
14325
14326 2003-07-08 Roger Sayle <roger@eyesopen.com>
14327
14328 PR c/11370
14329 * calls.c (emit_call_1): Don't bother popping the arguments off of
14330 the stack after a noreturn function call; The adjustment is dead.
14331 (expand_call): Likewise.
14332
14333 2003-07-08 Geoffrey Keating <geoffk@apple.com>
14334
14335 * expr.c (MOVE_MAX_PIECES): Move from here...
14336 * defaults.h (MOVE_MAX_PIECES): ... to here.
14337
14338 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
14339
14340 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
14341
14342 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14343
14344 * genattr.c (internal_dfa_insn_code): Don't prototype.
14345 * genattrtab.c (attr_desc): Add `static_p' field.
14346 (expand_units): Make blockage range and ready cost functions
14347 static.
14348 (write_attr_get): Don't add extern prototypes in C file. Mark
14349 static functions as appropriate.
14350 (find_attr, make_internal_attr): Initialize static_p.
14351 * genattrtab.h (ATTR_STATIC): New macro.
14352 * genautomata.c (output_internal_reset_func): Mark output function
14353 as inline.
14354 (make_internal_dfa_insn_code_attr): Mark output function as static.
14355
14356 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14357
14358 * genattrtab.h: Add new macros for attr `special' flags.
14359 * genattrtab.c (attr_desc): Reorder/resize fields better.
14360 Use attr `special' macros in all calls to make_internal_attr.
14361 * genautomata.c: Likewise.
14362
14363 2003-07-09 Jan Hubicka <jh@suse.cz>
14364
14365 * c-common.c (c_estimate_num_insns_1): New static function.
14366 (c_estimate_num_insns): New global function.
14367 * c-common.h (DECL_NUM_STMTS): Rename to...
14368 (DECL_ESTIMATED_INSNS): ... this.
14369 (c_estimate_num_insns): Declare.
14370 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
14371 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14372 * c-semantics.c (add_stmt): Do not account statements.
14373 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
14374 New.
14375 * langhooks.h (lang_hooks_for_tree_inlining): Add
14376 estimate_num_insns
14377 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
14378 to 100.
14379 (max-inline-insns): set to 300.
14380 (min-inline-insns): set to 10.
14381 * tree-inline.c (struct inline_data): Rename inlined_stmts to
14382 inlined-insns.
14383 (INSNS_PER_STMT): Kill.
14384 (inlinable_function_p): Compute and store body size.
14385 (expand_call_inline): Likewise.
14386 (optimize_inline_calls): Likewise.
14387
14388 2003-07-08 James E Wilson <wilson@tuliptree.org>
14389
14390 PR target/10021
14391 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
14392 loop over new variable t2 instead of t.
14393
14394 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14395
14396 PR bootstrap/11455
14397 * config/i386/winnt.c: Replace use of error(), warning() with
14398 error_with_decl(), warning_with_decl(), throughout.
14399
14400 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
14401
14402 * opts.c (wrap_help): Use unsigned int, not size_t.
14403
14404 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
14405
14406 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
14407 as .file/.loc directives are incompatible with linker relaxation.
14408
14409 2003-07-08 Zack Weinberg <zack@codesourcery.com>
14410
14411 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
14412 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
14413 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
14414 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
14415 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
14416 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
14417 Escape { and } characters which are not part of range expressions.
14418 * fixinc/fixincl.x: Regenerate.
14419 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
14420
14421 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
14422
14423 PR c/1687
14424 * tree-inline.c (find_alloca_call): Use
14425 walk_tree_without_duplicates, instead of walk_tree.
14426 (find_builtin_longjmp_call): Likewise.
14427 * c-objc-common.c (c_cannot_inline_fn): Likewise.
14428 * c-semantics.c (find_reachable_label): Likewise.
14429
14430 2003-07-08 Jakub Jelinek <jakub@redhat.com>
14431
14432 PR c/11420
14433 * config/i386/i386.c (ix86_check_movabs): New function.
14434 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
14435 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
14436 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
14437
14438 2003-07-08 Chris Demetriou <cgd@broadcom.com>
14439
14440 * Makefile.in (install-po): Cope with empty CATALOGS.
14441
14442 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
14443
14444 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14445 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
14446 (SECTION_FUNCTION_TEMPLATE): Delete.
14447 * config/mips/elf.h: As for elf64.h.
14448 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
14449 * config/mips/linux.h: As for elf.h
14450 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14451 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
14452 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
14453 of in_sdata from current_section_name and current_section_flags.
14454 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14455 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
14456 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
14457 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
14458 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
14459 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
14460 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
14461 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
14462 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
14463 (override_options): Remove setting of MASK_GPOPT.
14464 (mips_output_external): Use mips_in_small_data_p to check whether a
14465 symbol needs an .extern directive. Don't emit such directives for
14466 TARGET_EXPLICIT_RELOCS.
14467 (mips_declare_object): Update accordingly.
14468 (mips_select_rtx_section): Call named_section rather than
14469 SMALL_DATA_SECTION.
14470 (mips_select_section): Use default_elf_section_section for everything
14471 except .text string constants.
14472 (mips_in_small_data_p): New function.
14473 (mips_encode_section_info): Remove small data handling.
14474 (mips_unique_section): Delete.
14475 (iris6_section_type_flags): New function.
14476 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
14477
14478 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14479
14480 PR Target/11453
14481 * pa.md: Disparage all mtsar constraints.
14482 (extzv, extv, insv): Don't fail on length of {32|64}.
14483
14484 2003-07-08 Zack Weinberg <zack@codesourcery.com>
14485
14486 * system.h: Poison MAP_CHARACTER.
14487 * config/i370/i370-protos.h (mvs_map_char): Delete.
14488 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
14489 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
14490 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
14491
14492 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14493
14494 * toplev.c (randomize): Correct call to time().
14495
14496 2003-07-08 Jakub Jelinek <jakub@redhat.com>
14497
14498 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
14499 REG_EQUIV notes as well.
14500
14501 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
14502
14503 * doc/md.texi: Fix the description of addmodecc.
14504
14505 2003-07-07 Zack Weinberg <zack@codesourcery.com>
14506
14507 * Makefile.in (top_builddir): Set to "..", not ".".
14508 (INTLLIBS, INTLDEPS): Delete.
14509 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
14510 (LIBDEPS): Add $(LIBICONV_DEP).
14511 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
14512 (INCLUDES): Replace -I../intl with @INCINTL@.
14513 ($(top_builddir)/intl/libintl.a): Delete rule.
14514 (stage2-start, stage3-start, stage4-start, stageprofile-start,
14515 stagefeedback-start): Use $$ for variable to be evaluated by
14516 shell, not make.
14517 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
14518 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
14519 * aclocal.m4: sinclude ../config/progtest.m4. Add
14520 contents of lcmessage.m4 from gettext distro.
14521 * configure.in: Check for wchar.h and setlocale. Set
14522 LIBICONV_DEP to the empty string and substitute it.
14523 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
14524 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
14525 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
14526 in $LIBINTL, to avoid linking it twice.
14527 * configure, config.in: Regenerate.
14528
14529 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
14530
14531 * fixinc/mkfixinc.sh: Remove winnt support.
14532 * fixinc/fixinc.winnt: Delete with extreme prejudice.
14533
14534 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
14535
14536 * Makefile.in: Update.
14537 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
14538 * c.opt: Update documentation.
14539 * common.opt: Add some help text.
14540 * opts.c: Include intl.h.
14541 (wrap_help, print_help): New.
14542 (find_opt, handle_option, common_handle_option): opt_text now
14543 contains the '-'. Use print_help to output help.
14544 * opts.h (struct cl_option): New member "help".
14545 * opts.sh: Update to handle help text output and to prepend
14546 options with '-'.
14547 * toplev.c (display_help): Remove some help text.
14548
14549 2003-07-07 David Edelsohn <edelsohn@gnu.org>
14550 Fariborz Jahanian <fjahanian@apple.com>
14551
14552 * configure.in: Test for PowerPC mfcr field support in assembler.
14553 * config.in, configure: Regenderated.
14554
14555 * config/rs6000/power4.md: Add mfcrf reservation.
14556 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
14557 * config/rs6000/rs6000.c (mfcr_operation): Define.
14558 (print_operand): Add 'Q' case for mfcrf.
14559 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
14560 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
14561 (movcc_internal1): Emit optional field operand for mfcr and set
14562 "type" attribute appropriately.
14563 (mfcr SCC): Likewise.
14564 (movesi_from_cr_one): New.
14565
14566 2003-07-07 Roger Sayle <roger@eyesopen.com>
14567
14568 * config/i386/i386.md: Correct check-in of incorrect version.
14569
14570 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14571
14572 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
14573 adjacent stdio calls.
14574 * c-decl.c (c_print_identifier): Likewise.
14575 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
14576 * print-rtl.c (print_rtx): Likewise.
14577 * print-tree.c (print_node_brief, print_node): Likewise.
14578 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
14579
14580 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
14581 * config.in, configure: Regenerated.
14582
14583 2003-07-07 Roger Sayle <roger@eyesopen.com>
14584
14585 PR target/10979
14586 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
14587 Changed to define_expand patterns that copy operand[1] to prevent
14588 it from being clobbered before emitting an atan2?f3_1 insn.
14589 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
14590 patterns that actually specify the behaviour of x87's FPATAN.
14591
14592 2003-07-07 Jakub Jelinek <jakub@redhat.com>
14593
14594 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
14595 clearing of SYMBOL_FLAG_LOCAL bit.
14596 If vcall_offset fits into signed 16-bit immediate, use
14597 one instruction for both addition and load.
14598
14599 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
14600
14601 * opts.c (common_handle_option): Correct handling of the
14602 -falign- switches that do and don't take an argument.
14603
14604 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14605
14606 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
14607 today.
14608 (pushhi1_h8300hs): Likewise.
14609
14610 2003-07-07 Andreas Jaeger <aj@suse.de>
14611
14612 * genextract.c: Convert remaining prototypes to ISO C90.
14613
14614 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
14615 * fold-const.c (fold_single_bit_test): Likewise.
14616 * diagnostic.c (default_diagnostic_finalizer): Likewise.
14617 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
14618
14619 * gengtype.c (write_array): Generate ISO C90 prototypes.
14620
14621 * genflags.c (gen_proto): Generate ISO C90 prototypes.
14622
14623 2003-07-07 Roger Sayle <roger@eyesopen.com>
14624
14625 PR optimization/11059
14626 * expr.c (can_store_by_pieces): Return true if length is zero.
14627 (store_by_pieces): If length is zero and endp is two, abort,
14628 othwerise, if length is zero and endp is not two, return "to".
14629 (clear_by_pieces): Do nothing if length is zero.
14630 (clear_storage): Do nothing if length is zero.
14631 (store_constructor): Simplify code when size is zero, or the
14632 target has already been cleared. This avoids emitting a
14633 blockage instruction when initializing empty structures.
14634
14635 2003-07-07 Andreas Jaeger <aj@suse.de>
14636
14637 * mips-tfile.c: Convert prototypes to ISO C90.
14638 * mips-tdump.c: Convert prototypes to ISO C90.
14639
14640 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
14641
14642 * rtl.h (emit_line_note): Take a location_t.
14643 (emit_line_note_force): Remove.
14644 (set_file_and_line_for_statement): Take a location_t.
14645 * tree.g (emit_line_note): Take a location_t.
14646 * emit-rtl.c (emit_line_note): Take a location_t.
14647 (emit_line_note_force): Remove.
14648 * function.c (init_function_start): Adjust emit_line_note call.
14649 (expand_function_end): Use force_next_line_note, not
14650 emit_line_note_force.
14651 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
14652 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
14653 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
14654 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
14655 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
14656 genrtl_continue_stmt, genrtl_switch_stmt,
14657 genrtl_asm_stmt): Likewise.
14658 * expr.c (expand_expr): Likewise.
14659 * integrate.c (expand_inline_function): Likewise.
14660 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
14661 (expand_decl_init): Adjust emit_line_note call.
14662
14663 2003-07-07 Dale Johannesen <dalej@apple.com>
14664
14665 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
14666
14667 2003-07-07 Andreas Jaeger <aj@suse.de>
14668
14669 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
14670 * config/i386/i386.c: Likewise.
14671
14672 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14673
14674 * config/h8300/h8300.md: Use gen_int_mode instead of
14675 GEN_INT (trunc_int_for_mode (...)).
14676
14677 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14678
14679 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
14680 2 bytes and then subtract 2 from the stack pointer.
14681 (pushhi1_h8300hs): Likewise.
14682
14683 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
14684
14685 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
14686 -frandom-seed.
14687 * configure: Regenerated.
14688 * Makefile.in: Remove extraneous comment.
14689 * toplev.c (randomize): Protect against potential multiple calls.
14690 * doc/invoke.texi (-frandom-seed): Document use for in coverage
14691 files.
14692
14693 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14694 Eric Botcazou <ebotcazou@libertysurf.fr>
14695
14696 PR optimization/11198
14697 * alias.c (objects_must_conflict_p): Return 1 if the types have
14698 the same alias set, not if the alias sets only conflict.
14699
14700 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
14701
14702 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
14703 (convert_cset): Change inbuf to type ICONV_CONST char.
14704 * Makefile.in (LIBS): Add LIBICONV.
14705
14706 * doc/invoke.texi (-falign-functions): Document that
14707 when n is zero then a machine-dependent default is used.
14708 (-falign-labels): Document that when n is zero then a
14709 machine-dependent default is used and that -falign-labels =1
14710 is equivalent to -fno-align-labels.
14711 (-falign-loops): Likewise.
14712 (-falign-jumps): Likewise.
14713
14714 2003-07-06 Art Haas <ahaas@airmail.net>
14715
14716 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
14717 initializer syntax.
14718
14719 2003-07-06 James E Wilson <wilson@tuliptree.org>
14720
14721 PR optimization/9812
14722 * rtl.h (mem_for_const_double): Delete prototype.
14723 * varasm.c (mem_for_const_double): Delete function.
14724 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
14725 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
14726 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
14727 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
14728 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
14729 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
14730 comment about confused support for XFmode constants.
14731
14732 2003-07-07 Jan Hubicka <jh@suse.cz>
14733
14734 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
14735
14736 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
14737
14738 * config/h8300/h8300.c: Fix comment typos.
14739 * config/h8300/h8300.md: Likewise.
14740 * config/i386/athlon.md: Likewise.
14741 * config/i386/i386.c: Likewise.
14742 * config/i386/pentium.md: Likewise.
14743 * config/ia64/ia64.c: Likewise.
14744 * config/ia64/itanium1.md: Likewise.
14745 * config/ia64/itanium2.md: Likewise.
14746 * config/m32r/m32r.md: Likewise.
14747 * config/m68hc11/m68hc11.c: Likewise.
14748 * config/mcore/mcore.c: Likewise.
14749 * config/mips/sr71k.md: Likewise.
14750 * config/mips/t-iris5-as: Likewise.
14751 * config/mmix/mmix.h: Likewise.
14752 * config/ns32k/ns32k.h: Likewise.
14753 * config/ns32k/NOTES: Fix a typo.
14754
14755 2003-07-06 Andreas Jaeger <aj@suse.de>
14756
14757 * stmt.c: Convert remaining prototypes to ISO C90.
14758 * cfglayout.c: Likewise.
14759 * dbxout.c: Likewise.
14760 * gcc.c: Likewise.
14761 * genemit.c: Likewise.
14762
14763 * basic-block.h: Convert prototypes to ISO C90.
14764 * c-parse.in: Likewise.
14765 * c-pragma.h: Likewise.
14766 * c-typeck.c: Likewise.
14767 * cfghooks.h: Likewise.
14768 * cfgloopanal.c: Likewise.
14769 * dbxout.h: Likewise.
14770 * debug.h: Likewise.
14771 * dwarf2asm.h: Likewise.
14772 * gcov.c: Likewise.
14773 * gengtype-lex.l: Likewise.
14774 * sched-int.h: Likewise.
14775 * timevar.c: Likewise.
14776
14777 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
14778
14779 * c-common.h (c_comon_handle_filename,
14780 c_common_missing_arguement): New.
14781 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14782 LANG_HOOKS_MISSING_ARGUMENT): New.
14783 * c-opts.c (missing_arg): Rename c_common_missing_argument,
14784 update to be an appropriate langhook.
14785 (c_common_handle_option): Don't handle filenames.
14786 (c_common_handle_filename): New.
14787 * hooks.c (hook_void_constcharptr,
14788 hook_bool_constcharptr_size_t_false): New.
14789 * hooks.h (hook_void_constcharptr,
14790 hook_bool_constcharptr_size_t_false): New.
14791 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
14792 LANG_HOOKS_MISSING_ARGUMENT): New.
14793 (LANG_HOOKS_INITIALIZER): Update.
14794 * langhooks.h (struct lang_hooks): Add handle_filename and
14795 missing_argument.
14796 * opts.c (handle_option): Don't handle filenames here, but ...
14797 (handle_options): ... here.
14798 (common_handle_option): Don't handle missing arguments here.
14799 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14800 LANG_HOOKS_MISSING_ARGUMENT): New.
14801
14802 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
14803
14804 * Makfile.in: Remove traces of mbchar.
14805 * c-parse.in (MULTIBYTE_CHARS): Remove.
14806 * config.in (MULTIBYTE_CHARS): Remove.
14807 * configure: Remove --enable-mbchar.
14808 * configure.in: Remove --enable-mbchar.
14809 * mbchar.c, mbchar.h: Remove.
14810 * system.h: Poison MULTIBYTE_CHARS.
14811 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
14812 * config/linux.h (MULTIBYTE_CHARS): Remove.
14813 * config/svr4.h (MULTIBYTE_CHARS): Remove.
14814 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
14815
14816 2003-07-06 Andreas Jaeger <aj@suse.de>
14817
14818 * varray.c (varray_check_failed): Fix typo.
14819
14820 * unroll.c: Convert prototypes to ISO C90.
14821 * varasm.c: Likewise.
14822 * varray.c: Likewise.
14823 * varray.h: Likewise.
14824 * vmsdbgout.c: Likewise.
14825 * xcoffout.c: Likewise.
14826 * xcoffout.h: Likewise.
14827
14828 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14829
14830 * gcov-io.h: Add a local time stamp.
14831 (struct gcov_info): Add stamp field.
14832 (gcov_truncate): New.
14833 * coverage.c (read_counts_file): Skip the stamp.
14834 (coverage_begin_output): Write the stamp.
14835 (build_gcov_info): Declare and init the stamp.
14836 (coverage_finish): Only unlink data file, if stamp is zero.
14837 * gcov-dump.c (dump_file): Dump the stamp.
14838 * gcov.c (bbg_stamp): New.
14839 (release_structures): Clear bbg_stamp.
14840 (read_graph_file): Read stamp.
14841 (read_count_file): Check stamp.
14842 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
14843
14844 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14845
14846 * tree.h (default_flag_random_seed): Remove.
14847 * toplev.h (local_tick): Declare.
14848 * tree.c (flag_random_seed, default_flag_random_seed): Move to
14849 toplev.c.
14850 (append_random_chars): Don't call default_flag_random_seed.
14851 * toplev.c (flag_random_seed): Define here. Set local_tick.
14852 (local_tick): Define.
14853 (randomize): New, moved from tree.c.
14854 (print_switch_values): Adjust.
14855 (toplev_main): Call randomize.
14856
14857 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14858
14859 * tree.h (crc32_string): Declare.
14860 * tree.c (append_random_chars): Remove.
14861 (crc32_string): New.
14862 (get_file_function_name_long): Use crc32_string here.
14863
14864 2003-07-06 Andreas Jaeger <aj@suse.de>
14865
14866 * gcc.c: Convert prototypes to ISO C90.
14867 * gcc.h: Likewise.
14868 * gcov-dump.c: Likewise.
14869 * gcov-iov.c: Likewise.
14870 * gcse.c: Likewise.
14871 * genattrtab.h: Likewise.
14872 * ggc.h: Likewise.
14873 * global.c: Likewise.
14874 * graph.c: Likewise.
14875 * graph.h: Likewise.
14876 * hosthooks.h: Likewise.
14877 * hooks.h: Likewise.
14878 * hooks.c: Likewise.
14879 * hashtable.h: Likewise.
14880 * hashtable.c: Likewise.
14881 * haifa-sched.c: Likewise.
14882 * integrate.h: Likewise.
14883 * integrate.c: Likewise.
14884 * input.h: Likewise.
14885 * ifcvt.c: Likewise.
14886 * jump.c: Likewise.
14887 * langhooks-def.h: Likewise. Add extern to prototypes.
14888 * langhooks.c: Likewise.
14889 * langhooks.h: Likewise.
14890 * lcm.c: Likewise.
14891 * local-alloc.c: Likewise.
14892 * loop-init.c: Likewise.
14893 * loop-unroll.c: Likewise.
14894 * loop-unswitch.c: Likewise.
14895 * loop.c: Likewise.
14896 * loop.h: Likewise. Add extern to prototypes.
14897 * machmode.h: Likewise.
14898 * main.c: Likewise.
14899 * mbchar.c: Likewise.
14900 * mbchar.h: Likewise.
14901 * mkdeps.c: Likewise.
14902 * mkdeps.h: Likewise.
14903 * optabs.c: Likewise.
14904 * optabs.h: Likewise.
14905 * output.h: Likewise.
14906 * gccspec.c: Likwise.
14907 * postreload.c: Likewise.
14908 * prefix.c: Likewise.
14909 * prefix.h: Likewise.
14910 * print-rtl.c: Likewise.
14911 * print-tree.c: Likewise.
14912 * profile.c: Likewise.
14913 * read-rtl.c: Likewise.
14914 * real.c: Likewise.
14915 * real.h: Likewise.
14916 * recog.c: Likewise.
14917 * recog.h: Likewise.
14918 * reg-stack.c: Likewise.
14919 * regclass.c: Likewise.
14920 * regmove.c: Likewise.
14921 * regrename.c: Likewise.
14922 * regs.h: Likewise.
14923 * reload.c: Likewise.
14924 * reload.h: Likewise.
14925 * reload1.c: Likewise.
14926 * reorg.c: Likewise.
14927 * resource.c: Likewise.
14928 * resource.h: Likewise.
14929 * rtl-error.c: Likewise.
14930 * rtl.c: Likewise.
14931 * rtl.h: Likewise.
14932 * rtlanal.c: Likewise.
14933 * sbitmap.c: Likewise.
14934 * sbitmap.h: Likewise.
14935 * scan-decls.c: Likewise.
14936 * scan.c: Likewise.
14937 * sched-deps.c: Likewise.
14938 * sched-ebb.c: Likewise.
14939 * sched-int.h: Likewise.
14940 * sched-rgn.c: Likewise.
14941 * sched-vis.c: Likewise.
14942 * sibcall.c: Likewise.
14943 * simplify-rtx.c: Likewise.
14944 * sreal.c: Likewise.
14945 * sreal.h: Likewise.
14946 * ssa-ccp.c: Likewise.
14947 * ssa-dce.c: Likewise.
14948 * ssa.c: Likewise.
14949 * ssa.h: Likewise.
14950 * stack.h: Likewise.
14951 * stmt.c: Likewise.
14952 * stor-layout.c: Likewise.
14953 * stringpool.c: Likewise.
14954 * target.h: Likewise.
14955 * timevar.c: Likewise.
14956 * timevar.h: Likewise.
14957 * tlink.c: Likewise.
14958 * tracer.c: Likewise.
14959 * tree-inline.c: Likewise.
14960 * tree-inline.h: Likewise.
14961 * tree.c: Likewise.
14962 * tree.h: Likewise.
14963
14964 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14965
14966 * combine.c (nonzero_bits1): Fix a warning.
14967
14968 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14969
14970 * config/h8300/h8300.c (compute_mov_length): Correct the
14971 length of loading CONST0_RTX (SFmode).
14972
14973 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
14974
14975 * toplev.c (output_clean_symbol_name): Remove.
14976 * toplev.h (output_clean_symbol_name): Remove.
14977 * config/alpha/alpha.c (unicosmk_output_module_name): Use
14978 lbasename & clean_symbol_name.
14979
14980 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14981
14982 * ggc.h: Follow spelling conventions.
14983 * config/i386/i386.c: Likewise.
14984 * config/i386/winnt.c: Likewise.
14985 * config/rs6000/rs6000.c: Likewise.
14986
14987 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14988
14989 * bt-load.c: Fix comment typos.
14990 * c-incpath.c: Likewise.
14991 * cfg.c: Likewise.
14992 * cfgcleanup.c: Likewise.
14993 * cfgloop.h: Likewise.
14994 * cfgloopmanip.c: Likewise.
14995 * cfgrtl.c: Likewise.
14996 * diagnostic.h: Likewise.
14997 * dwarfout.c: Likewise.
14998 * emit-rtl.c: Likewise.
14999 * et-forest.c: Likewise.
15000 * et-forest.h: Likewise.
15001 * expr.c: Likewise.
15002 * gcse.c: Likewise.
15003 * genattr.c: Likewise.
15004 * jump.c: Likewise.
15005 * langhooks.h: Likewise.
15006 * local-alloc.c: Likewise.
15007 * loop-unroll.c: Likewise.
15008 * loop-unswitch.c: Likewise.
15009 * ra-build.c: Likewise.
15010 * regclass.c: Likewise.
15011 * regmove.c: Likewise.
15012 * rtl.def: Likewise.
15013 * rtlanal.c: Likewise.
15014 * sched-ebb.c: Likewise.
15015 * sched-rgn.c: Likewise.
15016 * simplify-rtx.c: Likewise.
15017 * ssa.c: Likewise.
15018 * tracer.c: Likewise.
15019 * tree.c: Likewise.
15020
15021 2003-07-05 Zack Weinberg <zack@codesourcery.com>
15022
15023 * cppcharset.c: Use the correct return type for the fallback iconv
15024 macro.
15025
15026 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15027
15028 Blame to Jan Hubicka <jh@suse.cz>
15029 * cfglayout.c (record_effective_endpoints): Split insns before
15030 first basic block correctly.
15031
15032 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15033
15034 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
15035 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
15036 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
15037
15038 2003-07-05 Andreas Jaeger <aj@suse.de>
15039
15040 * genattrtab.c (write_attr_get): Revert part of last patch to
15041 always write out a prototype.
15042
15043 * genemit.c (gen_split): Readd lost unused attributes in last
15044 patch.
15045
15046 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15047
15048 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
15049 different from header.
15050
15051 2003-07-05 Andreas Schwab <schwab@suse.de>
15052
15053 * config/m68k/m68k.c: Remove code protected by CRDS.
15054 * config/m68k/m68k.md: Likewise.
15055
15056 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
15057
15058 PR driver/11417
15059 * c-opts.c (permit_fortran_options): New.
15060 (c_common_init_options): Accept fortran front end options if
15061 it looks like we might be preprocessing Fortran.
15062 (c_common_handle_option): Don't reject switch if permit_fotran_options.
15063
15064 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15065
15066 * genattr.c (internal_dfa_insn_code): Output prototype.
15067 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
15068 * genautomata.c: Likewise.
15069 * genconditions.c: Likewise.
15070 * genemit.c: Likewise.
15071 * genextract.c: Likewise.
15072 * gengenrtl.c: Likewise.
15073 * gengtype.c: Likewise.
15074 * genopinit.c: Likewise.
15075 * genoutput.c: Likewise.
15076 * genpeep.c: Likewise.
15077 * genrecog.c: Likewise.
15078
15079 2003-07-04 Zack Weinberg <zack@codesourcery.com>
15080
15081 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
15082 (struct cpp_options): Add narrow_charset, wide_charset,
15083 bytes_big_endian fields. Remove EBCDIC field.
15084 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
15085
15086 * cpphash.h: Include <iconv.h> if we have it, otherwise
15087 provide a dummy definition of iconv_t.
15088 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
15089 (_cpp_valid_ucn): Update prototype.
15090 (_cpp_destroy_iconv): New prototype.
15091
15092 * doc/cpp.texi: Document character set handling.
15093 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
15094 * doc/extend.texi: Delete entire section on multiline strings.
15095 Rewrite section on __FUNCTION__ etc now that these are
15096 variables in C.
15097
15098 * cppucnid.tab, cppucnid.pl: New files.
15099 * cppucnid.h: New generated file.
15100 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
15101 (iconv_open, iconv, iconv_close): Provide dummy definitions
15102 if !HAVE_ICONV.
15103 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
15104 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
15105 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
15106 cpp_interpret_string, narrow_str_to_charconst,
15107 wide_str_to_charconst): New.
15108 (ucn_valid_in_identifier): Use a binary search through the
15109 ucnranges table defined in cppucnid.h, not a long chain of if
15110 statements.
15111 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
15112 character names are only valid in C++ and C99" to a warning.
15113 Issue the "meaning of \[uU] is different in traditional C"
15114 warning here. Take care not to let iconv see an invalid UCS
15115 value if we get a malformed UCN. Issue an error if we don't
15116 have iconv.
15117 (cpp_interpret_charconst): Moved here from cpplex.c. Use
15118 cpp_interpret_string to do the heavy lifting.
15119
15120 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
15121 narrow_charset, wide_charset fields of options structure.
15122 (cpp_destroy): Call _cpp_destroy_iconv.
15123 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
15124 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
15125 (cpp_interpret_charconst): Moved to cppcharset.c.
15126 * cpplib.c (dequote_string): Delete.
15127 (interpret_string_notranslate): New.
15128 (do_line, do_linemarker): Use interpret_string_notranslate.
15129
15130 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
15131
15132 * c-common.c (fname_string, combine_strings): Delete.
15133 * c-common.h (fname_string, combine_strings): Delete prototypes.
15134 * c-lex.c (ignore_escape_flag): Delete.
15135 (cb_ident): Use cpp_interpret_string, not lex_string.
15136 (get_nonpadding_token): New function.
15137 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
15138 Adjust calls to lex_string. Don't write *value twice.
15139 (lex_string): Now handles string constant concatenation.
15140 Most of the work handed off to cpp_interpret_string.
15141 Call fix_string_type here.
15142 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
15143 FUNC_NAME, throughout.
15144 (OBJC_STRING): New token type.
15145 (primary:STRING): No need to call fix_string_type here.
15146 (primary:objc_string): Make that OBJC_STRING.
15147 (objc_string nonterminal): Delete.
15148 (yylexname): Delete code to handle fake string constants.
15149 (yylexstring): Delete entirely.
15150 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
15151 to handle CPP_ATSIGN.
15152
15153 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
15154 * c-opts.c (missing_arg, c_common_handle_option): Handle
15155 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
15156 (c_common_init): Set cpp_opts->bytes_big_endian, not
15157 cpp_opts->EBCDIC. Call cpp_init_iconv.
15158 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
15159 (TARGET_EBCDIC): Delete default definition.
15160
15161 * objc/objc-act.c (build_objc_string_object): No need to
15162 handle string constant concatenation.
15163
15164 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
15165
15166 * doc/install.texi: Fix typos.
15167 * doc/invoke.texi: Likewise.
15168 * doc/tm.texi: Likewise.
15169
15170 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
15171
15172 * config/pa/fptr.c: Fix comment typos.
15173 * config/pa/pa-64.h: Likewise.
15174 * config/pa/pa.c: Likewise.
15175 * config/pa/pa.h: Likewise.
15176 * config/rs6000/603.md: Likewise.
15177 * config/rs6000/7xx.md: Likewise.
15178 * config/rs6000/darwin.h: Likewise.
15179 * config/rs6000/freebsd.h: Likewise.
15180 * config/rs6000/rs6000.c: Likewise.
15181 * config/rs6000/rs6000.md: Likewise.
15182 * config/rs6000/spe.h: Likewise.
15183
15184 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
15185
15186 * config/s390/2064.md: Change GNU CC to GCC.
15187 * config/s390/2084.md: Likewise.
15188 * config/s390/fixdfdi.h: Likewise.
15189 * config/s390/linux.h: Likewise.
15190 * config/s390/s390-modes.def: Likewise.
15191 * config/s390/s390-protos.h: Likewise.
15192 * config/s390/s390.c: Likewise.
15193 * config/s390/s390.h: Likewise.
15194 * config/s390/s390.md: Likewise.
15195 * config/s390/s390x.h: Likewise.
15196
15197 2003-07-04 Jeff Law <law@redhat.com>
15198
15199 PR c/11428
15200 * expr.c (do_store_flag): Pass in the correct result type
15201 when calling fold_single_bit_test.
15202 * fold-const.c (fold_single_bit_test): Use result_type for the
15203 result when folding a sign bit test.
15204
15205 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
15206
15207 * opts.c (common_handle_options): Negate sense of -falign- switches.
15208
15209 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
15210
15211 * Makefile.in: Replace PWD with PWD_COMMAND.
15212
15213 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15214
15215 * cfgloopanal.c (count_strange_loop_iterations): New static function.
15216 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
15217 Handle strange loops.
15218
15219 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
15220
15221 * install.texi: Even the g77 manpage is derived from
15222 the full g77 manual.
15223
15224 2003-07-04 Zack Weinberg <zack@codesourcery.com>
15225
15226 * ABOUT-NLS: Delete.
15227 * intl: Delete entire directory.
15228 * aclocal.m4: Include ../config/gettext.m4. Delete
15229 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
15230 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
15231 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
15232 Remove intl/Makefile from all_outputs.
15233 * configure, config.in: Regenerate.
15234 * Makefile.in: Expunge all references to intl subdirectory.
15235 Add -I../intl to INCLUDES.
15236 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
15237
15238 2003-07-04 Roger Sayle <roger@eyesopen.com>
15239
15240 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
15241 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
15242
15243 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
15244
15245 PR c++/5287, PR c++/7910, PR c++/11021
15246 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
15247 dllimport attribute if function is defined at declaration, but
15248 report error instead. Likewise for dllimport'd variable
15249 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
15250 declared within functions, Report error if dllimport or dllexport
15251 symbol is not global.
15252 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
15253 if defined after declaration or if inlined. Don't allow definition
15254 of static data members of C++ classes. Don't dllimport virtual
15255 methods.
15256 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
15257 (i386_pe_mark_dllimport): Remove unnecessary checks.
15258 (i386_pe_encode_section_info): Warn if the dllimport attribute
15259 and symbol prefix have been instantiated and then overridden.
15260
15261 * doc/extend.texi: Document dllimport and dllexport attributes.
15262
15263 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
15264
15265 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
15266
15267 * config/kaos.h (CPP_PREDEFINES): Delete.
15268 (TARGET_OS_CPP_BUILTINS): New.
15269
15270 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15271
15272 * c-aux-info.c: Include toplev.h after c-tree.h.
15273 * c-common.c: Likewise.
15274 (GCC_DIAG_STYLE): Undef.
15275 * c-semantics.c (GCC_DIAG_STYLE): Define.
15276 * c-tree.h (GCC_DIAG_STYLE): Likewise.
15277 * diagnostic.h (inform): Move prototype to toplev.h.
15278 * jump.c: Include diagnostic.h before toplev.h.
15279 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
15280 (warning, error, fatal_error, pedwarn, sorry, inform,
15281 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
15282
15283 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15284
15285 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
15286 at all if edge is not specified.
15287 (can_copy_bbs_p, copy_bbs): New.
15288 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
15289 * cfgloop.c (get_loop_body): Comment more precisely.
15290 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
15291 (scale_bbs_frequencies): Fix comment typo.
15292 (can_duplicate_loop_p): Use can_copy_bbs_p.
15293 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
15294
15295 2003-07-03 Devang Patel <dpatel@apple.com>
15296
15297 * c-opts.c (c_common_parse_file): Remove extra
15298 debug_hooks->start_source_file call.
15299
15300 2003-07-03 Roger Sayle <roger@eyesopen.com>
15301
15302 * real.c (real_trunc, real_floor, real_ceil): New functions
15303 to implement trunc, floor and ceil respectively.
15304 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
15305 * builtins.c (integer_valued_real_p): New function to test if
15306 a floating point expression has an integer valued result.
15307 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
15308 foo(x) where foo is an integer rounding function. Similarly,
15309 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
15310 (double)(int)x when both foo and bar are integer rounding
15311 functions and we don't need to honor errno.
15312 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
15313 New functions to fold trunc, floor and ceil.
15314 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
15315 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
15316 to fold BUILT_IN_CEIL*.
15317 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
15318 the remaining integer rounding functions.
15319
15320 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15321
15322 * config/sparc/sparc.c (function_arg_partial_nregs): Use
15323 SPARC_INT_ARG_MAX to determine where to split unnamed
15324 complex FP arguments.
15325
15326 2003-07-03 Jan Hubicka <jh@suse.cz>
15327
15328 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
15329 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
15330 (merge_blocks_move_predecessor_nojumps,
15331 merge_blocks_move_successor_nojumps): Use merge_blocks.
15332 (try_optimize_cfg): Use merge_blocks_move.
15333 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
15334 (merge_blocks_nomove): Rename to rtl_merge_blocks.
15335 (cfg_layout_create_basic_block): New.
15336 (rtl_can_merge_blocks): New.
15337 (cfg_layout_split_block): Do not alloc aux by hand.
15338 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
15339 merge_blocks.
15340 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
15341 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
15342 * cfgloopmanip.c (loop_split_edge_with): Likewise.
15343 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
15344
15345 * basic-block.h (basic_block_def): Add field 'rbi'.
15346 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
15347 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
15348 * cfg.c (entry_exit_blocks): Add new field.
15349 * cfglayout.c: Include alloc-pool.h;
15350 (cfg_layout_pool): New.
15351 (record_effective_endpoints, fixup_reorder_chain,
15352 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
15353 of rbi.
15354 (cfg_layout_initialize_rbi): New function.
15355 (cfg_layout_initialize): Use it.
15356 (cfg_layout_finalize): Clear rbi fields.
15357 * cfglayout.h (RBI): Kill.
15358 (cfg_layout_initialize_rbi): Declare.
15359 * cfgloopmanip.c (copy_bbs): Use rbi.
15360 (record_exit_edges): Likewise.
15361 (duplicate_loop_to_header_edge): Likewise.
15362 * cfgrtl.c (cfg_layout_create_basic_block): Use
15363 cfg_layout_initialize_rbi.
15364 (cfg_layout_split_block): Use rbi.
15365 (cfg_layout_delete_block): Likewise.
15366 * loop-init.c (loop_optimizer_finalize): Likewise.
15367 * loop-unswitch.c (unswitch_loop): Likewise.
15368 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
15369
15370 * cfgrtl.c: Update comments.
15371 (try_redirect_by_replacing_jump): New argument.
15372 (redirect_branch_edge): Break out from ...
15373 (rtl_redirect_edge_and_branch): ... this one.
15374 (update_cfg_after_block_merging): Break out from ...
15375 (rtl_merge_blocks): ... this one.
15376 (cfg_layout_split_edge): New.
15377 (cfg_layout_merge_blocks): New.
15378 (cfg_layout_can_merge_blocks_p): New.
15379 (cfg_layout_redirect_edge_and_branch): Reorganize.
15380 (cfg_layout_rtl_cfg_hooks): Fill in.
15381 (cfg_layout_delete_block): Kill barriers.
15382 * cfganal.c (can_fallthru): Deal with exit blocks
15383 * cfglayout.c (cfg_layout_function_header): New function
15384 (record_effective_endpoints): Record function header.
15385 (fixup_reorder_chain): Fixup dead jumptables; place header
15386
15387 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
15388 * bb-reorder.c (cfg_layout_initialize): Update call.
15389 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
15390 edges in cfglayout mode.
15391 * cfglayout.c (cleanup_unconditional_jumps): Kill.
15392 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
15393 * cfglayout.h (cfg_layout_initialize): Update prototype.
15394 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
15395 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
15396 * flow.c (propagate_block): Do not crash when basic block ends
15397 by first insn in the chain.
15398 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
15399 do loop discovery.
15400 * tracer.c (tracer): Update call of cfg_layout_initialize.
15401
15402 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15403
15404 * Makefile.in: Use dependency variables in lieu of explicit
15405 files throughout.
15406
15407 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
15408
15409 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
15410 * tree.h: ...to here.
15411
15412 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15413
15414 * config/s390/2064.md: Fix comment typos.
15415 * config/s390/2084.md: Likewise.
15416 * config/s390/s390.c: Likewise.
15417 * config/s390/s390.md: Likewise.
15418 * config/sh/sh.c: Likewise.
15419 * config/sh/sh.h: Likewise.
15420 * config/sh/sh.md: Likewise.
15421 * config/sparc/sparc.c: Likewise.
15422 * config/sparc/sparc.h: Likewise.
15423 * config/sparc/sparc.md: Likewise.
15424 * config/stormy16/stormy16.c: Likewise.
15425 * config/stormy16/stormy16.h: Likewise.
15426 * config/stormy16/stormy-abi: Fix a typo.
15427
15428 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
15429
15430 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
15431
15432 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15433
15434 * config/mips/mips.h (save_argv): Delete.
15435
15436 2003-07-03 Roger Sayle <roger@eyesopen.com>
15437
15438 PR target/10700
15439 * fold-const.c (extract_muldiv_1): There's nothing that can be done
15440 if the expression is a SAVE_EXPR.
15441
15442 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15443
15444 * config/m32r/m32r.c: Fix comment typos.
15445 * config/m68hc11/m68hc11.c: Likewise.
15446 * config/m68hc11/m68hc11.h: Likewise.
15447 * config/m68k/m68k.c: Likewise.
15448 * config/mcore/mcore.c: Likewise.
15449 * config/mcore/mcore.h: Likewise.
15450 * config/mcore/mcore.md: Likewise.
15451 * config/mips/mips.c: Likewise.
15452 * config/mips/mips.h: Likewise.
15453 * config/mips/mips.md: Likewise.
15454 * config/mips/netbsd.h: Likewise.
15455 * config/mn10300/mn10300.c: Likewise.
15456
15457 2003-07-03 Andreas Schwab <schwab@suse.de>
15458
15459 * dbxout.c (pending_bincls): Move decl down inside
15460 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
15461
15462 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15463
15464 * rtl.h (NOTE_DATA): Refer to whole union.
15465 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
15466
15467 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15468
15469 PR optimization/11381
15470 * simplify-rtx.c (simplify_relational_operation): Check that
15471 two equal operands have no side-effects before simplifying
15472 the comparison.
15473
15474 2003-07-02 Jeff Law <law@redhat.com>
15475
15476 * expr.c (do_store_flag): Remove special case folding for
15477 single bit tests. Instead call back into the commonized folder
15478 routine.
15479 * fold-const.c (fold_single_bit_test): New function, mostly
15480 extracted from do_store_flag, with an additional case extracted
15481 from fold.
15482 (fold): Call fold_single_bit_test appropriately.
15483 * tree.h (fold_single_bit_test): Prototype.
15484
15485 2003-07-02 Zack Weinberg <zack@codesourcery.com>
15486
15487 * system.h: Include filenames.h.
15488 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
15489 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
15490 define based on HAVE_DOS_BASED_FILE_SYSTEM.
15491 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
15492 * config/i386/xm-mingw32.h: Don't define
15493 HAVE_DOS_BASED_FILE_SYSTEM,
15494 DIR_SEPARATOR, or DIR_SEPARATOR_2.
15495 * doc/hostconfig.texi: Update to match.
15496
15497 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
15498 config/i386/cygwin.h:
15499 Use IS_ABSOLUTE_PATH throughout.
15500 * gcc.c (DIR_UP): Delete, unused.
15501 * protoize.c (IS_SAME_PATH): Define in terms of
15502 FILENAME_CMP.
15503 (is_abspath): Delete.
15504
15505 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
15506
15507 * config/i386/emmintrin.h: Fix comment typos.
15508 * config/i386/i386.c: Likewise.
15509 * config/i386/i386.h: Likewise.
15510 * config/i386/sco5.h: Likewise.
15511 * config/ia64/ia64.c: Likewise.
15512 * config/ia64/itanium2.md: Likewise.
15513
15514 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
15515
15516 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
15517 DBX_USE_BINCL.
15518 (emit_bincl_stab): Same.
15519 (emit_pending_bincls): Same.
15520
15521 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
15522
15523 * config/h8300/h8300.c (compute_mov_length): Fix the length of
15524 loading CONST0_RTX (SFmode).
15525 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
15526 'G' to CONST0_RTX (SFmode).
15527 * config/h8300/h8300.md (movsf_h8300): Change the first
15528 constraint to 'G'.
15529 (movsf_h8300h): Likewise.
15530
15531 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
15532
15533 * c-common.h (c_common_init_options): New prototype.
15534 * c-opts.c (deferred_size): Remove.
15535 (defer_opt): Array is now pre-allocated.
15536 (c_common_init_options): Pre-allocate deferred_opts. Make
15537 lang_flags unsigned.
15538 (push_command_line_options): Free deferred_opts.
15539 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
15540 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
15541 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
15542 * langhooks.h (struct lang_hooks): New prototype for init_options.
15543 * main.c (main): Cast argv.
15544 * opts.c (handle_option, handle_options): Update prototypes.
15545 (decode_options): save_argc, save_argv are not global. Constify.
15546 * opts.h (decode_options): New prototype.
15547 * toplev.c (general_init): New protoype.
15548 (save_argv): Make static.
15549 (save_argc): Remove.
15550 (print_switch_values, general_init): Constify.
15551 (toplev_main): Save argv.
15552 * toplev.h (toplev_main): Update prototype.
15553 (save_argc, save_argv): Remove.
15554
15555 2003-07-02 David Edelsohn <edelsohn@gnu.org>
15556
15557 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
15558 (emit_bincl_stab): Same.
15559 (emit_pending_bincls): Same.
15560
15561 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15562
15563 PR c++/11072
15564 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
15565
15566 2003-07-02 Andreas Schwab <schwab@suse.de>
15567
15568 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
15569
15570 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15571
15572 PR optimization/11210
15573 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
15574 about the behaviour with regard to bitfields.
15575 * fold-const (decode_field_reference): Record outermost type in
15576 case the expression is a NOP. Strip all NOPs. Set the signedness
15577 to that of the outermost type (if any) when the bitsize is equal
15578 to the size of the type.
15579
15580 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
15581
15582 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
15583 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
15584 (adddi3_internal_3, addsi3_internal_2): Likewise.
15585
15586 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
15587
15588 * config/mips/mips.c (machine_function): Add new fields:
15589 ignore_hazard_length_p and all_noreorder_p.
15590 (mips_flag_delayed_branch): New variable.
15591 (override_options): Treat '/' as an operand punctuation character.
15592 Set up mips_flag_delayed_branch.
15593 (print_operand): Handle '/'.
15594 (mips_output_function_prologue): Put the whole function in
15595 .set noreorder and .set nomacro if all_noreorder_p is true.
15596 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
15597 (mips16_optimize_gp): Remove "first insn" parameter.
15598 (mips16_lay_out_constants): New function, split out from mips_reorg.
15599 (mips_avoid_hazard, mips_avoid_hazards): New functions.
15600 (mips_reorg): For mips16 code, call mips16_lay_out_constant
15601 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
15602 do delayed-branch scheduling followed by hazard detection.
15603 (mips_adjust_insn_length): Only account for hazards if
15604 !ignore_hazard_length_p.
15605 (mips_output_load_label): Add a nop to the o32 sequence if
15606 the target suffers from load delays.
15607 (mips_output_conditional_branch): Add %/ to the end of branches.
15608 (mips_output_division): Fill the branch delay slot with %#.
15609 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
15610 instructions. End all other %* branches with %/.
15611 (ffssi2, ffsdi2): Fix lengths.
15612 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
15613 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
15614 (fix_truncsfsi2_macro): Likewise.
15615 (mov_lwl): Set hazard to "none".
15616 (ashldi3_internal): Fill the branch delay slot with %#.
15617 (ashrdi3_internal, lshrdi3_internal): Likewise.
15618 (exception_receiver): Explicitly set $28.
15619 (hazard_nop): New pattern.
15620
15621 2003-07-02 Jan Hubicka <jh@suse.cz>
15622
15623 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
15624 before calling tree_inlinable_function_p.
15625
15626 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15627
15628 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
15629 <internal/stdio_core.h> too.
15630 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
15631 <internal/wchar_core.h> too.
15632 Substitute va_list uses in inline definition.
15633 * fixinc/fixincl.x: Regenerate.
15634
15635 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15636
15637 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
15638 Undef before redefinition.
15639 (LABEL_AFTER_LOC): Likewise.
15640 (DEFAULT_SIGNED_CHAR): Likewise.
15641 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
15642 Fix IRIX spelling.
15643
15644 * config/mips/iris3.h: Remove, unused.
15645 * config/mips/iris4.h: Likewise.
15646
15647 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
15648
15649 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
15650 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
15651 target_cpu_default.
15652
15653 * config/mips/iris5.h: Move explicit includes ...
15654 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
15655
15656 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
15657 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15658 tm_defines.
15659
15660 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
15661 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15662 target_cpu_default.
15663
15664 * config/mips/iris6.h: Fix IRIX spelling.
15665 (MULTILIB_DEFAULTS): Undef before redefinition.
15666
15667 * config/mips/iris6.h: Move explicit includes ...
15668 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
15669
15670 2003-07-02 Jan Hubicka <jh@suse.cz>
15671
15672 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
15673 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
15674 Use next_needed field instead of aux to maintain the queue.
15675 * cgraph.h (cgraph_node): Add next_needed.
15676 (cgraph_varpool_node): Add next_needed; remove aux.
15677 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
15678
15679 2003-07-02 Jan Hubicka <jh@suse.cz>
15680
15681 * cgraphunit.c (cgraph_finalize_function): Set finalized.
15682 (cgraph_finalize_function): Do not examine inlinablility.
15683 (cgraph_finalize_compilation_unit): Do it here.
15684 * cgraph.h (cgraph_local_info): Add finalized field.
15685
15686 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15687
15688 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
15689 (gt_pch_restore): Likewise.
15690
15691 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15692
15693 * config/alpha/alpha.c: Fix comment typos.
15694 * config/alpha/elf.h: Likewise.
15695 * config/arm/arm.c: Likewise.
15696 * config/arm/arm.h: Likewise.
15697 * config/arm/arm.md: Likewise.
15698 * config/arm/t-arm-coff: Likewise.
15699 * config/arm/t-strongarm-pe: Likewise.
15700 * config/arm/xscale-elf.h: Likewise.
15701 * config/avr/avr.h: Likewise.
15702
15703 2003-07-01 Jeff Law <law@redhat.com>
15704
15705 * stmt.c (any_pending_cleanups): Remove another redundant test.
15706
15707 2003-07-01 David Edelsohn <edelsohn@gnu.org>
15708 J"orn Rennecke <joern.rennecke@superh.com>
15709
15710 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
15711 for MEM case.
15712
15713 2003-07-01 Devang Patel <dpatel@apple.com>
15714
15715 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
15716 (binclstatus): New.
15717 (struct dbx_file): New members - bincl_status, pending_bincl_name and
15718 prev.
15719 (pending_bincls): New.
15720 (dbxout_init): Initialize new dbx_file members.
15721 (dbxout_start_source_file): Same.
15722 (emit_bincl_stab): New function.
15723 (emit_pending_bincls): Same.
15724 (emit_pending_bincls_if_required): Same.
15725 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
15726 processed.
15727 (dbxout_begin_block): Emit pending BINCL stabs.
15728 (dbxout_end_block): Same.
15729 (dbxout_function_decl): Same.
15730 (dbxout_continue): Same.
15731 (dbxout_type): Same.
15732 (dbxout_class_name_qualifiers): Same.
15733 (dbxout_symbol): Same.
15734 (dbxout_symbol_location): Same.
15735 (dbxout_parms): Same.
15736
15737 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15738
15739 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
15740 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
15741
15742 2003-07-01 Andreas Jaeger <aj@suse.de>
15743
15744 * fold-const.c: Convert prototypes to ISO C90.
15745 * function.c: Likewise.
15746 * function.h: Likewise.
15747
15748 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15749
15750 * doc/contrib.texi: Fix typos.
15751 * doc/invoke.texi: Likewise.
15752 * doc/passes.texi: Likewise.
15753 * doc/sourcebuild.texi: Likewise.
15754 * doc/tm.texi: Likewise.
15755
15756 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15757
15758 * basic-block.h: Fix comment typos.
15759 * bb-reorder.c: Likewise.
15760 * c-format.c: Likewise.
15761 * cfgcleanup.c: Likewise.
15762 * cfghooks.h: Likewise.
15763 * cfgloop.c: Likewise.
15764 * cfgloopmanip.c: Likewise.
15765 * cfgrtl.c: Likewise.
15766 * cgraph.h: Likewise.
15767 * cgraphunit.c: Likewise.
15768 * combine.c: Likewise.
15769 * convert.c: Likewise.
15770 * dbxout.c: Likewise.
15771 * df.c: Likewise.
15772 * df.h: Likewise.
15773 * diagnostic.c: Likewise.
15774 * dwarf2out.c: Likewise.
15775 * et-forest.h: Likewise.
15776 * flow.c: Likewise.
15777 * fold-const.c: Likewise.
15778 * function.h: Likewise.
15779 * gcov-io.h: Likewise.
15780 * gcov.c: Likewise.
15781 * gcse.c: Likewise.
15782 * genautomata.c: Likewise.
15783 * ggc-common.c: Likewise.
15784 * ggc-page.c: Likewise.
15785 * loop-unroll.c: Likewise.
15786 * loop-unswitch.c: Likewise.
15787 * loop.c: Likewise.
15788 * mips-tfile.c: Likewise.
15789 * optabs.c: Likewise.
15790 * ra-build.c: Likewise.
15791 * ra-colorize.c: Likewise.
15792 * ra-rewrite.c: Likewise.
15793 * ra.h: Likewise.
15794 * regmove.c: Likewise.
15795 * reload.c: Likewise.
15796 * rtlanal.c: Likewise.
15797 * sched-ebb.c: Likewise.
15798 * sched-int.h: Likewise.
15799 * sched-vis.c: Likewise.
15800 * sreal.c: Likewise.
15801 * ssa-ccp.c: Likewise.
15802 * ssa.c: Likewise.
15803 * toplev.c: Likewise.
15804 * tree-inline.c: Likewise.
15805 * value-prof.c: Likewise.
15806 * value-prof.h: Likewise.
15807
15808 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
15809
15810 * rtl.h (emit_line_note_after): Remove.
15811 (emit_note_copy_after, emit_note_copy): New.
15812 * emit-rtl.c (reorder_insns_with_line_notes): Replace
15813 emit_line_note_after with emit_note_copy_after.
15814 (emit_insn_after_with_line_notes): Likewise.
15815 (emit_line_note_after): Kill.
15816 (emit_note_copy_after): New.
15817 (emit_note_copy): New.
15818 * function.c (emit_return_into_block): Use emit_note_copy_after.
15819 (thread_prologue_and_epilogue_insns): Likewise.
15820 * integrate.c (expand_inline_function): Use emit_note_copy.
15821 (copy_insn_list): Likewise.
15822 * unroll.c (copy_loop_body): Likewise.
15823 * cfglayout.c (duplicate_insn_chain): Likewise.
15824
15825 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
15826
15827 * c-tree.h (define_label): Replace filename and lineno arguments
15828 with a location_t.
15829 * c-decl.c (poplevel): Adjust define_label call.
15830 (pop_label_level): Likewise.
15831 (define_label): Replace filename and lineno arguments with a
15832 location_t.
15833 (store_parm_decls): Use DECL_SOURCE_LOCATION.
15834 * c-parse.in (label): Adjust define_label call.
15835
15836 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
15837
15838 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
15839 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
15840 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
15841 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
15842 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
15843
15844 2003-07-01 Andreas Jaeger <aj@suse.de>
15845
15846 * final.c: Convert prototypes to ISO C90.
15847 * flow.c: Likewise.
15848 * flags.h: Likewise.
15849 * gcov-io.c: Likewise.
15850 * gcov-io.h: Likewise.
15851
15852 See ChangeLog.9 for earlier changes.