* doc/md.texi: Document PowerPC vector register constraint letter.
[gcc.git] / gcc / ChangeLog
1 2003-12-24 David Edelsohn <edelsohn@gnu.org>
2
3 * doc/md.texi: Document PowerPC vector register constraint letter.
4
5 2003-12-23 Mark Mitchell <mark@codesourcery.com>
6
7 * calls.c (expand_call): Recognize calls to "sqrt" and create
8 corresponding notes.
9
10 2003-12-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11
12 * config/mips/mips.c (override_options): Use `inform' instead
13 of `warning' for -g -mabi=32 and native assembler.
14
15 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
16 Don't pass -Wno-error.
17
18 2003-12-23 David Edelsohn <edelsohn@gnu.org>
19
20 * function.c (assign_parms): Update max_parm_reg and
21 parm_reg_stack_loc when adding new parm reg.
22
23 2003-12-23 Kazu Hirata <kazu@cs.umass.edu>
24
25 * config/ns32k/ns32k.c: Convert to ISO-C.
26
27 2003-12-23 Zack Weinberg <zack@codesourcery.com>
28
29 * config/ia64/ia64.c (ia64_va_arg): Pass pointer for
30 variable-sized type through convert_memory_address.
31 (ia64_in_small_data_p): Always return false for FUNCTION_DECLs.
32
33 2003-12-23 Jan Hubicka <jh@suse.cz>
34
35 * common.opt (fprofile-generate,fprofile-use): Add.
36 * gcc.c (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov
37 * opts.c (profile_arc_flag_set, flag_profile_values_set,
38 flag_unroll_loops_set, flag_tracer_set,
39 flag_value_profile_transformations_set,
40 flag_peel_loops_set): New static variables.
41 (common_handle_option): Deal with -fprofile-generate/-fprofile-use
42 * invoke.texi (-fprofile-generate, -fprofile-use): Describe.
43
44 2003-12-23 Mark Mitchell <mark@codesourcery.com>
45
46 * Makefile.in (OBJS-common): Remove dwarfout.o.
47 (dwarfout.o): Remove.
48 * common.opt: Remove -gdwarf, -gdwarf+.
49 * defaults.h (PREFERRED_DEBUGGING_TYPE): Do not check for
50 DWARF_DEBUGGING_INFO.
51 * dwarf2out.c: Fix typo in comment.
52 * dwarfout.c: Remove.
53 * opts.c (common_handle_option): Remove OPT_gdwarf, OPT_gdwarf_.
54 * toplev.c (process_options): Remove check for
55 DWARF_DEBUGGING_INFO.
56 * config/elfos.h (DWARF_DEBUGGING_INFO): Do not #define it or
57 #undef it.
58 * config/netware.h (DWARF_DEBUGGING_INFO): Likewise.
59 * config/ptx4.h (DWARF_DEBUGGING_INFO): Likewise.
60 * config/vxworks.h (DWARF_DEBUGGING_INFO): Likewise.
61 * config/alpha/unicosmk.h (DWARF_DEBUGGING_INFO): Likewise.
62 * config/arc/arc.h (DWARF_DEBUGGING_INFO): Likewise.
63 * config/i386/sco5.h (DWARF_DEBUGGING_INFO): Likewise.
64 * config/i386/x86-64.h (DWARF_DEBUGGING_INFO): Likewise.
65 * config/m32r/m32r.h (DWARF_DEBUGGING_INFO): Likewise.
66 * config/mcore/mcore-elf.h (DWARF_DEBUGGING_INFO): Likewise.
67 * config/sparc/linux64.h (DWARF_DEBUGGING_INFO): Likewise.
68 * config/sparc/liteelf.h (DWARF_DEBUGGING_INFO): Likewise.
69 * config/sparc/sol26-sld.h (DWARF_DEBUGGING_INFO): Likewise.
70 * config/sparc/sp86x-elf.h (DWARF_DEBUGGING_INFO): Likewise.
71 * doc/invoke.texi: Do not mention -gdwarf, -gdwarf-1, -gdwarf-1+,
72 or -gdwarf+.
73 * doc/tm.texi: Likewise.
74
75 * c-common.c (flag_abi_version): Default to 2.
76 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_ABI_VERSION
77 uniformly for versions above 2.
78 * doc/invoke.texi: Update documentation for -fabi-version.
79
80 2003-12-22 Geoffrey Keating <geoffk@apple.com>
81
82 * config/rs6000/rs6000.md: Change many instances of '!
83 TARGET_POWERPC64' to 'TARGET_32BIT' when the pattern being guarded
84 was guarded only because it changed CR0 or the carry bit in XER.
85
86 2003-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
87
88 PR optimization/13394
89 * toplev.c (rest_of_compilation): Move call to
90 check_function_return_warnings right after the sibcall
91 optimization pass.
92
93 2003-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
94
95 PR c/13382
96 * c-typeck.c (convert_for_assignment): When converting from
97 integral type to pointer type, always call convert.
98
99 2003-12-22 Mark Mitchell <mark@codesourcery.com>
100
101 * doc/invoke.texi: Deprecate -fwritable-strings.
102
103 * c-common.c (flag_external_templates): Remove.
104 (flag_alt_external_templates): Likewise.
105 * c-common.h (flag_external_templates): Remove.
106 (flag_alt_external_templates): Likewise.
107 * c-opts.c (c_common_handle_option): Unsupport
108 -falt-external-templates and -ftemplates.
109 * doc/invoke.texi: Remove mention of -fexternal-templates and
110 -falt-external-templates.
111
112 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
113
114 PR target/13466
115 * config.gcc (powerpc-*-darwin): Remove overridden value of need_64bit_hwint.
116
117 * emit-rtl.c (copy_rtx_if_shared): Add comment about its use of
118 copy_rtx_if_shared_1.
119 (copy_rtx_if_shared_1): Add comment about what the function does.
120
121 * c-decl.c (finish_function): Change order of checks.
122 (c_expand_body): Likewise.
123
124 2003-12-22 Fariborz Jahanian <fjahanian@apple.com>
125
126 * config/rs6000/rs6000.c (legitimate_offset_address_p): Correct
127 check for the legitimate offset when memory of
128 DImode/DFmode/TFmode/TImode mode is being referenced and target
129 is TARGET_POWERPC64.
130
131 2003-12-22 Dale Johannesen <dalej@apple.com>
132
133 * reload1.c: Add reg_reloaded_call_part_clobbered.
134 (reload_as_needed): Use it.
135 (forget_old_reloads_1): Ditto.
136 (emit_reload_insns): Ditto.
137
138 2003-12-22 Dale Johannesen <dalej@apple.com>
139
140 PR optimization/12828
141 * loop.c: Add find_regs_nested to look inside CLOBBER(MEM).
142 (scan_loop): Call it.
143 * regclass.c (reg_scan_mark_regs): Look inside CLOBBER(MEM).
144
145 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
146
147 PR c/9163
148 * c-decl.c (poplevel): Only set DECL_INITIAL of a current function
149 if it is non-null.
150 (finish_function): Check for error_mark_node or null on DECL_RESULT and
151 DECL_RESULT of fndecl.
152 (c_expand_body): Only expand when DECL_INITIAL of fndecl is not
153 error_mark_node and not null.
154
155 2003-12-21 Dan Nicolaescu <dann@ics.uci.edu>
156
157 * rtl.h (dump_rtx_statistics): Declare it.
158 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
159 rtx_alloc_sizes): New static vars.
160 (rtx_alloc, rtvec_alloc): Update them.
161 (dump_rtx_statistics): New function.
162 * toplev.c (finalize): Call it.
163 * ggc-page.c (struct globals): Fix comments. Add new member
164 total_allocated_per_order.
165 (ggc_alloc): Keep track of the total allocated memory.
166 (ggc_print_statistics): Clarify message. Print total allocated
167 memory stats.
168 * configure.in (gather-detailed-mem-stats): New flag.
169 * configure: Regenerate.
170 * config.in: Regenerate.
171 * doc/install.texi (Configuration): Document
172 --enable-gather-detailed-mem-stats.
173
174 2003-12-22 Kazu Hirata <kazu@cs.umass.edu>
175
176 * system.h (CONVERT_HARD_REGISTER_TO_SSA_P): Poison.
177 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Remove.
178
179 2003-12-21 Roger Sayle <roger@eyesopen.com>
180
181 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Define _ILP32
182 when compiling in ILP32 mode.
183
184 2003-12-21 Andrew Pinski <pinskia@physics.uc.edu>
185
186 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Return early if
187 TARGET_HAVE_TLS is false.
188
189 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
190
191 * config/ip2k/ip2k-protos.h: Remove the prototype for
192 asm_output_section_name.
193 * config/ip2k/ip2k.c (asm_output_section_name): Remove.
194
195 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
196
197 * alias.c: Fix comment formatting.
198 * alloc-pool.c: Likewise.
199 * bitmap.c: Likewise.
200 * bitmap.h: Likewise.
201 * bt-load.c: Likewise.
202 * c-common.c: Likewise.
203 * c-common.h: Likewise.
204 * c-decl.c: Likewise.
205 * c-opts.c: Likewise.
206 * c-pretty-print.c: Likewise.
207 * caller-save.c: Likewise.
208 * cfghooks.h: Likewise.
209 * cgraph.c: Likewise.
210 * collect2.c: Likewise.
211 * cppfiles.c: Likewise.
212 * cpplib.h: Likewise.
213 * dwarf2out.c: Likewise.
214 * dwarfout.c: Likewise.
215 * emit-rtl.c: Likewise.
216 * final.c: Likewise.
217 * function.c: Likewise.
218 * gcov.c: Likewise.
219 * gcse.c: Likewise.
220 * genemit.c: Likewise.
221 * ggc.h: Likewise.
222 * haifa-sched.c: Likewise.
223 * ifcvt.c: Likewise.
224 * libgcc2.h: Likewise.
225 * loop.c: Likewise.
226 * predict.h: Likewise.
227 * unwind-libunwind.c: Likewise.
228 * varasm.c: Likewise.
229
230 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
231
232 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
233 a warning.
234
235 2003-12-21 Kazu Hirata <kazu@cs.umass.edu>
236
237 * config/arm/arm.c: Convert to ISO-C.
238 * config/avr/avr.h: Likewise.
239 * config/fr30/fr30.c: Likewise.
240 * config/ip2k/ip2k.c: Likewise.
241 * config/mn10300/mn10300.c: Likewise.
242
243 2003-12-20 Andrew Pinski <pinskia@gcc.gnu.org>
244 Matt Thomas <matt@3am-software.com>
245
246 PR target/12749
247 * config/i386/i386.c (print_operand): Print only the first
248 8 characters of the float in hex.
249
250 2003-12-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
251
252 * pa.h (TRAMPOLINE_TEMPLATE): Shorten sequence when generating PA
253 2.0 code.
254 (TRAMPOLINE_CODE_SIZE, MIN_CACHELINE_SIZE): New defines.
255 (INITIALIZE_TRAMPOLINE): Rework to pass line length, and aligned start
256 and end addresses to I and D cache instruction patterns.
257 * pa.md (anddi3, iordi3): Change predicates of operands 1 and 2 to
258 and_operand and ior_operand, respectively. When generating 64-bit
259 code, only one operand needs to be a register operand.
260 (xordi3): Change predicates of operands 1 and 2 to register_operand.
261 (one_cmpldi2): Change predicate of operand 1 to register_operand.
262 (dcacheflush, icacheflush): Revise to flush an arbitrary number of
263 cache lines.
264
265 2003-12-20 Josef Zlomek <zlomekj@suse.cz>
266
267 PR optimization/13430, PR optimization/12322
268 * bb-reorder.c (copy_bb_p): Do not allow block with many successors to
269 be copied.
270 (find_traces_1_round): Surround check for fake edges by
271 #ifdef ENABLE_CHECKING #endif.
272
273 2003-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
274
275 PR other/7956
276 * genmultilib: New variable disable_multilib. Set it to 'yes'
277 if enable_multilib was set to 'no'. Emit DISABLE_MULTILIB
278 if disable_multilib was set to 'yes'.
279 * gcc.c: Include multilib.h before tm.h.
280 * config/sparc/sol2-bi.h (LINK_ARCH_SPEC): Emit an error
281 message for multiarch options if DISABLE_MULTILIB is set.
282 * config/sparc/sol2-gld-bi.h (LINK_ARCH_SPEC): Likewise.
283
284 2003-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
285
286 PR c/12085
287 * c-typeck.c (build_function_call): Issue a warning if a
288 function is called through an incompatible prototype and
289 replace the call by a trap in this case.
290
291 2003-12-19 James E Wilson <wilson@specifixinc.com>
292
293 * install.texi (ia64-*-linux): Document minimum libunwind version
294 number.
295
296 2003-12-19 Per Bothner <per@bothner.com>
297
298 * langhooks.c (lhd_print_error_function): Fix for PR c/13110.
299 Don't do pp_newline; it causes an extra blank line.
300 * pretty-print.c (pp_base_flush): Clear pp_needs_newline.
301
302 2003-12-19 Jason Merrill <jason@redhat.com>
303
304 * tree.c (get_unwidened): Decide whether to narrow a bitfield
305 reference based on TYPE_SIZE, not TYPE_PRECISION.
306
307 * stmt.c (parse_output_constraint): Warn about in-out constraint
308 that doesn't allow a register.
309 (parse_input_constraint): Warn about matching constraint that
310 doesn't allow a register.
311
312 2003-12-19 James E Wilson <wilson@specifixinc.com>
313
314 * flow.c (mark_set_regs, case PARALLEL): Scan loop forwards.
315 Add case for ASM_OPERANDS.
316 * global.c (global_alloc): Set regs_ever_live for regs_asm_clobbered
317 registers.
318
319 2003-12-19 Kazu Hirata <kazu@cs.umass.edu>
320
321 * expr.c (check_max_integer_computation_mode): Remove.
322 * dojump.c (do_jump): Don't use MAX_INTEGER_COMPUTATION_MODE.
323 * fold-const.c (fold): Likewise.
324 * system.h (MAX_INTEGER_COMPUTATION_MODE): Poison.
325 * doc/tm.texi (MAX_INTEGER_COMPUTATION_MODE): Remove.
326
327 2003-12-19 James E Wilson <wilson@specifixinc.com>
328
329 * configure.in: Delete libunwind_has_eh_support test.
330 * configure: Regenerate.
331 * config.gcc (ia64*-*-linux*): Delete reference to t-libunwind-no-eh
332 and libunwind_has_eh_support check.
333 * config/t-libunwind-no-eh: Delete.
334
335 2003-12-19 Joseph S. Myers <jsm@polyomino.org.uk>
336
337 * c-format.c (print_char_table): Allow 'I' flag on floating point
338 decimal formats.
339
340 2003-12-19 Stuart Hastings <stuart@apple.com>
341
342 * gcc/config/i386/i386.c (ix86_expand_call, x86_output_mi_thunk):
343 Trivial fixes for i386.c on Darwin/x86.
344
345 2003-12-19 Fariborz Jahanian <fjahanian@apple.com>
346
347 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Add code to
348 recognize macho-style lo_sum adrress patterns.
349
350 2003-12-19 Kazu Hirata <kazu@cs.umass.edu>
351
352 * dwarfout.c: Remove uses of "register" specifier in
353 declarations of arguments and local variables.
354 * gensupport.c: Likewise.
355 * local-alloc.c: Likewise.
356 * regclass.c: Likewise.
357
358 2003-12-19 Kelley Cook <kelleycook@wideopenwest.com>
359
360 * config.guess: Remove.
361
362 2003-12-19 Jakub Jelinek <jakub@redhat.com>
363
364 * config/ia64/unwind-ia64.c (ia64_copy_rbs): New function.
365 (unw_access_gr): Only call ia64_rse_rnat_addr if addr is above
366 regstk_top.
367 (uw_frame_state_for): Handle locations inside bundles.
368 (uw_init_context_1): Initialize context->rnat.
369 Set context->regstk_top to lowest rbs address which has nat collection
370 in context->rnat.
371 (uw_install_context): Fix rnat restoring.
372 Restore ar.rsc to previous state.
373 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR,
374 MD_HANDLE_UNWABI): Handle unwinding through SA_ONSTACK frames.
375
376 2003-12-19 Jakub Jelinek <jakub@redhat.com>
377
378 PR c++/13239
379 * builtins.c (expand_builtin_expect_jump): Update
380 TREE_VALUE (arglist) if unsave_expr_now langhook
381 created a new tree.
382
383 2003-12-19 Richard Earnshaw <rearnsha@arm.com>
384
385 * arm.c (thumb_base_register_rtx_p): Use regno in comparison against
386 FIRST_PSEUDO_REGISTER.
387
388 2003-12-18 Hartmut Penner <hpenner@de.ibm.com>
389
390 * gcc/config/rs6000/rs6000.c (USE_ALTIVEC_FOR_ARG_P): Don't check
391 for SVR4 ABI.
392
393 2003-12-18 Geoffrey Keating <geoffk@apple.com>
394
395 * config/rs6000/aix.h (OS_MISSING_POWERPC64): Define.
396 (OS_MISSING_ALTIVEC): Define.
397 * config/rs6000/darwin.h (ASM_SPEC): Be generous about supplying
398 -force_cpusubtype_ALL.
399 * config/rs6000/rs6000.c (rs6000_override_options): Rearrange
400 CPU information table; now always set all CPU-specific values.
401 Also, use Altivec and powerpc64 when chip and OS supports them.
402
403 2003-12-18 Geoffrey Keating <geoffk@apple.com>
404
405 * fixinc/inclhack.def (darwin_macho_dyldh): New.
406 * fixinc/fixincl.x: Regenerate.
407
408 2003-12-18 Dara Hazeghi <dhazeghi@yahoo.com>
409
410 * version.c (version_string): Renumber as 3.4.0
411 * doc/include/gcc-common.texi: Likewise
412
413 2003-12-18 Richard Henderson <rth@redhat.com>
414
415 * genrecog.c (print_host_wide_int): New.
416 (write_switch, write_cond): Use it.
417
418 2003-12-18 Richard Henderson <rth@redhat.com>
419
420 * c-decl.c (check_bitfield_type_and_width): Remove enum special
421 case suppression of pedwarn.
422 * system.h (ENUM_BITFIELD): Use __extension__.
423 (CHAR_BITFIELD): Likewise.
424
425 2003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
426 Mark Dettinger <dettinge@de.ibm.com>
427
428 * config/s390/s390.md (UNSPEC_SRST): New constant.
429 ("strlendi", "strlensi"): New expanders.
430 ("*strlendi", "*strlensi"): New insns.
431
432 2003-12-18 Mark Mitchell <mark@codesourcery.com>
433
434 * config/sol2.h (LINK_ARCH32_SPEC): Define in terms of ...
435 (LINK_ARCH32_SPEC_BASE): ... this new macro.
436 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC): Define in terms of
437 ...
438 (LINK_ARCH64_SPEC_BASE): ... this new macro.
439 * config/sparc/sol2-gld-bi.h (LINK_ARCH32_SPEC): New macro.
440 (LINK_ARCH64_SPEC): Likewise.
441
442 2003-12-18 Jason Merrill <jason@redhat.com>
443
444 PR middle-end/13234
445 * tree-dump.c (dequeue_and_dump): Handle 'r' and 's' code
446 classes.
447
448 2003-12-18 Steven Bosscher <stevenb@suse.de>
449
450 * Makefile.in (tracer.o, bb-reorder.o): Depend on timevar.h
451 * toplev.c (rest_of_handle_reorder_blocks, rest_of_handle_tracer):
452 Don't push and pop TV_REORDER_BLOCKS timevars, do it...
453 * bb-reorder.c (reorder_basic_blocks): ...here, and...
454 * tracer.c (tracer): here.
455
456 2003-12-18 Ulrich Weigand <uweigand@de.ibm.com>
457
458 * loop.c (move_movables): Handle combination of m->consec,
459 m->move_insn_first, and m->insert_temp all nonzero correctly.
460
461 2003-12-18 Kazu Hirata <kazu@cs.umass.edu>
462
463 * calls.c (load_register_parameters): Don't use
464 LOAD_ARGS_REVERSED.
465 * system.h (LOAD_ARGS_REVERSED): Poison.
466 * doc/tm.texi (LOAD_ARGS_REVERSED): Remove.
467
468 2003-12-17 Per Bothner <per@bothner.com>
469
470 * emit-rtl.c (set_new_first_and_last_label_num): Remove function.
471 * rtl.h (set_new_first_and_last_label_num): Remove declaration.
472
473 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
474
475 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
476 scratch insns of the then branch that clobber regs needed by the
477 else branch.
478
479 2003-12-17 Kazu Hirata <kazu@cs.umass.edu>
480
481 * calls.c (expand_call): Update comments.
482 * system.h (PRETEND_OUTGOING_VARARGS_NAMED): Poison.
483 * targhooks.c: Do not refer to PRETEND_OUTGOING_VARARGS_NAMED.
484
485 2003-12-17 James E Wilson <wilson@specifixinc.com>
486 Roger Sayle <roger@eyesopen.com>
487
488 * Makefile.in (gcse.o): Add $(TREE_H) to dependencies.
489 * gcse.c: Include tree.h.
490 (implicit_set_cond_p): New.
491 (find_implicit_sets): Call it.
492
493 2003-12-17 Santiago Vila <sanvila@unex.es>
494
495 * config/kfreebsdgnu.h (TARGET_OS_CPP_BUILTINS): Rename from
496 TARET_OS_CPP_BUILTINS.
497
498 2003-12-16 Kazu Hirata <kazu@cs.umass.edu>
499
500 * emit-rtl.c: Fix signed/unsigned comparison warnings.
501
502 2003-12-17 Joseph S. Myers <jsm@polyomino.org.uk>
503
504 * predict.c (struct block_info_def, struct edge_info_def): Change
505 bit-fields of width 1 to unsigned int.
506
507 2003-12-16 Geoffrey Keating <geoffk@apple.com>
508
509 PR 12480
510 * c-pch.c (pch_init): Improve error message when precompiled
511 header can't be written.
512
513 PR 12606
514 * c-pch.c (pch_init): Make a PCH file appear invalid while it's
515 being written.
516 (c_common_write_pch): Make it valid once it's done.
517
518 2003-12-17 Ulrich Weigand <uweigand@de.ibm.com>
519
520 PR target/11992
521 * config/s390/s390.md ("*cmpmem_long_64"): Use CLCLE instruction
522 instead of CLCL.
523 ("*cmpmem_long_31"): Likewise.
524
525 2003-12-17 Vladimir Makarov <vmakarov@redhat.com>
526
527 * config/ia64/ia64.c: Add more comments about insn bundling.
528
529 2003-12-17 Richard Earnshaw <rearnsha@arm.com>
530
531 PR optimization/10592
532 * caller-save.c (mark_referenced_regs): Don't short-circuit a reg
533 or subreg in SET_DEST if it isn't a hard register.
534
535 2003-12-17 David Edelsohn <edelsohn@gnu.org>
536
537 * collect2.c (main): Add -fno-profile-arcs -fno-test-coverage
538 -fno-branch-probabilities to arguments when compiling ctors and
539 dtors.
540
541 2003-12-17 Eric Botcazou <ebotcazou@libertysurf.fr>
542
543 * config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
544 * config/sparc/sol2-gld.h: Set SUPPORTS_INIT_PRIORITY to 1.
545
546 2003-12-17 Richard Earnshaw <rearnsha@arm.com>
547
548 * arm.c (thumb_base_register_rtx_p): Don't allow virtual registers
549 as base registers for sub-word operations.
550 (thumb_legitimate_address_p): Simplify REG+REG test.
551
552 2003-12-17 Segher Boessenkool <boessen@de.ibm.com>
553
554 * opts.c (wrap_help): Fix overflow.
555
556 2003-12-17 Fred Fish <fnf@redhat.com>
557
558 * configure.in: Remove code to examine linker scripts and set
559 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES.
560 * configure, config.in: Regenerate.
561
562 2003-12-16 Mark Mitchell <mark@codesourcery.com>
563
564 PR c++/12218
565 * varasm.c (initializer_constant_valid_p): Allow a conversion from
566 an integral constant to an OFFSET_TYPE.
567
568 2003-12-16 Kazu Hirata <kazu@cs.umass.edu>
569
570 PR target/11012
571 * config/m32r/m32r.c (gen_compare): Call gen_addsi3 instead of
572 gen_cmp_ne_small_const_insn.
573 * config/m32r/m32r.md (cmp_ne_small_const_insn): Remove.
574
575 2003-12-17 Neil Booth <neil@daikokuya.co.uk>
576 Joseph S. Myers <jsm@polyomino.org.uk>
577
578 PR c/3347
579 * c-decl.c (enum_decl_context): Remove BITFIELD.
580 (grokdeclarator): Take bit-field width as an input.
581 Perform bit-field width validation with
582 check_bitfield_type_and_width rather than waiting for
583 finish_struct.
584 (groktypename, groktypename_in_parm_context, start_decl,
585 push_parm_decl, grokfield, start_function): Update calls to
586 grokdeclarator.
587 (check_bitfield_type_and_width): New function.
588 (finish_struct): Move bit-field validation to grokdeclarator
589 and check_bitfield_type_and_width.
590
591 2003-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
592
593 PR bootstrap/13386
594 * configure.in (gcc_cv_ld_hidden): Set to yes on hppa64*-*-hpux* when
595 using HP native linker.
596 * configure: Rebuilt.
597
598 2003-12-16 Mark Mitchell <mark@codesourcery.com>
599
600 PR c++/13275
601 * c-common.h (enum rid): Add RID_OFFSETOF.
602 * c-parser.in (rid_to_yy): Ignore RID_OFFSETOF.
603 * ginclude/stddef.h (offsetof): Reimplement for C++, using
604 __offsetof__.
605 * doc/extend.texi: Document __offsetof__.
606
607 2003-12-16 Stan Cox <scox@redhat.com>
608
609 * config/iq2000/iq2000.h: Formatting.
610 (MAX_INT_TYPE_SIZE, MAX_INT_TYPE_SIZE, CONST_COSTS, RTX_COSTS)
611 (ADDRESS_COST, ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL)
612 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR, SLOW_ZERO_EXTEND): Remove
613 * config/iq2000/iq2000.c: Formatting.
614 (iq2000_rtx_costs): New.
615
616 2003-12-16 Richard Earnshaw <rearnsha@arm.com>
617
618 * arm.md (addsi3_carryin_shift): Add missing register constraints.
619
620 2003-12-16 Loren James Rittle <ljrittle@acm.org>
621
622 * testsuite/g++.old-deja/g++.eh/badalloc1.C: Tweak to
623 pass with -pthread on FreeBSD systems.
624
625 2003-12-16 Richard Sandiford <rsandifo@redhat.com>
626
627 * config/mips/mips.c (mips_file_end): Only write symbols that have
628 been referenced at some point.
629
630 2003-12-16 Richard Sandiford <rsandifo@redhat.com>
631
632 * config/mips/mips.c: Include langhooks.h
633 (mips_build_builtin_va_list): Use lang_hooks.types.make_type.
634
635 2003-12-16 Eric Botcazou <ebotcazou@libertysurf.fr>
636
637 PR optimization/13313
638 * combine.c (make_extraction) [REG]: Do not use
639 gen_lowpart_for_combine when POS is non-zero.
640
641 2003-12-16 Hartmut Penner <hpenner@de.ibm.com>
642
643 * altivec.h (vec_cmple, vec_all_numeric): Fix typo.
644 * testsuite/gcc.dg/altivec-10.c: Test for above.
645
646 2003-12-15 David O'Brien <obrien@FreeBSD.org>
647
648 * Makefile.in (CPPFLAGS): Initialize from configure.
649
650 2003-12-15 Roger Sayle <roger@eyesopen.com>
651
652 PR middle-end/13400
653 * ifcvt.c (noce_process_if_block): Disable unconditional write
654 optimizations if we could introduce a store to trapping memory
655 that wasn't present previously.
656
657 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
658
659 * system.h (DEFAULT_CALLER_SAVES): Poison.
660 * toplev.c (flag_caller_saves): Always initialize with 0.
661 * doc/tm.texi (DEFAULT_CALLER_SAVES): Remove.
662
663 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
664
665 * flow.c (EXIT_IGNORE_STACK): Move to ...
666 * defaults.h (EXIT_IGNORE_STACK): ... here.
667 * dojump.c (clear_pending_stack_adjust): Don't use #ifdef
668 EXIT_IGNORE_STACK.
669 * function.c (expand_function_end): Likewise.
670 * global.c (global_alloc): Likewise.
671 * ra.c (init_ra): Likewise.
672 * reload1.c (init_elim_table): Likewise.
673 * reorg.c (fill_simple_delay_slots): Likewise.
674 * resource.c (init_resource_info): Likewise.
675 * doc/tm.texi (EXIT_IGNORE_STACK): Document that the default
676 is 0.
677
678 2003-12-15 J"orn Rennecke <joern.rennecke@superh.com>
679
680 * reload.c (reg_overlap_mentioned_for_reload_p):
681 When looking at a PLUS in X, avoid spuriously returning nonzero
682 when IN is a REG or another simple PLUS, or a MEM containing one.
683
684 * loop.c (loop_invariant_p): Amend comment about where new registers
685 might come from.
686
687 2003-12-15 Andreas Jaeger <aj@suse.de>
688
689 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Remove
690 handling of obsolete language CHILL.
691
692 2003-12-15 Waldek Hebisch <hebisch@math.uni.wroc.pl>
693
694 * tree.c (initializer_zerop): Add test for empty set.
695 * integrate.c (function_cannot_inline_p): Forbid inlining
696 functions calling `longjmp'.
697
698 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
699
700 PR c++/11773
701 * doc/gcov.texi (Gcov and Optimization): Document inline function
702 behaviour. Fix some file suffixes.
703
704 2003-12-14 David O'Brien <obrien@FreeBSD.org>
705
706 * config/i386/i386.h (__amd64, __amd64__): Remove duplicates.
707
708 2003-12-14 Mark Mitchell <mark@codesourcery.com>
709
710 * c-common.h (c_parse_error): Declare it.
711 * c-common.c (c_parse_error): New function.
712 * c-parse.y (yyerror): Use it.
713
714 2003-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
715
716 PR target/13054
717 * pa-protos.h (indexed_memory_operand, borx_reg_operand,
718 move_dest_operand, move_src_operand): New protypes.
719 (basereg_operand, move_operand, reg_or_nonsymb_mem_operand): Deleted.
720 * pa.c (copy_reg_pointer, indexed_memory_operand, move_dest_operand,
721 move_src_operand): New functions.
722 (basereg_operand, reg_or_nonsymb_mem_operand, move_operand): Delete.
723 (reg_or_0_or_nonsymb_mem_operand): Return false for unscaled indexed
724 address until cse is not expected on targets with non-equivalent
725 space registers.
726 (hppa_legitimize_address): Canonicalize unscaled indexed addresses
727 on targets non-equivalent space registers.
728 (emit_move_sequence): Break out indexed addresses from destination
729 operand. Similarly, break out unscaled indexed addresses from
730 source operand on targets with non-equivalent space registers. Fix
731 REG_POINTER flag when possible. Mark register pointer when creating
732 new pointers.
733 (print_operand): Handle unscaled index addresses.
734 * pa.h (IS_INDEX_ADDR_P, IS_LO_SUM_DLT_ADDR_P): New macro subroutines
735 for EXTRA_CONSTRAINT.
736 (EXTRA_CONSTRAINT): Rework to make more readable.
737 (MODE_OK_FOR_SCALED_INDEXING_P, MODE_OK_FOR_UNSCALED_INDEXING_P): New
738 subroutines for GO_IF_LEGITIMATE_ADDRESS.
739 (GO_IF_LEGITIMATE_ADDRESS): Rework using new subroutines. Allow scaled
740 and unscaled addresses. Canonicalize unscaled indexed addresses on
741 targets with non-equivalent space registers. Document issues in
742 handling indexed address modes on PA-RISC.
743 (PREDICATE_CODES): Update for new and deleted predicates.
744 * pa.md (move_dest_operand, move_src_operand, indexed_memory_operand):
745 Use new predicates in move patterns.
746 Add peephole2 patterns to optimize floating point stores. Fix
747 constrain preferencing in move patterns. Delete patterns for handling
748 unscaled indexed memory loads. Add missing load and store with
749 base-register modification patterns. Correct SFmode floating point
750 store pattern. Add missing zero extension loads.
751
752 2003-12-13 Steven Bosscher <stevenb@suse.de>
753
754 * ggc-zone.c (struct alloc_zone): Don't pre-declare, it already
755 comes in with ggc.h. Add a new bool field `dead'.
756 (destroy_ggc_zone): Don't destroy a zone at once. Instead, only
757 set the `dead' flag for the dead zone. Wrap a sanity check in
758 ENABLE_CHECKING.
759 (ggc_collect_1): Always mark and sweep if a zone has the `dead'
760 flag set.
761 (ggc_collect): Free dead zones after collecting.
762
763 2003-12-13 Jan Hubicka <jh@suse.cz>
764
765 * coverage.c (get_coverage_counts): Use inform instead of warning
766 about missing profile.
767
768 2003-12-12 Steven Bosscher <stevenb@suse.de>
769
770 * Makefile.in (opts.o, explow.o): Depend on langhooks.h
771
772 2003-12-12 Geoffrey Keating <geoffk@apple.com>
773
774 * config.gcc <i[34567]86-*-darwin*>: Don't use fixproto.
775 <powerpc-*-darwin*>: Likewise.
776
777 2003-12-12 Jakub Jelinek <jakub@redhat.com>
778
779 * config/ia64/linux.h (IA64_GATE_AREA_END): Increase by 64K.
780 (MD_FALLBACK_FRAME_STATE_FOR): Set fpsr_loc, br_loc[6] and
781 br_loc[7]. Update comment.
782 (MD_HANDLE_UNWABI): Define.
783 * config/ia64/unwind-ia64.c (struct unw_state_record): Add
784 unwabi field.
785 (struct _Unwind_Context): Increase br_loc array size to 8 entries.
786 (desc_abi): Set unwabi.
787 (uw_update_reg_address): Allow br up to 7.
788 (uw_update_context): Invoke MD_HANDLE_UNWABI if defined.
789 (uw_install_context): Load b1..b5 from correct locations.
790 Fix insn loading ar.fpsr.
791 * doc/tm.texi: Document MD_HANDLE_UNWABI.
792
793 2003-12-12 Roger Sayle <roger@eyesopen.com>
794
795 PR optimization/13037
796 * loop.c (update_giv_derive): Ignore redundant sets of a biv when
797 calculating how to derive a giv from a biv.
798
799 2003-12-12 Neil Booth <neil@daikokuya.co.uk>
800
801 PR preprocessor/12935 preprocessor/12952 preprocessor/13046
802 * cpplib.c (prepare_directive_trad): Clear skipping only in
803 #if and #elif directives.
804 (do_undef): Call the handler even if the identifier is not a macro.
805 * cpptrad.c (scan_parameters): Emit an error message.
806 (_cpp_create_trad_definition): Remember the params list even on
807 failure.
808
809 2003-12-11 Zack Weinberg <zack@codesourcery.com>
810
811 * arm.c (ARM_ADDRESS_COST, THUMB_ADDRESS_COST): Convert macros
812 to inline functions: arm_arm_address_cost, arm_thumb_address_cost
813 respectively.
814 (arm_address_cost): Use 'em.
815
816 2003-12-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
817
818 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define
819 __STDC_VERSION__ to ISO C94 for C++.
820
821 * fixinc/inclhack.def (alpha_wchar): New fix.
822 * fixinc/fixincl.x: Regenerate.
823 * fixinc/tests/base/wchar.h: New file.
824
825 2003-12-11 David Mosberger <davidm@hpl.hp.com>
826
827 * unwind-libunwind.c (_Unwind_SetGR): Clear the NaT bit as
828 required by C++ ABI for Itanium.
829 * config/t-libunwind (LIB2ADDEH): Remove unwind-libunwind.c.
830 * config/t-libunwind-no-eh: New file.
831 * configure.in: Check libunwind for _Unwind_Resume() and if it's
832 present, set libunwind_has_eh_support to "yes".
833 * configure: Regenerate.
834 * config.gcc (ia64*-*-linux*): If $libunwind_has_eh_support is
835 set to yes, use t-libunwind, otherwise, use t-libunwind-no-eh.
836
837 2003-12-11 Richard Sandiford <rsandifo@redhat.com>
838
839 * config/mips/mips.c (mips_global_pointer): Force functions with
840 a nonlocal goto to set up $gp.
841
842 2003-12-11 James E Wilson <wilson@specifixinc.com>
843
844 PR target/13132
845 * function.c (gen_mem_addressof): When no decl, explicitly clear flag
846 bits.
847
848 2003-12-12 Nick Clifton <nickc@redhat.com>
849
850 * config/m32r/m32r.c: Convert to ISO-C
851
852 2003-12-12 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
853
854 * doc/invoke.texi: Replace Mitsubishi with Renesas.
855 * config/m32r/m32r.h: Ditto.
856 * config/m32r/m32r.c: Ditto.
857 * config/m32r/m32r.md: Ditto.
858
859 2003-12-11 Steven Bosscher <steven@gcc.gnu.org>
860
861 * basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
862 (BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove.
863 (basic_block_def): Rename `head' to `head_' and `end' to `end_'.
864 (BB_HEAD, BB_END): New accessor macros for the `head_' and `end_'
865 fields of a basic block.
866 * bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c,
867 cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c,
868 cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c,
869 final.c, flow.c, function.c, gcse.c, global.c, graph.c,
870 haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c,
871 loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c,
872 ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c,
873 regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c,
874 sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c,
875 config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of
876 accessing the `head' and `end' fields of a basic block directly.
877
878 * gengtype.c: Teach about "void**" pointers and "void *" function
879 types. Fixes earlier commit.
880
881 2003-12-10 Geoffrey Keating <geoffk@apple.com>
882
883 * doc/extend.texi (Vector Extensions): Document that bitwise
884 operations also work on vectors.
885
886 2003-12-10 Richard Earnshaw <rearnsha@arm.com>
887
888 * arm.md: New split patterns for optimizing bitfield accesses.
889
890 2003-12-10 Steven Bosscher <stevenb@suse.de>
891
892 * README.Portability: Remove K+R section.
893
894 * gengtype-lex.l: Teach about "void**" pointers and
895 "void*" function types.
896
897 2003-12-10 Eric Botcazou <ebotcazou@libertysurf.fr>
898
899 PR target/13354
900 * config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA
901 manually if one can do that with only one instruction.
902
903 2003-12-10 Nick Clifton <nickc@redhat.com>
904
905 * config.gcc (arm-linux): Include linux.h in tm_file so that
906 LINUX_TARGET_OS_CPP_BUILTINS is defined.
907 * config/arm/linux-elf.h (LIB_SPEC): Protect the definition.
908
909 2003-12-09 James E Wilson <wilson@specifixinc.com>
910
911 * rtl.def (CODE_LABEL, NOTE): Correct operand numbers in comments.
912
913 2003-12-09 Matt Austern <austern@apple.com>
914
915 PR c/13134
916 * c-decl.c (duplicate_decls): Copy visibility flag when appropriate.
917
918 2003-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
919
920 * config/m32r/m32r.h: Add support for m32r2 processor. Including
921 a new command line option -m32r2 to select it.
922 * config/m32r/m32r.c: Add support for the new processor variant.
923 * config/m32r/m32r.md: Likewise.
924 * config/m32r/t-m32r: Add m32r2 multilibs.
925 * doc/invoke.texi: Document the new command line switch.
926
927 2003-12-08 Kazu Hirata <kazu@cs.umass.edu>
928
929 * defaults.h (LOCAL_REGNO): Give the default definition.
930 * flow.c (LOCAL_REGNO): Remove.
931 * reload1.c (LOCAL_REGNO): Likewise.
932
933 2003-12-08 Geoffrey Keating <geoffk@apple.com>
934
935 PR target/11848
936 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Allow change of mode
937 in floating-point registers between TFmode and DImode.
938 * rs6000.c (rs6000_emit_move): Split moves early.
939 (secondary_reload_class): Random Whitespace Change.
940 (rs6000_split_multireg_move): Support moves involving FP registers.
941 Emit instructions directly.
942 * rs6000-protos.h (rs6000_split_multireg_move): Update prototype.
943 * altivec.md: Update for changes to rs6000_split_multireg_move.
944 * rs6000.md: Update for changes to rs6000_split_multireg_move.
945 (movtf_internal): Support moves to/from GPRs.
946
947 2003-12-08 Stuart Hastings <stuart@apple.com>
948
949 * config/i386/i386.md: Typo in split of fp-valued if_then_else.
950
951 2003-12-08 James E Wilson <wilson@specifixinc.com>
952
953 PR target/13132
954 * expmed.c (extract_bit_field): Only call mode_for_size for scalar
955 integer modes.
956
957 2003-12-08 Nathanael Nerode <neroden@gcc.gnu.org>
958
959 * doc/install.texi: Revert change of Dec 7; gcc is still a 2.13
960 directory.
961
962 2003-12-08 Alexandre Oliva <aoliva@redhat.com>
963
964 * config/frv/frv.md (subdi2): Merge with _internal insn_and_split,
965 by using match_scratch.
966 (negdi2): New.
967
968 2003-12-08 Jason Merrill <jason@redhat.com>
969 Daniel Berlin <dberlin@dberlin.org>
970
971 PR debug/11114
972 Support namespaces in DWARF 2 output.
973 * dwarf2out.c (gen_namespace_die): New function.
974 (force_namespace_die, setup_namespace_context): New fns.
975 (declare_in_namespace): New fn.
976 (gen_decl_die): Call declare_in_namespace. Handle namespaces.
977 (dwarf2out_decl): Handle namespaces.
978 (scope_die_for): Pass through a namespace scope.
979 (class_scope_p): Rename to class_or_namespace_scope_p.
980 (gen_subprogram_die, gen_variable_die): Adjust.
981 (gen_struct_or_union_die): Always emit a declaration
982 if context_die is a namespace.
983
984 2003-12-08 Jan Hubicka <jh@suse.cz>
985
986 * unwind-pe.h (read_uleb128): Fix handling of large values
987 (read_sleb128): Fix handling of large values
988
989 2003-12-08 Andrew Pinski <pinskia@physics.uc.edu>
990
991 PR middle-end/10060
992 * emit-rtl.c (copy_rtx_if_shared): Split out into ...
993 (copy_rtx_if_shared_1): here and optimize the last one
994 in the sequence into tail-recursion.
995 (reset_used_flags): Optimize the last one
996 in the sequence into tail-recursion.
997
998 2003-12-08 Richard Earnshaw <rearnsha@arm.com>
999
1000 * arm.md: New split to transform ((X << y) - 1) into ~(~(X-1) << y)
1001 for constant X.
1002
1003 2003-12-08 Richard Sandiford <rsandifo@redhat.com>
1004
1005 * calls.c (expand_call): Don't try using tail or recursive calls
1006 after the function body has been expanded.
1007
1008 2003-12-08 Jan Hubicka <jh@suse.cz>
1009
1010 * i386.md (cmpstr expander): Obey TARGET_INLINE_ALL_STRINGOPS
1011
1012 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
1013
1014 PR ada/13324, PR ada/12614
1015 * doc/install.texi: Update requirements for building Ada.
1016
1017 2003-12-07 David Edelsohn <edelsohn@gnu.org>
1018 Graham Reed <greed@pobox.com>
1019
1020 * collect2.c (GCC_OK_SYMBOL): Add support for AIX C_WEAKEXT.
1021 (GCC_UNDEF_SYMBOL): Same.
1022
1023 2003-12-07 Kazu Hirata <kazu@cs.umass.edu>
1024
1025 * final.c (final_scan_insn): Don't use FINAL_PRESCAN_LABEL.
1026 * system.h (FINAL_PRESCAN_LABEL): Poison.
1027 * doc/tm.texi (FINAL_PRESCAN_LABEL): Remove.
1028
1029 2003-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1030
1031 * Makefile.in (compare): Combine toplevel and $(SUBDIRS) cases.
1032
1033 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
1034
1035 * configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
1036 * configure: Regenerate with autoconf 2.13.
1037
1038 * configure.in: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
1039 with modern equivalents.
1040 * configure: Regenerate.
1041
1042 * configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
1043 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
1044 * configure: Regenerate.
1045
1046 * configure: Regenerate with (preferred) autoconf 2.57.
1047 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
1048
1049 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1050
1051 PR optimization/12965
1052 * caller-save.c (save_call_clobbered_regs): Do not save/restore
1053 registers around no-return calls.
1054
1055 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
1056
1057 * configure.in: Make minimum necessary changes for autoconf 2.5x.
1058 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
1059 * configure: Regenerate with autoconf 2.58.
1060
1061 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1062
1063 PR optimization/13318
1064 * loop.c (express_from): Protect integer division from overflow.
1065
1066 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1067
1068 PR optimization/13060
1069 * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
1070 replacement already exists. Fix again the whole insn if that fails.
1071
1072 2003-12-06 Andrew Pinski <pinskia@physics.uc.edu>
1073
1074 * config/rs6000/rs6000.c (macho_branch_islands): Use
1075 HOST_WIDE_INT_PRINT_UNSIGNED.
1076
1077 2003-12-06 Richard Sandiford <rsandifo@redhat.com>
1078
1079 * varasm.c (incorporeal_function_p): New.
1080 (assemble_external): Use it as a filter.
1081 * config/mips/mips.c (mips_output_external): Don't check for builtin
1082 functions here.
1083
1084 2003-12-06 Richard Earnshaw <reanrsha@arm.com>
1085
1086 * arm.md (IOR (COMPARISON) (AND)): New define_splits.
1087
1088 2003-12-06 Kelley Cook <kcook@gcc.gnu.org>
1089
1090 * Makefile.in (program_transform_cross_name): Delete.
1091 (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete.
1092 (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete.
1093 (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above.
1094 (install_cpp, install_driver, install-man, uninstall): Likewise.
1095
1096 2003-12-06 Alan Modra <amodra@bigpond.net.au>
1097
1098 PR 13169
1099 * basic-block.h (PROP_ASM_SCAN): Define.
1100 * final.c (regs_asm_clobbered): New array.
1101 * regs.h (regs_asm_clobbered): Declare.
1102 * flow.c (life_analysis): Init it.
1103 (mark_set_regs): Set PROP_ASM_SCAN for asms.
1104 (mark_set_1): Set regs_asm_clobbered.
1105 * global.c (global_alloc): Don't set eliminable_regset when
1106 regs_asm_clobbered.
1107
1108 2003-12-05 Mark Mitchell <mark@codesourcery.com>
1109
1110 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Define.
1111
1112 PR c++/13314
1113 * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify.
1114
1115 2003-12-05 Andrew Pinski <pinskia@physics.uc.edu>
1116
1117 PR driver/13211
1118 * gcc.c (execute) Increment execution_count when returning
1119 early because verbose_only_flag is true.
1120
1121 2003-12-05 Per Bothner <pbothner@apple.com>
1122
1123 * cppfiles.c (file_hash_hash): New static function.
1124 (hash_string_eq): Renamed static function to file_hash_eq.
1125 (_cpp_init_files): Create file_hash table with above callbacks.
1126 (cpp_included): Must use htab_find_with_hash insead of htab_find.
1127 (_cpp_find_find, make_cpp_dir): Must use htab_find_slot_with_hash.
1128
1129 2003-12-05 Per Bothner <pbothner@apple.com>
1130
1131 * line-map.h (source_location): New typedef.
1132 (fileline): Redefined as source_location.
1133 (struct line_map, linemap_add, linemap_lookup): Replace filefile
1134 by source_location.
1135 * line-map.c (linemap_add, linemap_lookup): Use source_location.
1136
1137 2003-12-05 Richard Henderson <rth@redhat.com>
1138
1139 * config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
1140 field to suppress -Wpadded warnings.
1141
1142 2003-12-05 Stuart Hastings <stuart@apple.com>
1143
1144 * config/rs6000/rs6000.md: Correct macro test of TARGET_MACHO.
1145
1146 2003-12-05 Stuart Menefy <stuart.menefy@st.com>
1147 J"orn Rennecke <joern.rennecke@superh.com>
1148
1149 PR target/13302
1150 * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
1151
1152 2003-12-05 Roger Sayle <roger@eyesopen.com>
1153
1154 * dojump.c (do_jump): If the expression being compared against
1155 zero, is the subreg of a promoted variable, perform the comparison
1156 in the promoted mode.
1157 * simplify-rtx.c (simplify_unary_operation): Optimize sign and
1158 zero-extensions of subregs of promoted variables where the
1159 extension is identical to that used to promote the variable.
1160
1161 2003-12-05 Hans-Peter Nilsson <hp@axis.com>
1162
1163 PR target/13256
1164 * resource.h (enum mark_resource_type): Remove member MARK_DEST.
1165 The only user changed as follows:
1166 * resource.c (mark_set_resources) <case SET>: Always recurse for
1167 SET_SRC (x).
1168 <case SIGN_EXTRACT, case ZERO_EXTRACT>: Always recurse on
1169 operands.
1170 <case STRICT_LOW_PART>: Delete, deferring to default code.
1171
1172 2003-12-05 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1173
1174 * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
1175 and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
1176
1177 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
1178
1179 * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
1180 for n32 & n64 abicalls.
1181
1182 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
1183
1184 PR bootstrap/13145
1185 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
1186 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
1187 (mips_load_got): Always create a constant MEM.
1188 (mips_expand_call): Use load_callsi and load_calldi.
1189 * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
1190 (load_callsi, load_calldi): New patterns.
1191
1192 2003-12-05 Peter Gerwinski <peter@gerwinski.de>
1193
1194 * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
1195
1196 2003-12-05 Steven Bosscher <stevenb@suse.de>
1197
1198 * config/d30v/d30v-protos.h , config/d30v/d30v.c,
1199 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
1200 config/fr30/fr30-protos.h, config/fr30/fr30.c,
1201 config/i370/i370-protos.h, config/i370/i370.c,
1202 config/i960/i960-protos.h, config/i960/i960.c,
1203 config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
1204 config/m32r/m32r-protos.h, config/m32r/m32r.c,
1205 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
1206 config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
1207 Convert to ISO C90 function declarations and definitions.
1208
1209 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1210
1211 * doc/extend.texi (Constructing Calls): Add warning about
1212 the limitations of the functions.
1213
1214 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1215
1216 PR middle-end/11151
1217 * function.h (struct function): New field 'x_naked_return_label'.
1218 * function.c (free_after_compilation): Set it to NULL.
1219 (expand_function_end): Emit 'naked_return_label' if it exists.
1220 * rtl.h (expand_naked_return): Declare.
1221 * stmt.c (expand_naked_return): New function to generate a
1222 jump to 'naked_return_label'.
1223 * builtins.c (expand_builtin_return): Call expand_naked_return
1224 instead of expand_null_return.
1225 * config/sparc/sparc.md (untyped_return): Likewise.
1226
1227 2003-12-04 Andrew Pinski <pinskia@physics.uc.edu>
1228
1229 PR target/11322
1230 * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
1231
1232 PR target/12467
1233 * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
1234
1235 2003-12-04 Stuart Hastings <stuart@apple.com>
1236
1237 * rs6000.c (output_call, macho_branch_islands,
1238 add_compiler_branch_island, no_previous_def, get_previous_label)
1239 Revisions of xx_stub functions for branch islands,
1240 add -fPIC support for Darwin.
1241 * rs6000-protos.h (output_call) Prototype.
1242 * rs6000.md Use output_call.
1243 * invoke.texi Explain Darwin semantics of -longcall.
1244 * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
1245
1246 2003-12-04 Richard Henderson <rth@redhat.com>
1247
1248 * config/i386/i386.md (addqi3_carry): Use q not r constraints.
1249 (subqi3_carry): Likewise.
1250
1251 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
1252
1253 PR optimization/13260
1254 * sh-protos.h (sh_expand_t_scc): Declare.
1255 * sh.h (PREDICATE_CODES): Add cmpsi_operand.
1256 * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
1257 * sh.md (cmpsi): Use cmpsi_operand. If T_REG is compared to
1258 something that is not a CONST_INT, copy it into a pseudo register.
1259 (subc): Fix description of new T value.
1260 (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
1261 (sltu, sleu, sgeu): Likewise.
1262 (seq, sne): Likewise. Use sh_expand_t_scc.
1263
1264 2003-12-04 Nathanael Nerode <neroden@gcc.gnu.org>
1265
1266 * configure.in: Generalize the CONFIG_HEADERS pattern under which
1267 we stamp cstamp-h.
1268 * configure: Regenerate.
1269
1270 * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
1271 to avoid trouble when updating to autoconf 2.5x.
1272 * configure: Regenerate (with autoconf 2.13 still).
1273
1274 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
1275
1276 * sh.md (truncdiqi2): Use andi opcode for immediate.
1277 (reload_outdf+1,reload_outdf+2): Remove constraints.
1278 (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
1279 (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
1280 (fipr, ftrv): Add .s suffix to opcode.
1281
1282 2003-12-04 Richard Sandiford <rsandifo@redhat.com>
1283
1284 PR target/13186
1285
1286 Revert all of the following patch, except the addition of
1287 hook_bool_machine_mode_true:
1288
1289 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
1290
1291 * Makefile.in (targhooks.o, reload.o): Update dependencies.
1292 (GTFILES): Add targhooks.c.
1293 (gt-targhooks.h): New rule; depend on s-gtype.
1294 * target.h (direct_pool_load_p): New hook.
1295 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
1296 (TARGET_INITIALIZER): Include it.
1297 * targhooks.h (default_direct_pool_load_p): Declare.
1298 (hook_bool_machine_mode_true): Declare.
1299 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
1300 gt-targhooks.h.
1301 (pool_symbol): New variable.
1302 (default_direct_pool_load_p): New function.
1303 (hook_bool_machine_mode_true): New function.
1304 * reload.c: Include target.h.
1305 (find_reloads): If an alternative will force a constant into memory,
1306 count an extra reload if constant pool symbols are not valid
1307 addresses. If an alternative uses memory to move values between
1308 registers, count the move as two reloads rather than one.
1309 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
1310 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
1311
1312 2003-12-03 Mark Mitchell <mark@codesourcery.com>
1313
1314 * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
1315 * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
1316 HAVE_AS_TLS is true.
1317 * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
1318
1319 2003-12-03 James E Wilson <wilson@specifixinc.com>
1320
1321 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
1322
1323 * gcc-page.c (extra_order_size_tab): Correct comment.
1324
1325 2003-12-03 Kazu Hirata <kazu@cs.umass.edu>
1326
1327 * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
1328 instead of gen_push_h8300hs.
1329 (pop): Call gen_pop_h8300hs_advanced instead of
1330 gen_pop_h8300hs.
1331 * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
1332 * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
1333 Tighten the predicate.
1334 (*tablejump_h8300hs_normal): Tighten the predicate.
1335 (push_h8300hs): Change to
1336 push_h8300hs_advanced.
1337 (pop_h8300hs): Change to pop_h8300hs_advanced.
1338
1339 2003-12-03 Eric Christopher <echristo@redhat.com>
1340
1341 * rtl.c: Fix typo.
1342 * config/mips/mips.h: Ditto. Fix formatting.
1343
1344 2003-12-04 Ben Elliston <bje@wasabisystems.com>
1345
1346 * future.options: Remove. Move to gnu.org web pages.
1347
1348 2003-12-03 Eric Christopher <echristo@redhat.com>
1349
1350 * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
1351 from here...
1352 * c-tree.h: to here.
1353
1354 2003-12-03 Jan Hubicka <jh@suse.cz>
1355
1356 PR optimization/12324
1357 * toplev.c (rest_of_decl_compilation): Do not deffer when compiling
1358 in unit-at-a-time mode.
1359
1360 2003-12-03 Jakub Jelinek <jakub@redhat.com>
1361
1362 * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
1363 read-only field if cleared is 0.
1364
1365 2003-12-03 Nathanael Nerode <neroden@gcc.gnu.org>
1366
1367 * config.gcc: Mark obsolete targets for GCC 3.4.
1368
1369 2003-12-03 Zack Weinberg <zack@codesourcery.com>
1370
1371 * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
1372 * config.in, configure.in: Regenerate.
1373 * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
1374 including iconv.h.
1375
1376 2003-12-03 Alan Modra <amodra@bigpond.net.au>
1377
1378 PR target/11229
1379 * cse.c (cse_insn): Set classp using src_const_elt if
1380 src_eqv_elt is NULL.
1381
1382 2003-12-03 Richard Earnshaw <rearnsha@arm.com>
1383
1384 * gcse.c (reg_clear_last_set): New function.
1385 (reg_set_info): If data is non-null, treat it as an sbitmap of
1386 registers, set the bit for the register being set.
1387 (compute_store_table): Allocate last_set_in with xcalloc. Do not
1388 memset this array on each iteration. Pass reg_set_in_block[bb->index]
1389 to note_stores while computing last_set_in instead of scanning
1390 last_set_in after the first pass through the insns.
1391 Clear last_set_in using reg_clear_last_set instead of explicitly
1392 rescanning after each insn. If checking is enabled, assert that
1393 last_set_in is completely zeroed after each bb has been processed.
1394
1395 2003-12-02 Geoffrey Keating <geoffk@geoffk.org>
1396
1397 * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
1398 never read-write.
1399 <REG>: Delete incorrect comment.
1400 <SET>: Remove 'use_flags' variable.
1401
1402 2003-12-03 David Edelsohn <edelsohn@gnu.org>
1403
1404 * function.c (assign_parms): Make sure parm PARALLEL combined
1405 in reg is composed of more than one object and the mode really
1406 produces a reg.
1407
1408 2003-12-03 Jan Hubicka <jh@suse.cz>
1409
1410 * i386.c (classify_argument): Make it 64bit clean.
1411
1412 2003-12-02 Richard Sandiford <rsandifo@redhat.com>
1413
1414 * config/mips/mips.c (mips_output_external): Replace checks for
1415 specific builtin-in functions with a check for DECL_BUILTIN_IN.
1416
1417 2003-12-02 Richard Henderson <rth@redhat.com>
1418
1419 * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
1420 * tree.h (TREE_SET_CODE): Likewise.
1421 * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
1422
1423 2003-12-02 Ben Elliston <bje@wasabisystems.com>
1424
1425 * dbxstclass.h: Rename from this ..
1426 * xcoff.h: .. to this.
1427 * xcoffout.c: Include xcoff.h.
1428
1429 2003-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1430
1431 * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
1432
1433 2003-12-01 James Lemke <jim@wasabisystems.com>
1434
1435 * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
1436
1437 2003-12-01 Roger Sayle <roger@eyesopen.com>
1438
1439 PR optimization/11634
1440 * recog.c (split_insn): Factor test of INSN_P and handling of
1441 set_noop_p out of here into the two callers.
1442 (split_all_insns): Add INSN_P test and set_noop_p handling here.
1443 If deleting a no-op set after reload that has a REG_UNUSED note,
1444 mark the basic block as changed and recalculate life information.
1445 (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
1446 here.
1447
1448 2003-12-01 Roger Sayle <roger@eyesopen.com>
1449
1450 PR optimization/12322
1451 * gcse.c (struct ls_expr): Change type of hash_index from int to
1452 unsigned int.
1453 (hash_expr): Document hash_table_size parameter and wrap long line.
1454 (ldst_entry): Calculate expression's hash_index and record in ptr.
1455 (trim_ld_motion_mems): Use hash_index to search a single bucket
1456 instead of scanning the entire hash_table. Remove the "del" local
1457 variable and use the equivalent "expr == 0" instead. Change last
1458 to be a pointer to the pointer to the current element, to simplify
1459 and speed-up deleting from a linked list.
1460
1461 2003-12-01 James E Wilson <wilson@specifixinc.com>
1462
1463 * doc/contrib.texi: Update David Mosberger.
1464
1465 * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
1466 of missing fields.
1467
1468 PR target/8407
1469 * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
1470 gen_rtx_REG to create new reg with argument mode.
1471
1472 2003-12-01 Steven Bosscher <stevenb@suse.de>
1473
1474 * ggc.h (struct alloc_zone): Move forward declaration up.
1475 (new_ggc_zone): New function prototype.
1476 (destroy_ggc_zone): Ditto.
1477 * ggc-simple.c (new_ggc_zone): New function, does nothing.
1478 (destroy_ggc_zone): Ditto.
1479 * ggc-page.c (new_ggc_zone): New function, does nothing.
1480 (destroy_ggc_zone): Ditto.
1481 * ggc-zone.c (struct page_entry): Fix comment.
1482 (ggc_alloc_typed): Use a switch statement instead of ifs.
1483 (new_ggc_zone): New function to set up a new GC zone.
1484 (destroy_ggc_zone): New function to remove a GC zone.
1485 init_ggc): Use new_ggc_zone to set up the default zones.
1486 (ggc_collect): Walk a list of zones, instead of just the
1487 default zones. Report statistics using the zone name.
1488
1489 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1490
1491 * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
1492
1493 2003-12-01 Roger Sayle <roger@eyesopen.com>
1494
1495 PR optimization/12628
1496 * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
1497 * regclass.c (reg_scan): Include allocate_reg_info time in
1498 TV_REG_SCAN. Minor clean-ups.
1499 (reg_scan_update): Minor clean-ups.
1500
1501 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1502
1503 * config.gcc (s390x-ibm-tpf*): Add extra_parts.
1504
1505 2003-12-01 James E Wilson <wilson@specifixinc.com>
1506
1507 * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
1508 GR_ARG_FIRST.
1509
1510 2003-12-01 Zack Weinberg <zack@codesourcery.com>
1511
1512 * common.opt: Remove -fgnu-linker.
1513 * flags.h: Remove flag_gnu_linker.
1514 * opts.c: Don't handle OPT_fgnu_linker.
1515 * toplev.c: Don't initialize flag_gnu_linker.
1516 Remove gnu-linker entry from f_options.
1517 * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
1518 Don't reset flag_gnu_linker.
1519 * config/mips/mips.c (override_options): Likewise.
1520 * doc/invoke.texi: Remove all mention of -fgnu-linker.
1521
1522 2003-12-01 Daniel Berlin <dberlin@dberlin.org>
1523
1524 * ggc-zone.c (ggc_pch_write_object): Calculate object size using
1525 ggc_get_size (which accounts for large objects properly).
1526
1527 2003-12-01 Jeff Sturm <jsturm@one-point.com>
1528
1529 PR optimization/13024
1530 * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
1531 parameter.
1532 (rest_of_handle_old_regalloc): Likewise. Add rebuild_notes
1533 declaration. Rebuild jump labels following local_alloc if necessary.
1534 (rest_of_compilation): Remove rebuild_label_notes_after_reload
1535 declaration. Don't pass rebuild_notes parameter to
1536 rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
1537 Don't rebuild jump labels.
1538
1539 2003-12-01 Jeff Law <law@redhat.com>
1540
1541 * flow.c (count_or_remove_death_notes_bb): New. Extracted from
1542 count_or_remove_death_notes.
1543 (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
1544
1545 2003-12-01 Andreas Krebbel <krebbel1@de.ibm.com>
1546
1547 * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
1548
1549 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1550
1551 * reload.c (find_reloads_address): Split addresses of type
1552 (plus (plus (reg) (reg)) (const_int)) only if one register
1553 is either a valid base register or else one of the stack
1554 frame related registers (sp/fp/ap).
1555
1556 2003-12-01 Steven Bosscher <stevenb@suse.de>
1557
1558 * function.c (update_epilogue_consts): Don't use PARAMS.
1559 * rtl.h (web_main): Ditto.
1560 * target.h (is_costly_dependence): Ditto
1561
1562 2003-12-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1563
1564 PR middle-end/7847
1565 * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
1566 do not recheck that 'op0' is a MEM. Move comment. When testing for
1567 unaligned objects, take also into account the alignment of 'op0' and
1568 'mode1' if 'op0' is a MEM.
1569
1570 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
1571
1572 * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
1573
1574 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
1575
1576 * doc/install.texi: Note that fastjar is built with automake 1.7.x
1577 and autoconf 2.57.
1578
1579 2003-12-01 Alan Modra <amodra@bigpond.net.au>
1580
1581 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
1582 target_flags directly rather than using TARGET_* defines.
1583
1584 2003-11-30 Ben Elliston <bje@wasabisystems.com>
1585
1586 * doschk.c: Remove.
1587
1588 2003-11-30 Richard Sandiford <rsandifo@redhat.com>
1589
1590 PR target/12727
1591 * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
1592 on 32-bit big-endian targets.
1593
1594 2003-11-30 Kazu Hirata <kazu@cs.umass.edu>
1595
1596 * genemit.c (register_constraints): Remove.
1597
1598 2003-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1599
1600 * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
1601 "iordi3"): Insns now use multiple letter constraints.
1602 ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
1603 covered by "*movdi_64".
1604 ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
1605 covered by "*movsi_zarch" and "*movsi_esa".
1606 ("*movsi_zarch", "*movsi_!zarch"): New insns.
1607 ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
1608 by "*andsi3_zarch" and "anddi3".
1609 ("*anddi3_ni"): Insn merged with "anddi3".
1610 ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
1611 ("*andsi3_zarch", "*andsi3_esa"): New insns.
1612 ("*iordi3_oi"): Insn merged with "iordi3".
1613 ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
1614 ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
1615
1616 * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
1617 merged to s390_single_part.
1618 (s390_single_part): New function.
1619 NOTE: Semantics have changed a bit. Now the value of the part must
1620 be different from the others to get a non-negative return value.
1621 (s390_extract_qi, s390_extract_hi): Functions merged to
1622 s390_extract_part.
1623 (s390_extract_part, s390_extra_constraint_str,
1624 s390_const_ok_for_constraint_p): New functions. The L constraint got a
1625 new meaning and the N constraint was added as a multiple letter
1626 constraint.
1627 (s390_extra_constraint): Function deleted.
1628 (print_operand): New output modifier 'i' and 'j' added.
1629 All uses of CONST_OK_FOR_LETTER_P were replaced by
1630 CONST_OK_FOR_CONSTRAINT_P.
1631
1632 * config/s390/s390-protos.h: Function prototypes adapted.
1633 * doc/md.texi: Documentation for new constraint letters added.
1634
1635 2003-11-30 Andreas Schwab <schwab@suse.de>
1636
1637 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
1638
1639 2003-11-29 James E Wilson <wilson@specifixinc.com>
1640
1641 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
1642 instead of in shared_name.
1643
1644 * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
1645 * reload1.c (reload): Re-add it here.
1646
1647 2003-11-30 Alan Modra <amodra@bigpond.net.au>
1648
1649 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
1650 set SECTION_WRITE on TARGET_RELOCATABLE.
1651
1652 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
1653
1654 * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
1655
1656 2003-11-28 Gunther Nikl <gni@gecko.de>
1657
1658 * config/m68k/m68k.c (MOTOROLA): Move from here...
1659 * config/m68k/m68k.h (MOTOROLA): ... to here.
1660 (OUTPUT_JUMP): Use do {...} while (0).
1661 * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
1662
1663 2003-11-28 Gunther Nikl <gni@gecko.de>
1664
1665 * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
1666 m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
1667 MOTOROLA and USE_GAS.
1668 * config/m68k/rtemself.h (MOTOROLA): Delete.
1669 * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
1670 * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
1671
1672 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
1673
1674 * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
1675
1676 2003-11-29 Kelley Cook <kcook@gcc.gnu.org>
1677
1678 * Makefile.in (install-info): Install gccinstall.info too.
1679
1680 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1681
1682 * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
1683
1684 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1685
1686 * config/s390/s390.md ("movhi"): Do not emit extender pattern
1687 when loading from a (MEM (ADDRESSOF ...)).
1688 ("movqi"): Likewise.
1689
1690 2003-11-29 Joseph S. Myers <jsm@polyomino.org.uk>
1691
1692 PR c/10333
1693 * c-parse.in (typespec_reserved_nonattr): Reject typeof on
1694 bit-fields.
1695
1696 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
1697
1698 * stmt.c (expand_asm_operands): Check whether force_const_mem
1699 succeeded.
1700
1701 2003-11-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1702
1703 * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
1704 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
1705
1706 * config/alpha/gnu.h, config/alpha/linux.h,
1707 config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
1708 config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
1709 config/i386/linux-aout.h, config/i386/linux.h,
1710 config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
1711 config/m68k/uclinux.h, config/mips/linux.h,
1712 config/mn10300/linux.h, config/pa/pa-linux.h,
1713 config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
1714 config/sparc/linux.h, config/sparc/linux64.h,
1715 config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
1716 HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
1717 all necessary assertions are included.
1718
1719 2003-11-28 Jan Hubicka <jh@suse.cz>
1720
1721 * emit-rtl.c (set_used_flags): New.
1722 (verify_rtx_sharing, verify_rtl_sharing): New.
1723 (unshare_all_rtl_1): Rename to....
1724 (unshare_all_rtl_in_chain): ... this one; make static.
1725 (copy_rtx_if_shared): LABEL_REF chan be shared.
1726 * ifcvt.c (unshare_ifcvt_sequence): New.
1727 (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
1728 noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
1729 noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
1730 noce_try_abs, noce_process_if_block, find_cond_trap
1731 * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
1732 Declare.
1733
1734 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1735
1736 * config/h8300/h8300.md: Fix a comment typo.
1737
1738 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1739
1740 * config/h8300/h8300.md (*movsf_h8300h): Change to
1741 *movsf_h8300hs.
1742 (addsi_h8300): Change to *addsi_h8300.
1743 (addsi_h8300h): Change to *addsi_h8300hs.
1744 (subsi3_h8300): Change to *subsi3_h8300.
1745 (subsi3_h8300h): Change to *subsi3_h8300hs.
1746 (neghi2_h8300h): Change to *neghi2_h8300hs.
1747 (negsi2_h8300h): Change to *negsi2_h8300hs.
1748
1749 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1750
1751 * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
1752 constraint.
1753 (*subhi3_h8300hs): Likewise.
1754
1755 2003-11-28 David Edelsohn <edelsohn@gnu.org>
1756
1757 * config/rs6000/rs6000.h (MASK_MFCRF): New.
1758 (TARGET_MFCRF): Test target_flags, not processor type.
1759 (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
1760 Change Don't to Do not.
1761 * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
1762 to power4, 970, G5.
1763
1764 2003-11-27 J"orn Rennecke <joern.rennecke@superh.com>
1765
1766 * cse.c (cse_set_around_loop): When changing a constant load
1767 to a register -register copy, add a REG_EQUAL note.
1768
1769 2003-11-27 Randolph Chung <tausq@debian.org>
1770 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1771
1772 * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
1773 insns. Use the regular call expander for the call to the profiler.
1774 * pa.md (call_profiler): Delete.
1775 (load_offset_label_address): New insn to load the address of the
1776 current function for the profiler.
1777 (lcla1, lcla2): New insns to output a code label and load its address.
1778
1779 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1780
1781 * final.c (final_scan_insn): Remove commented-out code.
1782
1783 2003-11-27 Nathanael Nerode <neroden@gcc.gnu.org>
1784
1785 * doc/install.texi: Remove ADAC reference and make accurate.
1786
1787 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1788
1789 * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
1790 (FUNCTION_VALUE_REGNO_P): Likewise.
1791 * config/h8300/h8300.md: Define R0_REG.
1792
1793 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1794
1795 * config/h8300/h8300.c: Fix formatting.
1796 * config/h8300/h8300.md: Likewise.
1797
1798 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1799
1800 * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
1801
1802 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1803
1804 * config/h8300/h8300.md: Give names to anonymous insns.
1805
1806 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1807
1808 * config/h8300/h8300.md (extendqisi2): Remove constraints.
1809
1810 2003-11-27 Gunther Nikl <gni@gecko.de>
1811
1812 * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
1813
1814 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1815
1816 PR optimization/13041
1817 * final.c (frame_pointer_needed): Fix comment.
1818 * reload1.c (reload): Decrease alignment of the frame
1819 pointer if it was used for register allocation.
1820
1821 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1822
1823 PR target/12900
1824 * reg-stack (move_for_stack_reg): New prototype. Return
1825 whether a control flow insn was deleted.
1826 (subst_stack_regs_pat): Likewise, using the information provided
1827 by move_for_stack_reg.
1828 (subst_stack_regs): Likewise, using the information provided
1829 by subst_stack_regs_pat.
1830 (convert_regs_1): Record whether a control flow insn was deleted,
1831 using the information provided by subst_stack_regs. Purge dead
1832 edges only if a control flow insn was deleted.
1833
1834 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1835
1836 PR middle-end/8028
1837 PR middle-end/9890
1838 PR middle-end/11151
1839 PR middle-end/12210
1840 PR middle-end/12503
1841 PR middle-end/12692
1842 * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
1843 as the base address to copy the memory arguments to.
1844
1845 2003-11-26 Danny Smith <dannysmith@users.sourceforge.net>
1846
1847 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
1848 function aliases as functions.
1849
1850 2003-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
1851
1852 * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
1853 of ADAC.
1854 * configure: Regenerate.
1855
1856 * Makefile.in: Remove references to ADAC.
1857
1858 * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
1859 * configure: Regenerate.
1860
1861 2003-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1862 Olivier Hainque <hainque@act-europe.fr>
1863
1864 PR target/6466
1865 * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
1866 (sparc_flat_compute_frame_size): Likewise.
1867 (sparc_flat_save_restore): Move prototype...
1868 * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
1869 (save_regs): New prototype.
1870 (build_big_number): Likewise.
1871 (apparent_fsize): Change type to HOST_WIDE_INT.
1872 (actual_fsize): Likewise.
1873 (frame_base_offset): Likewise.
1874 (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
1875 Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1876 [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
1877 to load a 64-bit constant.
1878 (sparc_nonflat_function_prologue): Change string descriptor to
1879 HOST_WIDE_INT_PRINT_DEC. Change offset type to HOST_WIDE_INT.
1880 (output_restore_regs): Change offset type to HOST_WIDE_INT.
1881 (sparc_nonflat_function_epilogue): Change string descriptor to
1882 HOST_WIDE_INT_PRINT_DEC. Use build_big_number.
1883 (output_sibcall): Change size type to HOST_WIDE_INT. Use
1884 build_big_number. Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1885 (sparc_frame_info): Change types for several components.
1886 (sparc_flat_compute_frame_size): Update types according to previous
1887 change.
1888 (sparc_flat_function_prologue): Change string descriptor to
1889 HOST_WIDE_INT_PRINT_DEC. Change offset type to int. Use
1890 build_big_number.
1891 (sparc_flat_function_epilogue): Change offset type to int.
1892 Rename 'size1' into 'reg_offset1'. Change string descriptor to
1893 HOST_WIDE_INT_PRINT_DEC. Use build_big_number. Change big number
1894 limit to 4096 instead of 4095.
1895
1896 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
1897 HOST_WIDE_INT.
1898
1899 2003-11-24 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1900
1901 * function.c: Make outer_function-chain external.
1902 * function.h: Likewise.
1903
1904 2003-11-24 Richard Sandiford <rsandifo@redhat.com>
1905
1906 * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
1907 using GNU ld.
1908 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
1909 whole of the previous STARTFILE_SPEC except crtbegin.o%s.
1910 (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
1911 (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
1912 (SUBTARGET_EXTRA_SPECS): Define.
1913 * config/mips/iris6gld.h (LINK_SPEC): Change -init function
1914 to __gcc_init and -fini function to __gcc_fini.
1915 (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
1916 (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
1917 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
1918 * config/mips/t-iris6gld,
1919 * config/mips/irix6-crti.asm,
1920 * config/mips/irix6-crtn.asm: New files.
1921
1922 2003-11-24 Eric Christopher <echristo@redhat.com>
1923
1924 PR C/13014
1925 * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
1926 (start_function): Use.
1927 (c_push_function_context): Ditto.
1928 (c-pop_function_context): Ditto.
1929 (language_function): Move...
1930 * c-tree.h: ... here. Add x_in_iteration_stmt, and
1931 x_in_case_stmt.
1932 * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
1933 c_in_iteration_stmt, c_in_case_stmt for parser state. Move
1934 check for valid break or continue statment here...
1935 * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
1936 here. Change original errors to abort.
1937
1938 2003-11-24 Jan Hubicka <jh@suse.cz>
1939
1940 * fold-const.c (fold): Do not return early when optimizing
1941 COMPONENT_REF and constant.
1942
1943 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1944
1945 * config/h8300/h8300.md (tablejump_h8300): Change to
1946 *tablejump_h8300.
1947 (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
1948 (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
1949 (indirect_jump_h8300): Change to *indirect_jump_h8300.
1950 (indirect_jump_h8300h): Change to
1951 *indirect_jump_h8300hs_advanced.
1952 (indirect_jump_normal_mode): Change to
1953 *indirect_jump_h8300hs_normal.
1954
1955 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1956
1957 * config/h8300/h8300.md: Remove constraints from expanders.
1958
1959 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1960
1961 * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
1962 stm_h8300s_2_advanced.
1963 (stm_h8300s_2_normal): New.
1964 (stm_h8300s_2): Likewise.
1965 (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
1966 (stm_h8300s_3_normal): New.
1967 (stm_h8300s_3): Likewise.
1968 (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
1969 (stm_h8300s_4_normal): New.
1970 (stm_h8300s_4): Likewise.
1971 (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
1972 (ldm_h8300s_2_normal): New.
1973 (ldm_h8300s_2): Likewise.
1974 (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
1975 (ldm_h8300s_3_normal): New.
1976 (ldm_h8300s_3): Likewise.
1977 (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
1978 (ldm_h8300s_4_normal): New.
1979 (ldm_h8300s_4): Likewise.
1980 (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
1981 (two peephole2's): New.
1982
1983 2003-11-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1984
1985 * genattrtab.c (simplify_cond): Update indices correctly.
1986 (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
1987 attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
1988 (check_attr_test, encode_units_mask, compute_alternative_mask,
1989 make_alternative_compare, simplify_and_tree,
1990 attr_rtx_cost, simplify_test_exp, gen_attr,
1991 write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
1992 * rtl.def (EQ_ATTR_ALT): New.
1993
1994 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1995
1996 * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
1997 (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
1998 New variables.
1999 (main): Initialize them.
2000 (find_attr): Canonicalize the attribute name string.
2001 (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
2002 string arguments.
2003 (attr_printf, attr_eq): Use DEF_ATTR_STRING.
2004 (check_attr_test, check_attr_value, make_length_attrs,
2005 write_length_unit_log, simplify_by_exploding, gen_attr,
2006 write_test_expr, write_attr_value, write_eligible_delay,
2007 write_complex_function, make_internal_attr,
2008 write_const_num_delay_slots): Changed due to change of type of
2009 find_attr.
2010 (fill_attr, evaluate_eq_attr, simplify_and_tree,
2011 attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
2012 strcmp_check.
2013
2014 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
2015
2016 PR target/13122
2017 * config/h8300/h8300.c (push): Call push_h8300hs_normal in
2018 normal mode.
2019 (pop): Call pop_h8300hs_normal in normal mode.
2020 * config/h8300/h8300.md: Likewise.
2021 (pushqi1_h8300hs_normal): New.
2022 (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
2023 (pushhi1_h8300hs_normal): New.
2024 (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
2025 (push_h8300hs_normal): New.
2026 (pop_h8300hs_normal): Likewise.
2027
2028 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2029
2030 * genattrtab.c (count_sub_rtxs): Removed.
2031
2032 2003-11-23 Richard Earnshaw <rearnsha@arm.com>
2033
2034 * recog.c (preprocess_constraints): Only zero those elements of
2035 recog_op_alt that are needed for this insn.
2036 * arm.c (note_invalid_constants): A function can't contain invalid
2037 constants if it has no constraints.
2038
2039 2003-11-22 Jan Hubicka <jh@suse.cz>
2040
2041 * i386.c (classify_argument): Pass __float128 in memory.
2042 (ix86_return_in_memory): Likewise.
2043 (ix86_libcall_value): Likewsie.
2044
2045 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
2046
2047 * config/h8300/h8300.c (dosize): Convert to ISO-C.
2048
2049 2003-11-22 J"orn Rennecke <joern.rennecke@superh.com>
2050
2051 * flow.c (update_life_info): Amend comment about when a register
2052 can become dead.
2053
2054 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
2055
2056 * doc/.cvsignore: Delete.
2057
2058 2003-11-21 Daniel Berlin <dberlin@dberlin.org>
2059 David Edelsohn <edelsohn@gnu.org>
2060
2061 * dwarf2out.c (add_location_or_const_value_attribute): Add support
2062 for PARALLEL.
2063
2064 2003-11-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2065
2066 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
2067 (TARGET_LIBGCC2_CFLAGS): Define.
2068
2069 * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
2070 (__do_global_ctors): Likewise.
2071
2072 2003-11-21 Mark Wielaard <mark@klomp.org>
2073
2074 * doc/invoke.texi (-O2): Doesn't enable -fweb.
2075
2076 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
2077
2078 * doc/invoke.texi: Mention dV and dZ.
2079
2080 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
2081
2082 * doc/invoke.texi: Update dump file names.
2083 Remove de, dW, and dX.
2084
2085 2003-11-20 James E Wilson <wilson@specifixinc.com>
2086
2087 PR c/13133
2088 * reload1.c (reload): Delete special handling for setjmp.
2089
2090 2003-11-21 Andreas Tobler <a.tobler@schweiz.ch>
2091
2092 * mklibgcc.in: Evaluate shlib_slibdir_qual during link
2093 step too.
2094 * config/t-slibgcc-darwin: Adjust install path.
2095 * config/rs6000/t-darwin: Revert multilib matches since
2096 it is not used on darwin.
2097
2098 2003-11-20 Richard Henderson <rth@redhat.com>
2099
2100 * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
2101 * Makefile.in (OBJS-common, GTFILES): Don't reference them.
2102 (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
2103 (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
2104 * flow.c: Don't include ssa.h.
2105 (set_phi_alternative_reg): Remove.
2106 (calculate_global_regs_live): Don't call it.
2107 (mark_used_regs): Don't handle PHI.
2108 * gengtype.c (open_base_files): Don't reference ssa.h.
2109 * rtl.def (PHI): Remove.
2110 * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
2111 * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
2112 * opts.c (common_handle_option): Likewise.
2113 * toplev.c (f_options): Likewise.
2114 (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
2115 (dump_file): Update to match.
2116 (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
2117 (rest_of_handle_ssa): Remove.
2118 (rest_of_compilation): Don't call it.
2119 * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
2120 * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
2121 * doc/passes.texi (SSA optimizations): Remove.
2122
2123 2003-11-20 Bob Wilson <bob.wilson@acm.org>
2124
2125 * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
2126 * configure: Regenerate.
2127
2128 2003-11-20 Kelley Cook <kcook@gcc.gnu.org>
2129
2130 * Makefile.in (Makefile): Pass along CONFIG_SHELL.
2131
2132 2003-11-20 David Mosberger <davidm@hpl.hp.com>
2133
2134 * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
2135 (SHLIB_LC): Define.
2136 * unwind-libunwind.c (_Unwind_GetCFA): Implement.
2137 (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
2138
2139 2003-11-20 Fariborz Jahanian <fjahanian@apple.com>
2140 David Edelsohn <edelsohn@gnu.org>
2141
2142 * calls.c (expand_call): Allocate new temp in pass1.
2143 (store_one_arg): If PARALLEL, calculate excess using mode size of
2144 rtvec elt.
2145 * expr.c (emit_push_insn): If PARALLEL, calculate offset using
2146 mode size of rtvec elt.
2147 * function.c (assign_parms): Use parm in register, if available.
2148
2149 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
2150
2151 * config/h8300/lib1funcs.asm (MOVP): Remove.
2152 (ADDP): Likewise.
2153 (CMPP): Likewise.
2154
2155 2003-11-20 Richard Earnshaw <rearnsha@arm.com>
2156
2157 * arm.c (use_return_insn): New argument, SIBLING. Support returning
2158 with a single instruction if the stack has been decremented by 4
2159 and we have a frame pointer. Update all callers.
2160 (output_return_instruction): Likewise.
2161 (arm_output_epilogue): Change argument to SIBLING. Calculate
2162 really_return from the new argument. Update all callers.
2163 * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
2164 * arm.md (sibcall_epilogue): Call use_return_insn directly, and
2165 pass the sibling call.
2166 * arm-protos.h (use_return_insn, arm_output_epilogue): Update
2167 prototypes.
2168
2169 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
2170
2171 * Makefile.in (extraclean): Delete.
2172 * configure.in (target_list): Remove extraclean.
2173 * configure: Regenerate.
2174 * doc/makefile.texi, doc/sourcebuild.texi: Update.
2175 * objc/Make-lang.in (objc.extraclean): Delete.
2176
2177 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
2178
2179 * Makefile.in (lang_checks): Add.
2180 (check-c++, check-f77, check-java, check-g++, check-g77,
2181 check-objc): Remove hardcoded targets.
2182 * doc/sourcebuild.texi: Document testsuite hooks.
2183 * objc/Make-lang.in (check-objc, lang_checks): Add.
2184
2185 2003-11-19 Scott Snyder <snyder@fnal.gov>
2186
2187 PR target/13131
2188 * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
2189 flag, not a constant.
2190
2191 2003-11-19 Kelley Cook <kcook@gcc.gnu.org>
2192
2193 * config/arc/arc-protos.h: Update to C90 prototypes.
2194 * config/arc/arc.c: Likewise.
2195 * config/arc/initfini.c: Likewise.
2196
2197 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
2198
2199 * stmt.c (expand_goto): Memory clobbers added.
2200
2201 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
2202
2203 * reload.c (find_reloads): Added missing type casts.
2204
2205 2003-11-19 James E Wilson <wilson@specifixinc.com>
2206
2207 * combine.c (sets_function_arg_p): Delete unused function.
2208
2209 2003-11-19 Eric Christopher <echristo@redhat.com>
2210
2211 * reload1.c (reload): Revert 2 previous checkins.
2212
2213 2003-11-19 Nathanael Nerode <neroden@gcc.gnu.org>
2214
2215 * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
2216 whether directive begins at the beginning of a line.
2217
2218 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
2219
2220 * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
2221
2222 2003-11-19 Gerald Pfeifer <gp@suse.de>
2223
2224 * doc/install.texi (Specific): Remove information on old versions
2225 of glibc versus old versions of GCC.
2226
2227 2003-11-19 Richard SAndiford <rsandifo@redhat.com>
2228
2229 * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
2230 the register lowpart is a TRULY_NOOP_TRUNCATION.
2231
2232 2003-11-19 Richard Henderson <rth@redhat.com>
2233
2234 * config/i386/i386.c (print_reg): Handle QI and HI modes for
2235 non Q regs.
2236
2237 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2238
2239 * config/config.gcc (powerpc-*-darwin*): Add libgcc build
2240 specification file.
2241 * config/t-slibgcc-darwin: New file, libgcc build specification.
2242 * config/t-darwin: Add libgcc2 flag -fPIC.
2243 * config/rs6000/t-darwin: Multilib matches float.
2244 * libgcc-darwin.ver: New file, contains libgcc symbols.
2245
2246 2003-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
2247
2248 * config/ns32k/ns32k.h: Remove obsolete comment.
2249
2250 2003-11-18 Roger Sayle <roger@eyesopen.com>
2251
2252 PR middle-end/11821
2253 * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
2254 size for calls to libgcc's div & mod subroutines when using -Os.
2255
2256 2003-11-18 Jan Hubicka <jh@suse.cz>
2257
2258 * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
2259
2260 2003-11-18 Marc Espie <espie@openbsd.org>
2261
2262 * config/rs6000/sysv4.h: OpenBSD hooks.
2263
2264 2003-11-18 Richard Henderson <rth@redhat.com>
2265
2266 * expr.c (expand_expr): Don't look through constant arrays if
2267 they don't bind locally.
2268
2269 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2270
2271 * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
2272 when seeing if truncation or extension.
2273
2274 2003-11-17 Eric Christopher <echristo@redhat.com>
2275
2276 * reload1.c (reload): Fix previous change.
2277
2278 2003-11-17 Scott Snyder <snyder@fnal.gov>
2279
2280 PR debug/11325
2281 * dwarf2out.c (struct die_struct): Add die_definition field.
2282 (add_AT_specification): New.
2283 (gen_subprogram_die, gen_variable_die,
2284 gen_struct_or_union_type_die): Use it.
2285 (prune_unused_types_mark): If we're marking a forward declaration,
2286 also mark the full definition, if it exists.
2287
2288 2003-11-16 Nick Clifton <nickc@redhat.com>
2289
2290 * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
2291 * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
2292 Remove prototype.
2293 * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
2294 to xstormy16_build_builtin_va_list and make static.
2295 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
2296
2297 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2298
2299 * config/h8300/h8300-protos.h: Add the prototype for
2300 same_cmp_following_p.
2301 * config/h8300/h8300.c (same_cmp_following_p): New.
2302 * config/h8300/h8300.md (peephole2): Use it.
2303
2304 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2305
2306 * config/h8300/h8300.md: Don't use REGNO when its operand is
2307 not guaranteed to be a REG.
2308
2309 2003-11-16 Richard Sandiford <rsandifo@redhat.com>
2310
2311 * Makefile.in (expr.o): Depend on $(TARGET_H).
2312 * target.h (return_in_msb): New target hook.
2313 * target-def.h (TARGET_RETURN_IN_MSB): New macro.
2314 (TARGET_CALLS): Include it.
2315 * calls.c (shift_returned_value): New function.
2316 (expand_call): Use it.
2317 * expr.c: Include target.h.
2318 (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
2319 deciding what padding is needed. Change the name of the local
2320 padding variable from big_endian_correction to padding_correction.
2321 * stmt.c (shift_return_value): New function.
2322 (expand_return): Use it. Adjust memory->register copy in the same
2323 way as copy_blkmode_from_reg. Only change the return register's
2324 mode if it was originally BLKmode.
2325 * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
2326 * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
2327 (mips_fpr_return_fields): New, split out from mips_function_value.
2328 (mips_return_in_msb, mips_return_fpr_pair): New functions.
2329 (mips_function_value): Rework to use the functions above.
2330 * config/mips/irix6-libc-compat.c: Delete.
2331 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
2332
2333 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2334
2335 * doc/install.texi (--enable-checking): Update valgrind's URL.
2336
2337 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
2338
2339 * config/h8300/h8300.md: Fix warnings by replacing -2147483648
2340 with -2147483647 - 1.
2341
2342 2003-11-16 Gerald Pfeifer <gerald@pfeifer.com>
2343
2344 Fix links in online manuals.
2345 * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
2346 (Precompiled Headers): @pxref to cpp, not cpp.info.
2347
2348 2003-11-16 Jason Merrill <jason@redhat.com>
2349
2350 * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
2351 files in each directory and TAGS files that include them for each
2352 front end.
2353
2354 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
2355
2356 * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
2357 3 of S2L.
2358 (modnorm): Likewise.
2359 (exitdiv): Look at bit 3 of S2L only.
2360
2361 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
2362
2363 * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
2364 (DO_GLOBAL_DTORS_BODY): Likewise.
2365
2366 2003-11-15 Joseph S. Myers <jsm@polyomino.org.uk>
2367
2368 * doc/install.texi (Prerequisites): Refine documentation of
2369 autoconf, automake and perl requirements. Document required
2370 gettext version.
2371
2372 <2003-11-14 Jason Merrill <jason@redhat.com>
2373
2374 * function.c (assign_parms): Use TREE_TYPE to determine the real
2375 type of the argument object.
2376
2377 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2378
2379 * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
2380 iteration.
2381
2382 2003-11-14 Fariborz Jahanian <fjahanian@apple.com>
2383
2384 * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
2385 New routine to save vararg registers on stack. Support for
2386 -mpowerpc64 in mixed mode.
2387
2388 2003-11-14 Bernardo Innocenti <bernie@develer.com>
2389
2390 * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
2391 for MOTOROLA versus MIT syntax. Improves readability and provides
2392 better compile-time error checking for both code paths.
2393
2394 2003-11-14 Kelley Cook <kcook@gcc.gnu.org>
2395
2396 * config/frv/frv-protos.h: Update for C90.
2397 * config/frv/frv.h: Likewise.
2398 * config/frv/frvbegin.c: Likewise.
2399 * config/frv/frv.c: Likewise.
2400 (frv_adjust_field_align): Delete unused variable.
2401
2402 2003-11-14 Geoffrey Keating <geoffk@apple.com>
2403
2404 * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
2405 to each place where TARGET_LONG_DOUBLE_128 is used with
2406 DEFAULT_ABI == ABI_AIX.
2407
2408 * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
2409 message comply with GNU standards.
2410
2411 2003-11-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2412
2413 PR/6552
2414 * function.c (struct epi_info): New field const_equiv.
2415 (update_epilogue_consts): New function.
2416 (keep_stack_depressed): Clear new field and verify scratch register
2417 doesn't have it set.
2418 Call new function via note_stores.
2419 (handle_epilogue_set): Allow setting SP equiv reg in different mode.
2420 Allow PLUS where second operand is register known set to constant.
2421 (emit_equiv_load): Write load using proper mode if source different.
2422 * config/mips/mips.md (return_internal): Put (return) first.
2423
2424 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2425
2426 * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
2427
2428 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
2429
2430 * config/h8300/lib1funcs.asm (modsi3): Don't save unused
2431 registers.
2432 (divsi3): Likewise.
2433 (reti): Don't restore unused registers.
2434
2435 2003-11-14 Nick Clifton <nickc@redhat.com>
2436
2437 * config/fr30/fr30.c: Include toplev.h
2438
2439 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
2440
2441 * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
2442
2443 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
2444
2445 * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
2446 function definition syntax.
2447
2448 2003-11-14 Eric Christopher <echristo@redhat.com>
2449
2450 * reload1.c (reload): Revert previous patch. Make
2451 check for assignment into reg_equiv_address stricter.
2452
2453 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
2454
2455 * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
2456
2457 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
2458
2459 * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
2460 section names.
2461
2462 2003-11-14 Jason Merrill <jason@redhat.com>
2463
2464 PR middle-end/12526
2465 * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
2466 * calls.c (call_expr_flags): New fn.
2467 * tree.h: Declare it.
2468
2469 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2470
2471 * config/h8300/lib1funcs.asm (__udivsi3): Remove.
2472 (divmodsi3): Change the name to ___udivsi3.
2473 Update all callers.
2474
2475 2003-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2476
2477 * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
2478 __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
2479 __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
2480 __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
2481 __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
2482 __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
2483 Const-ify and/or initialize automatic variables at declaration.
2484
2485 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2486
2487 * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
2488 of er4 with er3. Adjust all callers.
2489
2490 2003-11-13 Andrew Pinski <apinski@apple.com>
2491
2492 * config/darwin.c (machopic_output_possible_stub_label):
2493 Allow stub symbol be not defined when outputting possible
2494 stub label.
2495
2496 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2497
2498 * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
2499 instead of exitdiv.
2500 (___umodsi3): Likewise.
2501 (exitdiv): Do not restore any register.
2502 (reti): Restore registers.
2503
2504 2003-11-13 Steven Bosscher <stevenb@suse.de>
2505
2506 * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
2507
2508 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2509
2510 * config/h8300/lib1funcs.asm: Fix comment typos.
2511
2512 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2513
2514 * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
2515 unused registers. Don't jump to exitdiv.
2516 (umodsi3): Likewise.
2517
2518 2003-11-13 Mark Mitchell <mark@codesourcery.com>
2519 Kean Johnston <jkj@sco.com>
2520
2521 PR c/13029
2522 * toplev.c (check_global_declarations): Do not warn about unused
2523 static consts.
2524
2525 2003-11-13 Pavel Pisa <pisa@cmp.felk.cvut.cz>
2526 Kazu Hirata <kazu@cs.umass.edu>
2527
2528 * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
2529 the approximate quotient method.
2530
2531 2003-11-13 Richard Earnshaw <rearnsha@arm.com>
2532
2533 * combine.c (distribute_notes): When re-distributing the notes from
2534 an insn we are about to delete, ensure we can't end up with a cyclic
2535 list of notes.
2536
2537 2003-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2538
2539 PR optimization/12926
2540 * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
2541 the UNCHANGING_RTX_P flag on memory references to read-only
2542 components that are not addressable.
2543
2544 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2545
2546 * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
2547 DenHighNonZero.
2548
2549 2003-11-13 Jan Hubicka <jh@suse.cz>
2550
2551 PR opt/12275
2552 * c-decl.c (finish_decl): Use change_decl_assembler_name.
2553 * c-pragma.c (handle_pragma_redefine_extname): Likewise.
2554 * varasm.c (make_decl_rtl): Likewise.
2555 * cgraph.c (change_decl_assembler_name): New function.
2556 * tree.h (set_decl_assembler_name): Kill dead declaration.
2557 (change_decl_assembler_name): Declare.
2558
2559 * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2560 * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2561
2562 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2563
2564 * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
2565 an unused register.
2566
2567 2003-11-12 Richard Sandiford <rsandifo@redhat.com>
2568
2569 PR bootstrap/12752
2570 * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
2571 (MULTILIB_OSDIRNAMES): Reorder accordingly.
2572
2573 2003-11-12 Janis Johnson <janis187@us.ibm.com>
2574
2575 * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
2576 (rs6000_stack_info): Remove. (debug_stack_info): Remove.
2577 (rs6000_emit_eh_reg_restore): Add
2578 * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
2579 of vars_size and total_size to HOST_WIDE_INT.
2580 (emit_frame_save): Change parameter size to HOST_WIDE_INT.
2581 (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
2582 (debug_stack_info): Make static; change output format of HOST_WIDE_INT
2583 values.
2584 (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
2585 (rs6000_initial_elimination_offset): New, with code formerly in
2586 INITIAL_ELIMINATION_OFFSET.
2587 * rs6000.h (rs6000_stack_t): Remove.
2588 (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
2589 rs6000_initial_elimination_offset.
2590 * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
2591 rs6000_emit_eh_reg_restore.
2592
2593 2003-11-12 Mike Stump <mrs@apple.com>
2594
2595 * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
2596 is the argumnt we are processing so that warnings and errors
2597 will have that information.
2598 * c-tree.h (c_convert_parm_for_inlining): Add argnum.
2599 * lang-hooks-def.h
2600 (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
2601 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
2602 * langhooks.h (convert_parm_for_inlining): Likewise.
2603 * tree-inline.c (initialize_inlined_parameters): Compute and
2604 pass argnum down.
2605
2606 2003-11-12 Alexey Starovoytov <alexey.starovoytov@sun.com>
2607 Roger Sayle <roger@eyesopen.com>
2608
2609 PR optimization/12953
2610 * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
2611 before switch by FUNCTION_CODE.
2612
2613 2003-11-12 Richard Earnshaw <rearnsha@arm.com>
2614
2615 * arm.md (storehi): Avoid use of explicit subreg.
2616 (storehi_bigend, storeinthi, movhi_bigend): Likewise.
2617
2618 2003-11-12 J"orn Rennecke <joern.rennecke@superh.com>
2619
2620 * config/sh/sh.md (prefetch): New pattern.
2621
2622 2003-11-11 Eric Christopher <echristo@redhat.com>
2623
2624 * reload1.c (reload): Verify that addresses for
2625 reg_equiv_* are valid for the architecture.
2626
2627 2003-11-11 Eric Christopher <echristo@redhat.com>
2628
2629 * function.c (purge_addressof_1): Add libcall check.
2630 Remove test for cached replacements on fallback case.
2631 Simplify mode comparisons. Add libcall test for
2632 paradoxical subregs.
2633
2634 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
2635
2636 * config/h8300/t-h8300: Fix an obsolete comment.
2637
2638 2003-11-11 James E Wilson <wilson@specifixinc.com>
2639
2640 * expmed.c (store_bit_field, extract_bit_field): Revert last two
2641 changes.
2642
2643 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
2644
2645 * config/h8300/lib1funcs.asm: Replace DenHighZero with
2646 DenHighNonZero.
2647
2648 2003-11-11 Jan Hubicka <jh@suse.cz>
2649
2650 * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
2651 really_no_inline.
2652
2653 2003-11-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2654
2655 * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
2656 generating 64-bit code.
2657
2658 2003-11-10 David Edelsohn <edelsohn@gnu.org>
2659
2660 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
2661 accidental commit in previous change.
2662
2663 2003-11-10 Fariborz Jahanian <fjahanian@apple.com>
2664
2665 * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
2666 * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
2667 address recognition.
2668 (macho_lo_sum_memory_operand): Routine to recognize macho-style
2669 address recognition.
2670
2671 2003-11-10 Richard Henderson <rth@redhat.com>
2672
2673 * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
2674
2675 2003-11-10 Matt Austern <austern@apple.com>
2676
2677 * config/darwin-protos.h (darwin_assemble_visibility): Declare.
2678 * config/darwin.c (darwin_assemble_visibility): Define. Warn for
2679 anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
2680 * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
2681 darwin_assemble_visibility instead of default.
2682
2683 2003-11-10 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2684
2685 PR target/12865
2686 * config/sparc/sparc.c (sparc_initialize_trampoline): Call
2687 __enable_execute_stack only after writing onto the stack.
2688 (sparc64_initialize_trampoline): Likewise.
2689
2690 2003-11-09 Roger Sayle <roger@eyesopen.com>
2691
2692 * loop.c (check_dbra_loop): Try swapping the comparison operands
2693 of the loop condition to identify a suitable induction variable.
2694 * unroll.c (loop_iterations): Likewise.
2695
2696 2003-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2697
2698 * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
2699 sparc64 #cpu and #machine assertions.
2700
2701 2003-11-09 Richard Henderson <rth@redhat.com>
2702
2703 * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
2704
2705 2003-11-09 Jan Hubicka <jh@suse.cz>
2706
2707 * tree-optimize.c (tree_rest_of_compilation): Fix warning.
2708
2709 * cgraphunit.c (cgraph_expand_function): Use
2710 cgraph_possibly_inlined_p.
2711 * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
2712
2713 * opts.c (common_handle_option): Do not set max-inline-insns.
2714 * params.def: Update comments.
2715 (PARAM_MAX_INLINE_INSNS): Kill.
2716 * invoke.texi (max-inline-insns): Kill.
2717
2718 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
2719
2720 PR c/3190
2721 PR c/8714
2722 * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
2723 * invoke.texi: Update.
2724
2725 2003-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2726
2727 PR optimization/12630
2728 * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
2729 Handle length computation 64-bit moves.
2730 (compute_clrstr_length, output_block_clear): Implement block clear.
2731 (output_block_move): Handle 64-bit moves.
2732 (pa_adjust_insn_length): Use compute_movstr_length and
2733 compute_clrstr_length.
2734 * pa.md (movstrsi): Revise operand order and comments. Don't use
2735 match_scratch.
2736 (movstrsi_internal): Delete.
2737 (movstrsi_prereload, movstrsi_postreload): New insns. Define splitter
2738 and peephole2 patterns to transform prereload to postreload form.
2739 (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
2740 clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
2741 clrstrdi_postreload): New patterns for 64-bit block move, and block
2742 clear.
2743 * pa-protos.h (output_block_clear): New prototype.
2744
2745 2003-11-08 Andreas Schwab <schwab@suse.de>
2746
2747 * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
2748 XCOFF_DEBUGGING_INFO.
2749
2750 2003-11-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2751
2752 * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
2753
2754 2003-11-07 Geoffrey Keating <geoffk@apple.com>
2755
2756 * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
2757 redundant parens.
2758
2759 * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
2760 (find_file_in_dir): Likewise.
2761 (_cpp_find_file): Print message if no header file is found
2762 but an invalid PCH file was.
2763
2764 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
2765
2766 * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
2767 expressions as lvalues.
2768 (internal_build_compound_expr): Remove special handling for
2769 non-pedantic case.
2770 * doc/extend.texi: Document that all extended lvalues are now
2771 deprecated.
2772
2773 2003-11-07 Geoffrey Keating <geoffk@apple.com>
2774
2775 PR 11654
2776 * dbxout.c (struct dbx_file): Do not save for PCH.
2777 (current_file): Likewise.
2778 (dbxout_init): Don't allocate struct dbx_file using GC.
2779 (dbxout_start_source_file): Likewise.
2780
2781 2003-11-07 Falk Hueffner <falk@debian.org>
2782
2783 * config/alpha/elf.h, config/alpha/unicosmk.h,
2784 config/alpha/vms.h: Convert to ISO C90.
2785
2786 2003-11-07 Nathanael Nerode <neroden@gcc.gnu.org>
2787
2788 * config/arm/pe.h: Convert to ISO C90.
2789
2790 2003-11-07 J"orn Rennecke <joern.rennecke@superh.com>
2791
2792 * sh-protos.h (sh_pch_valid_p): Declare.
2793 * sh.c ("intl.h"): Include.
2794 (TARGET_PCH_VALID_P): Override.
2795 (sh_target_switches): New variable.
2796 (target_switches): Define.
2797 (sh_pch_valid_p): New function.
2798
2799 * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
2800
2801 2003-11-07 Jan Hubicka <jh@suse.cz>
2802
2803 * i386.c (x86_64_sign_extended_value): Return false from tls variables.
2804 (x86_64_zero_extended_value): likewise.
2805
2806 2003-11-07 Richard Sandiford <rsandifo@redhat.com>
2807
2808 * config/mips/mips.md (loadgp): Take $25 as a second operand.
2809 * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
2810
2811 2003-11-06 Matt Austern <austern@apple.com>
2812
2813 * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
2814 field instead of hanging an attribute object off the decl.
2815 * tree.h (DECL_VISIBLITY): New accessor macro for
2816 symbol_visibility field in struct tree_decl.
2817 (enum symbol_visibility): Move definition to before tree_decl.
2818 (struct tree_decl): Define new two-bit field, symbol_visibility.
2819 (decl_visibility): Remove declaration.
2820 * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
2821 instead of decl_visibility.
2822 (default_binds_local_p_1): Use DECL_VISIBILITY instead of
2823 decl_visibility.
2824 (decl_visibility): Remove.
2825
2826 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2827
2828 * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
2829 where register 14 will be saved.
2830
2831 2003-11-06 Geoffrey Keating <geoffk@apple.com>
2832
2833 * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
2834 (USE_ALTIVEC_FOR_ARG_P): Likewise.
2835 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
2836 Take a pointer as the CUM parameter. Update callers.
2837 (USE_ALTIVEC_FOR_ARG_P): Likewise. Also correct for Darwin/AIX
2838 32-bit ABIs.
2839 (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P. Correct case
2840 of vector parameters as named arguments of stdarg function.
2841 (function_arg): Likewise.
2842
2843 * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
2844 -maltivec is specified, not the non-existent -faltivec.
2845
2846 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2847
2848 * config/s390/s390-protos.h (s390_function_value): Declare.
2849 * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
2850 (s390_return_in_memory): New function.
2851 (s390_function_value): New function.
2852 (s390_function_arg_float): Return false for all arguments larger
2853 than 8 bytes.
2854 (s390_function_arg_pass_by_reference): Likewise. Return true for
2855 all vector arguments.
2856 (s390_function_arg_integer): New function.
2857 (s390_function_arg_advance): Call it. Add sanity checks.
2858 (s390_function_arg): Likewise.
2859 * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
2860 (LIBCALL_VALUE): Likewise.
2861 (RET_REG): Remove.
2862 (RETURN_IN_MEMORY): Remove.
2863
2864 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2865
2866 * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
2867 return type to HOST_WIDE_INT.
2868 * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
2869 Make initialized a bool. Make register masks unsigned ints.
2870 (compute_frame_size): Make same mask change here. Use HOST_WIDE_INT
2871 where appropriate.
2872 (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
2873 (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
2874
2875 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2876
2877 * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
2878 negation.
2879
2880 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2881
2882 * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
2883
2884 2003-11-06 Momchil Velikov <velco@fadata.bg>
2885
2886 * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
2887 for VR4111 too.
2888
2889 2003-11-06 Jan Hubicka <jh@suse.cz>
2890
2891 * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
2892 missing casts.
2893
2894 2003-11-06 Zack Weinberg <zack@codesourcery.com>
2895
2896 * genmodes.c: Change the word "bitsize" to "precision" throughout.
2897 * machmode.def: Likewise.
2898 * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
2899 (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
2900 (GET_MODE_PRECISION): New macro.
2901 (mode_bitsize): Renamed mode_precision.
2902 * stor-layout.c (mode_for_size, smallest_mode_for_size):
2903 Use GET_MODE_PRECISION; clarify comments.
2904
2905 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
2906
2907 * doc/install-old.texi: Remove old documentation of building
2908 cross-compilers.
2909 * doc/install.texi: Move some of it to here.
2910
2911 2003-11-05 Per Bothner <pbothner@apple.com>
2912
2913 PR preprocessor/12891
2914 * c-opts.c (finish_options): Set include_cursor to disable premature
2915 calls to push_command_line_include from cpp_scan_nooutput.
2916 Fixes bug reported by DJ Delorie.
2917
2918 2003-11-05 Geoffrey Keating <geoffk@apple.com>
2919
2920 * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
2921 code supporting old-style varargs.
2922
2923 * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
2924 an intermediate register for better optimisation.
2925
2926 2003-11-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2927
2928 PR optimization/10080
2929 * cfgloopanal.c (variable_initial_value, variable_initial_values,
2930 simple_loop_exit_p): Record the fact that initial value is extended
2931 from inner mode.
2932 (count_strange_loop_iterations, count_loop_iterations): Handle
2933 ivs that iterate in a narrower mode. Fix handling of overflows.
2934 Improve handling of NE conditions.
2935 (inverse, fits_in_mode_p): New static functions.
2936 (simple_increment): Detect variables that iterate in a narrower mode.
2937 * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
2938
2939 2003-11-05 Geoffrey Keating <geoffk@apple.com>
2940
2941 * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
2942 error.
2943
2944 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
2945 needs VRSAVE.
2946
2947 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
2948
2949 * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
2950 conditional expressions as lvalues.
2951
2952 2003-11-05 Kazu Hirata <kazu@cs.umass.edu>
2953
2954 * tsystem.h: Add the prototype of strlen.
2955 * unwind-pe.h (read_encoded_value_with_base): Add an
2956 appropriate cast to handle a case where the pointer size is
2957 smaller than sizeof (int).
2958
2959 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
2960
2961 * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
2962 (mips_delegitimize_address): Delete.
2963 (mips_gotoff_global, mips_load_got_page): Declare.
2964 (mips_load_got_global, mips_rewrite_small_data): Declare.
2965
2966 * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
2967 (DANGEROUS_FOR_LA25_P): Use global_got_operand.
2968 (PREDICATE_CODES): Add global_got_operand, local_got_operand and
2969 small_data_pattern. Remove CONST from const_arith_operand's entry.
2970
2971 * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
2972 (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
2973 (mips_constant_type): Delete.
2974 (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
2975 SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
2976 (NUM_SYMBOL_TYPES): New macro.
2977 (mips_address_type): Remove ADDRESS_INVALID.
2978 (machine_function): Add has_gp_insn_p.
2979 (mips_constant_info): Delete.
2980 (mips_address_info): Add the address type as an extra field. Replace
2981 the c field with symbol_type.
2982 (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
2983 (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
2984 (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
2985 (mips_split_const, mips_symbolic_constant_p): New functions.
2986 (mips_symbolic_address_p): Take the symbol type and mode as arguments.
2987 (mips_classify_address): Return true if the address is valid, storing
2988 its type in INFO. Use mips_symbolic_constant_p. Use mips_lo_relocs[]
2989 to test whether a LO_SUM address is allowed.
2990 (mips_symbol_insns): Return 0 for general mips16 symbols.
2991 Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
2992 Handle the new SYMBOL_GOTOFF_*s.
2993 (mips_address_insns): Update call to mips_classify_address.
2994 (mips_const_insns): Be more fussy about HIGH constants. Remove use
2995 of mips_classify_constant. Be more accurate about CONSTs.
2996 (mips_global_pic_constant_p): Delete.
2997 (const_arith_operand): Only accept CONST_INTs.
2998 (call_insn_operand): Remove call to mips_classify_constant.
2999 Let mips_symbolic_constant_p check for invalid offsets.
3000 (move_operand): Check for general_operands first. Only accept symbolic
3001 constants if they satisfy mips_symbolic_constant_p and cannot be split.
3002 (symbolic_constant): Use mips_symbolic_constant_p.
3003 (global_got_operand, local_got_operand): New predicates.
3004 (stack_operand): Update call to mips_classify_address.
3005 (mips_legitimate_address_p): Likewise.
3006 (mips_reloc, mips_lui_reloc): Delete.
3007 (mips_force_temporary): Only use the given temporary if no_new_pseudos.
3008 Use emit_move_insn.
3009 (mips_split_symbol, mips_unspec_address): New functions.
3010 (mips_unspec_offset_high): New function.
3011 (mips_load_got): Replace reloc argument with a symbol_type.
3012 Use mips_unspec_address to create the address and put it in a
3013 LO_SUM with the base register.
3014 (mips_load_got16, mips_load_got32): Delete.
3015 (mips_emit_high, mips_legitimize_symbol): Delete.
3016 (mips_gotoff_global): New function.
3017 (mips_load_got_page, mips_load_got_global): New functions.
3018 (mips_legitimize_symbol): Inline handling of LO_SUM splits.
3019 (mips_legitimize_const_move): Likewise. Remove HIGH handling.
3020 Inline code to handle constants plus invalid offsets. Use
3021 mips_split_symbol to legitimize constant pool addresses.
3022 (mips_delegitimize_address): Delete.
3023 (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
3024 a cost of 1 insn. Give the rest a cost of CONSTANT_POOL_ADDRESS.
3025 (mips_subword): Pass memrefs through mips_rewrite_small_data.
3026 (mips_output_move): Remove use of mips_classify_constant.
3027 (mips_expand_call): Use mips_unspec_offset_high to calculate the
3028 high part of the GOT address for calls to global functions.
3029 (override_options): Initialize mips_split_p[], mips_lo_relocs[]
3030 and mips_hi_relocs[].
3031 (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
3032 Remove use of mips_classify_constant.
3033 (mips_reloc_string): Delete.
3034 (print_operand_reloc): New function.
3035 (print_operand_address): Update call to mips_classify_address.
3036 (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
3037 (small_data_pattern): New predicate.
3038 (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
3039 (mips_function_has_gp_insn): New function.
3040 (mips_global_pointer): Use it.
3041 (mips_gp_insn): Delete.
3042 (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
3043 single loadgp pattern to initialize $gp. Pass it the offset of _gp
3044 from the start of the current function.
3045 (mips16_gp_pseudo_reg): Revert last patch.
3046
3047 * config/mips/mips.md (RELOC_*): Delete.
3048 (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
3049 (got): New insn attribute.
3050 (type): Set to "load" if got == load.
3051 (length): Set to 4 if got == load, 8 if got == xgot_high.
3052 (lui[sd]i): Delete.
3053 (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
3054 (*got_disp[sd]i, *got_page[sd]i): Likewise.
3055 (*low[sd]i): Change constraints to "d". Add a new define_split to
3056 rewrite small data constants into LO_SUMs.
3057 (loadgp): New insns.
3058
3059 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3060
3061 * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
3062
3063 2003-11-04 DJ Delorie <dj@redhat.com>
3064
3065 * config/v850/v850.md (mulhisi3): Expand the const_int case
3066 separately to avoid trying to sign extend the const.
3067
3068 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
3069
3070 * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
3071 addresses to be shared.
3072 (force_const_mem): Return a copy of the pool entry.
3073
3074 2003-11-03 Andreas Jaeger <aj@suse.de>
3075
3076 * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
3077
3078 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
3079
3080 * Makefile.in (cpp.dvi): New target split from cpp.info.
3081 (gcc.dvi): New target split from gcc.info.
3082 (gccint.dvi): New target split from gccint.info.
3083 (cppinternals.dvi): New target split from cppinternals.info
3084 (gccinstall.info): New specific rule.
3085 (gccinstall.dvi): Likewise.
3086 (dvi): Move targets to $(docobjdir).
3087 ($(docobjdir)/%.dvi): New implicit rule.
3088
3089 2003-11-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3090
3091 * doc/gty.texi (tag, desc): Say more about role of desc values in
3092 selecting between tags.
3093
3094 2003-11-03 Alexander Kabaev <ak03@gte.com>
3095
3096 * real.c (encode_ieee_single): Ensure proper promotion.
3097
3098 2003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3099
3100 * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
3101 and Andrew Pinski.
3102
3103 2003-11-03 Syd Polk <spolk@apple.com>
3104
3105 * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
3106 marketing names to the list of supported processors.
3107 * config/rs6000/rs6000.h: Ditto.
3108 * doc/invoke.texi: Ditto.
3109 * config.gcc: Ditto.
3110
3111 2003-11-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3112
3113 * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
3114 Merge two substitutions.
3115 * fixinc/fixincl.x: Regenerate.
3116 Fixes PR bootstrap/12666.
3117
3118 2003-11-03 Joseph S. Myers <jsm@polyomino.org.uk>
3119
3120 * doc/install-old.texi: Remove VMS documentation.
3121
3122 2003-11-03 Jan Hubicka <jh@suse.cz>
3123
3124 * i386.c (override_options): Remove hack enabling 128bit long double
3125 commited by accident.
3126
3127 2003-11-02 Per Bothner <per@bothner.com>
3128
3129 * c-opts.c (needValue): Do cpp_find_main_file before processing
3130 any imacros flags, so pfile->main_file is set for the latter.
3131
3132 2003-11-03 Andreas Jaeger <aj@suse.de>
3133 Zack Weinberg <zack@codesourcery.com>
3134
3135 * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
3136 (SYSCALLS.c.X-warn): Suppress warnings.
3137
3138 2003-11-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3139
3140 PR optimization/12845
3141 * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
3142
3143 2003-11-02 Zack Weinberg <zack@codesourcery.com>
3144
3145 * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
3146 * config/i386/i386.c (print_reg): Abort on a virtual register
3147 if code != -1; not if file == asm_out_file.
3148 * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
3149 (DEBUG_PRINT_REG): Delete, unused.
3150
3151 2003-11-02 Andreas Schwab <schwab@suse.de>
3152
3153 * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
3154 empty to avoid conflict with the definition from configure.
3155
3156 2003-11-02 Roger Sayle <roger@eyesopen.com>
3157
3158 PR optimization/10817
3159 * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
3160 (noce_try_move): New function to optimize an if-the-else into an
3161 unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
3162 (noce_process_if_block): Attempt simplification with noce_try_move.
3163
3164 * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
3165 and improvements to the optimizations of IF_THEN_ELSE expressions.
3166 (simplify_subreg): Silence signed/unsigned comparison warning.
3167
3168 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
3169
3170 * Makefile.in (targhooks.o, reload.o): Update dependencies.
3171 (GTFILES): Add targhooks.c.
3172 (gt-targhooks.h): New rule; depend on s-gtype.
3173 * target.h (direct_pool_load_p): New hook.
3174 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
3175 (TARGET_INITIALIZER): Include it.
3176 * targhooks.h (default_direct_pool_load_p): Declare.
3177 (hook_bool_machine_mode_true): Declare.
3178 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
3179 gt-targhooks.h.
3180 (pool_symbol): New variable.
3181 (default_direct_pool_load_p): New function.
3182 (hook_bool_machine_mode_true): New function.
3183 * reload.c: Include target.h.
3184 (find_reloads): If an alternative will force a constant into memory,
3185 count an extra reload if constant pool symbols are not valid
3186 addresses. If an alternative uses memory to move values between
3187 registers, count the move as two reloads rather than one.
3188 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
3189 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
3190
3191 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3192
3193 PR optimization/12799
3194 * postreload.c (reload_cse_move2add): Generate the add2
3195 patterns manually.
3196
3197 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3198
3199 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
3200 Return 0 for all complex modes whose size is lesser or equal to
3201 a word. Add a ??? comment for the condition used with 16-byte
3202 aligned modes.
3203
3204 2003-11-01 Kelley Cook <kcook@gcc.gnu.org>
3205
3206 * .cvsignore: Remove c-parse* and tradcif.c.
3207 * objc/.cvsignore: Delete.
3208
3209 2003-11-01 Roger Sayle <roger@eyesopen.com>
3210
3211 * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
3212 of NULL.
3213
3214 2003-11-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3215
3216 * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
3217
3218 * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
3219
3220 * collect2.c (scan_libraries): Fix typos.
3221
3222 PR preprocessor/12847
3223 * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
3224 cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
3225 c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
3226 DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
3227 "CPP_".
3228
3229 2003-11-01 Fariborz Jahanian <fjahanian@apple.com>
3230
3231 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
3232 no_units calculation.
3233
3234 2003-11-01 Andreas Jaeger <aj@suse.de>
3235
3236 * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
3237 enumeration list.
3238
3239 2003-11-01 Andreas Schwab <schwab@suse.de>
3240
3241 * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
3242 prototypes.
3243 (SBSS_SECTION_FUNCTION): Likewise.
3244
3245 2003-11-01 Andreas Jaeger <aj@suse.de>
3246
3247 * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
3248
3249 2003-11-01 Andreas Tobler <a.tobler@schweiz.ch>
3250
3251 * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
3252 prototypes.
3253
3254 2003-11-01 Andreas Jaeger <aj@suse.de>
3255
3256 * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
3257 (uw_frame_state_for): Constify variables.
3258 (extract_cie_info): Constify first argument.
3259
3260 * unwind-dw2-fde-darwin.c: Adjust prototype of
3261 _Unwind_Find_registered_FDE for recent changes.
3262 (examine_objects): Constify return value and local variable result.
3263 (_Unwind_Find_FDE): Constify return value and local variable ret.
3264
3265 2003-10-31 Per Bothner <pbothner@apple.com>
3266
3267 * c-opts.c (finish_options): Change to returns boolean - false iff
3268 the call to cpp_find_main_file fails.
3269 (c_common_init): Skip preprocess_file if finish_options failed.
3270 (c_common_parse_file): Break if finish_options failed.
3271 Fixes PR preprocessor/12545.
3272
3273 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3274
3275 * aclocal.m4: Blacklist ultrix* for mmap file.
3276 * configure: Rebuilt.
3277
3278 * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
3279 reg_parm_stack_space.
3280 * toplev.c (default_get_pch_validity): Fix warning.
3281
3282 * vax.c: Include toplev.h.
3283 (vax_init_libfuncs): Fix typo (umod).
3284 * vax.h (ASM_COMMENT_START): Define.
3285 (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
3286
3287 2003-10-31 Roger Sayle <roger@eyesopen.com>
3288
3289 PR middle-end/11968
3290 * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
3291 confusing comment; distributivity isn't handled in expand_expr.
3292 * fold-const.c (extract_muldiv_1 <PLUS_EXPR>): Allow overflow
3293 in distributivity, if wrap-around semantics are specified with
3294 -fwrapv.
3295
3296 2003-11-01 Alan Modra <amodra@bigpond.net.au>
3297
3298 PR 12315
3299 * final.c (profile_function): Allow for NULL svrtx.
3300
3301 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3302
3303 * pa.c (pa_select_section): Use new style declaration.
3304 * som.h (readonly_data): Likewise.
3305
3306 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
3307
3308 * config/rs6000/rs6000.c: Update to C90 prototypes.
3309
3310 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3311
3312 PR target/7513
3313 * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
3314 code.
3315
3316 2003-10-31 Andreas Jaeger <aj@suse.de>,
3317 Zack Weinberg <zack@codesourcery.com>
3318
3319
3320 * crtstuff.c (__register_frame_info, __register_frame_info_bases)
3321 (__deregister_frame_info, __deregister_frame_info_bases):
3322 Constify void * argument.
3323 * unwind-dw2-fde.h (struct fde_vector):
3324 Constify 'orig_data' and 'array' fields.
3325 (__register_frame_info, __register_frame_info_bases)
3326 (__deregister_frame_info, __deregister_frame_info_bases):
3327 Constify void * argument.
3328 (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
3329 return values, and casts of type fde *, struct dwarf_fde *,
3330 and struct dwarf_cie *.
3331 * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
3332 (__deregister_frame_info, __deregister_frame_info_bases):
3333 Constify void * argument.
3334 (get_cie_encoding, ): Constify struct dwarf_cie * argument.
3335 (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
3336 (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
3337 fde_split, SWAP, frame_downheap, frame_heapsort)
3338 (classify_object_over_fdes, add_fdes, linear_search_fdes,
3339 binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
3340 binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
3341 Constify arguments, local variables, return values, and casts
3342 of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
3343 Use const pointer types in sizeof expressions, for clarity.
3344 * unwind-dw2-fde-glibc.c
3345 (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
3346 (struct unw_eh_callback_data): Constify 'ret' field.
3347
3348 2003-10-31 Fariborz Jahanian <fjahanian@apple.com>
3349 David Edelsohn <edelsohn@gnu.org>
3350
3351 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
3352 (function_arg): Call it.
3353 (rs6000_function_value): Widen integral return value to mode based
3354 on TARGET_32BIT, not word_mode.
3355 * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
3356 (UNITS_PER_ARG): New.
3357 (RS6000_ARG_SIZE): Use it.
3358
3359 2003-10-31 Gerald Pfeifer <gerald@pfeifer.com>
3360
3361 * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
3362 and gengtype-yacc.h.
3363
3364 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3365
3366 PR optimization/8896
3367 * postreload.c (reload_combine): Check that REGY doesn't die in an
3368 insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
3369
3370 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
3371
3372 PR/10239
3373 * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
3374
3375 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
3376
3377 PR/11640
3378 * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
3379 immediatelly before BARRIER.
3380
3381 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
3382
3383 * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
3384
3385 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3386
3387 PR target/11271
3388 * reload.c (find_reloads_address): Handle any register in
3389 (PLUS (PLUS (REG) (REG)) (CONST_INT).
3390
3391 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
3392
3393 * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
3394 ENABLE_GC_CHECKING not in GGC_POISON.
3395
3396 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
3397
3398 PR bootstrap/9863
3399 * configure.in: Bail out if awk is missing.
3400 * configure: Regenerate.
3401
3402 PR ada/12761
3403 * Makefile.in: Move default definitions of X_ADA_CFLAGS,
3404 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
3405
3406 2003-10-30 Richard Henderson <rth@redhat.com>
3407
3408 * c-objc-common.c (c_tree_printer): Handle types correctly.
3409 Factor code a bit.
3410
3411 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
3412
3413 * value-prof.c, web.c: Update to C90.
3414
3415 2003-10-30 Eric Christopher <echristo@redhat.com>
3416
3417 * function.c (purge_addressof_1): Add case for REG_RETVAL
3418 notes when modes are unequal.
3419
3420 2003-10-31 Jan Hubicka <jh@suse.cz>
3421
3422 * i386-modes.def: Add XFmode format adjustment.
3423
3424 2003-10-30 Jan Hubicka <jh@suse.cz>
3425
3426 * real.c (encode_ieee_extended): Back out previous patch.
3427
3428 2003-10-30 Jan Hubicka <jh@suse.cz>
3429
3430 * real.c (encode_ieee_extended): Initialize whole array.
3431 * reg-stack.c (move_for_stack_reg0: Use always XFmode.
3432 * i386-modes.def: Change definitions of TFmode and XFmode.
3433 * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
3434 code.
3435 (construct_container): Allow constructing of TFmode integer containers.
3436 (ix86_return_in_memory): XFmode is not returned in memory.
3437 (init_ext_80387_constants): Always use XFmode.
3438 (print_operand): Likewise.
3439 (ix86_prepare_fp_compare_regs): Likewise.
3440 (split_to_parts): Deal with TFmode.
3441 (split_long_move): Simplify.
3442 (ix86_init_mmx_sse_builtins): Add __float80, __float128.
3443 (ix86_memory_move_cost): Do not confuse TFmode.
3444 * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
3445 (IS_STACK_MODE): TFmode is not stack mode.
3446 (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
3447 (VALID_SSE_REG_MODE): Allow TFmode.
3448 (VALID_FP_MODE_P): Disallow TFmode.
3449 (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
3450 * i386.md (TFmode patterns): Kill.
3451 (movtf, motf_rex64): New patterns.
3452
3453 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3454
3455 * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
3456
3457 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3458
3459 * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
3460 (mov_lwr, mov_swl, mov_swr): Likewise.
3461 (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
3462
3463 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
3464
3465 * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
3466
3467 2003-10-30 Richard Henderson <rth@redhat.com>
3468
3469 * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
3470 test for irix6 rather than preprocessor test.
3471
3472 2003-10-30 Richard Henderson <rth@redhat.com>
3473
3474 * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
3475
3476 2003-10-30 Ulrich Weigand <uweigand@de.ibm.com>
3477
3478 * config/s390/s390.c (struct machine_function): Use save_return_addr_p
3479 as a general flag that the return address register needs to be saved,
3480 not necessarily because of __builtin_return_addr (0).
3481 (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
3482 remove special handling of zSeries machines.
3483 (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
3484 register as a regular register on zSeries machines.
3485 (s390_reorg): Adjust calls to s390_split_branches and
3486 s390_optimize_prolog.
3487 (s390_frame_info): On zSeries machines, do not assume the return
3488 register is always used. Update regs_ever_live with current data
3489 for the special registers.
3490 (s390_emit_epilogue): Use save_return_addr_p to determine whether
3491 the return register was saved.
3492 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
3493 RETURN_REGNUM fixed on zSeries machines.
3494 (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
3495 * config/s390/s390.md ("*doloop_si"): Handle branch overflow
3496 via ahi-jgne pair on zSeries machines.
3497 ("*doloop_di"): Likewise.
3498 ("*doloop_di_long"): Remove.
3499
3500 2003-10-30 Richard Earnshaw <rearnsha@arm.com>
3501
3502 * arm.c (arm_override_options): Revert change of arm_constant_limit
3503 when optimizing for size.
3504
3505 2003-10-29 Richard Henderson <rth@redhat.com>
3506
3507 * fold-const.c (fold_single_bit_test): Convert the input to the
3508 operational intermediate type.
3509
3510 2003-10-29 Richard Henderson <rth@redhat.com>
3511
3512 * builtins.c (std_build_builtin_va_list): New.
3513 * expr.h (std_build_builtin_va_list): Declare.
3514 * defaults.h (BUILD_VA_LIST_TYPE): New.
3515 * system.h (BUILD_VA_LIST_TYPE): Poison.
3516 * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
3517 * target.h (struct gcc_target): Add build_builtin_va_list.
3518 * tree.c (build_common_tree_nodes_2): Use it.
3519
3520 * config/alpha/alpha-protos.h, config/alpha/alpha.c,
3521 config/alpha/alpha.h, config/alpha/unicosmk.h,
3522 config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
3523 config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
3524 config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
3525 config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
3526 config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
3527 config/mips/mips.h, config/rs6000/rs6000-protos.h,
3528 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
3529 config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
3530 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
3531 config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
3532 config/xtensa/xtensa.h: Rename foo_build_va_list to
3533 foo_build_builtin_va_list; make it static. Define
3534 TARGET_BUILD_BUILTIN_VA_LIST. Remove BUILD_VA_LIST_TYPE.
3535 Update protos.
3536
3537 * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
3538 * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
3539
3540 2003-10-29 James E Wilson <wilson@specifixinc.com>
3541
3542 * recog.c (asm_operand_ok): Add missing break after case 'X'.
3543 Change if statements to else if statements in default case.
3544 (extract_constrain_insn_cached): Fix misspelling of constrain_operands
3545 in comment.
3546 (constrain_operands_cached): Likewise.
3547 (constrain_operands): Change if statements to else if statements in
3548 default case.
3549 * reload.c (find_reloads): Likewise.
3550
3551 2003-10-29 Richard Henderson <rth@redhat.com>
3552
3553 * config/m68k/m68k.c (notice_update_cc): Clear cc status for
3554 shifts and rotates.
3555
3556 2003-10-30 Alan Modra <amodra@bigpond.net.au>
3557
3558 * config/rs6000/rs6000.md: Remove duplicate pattern.
3559
3560 2003-10-29 Hans-Peter Nilsson <hp@axis.com>
3561
3562 * real.c (do_divide): Initialize result with a 0.
3563
3564 * configure.in <enable-checking for valgrind>: Look for
3565 <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
3566 if it exists.
3567 * configure, config.in: Regenerate.
3568 * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
3569 HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use
3570 #elif for other alternatives.
3571 * ggc-page.c: Ditto.
3572 * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
3573 include structure from ggc-common.c.
3574
3575 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3576
3577 * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
3578 (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
3579 * pa.c (pa_adjust_insn_length): Check for btable branches using
3580 attribute TYPE_BTABLE_BRANCH.
3581 (pa_reorg): Simplify.
3582 * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
3583 (ASM_OUTPUT_ADDR_VEC_ELT): As above.
3584 (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
3585 * pa.md (btable_branch): New instruction type.
3586 (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
3587 btable branches.
3588 (define_delay): Add btable branches to insn types that may have an
3589 insn in the delay position.
3590 (Z2, Z3): Add btable branch to list.
3591 Simplify unamed pattern set copy pic_label_operand to register. Add
3592 PA 2.0 variant.
3593 (short_jump): New jump for use in branch tables.
3594 (casesi, casesi0): Revise for new branch table formats.
3595 (casesi32, casesi32p, casesi64p): New casesi patterns.
3596 (indirect_jump): Move.
3597
3598 2003-10-29 David Edelsohn <edelsohn@gnu.org>
3599
3600 * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
3601 !TARGET_POWERPC64.
3602 (UNITS_PER_GPR_WORD): Delete.
3603 (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
3604 (HARD_REGNO_MODE_OK): Same.
3605 (CLASS_MAX_NREGS): Same.
3606
3607 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3608
3609 * pa.h (ASM_COMMENT_START): Define.
3610
3611 2003-10-29 Zack Weinberg <zack@codesourcery.com>
3612
3613 * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
3614 MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
3615 component, not zero.
3616
3617 2003-10-29 Andreas Schwab <schwab@suse.de>
3618
3619 * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
3620
3621 2003-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
3622
3623 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
3624 Never return 1 for complex integral modes whose size is lesser or
3625 equal to a word.
3626 (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
3627 in the comment.
3628 (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
3629 modes.
3630 (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
3631 greater than 16 bytes by reference.
3632
3633 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3634
3635 * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
3636 not TARGET_ILP32.
3637 (ia64_initialize_trampoline): Use globalize_label target call.
3638
3639 2003-10-29 Andreas Schwab <schwab@suse.de>
3640
3641 * doc/install.texi (Building): Add a sentence about building Ada
3642 for a canadian cross.
3643
3644 2003-10-28 Zack Weinberg <zack@codesourcery.com>
3645
3646 * config/ia64/ia64.c (cmptf_libfunc): New static.
3647 (ia64_expand_compare): Add logic to open-code calls to
3648 _U_Qfcmp for TFmode comparisons.
3649 (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
3650 Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
3651 never be generated anymore.
3652 * config/ia64/ia64.md (cmptf): New expander.
3653
3654 2003-10-28 Zack Weinberg <zack@codesourcery.com>
3655
3656 * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
3657 (*sqrt_approx): New instruction pattern for approximate square roots.
3658 (*setf_exp_xf): New instruction pattern for exponentiation.
3659 (*maddxf4_alts_truncsf): New instruction pattern for truncation.
3660 (sqrtsf2_internal_thr): New define_and_split implementing
3661 throughput-optimized inline calculation of SFmode square root.
3662 (sqrtdf2_internal_thr): Likewise for DFmode.
3663 (sqrtxf2_internal_thr): Likewise for XFmode.
3664 (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
3665 latency- and throughput-optimized square root algorithms.
3666 * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
3667 TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
3668 New macros.
3669 (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
3670 -minline-sqrt-max-throughput.
3671 * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
3672 and -minline-sqrt-max-throughput are given, notify the user
3673 that both options cannot be used simultaneously.
3674 If -minline-sqrt-min-latency is given, notify the user that
3675 this mode is not yet implemented.
3676 (rtx_needs_barrier): Reformat initial comment to obey
3677 72-character width limit. Support UNSPEC_SETF_EXP and
3678 UNSPEC_FR_SQRT_RECIP_APPROX.
3679
3680 2003-10-29 Alan Modra <amodra@bigpond.net.au>
3681
3682 * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
3683 moves.
3684
3685 2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3686
3687 PR target/11598
3688 PR libgcj/10610
3689 * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
3690
3691 2003-10-28 Richard Earnshaw <rearnsha@arm.com>
3692
3693 * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
3694 an extra stack adjustment insn if the stack pointer is already
3695 pointing at the right place.
3696 (use_return_insn): Allow a return insn to be used when we have a
3697 frame pointer if the stack pointer is in the right place.
3698 (output_return_instruction): Handle it.
3699
3700 2003-10-28 Andreas Jaeger <aj@suse.de>
3701
3702 * ggc-zone.c (check_cookies): Add missing variable.
3703 Add void to prototypes.
3704
3705 2003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3706
3707 * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
3708 * crtstuff.c (__do_global_ctors_1): Move prototype.
3709 * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
3710 appropriate.
3711 * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
3712 Mark parameter with __attribute__((unused)).
3713
3714 2003-10-27 Zack Weinberg <zack@codesourcery.com>
3715
3716 * c-decl.c (pushdecl): Clarify comment.
3717
3718 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
3719
3720 * doc/install.texi: Update instructions for Ada cross builds
3721
3722 PR ada/5909:
3723 * doc/sourcebuild.texi: Document Ada test suite.
3724
3725 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
3726
3727 * config/m68hc11/m68hc11.c: Convert to ISO C90.
3728 * config/m68hc11/m68hc11-protos.h: Likewise.
3729
3730 2003-10-27 Jan Hubicka <jh@suse.cz>
3731 Eric Botcazou <ebotcazou@libertysurf.fr>
3732
3733 * toplev.c (enum dump_file_index, dump_file): Fix ordering of
3734 webizer pass dump.
3735
3736 2003-10-27 Jakub Jelinek <jakub@redhat.com>
3737 Jan Hubicka <jh@suse.cz>
3738
3739 * reload1.c (struct elim_table): Change offset, initial_offset and
3740 previous_offset fields to HOST_WIDE_INT.
3741 (offsets_at): Change from int to HOST_WIDE_INT.
3742 (reload): Adjust offsets_at initialization.
3743 (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
3744 (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
3745 * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
3746 to HOST_WIDE_INT. Don't save regs using mov for huge frame sizes
3747 if TARGET_64BIT.
3748 (pro_epilogue_adjust_stack): New function.
3749 (ix86_expand_prologue, ix86_expand_epilogue): Use it.
3750 * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
3751 (pro_epilogue_adjust_stack_1): Remove * in front of name.
3752 (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
3753 (pro_epilogue_adjust_stack_rex64_2): New insn.
3754
3755 * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
3756
3757 * config/i386/i386.c (ix86_expand_call): Replace 40 with
3758 FIRST_REX_INT_REG + 3 /* R11 */.
3759
3760 2003-10-26 Richard Henderson <rth@redhat.com>
3761
3762 * config/alpha/alpha.md (attr cannot_copy): New.
3763 (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
3764 prologue_ldgp_er_2, prologue_ldgp_1): Set it.
3765 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
3766
3767 2003-10-26 Daniel Berlin <dberlin@dberlin.org>
3768
3769 * ggc-zone.c: New file, zone allocating collector.
3770 * configure: Accept zone option for --with-gc
3771 * configure.in: Ditto.
3772 * ggc.h (ggc_pch_count_object): Pass bool indicating
3773 stringiness. Update all callers.
3774 (ggc_pch_alloc_object): Ditto.
3775 (ggc_pch_write_object): Ditto.
3776 (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
3777 type.
3778 (ggc_alloc_rtvec): Ditto.
3779 (ggc_alloc_tree): Use zone allocation, since some things using this macro
3780 aren't a single typecode.
3781 * ggc-none.c (ggc_alloc_typed): New function.
3782 (ggc_alloc_zone): Ditto.
3783 * ggc-page.c: Ditto on both functions.
3784
3785 2003-10-26 Gunther Nikl <gni@gecko.de>
3786
3787 * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
3788 frame information is always valid.
3789 (m68k_output_function_prologue): Remove superfluous TARGET_68881
3790 test; fix formatting.
3791
3792 2003-10-26 Gunther Nikl <gni@gecko.de>
3793
3794 * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
3795 reg_rev_mask computation.
3796 (m68k_output_function_prologue): Fix usage of current_frame (one typo
3797 and one missing); use reg_rev_mask not reg_mask.
3798 (m68k_output_function_epilogue): Fix usage of current_frame;
3799 use fpu_rev_mask not fpu_mask.
3800
3801 2003-10-26 Bernardo Innocenti <bernie@develer.com>
3802
3803 * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
3804 num_saved_regs, use current_frame.reg_no instead.
3805
3806 2003-10-26 Bernardo Innocenti <bernie@develer.com>
3807 Paul Dale <pauli@snapgear.com>
3808
3809 * doc/extend.texi (interrupt_handler): Add m68k to the
3810 list of processors implementing it.
3811 * doc/invoke.texi (-msep-data): Document new m68k option.
3812 (-mno-sep-data): Likewise.
3813 (-mid-shared-library): Likewise.
3814 (-mno-id-shared-library): Likewise.
3815 (-mshared-library-id): Likewise.
3816
3817 2003-10-26 Andreas Jaeger <aj@suse.de>
3818
3819 * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
3820 comparison.
3821 (_Unwind_SetGR): Likewise.
3822
3823 2003-10-26 Ottavio Campana <ottavio@campana.vi.it>
3824
3825 PR target/12690
3826 * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
3827
3828 2003-10-26 Gunther Nikl <gni@gecko.de>
3829
3830 * config/m68k/m68k.c (m68k_output_function_prologue): Move front
3831 comment from here to...
3832 (m68k_save_reg): ...here. Fix comment formatting.
3833 (m68k_output_function_prologue): Fix comment formatting.
3834 (m68k_output_function_epilogue): Likewise.
3835 (const_method): Likewise.
3836
3837 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
3838
3839 * toplev.c (default_get_pch_validity): Guard the use of
3840 target_options with #ifdef TARGET_OPTIONS.
3841 (default_pch_valid_p): Likewise.
3842
3843 2003-10-26 Andreas Jaeger <aj@suse.de>
3844 Zack Weinberg <zack@codesourcery.com>
3845 Andreas Tobler <toa@pop.agri.ch>
3846
3847 * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
3848 (output_die): Likewise.
3849 (print_die): Likewise.
3850
3851 2003-10-26 Andreas Jaeger <aj@suse.de>
3852
3853 * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
3854 dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
3855 dwarf2out.c change.
3856
3857 * toplev.c (default_pch_valid_p): Fix warning.
3858
3859 2003-10-25 Roger Sayle <roger@eyesopen.com>
3860
3861 * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
3862 RTL nodes. If an operator's operands are unchanged, return the
3863 original argument unchanged.
3864
3865 2003-10-26 Graham Stott <graham.stott@btinternet.com>
3866
3867 Fix bootstrap failure.
3868 * expmed.c (store_bit_field): Don't compare bitsize against
3869 modes with zero bit-size.
3870
3871 (extract_bit_field): Likewise
3872
3873 2003-10-25 Jan Hubicka <jh@suse.cz>
3874
3875 * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
3876 (cfa_loc): Likewise.
3877 (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
3878 HOST_WIDE_INT.
3879 (args_size, old_args_size): change type to HOST_WIDE_INT.
3880 (dwarf2out_def_cfa, dwarf2out_args_size,
3881 dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
3882 (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
3883 (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
3884 AT_offset): Use HOST_WIDE_INT.
3885 (based_loc_descr): offset is HOST_WIDE_INT.
3886 (add_data_member): Likewise.
3887 (add_const_value_attribute): Simplify.
3888
3889 2003-10-25 Richard Henderson <rth@redhat.com>
3890
3891 * config/i386/i386.c (ix86_eax_live_at_start_p): New.
3892 (ix86_expand_prologue): Save and restore eax around stack probe
3893 if it's live.
3894
3895 2003-10-25 Jan Hubicka <jh@suse.cz>
3896
3897 * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
3898
3899 2003-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3900
3901 PR target/12712
3902 * reg-stack.c (convert_regs_1): Create an arbitrary input stack
3903 if the block has no predecessors.
3904 (convert_regs_2): Document the problem with successors whose
3905 only predecessor is the block to be processed.
3906 (convert_regs): Don't create the arbitrary input stack here.
3907
3908 2003-10-24 Zack Weinberg <zack@codesourcery.com>
3909
3910 * genmodes.c (struct mode_data): Add contained and next_cont
3911 fields.
3912 (complete_mode): Maintain linked list of modes that have a
3913 given component.
3914 (emit_mode_unit_size): Delete.
3915 (emit_mode_nunits): New.
3916 (emit_insn_modes_c): Update to match.
3917 (emit_mode_adjustments): Propagate size and alignment
3918 adjustments from component modes to their containers.
3919 * machmode.h (mode_unit_size): Delete.
3920 (mode_nunits): New.
3921 (GET_MODE_NUNITS): Just return the value in the table.
3922 (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
3923 GET_MODE_SIZE.
3924 * expmed.c (store_bit_field, extract_bit_field): Can use a
3925 plain move instruction if bitsize >= GET_MODE_BITSIZE of
3926 destination/source mode, respectively.
3927 * varasm.c (assemble_real): Write out the full size of the
3928 constant, not just its bitsize.
3929 (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
3930
3931 * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
3932 Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
3933 alignment of XF and TF modes in compliance with ia64 ABIs.
3934 Can now hardwire the format of both modes.
3935 * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
3936 (general_tfmode_operand, destination_tfmode_operand)
3937 (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
3938 general_xfmode_operand, destination_xfmode_operand,
3939 xfreg_or_fp01_operand, spill_xfmode_operand respectively.
3940 (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
3941 and float80_type be 96 so they get XFmode. Use !TARGET_HPUX,
3942 not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
3943 __float128.
3944 * config/ia64/ia64.h: Default TARGET_HPUX to 0.
3945 Change TFmode to XFmode wherever appropriate. Remove all
3946 references to INTEL_EXTENDED_IEEE_FORMAT.
3947 (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
3948 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
3949 (PREDICATE_CODES): Update to match function renames.
3950 * config/ia64/ia64.md: Change TF to XF throughout; rename all
3951 patterns to match. Remove all references to
3952 INTEL_EXTENDED_IEEE_FORMAT. Update predicate calls to match
3953 function renames.
3954 * config/ia64/ia64-protos.c: Update all prototypes to match
3955 renamed functions.
3956 * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
3957 Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
3958 * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
3959 __divtf3; keep old name for backward compatibility.
3960 (L__compat): New section providing forwarding stubs for
3961 __fixtfti, __fixunstfti, __floattitf.
3962 * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
3963
3964 2003-10-24 Geoffrey Keating <geoffk@apple.com>
3965
3966 PR 10757
3967 * c-pch.c: Include target.h. Improve comments.
3968 (struct c_pch_validity): Add target_data_length.
3969 (pch_init): Add target's validity data.
3970 (c_common_valid_pch): Check target's validity data.
3971 * target-def.h (TARGET_GET_PCH_VALIDITY): New.
3972 (TARGET_PCH_VALID_P): New.
3973 (TARGET_INITIALIZER): Add new fields.
3974 * target.h: Include tm.h.
3975 (struct gcc_target): Add get_pch_validity, pch_valid_p.
3976 * toplev.h (default_get_pch_validity): New prototype.
3977 (default_pch_valid_p): New prototype.
3978 * toplev.c (default_get_pch_validity): New routine.
3979 (default_pch_valid_p): New routine.
3980 * Makefile.in (TARGET_H): Add TM_H. Replace all users of
3981 target.h with $(TARGET_H).
3982 (c-pch.o): Add TARGET_H.
3983 * doc/tm.texi (PCH Target): New node.
3984 (TARGET_GET_PCH_VALIDITY): Document.
3985 (TARGET_PCH_VALID_P): Document.
3986
3987 2003-10-24 Kelley Cook <kcook@gcc.gnu.org>
3988
3989 * Makefile.in: Define a vpath for %.texi. Remove explicit $(docdir)
3990 and $(docdir)/include from any *.texi dependencies.
3991 ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
3992 ($(docobjdir)/%.1): Depend on .pod instead of .texi.
3993 ($(docobjdir)/%.7): Likewise.
3994 (%.pod): New implicit rule.
3995 (cpp.pod): New dependency only rule.
3996 (gcc.pod): New intermediate rule with dependencies and commands.
3997 (gfdl.pod): Likewise.
3998 (fsf-funding.pod): Likewise.
3999
4000 2003-10-24 Nathanael Nerode <neroden@gcc.gnu.org>
4001
4002 * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
4003 related code.
4004 * fixinc/fixinc.ptx: Remove.
4005 * fixinc/fixinc.svr4: Remove.
4006
4007 2003-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4008
4009 * config/s390/s390.c (load_multiple_operation): Allow both SImode
4010 and DImode if word_mode is DImode.
4011 (store_multiple_operation): Likewise.
4012 * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
4013 ("*load_multiple_di"): Allow only if word_mode == DImode.
4014 ("movqi"): Use LLGC whenever TARGET_ZARCH.
4015 ("fix_truncdfsi2"): Fix incorrect temporary size.
4016 ("fix_truncsfsi2"): Likewise.
4017 ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
4018 string for function return value operand.
4019 ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
4020
4021 2003-10-24 Joseph S. Myers <jsm@polyomino.org.uk>
4022
4023 * c-parse.in (array_declarator): Use expr_no_commas.
4024 Fixes PR c/11943.
4025
4026 2003-10-24 Richard Sandiford <rsandifo@redhat.com>
4027
4028 * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
4029 associated includes in #ifndef inhibit_libc.
4030
4031 2003-10-24 Roger Sayle <roger@eyesopen.com>
4032
4033 * doc/libgcc.texi: Document some more of the libgcc API.
4034
4035 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
4036
4037 * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
4038 comparing a constant with small negative numbers and add costing
4039 for constants in conjunction with AND.
4040 (note_invalid_constants): Tidy previous change.
4041 (thumb_cmp_operand): Tidy.
4042 (thumb_cmpneg_operand): New function.
4043 * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
4044 for size.
4045 (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
4046 (PREDICATE_CODES): Add thumb_cmpneg_operand.
4047 * arm.md (cbranchsi4): Convert to define_expand. Handle comparison
4048 with a negative constant.
4049 (cbranchsi4_insn): Matcher for cbranchsi4.
4050 (cbranchsi4_scratch): Similar, but a scratch is available for
4051 handling negative constants.
4052 (movsi_cbranchsi4): New pattern.
4053 (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
4054 and use the TST instruction.
4055 (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
4056 (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
4057 cannot see high regs or memory alternatives.
4058 (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
4059
4060 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
4061
4062 * arm.c (note_invalid_constants): Try to extract the constant
4063 pool value using avoid_constant_pool_reference; only use
4064 get_pool_constant if that returns the original reference.
4065
4066 2003-10-24 Jan Hubicka <jh@suse.cz>
4067
4068 PR c++/12624
4069 * varasm.c (notice_global_symbol): Disqualify global registers.
4070
4071 2003-10-23 Roger Sayle <roger@eyesopen.com>
4072
4073 PR middle-end/11414
4074 * loop.c (load_mems): Use redirect_jump to forward jumps from
4075 the original loop end label to the new "loop sink" block's label.
4076
4077 2003-10-23 Roger Sayle <roger@eyesopen.com>
4078
4079 PR middle-end/12705
4080 * optabs.c (expand_binop): When expanding complex operations
4081 inline, always calculate result into a new temporary register.
4082 Minor code clean-ups.
4083
4084 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4085
4086 * objc/lang-specs.h: Handle -print-objc-runtime-info.
4087 * doc/invoke.texi (Objective-C Dialect Options): Document it.
4088
4089 2003-10-24 Danny Smith <dannysmith@users.sourceforge.net>
4090
4091 * config/i386/cygwin.asm: Add copyright notice. Add comment
4092 on why this code is needed.
4093
4094 2003-10-23 Kazu Hirata <kazu@cs.umass.edu>
4095
4096 * config/h8300/clzhi2.c: Fix warnings.
4097 * config/h8300/ctzhi2.c: Likewise.
4098 * config/h8300/fixunssfsi.c: Likewise.
4099 * config/h8300/parityhi2.c: Likewise.
4100 * config/h8300/popcounthi2.c: Likewise.
4101
4102 2003-10-23 James E Wilson <wilson@specifixinc.com>
4103
4104 * gcc.c (option_map): Delete --target and --use-version.
4105
4106 2003-10-23 Fariborz Jahanian <fjahanian@apple.com>
4107 David Edelsohn <edelsohn@gnu.org>
4108
4109 * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
4110 TARGET_POWREPC64.
4111 (UNITS_PER_GPR_WORD): Define.
4112 (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
4113 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
4114 (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
4115 (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
4116 * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
4117 DFmode and DImode in 32-bit ABI / 64-bit computation mode.
4118 (rs6000_emit_prologue): Select reg_mode and reg_size using
4119 TARGET_32BIT, not TARGET_POWERPC64.
4120 (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
4121 ABI / 64-bit computation mode
4122
4123 2003-10-22 Andrew Haley <aph@redhat.com>
4124
4125 * toplev.c (output_file_directive): Allow for null input_name.
4126
4127 2003-10-22 Waldek Hebisch <hebisch@math.uni.wroc.pl>
4128
4129 * config/i386/i386.c (classify_argument): Handle SET_TYPE.
4130
4131 2003-10-22 Chris Demetriou <cgd@broadcom.com>
4132
4133 * configure.in: In --enable-generated-files-in-srcdir option
4134 handling, fix default case handling.
4135 * configure: Regenerate.
4136
4137 2003-10-22 Phil Edwards <phil@codesourcery.com>
4138
4139 * config.gcc: Update *-*-vxworks* generic hook and comments.
4140 (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
4141 mips-wrs-windiss, sh-wrs-vxworks): New stanzas.
4142 * genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly.
4143 * config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it.
4144 * config/windiss.h: New file.
4145 * config/arm/t-vxworks: New file.
4146 * config/arm/vxworks.h: New file.
4147 * config/i386/t-vxworks: New file.
4148 * config/i386/vxworks.h: New file.
4149 * config/mips/t-vxworks: New file.
4150 * config/mips/vxworks.h: New file.
4151 * config/mips/windiss.h: New file.
4152 * config/sh/t-vxworks: New file.
4153 * config/sh/vxworks.h: New file.
4154
4155 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
4156
4157 * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
4158 (h8300_saveall_function_p): New.
4159 (h8300_insert_attributes): Insert the saveall attribute if
4160 #pragma saveall is specified.
4161 (h8300_attribute_table): Add saveall.
4162 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
4163 * doc/extend.texi: Mention the saveall attribute.
4164
4165 2003-10-22 Joseph S. Myers <jsm@polyomino.org.uk>
4166
4167 * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
4168 deprecation of casts as lvalues.
4169 * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
4170 * fixinc/fixincl.x: Regenerate.
4171 * fixinc/tests/base/obstack.h: New test.
4172
4173 2003-10-22 Andreas Schwab <schwab@suse.de>
4174
4175 PR target/12676
4176 * config/m68k/m68k.c (output_addsi3): Fix range check to work on
4177 LP64 platforms.
4178
4179 2003-10-22 Jan Hubicka <jh@suse.cz>
4180
4181 * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
4182 presence of DW_AT_inline.
4183 (gen_subprogram_die): Likewise; do not abort instead of emitting
4184 DW_AT_not_inline.
4185
4186 2003-10-22 Jan Hubicka <jh@suse.cz>
4187
4188 * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
4189 global info is not ready.
4190
4191 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
4192
4193 * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
4194
4195 2003-10-22 Ulrich Weigand <uweigand@de.ibm.com>
4196
4197 * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
4198 ("*movstr_short"): ... into this insn pattern.
4199 ("movstr_short"): New expander.
4200 ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
4201 ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
4202 ("movstr_long"): New expander.
4203 ("clrstr_short_64", "clrstr_short_31"): Merge ...
4204 ("*clrstr_short"): ... into this insn pattern.
4205 ("clrstr_short"): New expander.
4206 ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
4207 ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
4208 ("clrstr_long"): New expander.
4209 ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
4210 ("*cmpmem_short"): ... into this insn pattern.
4211 ("cmpmem_short"): New expander.
4212 ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
4213 ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
4214 ("cmpmem_long"): New expander.
4215 * config/s390/s390.c (s390_expand_movstr): Use new expanders.
4216 (s390_expand_clrstr): Likewise.
4217 (s390_expand_cmpmem): Likewise.
4218
4219 2003-10-22 Mark Mitchell <mark@codesourcery.com>
4220
4221 * c-pch.c (struct c_pch_validity): Add pch_init field.
4222 (pch_init): Set it.
4223 (c_common_valid_pch): Check it.
4224
4225 2003-10-22 David Taylor <dtaylor@emc.com>
4226
4227 PR debug/12500
4228 * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
4229
4230 2003-10-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4231
4232 * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
4233 alpha_return_in_memory if no VALTYPE specified.
4234
4235 2003-10-22 Jan Hubicka <jh@suse.cz>
4236
4237 PR debug/12389
4238 * Makefile.in (dwarf2out.o): Depend on cgraph.h.
4239 * cgraph.c (cgraph_function_possibly_inlined_p): New function.
4240 * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
4241 (cgraph_global_info): Add flag inlined
4242 * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
4243 cgraph_function_possibly_inded_p
4244 * cgraphunit.c (mark_inline): Set inlined flag.
4245 * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
4246 only for possibly inlined functions.
4247 * c-decl.c (duplicate_decls): Never output abstract DIE representing old
4248 body of function.
4249
4250 2003-10-22 Andrew Haley <aph@redhat.com>
4251
4252 * varasm.c (output_constructor): Make constructor annotation
4253 conditional on ASM_COMMENT_START.
4254
4255 2003-10-21 Jason Merrill <jason@redhat.com>
4256
4257 * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
4258 (get_narrower): Likewise.
4259
4260 * stor-layout.c (layout_decl): Do packed field alignment for
4261 bit-fields, too.
4262
4263 2003-10-21 Eric Christopher <echristo@redhat.com>
4264
4265 * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
4266
4267 2003-10-21 Geoffrey Keating <geoffk@apple.com>
4268
4269 * c-pch.c: Add comments in various places.
4270 (struct c_pch_validity): Add the lengths of various strings.
4271 (host_machine): New static.
4272 (target_machine): New static.
4273 (get_ident): Bump version number.
4274 (pch_init): Write out version, host, target validity data.
4275 (c_common_valid_pch): Check version, host, target.
4276 * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
4277 TARGET_MACHINE.
4278
4279 2003-10-21 Jason Merrill <jason@redhat.com>
4280
4281 * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
4282 (EXPR_P): New macro.
4283
4284 2003-10-21 Zack Weinberg <zack@codesourcery.com>
4285
4286 * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
4287 * config/ia64/ia64.c (ia64_expand_fetch_and_op,
4288 ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
4289 DImode. Use convert_move to load ar.ccv.
4290 (ia64_expand_compare_and_swap): Likewise.
4291 If expand_expr doesn't put 'old' and 'new' in the proper
4292 modes, run them through convert_to_mode.
4293
4294 2003-10-21 Eric Christopher <echristo@redhat.com>
4295
4296 * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
4297 for too large bitfields.
4298
4299 2003-10-21 Mark Mitchell <mark@codesourcery.com>
4300
4301 * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
4302
4303 2003-10-21 Andrew Haley <aph@redhat.com>
4304
4305 * varasm.c (output_constructor): Annotate constructor.
4306
4307 2003-10-21 Mark Mitchell <mark@codesourcery.com>
4308
4309 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
4310 on existence of destination file.
4311
4312 2003-10-21 Jan Hubicka <jh@suse.cz>
4313
4314 * haifa-sched.c (choose_ready): Initialize index.
4315
4316 2003-10-21 Jason Merrill <jason@redhat.com>
4317
4318 * tree.c (build1): Fix off-by-one error.
4319
4320 2003-10-21 Robert Millan <robertmh@gnu.org>
4321
4322 * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
4323 * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
4324 * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
4325 * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
4326
4327 2003-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
4328
4329 * web.c: Fix various comments.
4330
4331 2003-10-20 Nicolas Pitre <nico@cam.org>
4332
4333 * config/arm/arm.c (arm_override_options): Set arm_constant_limit
4334 to 2 instead of 1 when optimize_size is true. Gather code based on
4335 optimize_size together. Add comment about XScale load latency.
4336
4337 2003-10-21 Gunther Nikl <gni@gecko.de>
4338
4339 * config/m68k/m68k.c (m68k_output_function_prologue): Remove
4340 obsolete comments.
4341
4342 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
4343
4344 * Makefile.in: Get parsedir and docobjdir from configure.
4345 * configure.in: Recogonize --enable-generated-files-in-srcdir.
4346 Pass along parsedir and docobjdir.
4347 * configure: Regenerate.
4348 * doc/install.texi: Document --enable-generated-files-in-srcdir.
4349
4350 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
4351
4352 * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
4353 included.
4354
4355 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
4356
4357 * c-common.c (expand_tree_builtin): Ensure creal and cimag
4358 functions do not return lvalues.
4359
4360 2003-10-20 Jason Merrill <jason@redhat.com>
4361
4362 PR c/12553
4363 * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
4364 appropriately.
4365
4366 PR c/11446
4367 * stor-layout.c (layout_decl): Fix alignment handling.
4368
4369 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
4370
4371 * doc/extend.texi: Deprecate casts as lvalues.
4372
4373 2003-10-20 Jan Hubicka <jh@suse.cz>
4374
4375 * toplev.c (rest_of_compilation): Fix webizer pass ordering.
4376
4377 * cgraphunit.c (decide_is_function_needed): Fix test dealing
4378 with functions implicitly made inline.
4379
4380 * cgraphunit.c (cgraph_decide_inlining_incrementally): New function.
4381 (cgraph_finalize_function): Use it.
4382 (cgraph_mark_inline): Allow incrmental decisions
4383 * invoke.texi (max-inline-slope, min-inline-insns): Kill.
4384 * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
4385 * tree-inline.c (limits_allow_inlining): Kill.
4386 (expand_call_inline): Always use unit-at-a-time path.
4387
4388 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4389
4390 * fixinc/inclhack.def (hpux11_snprintf): New edit.
4391 * fixinc/fixincl.x: Regenerate.
4392 * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
4393
4394 2003-10-20 Mark Mitchell <mark@codesourcery.com>
4395
4396 * Makefile.in (install-info): Simplify.
4397 ($(DESTDIR)$(infodir)/%.info): New rule.
4398 * configure.in (target_list): Remove install-info.
4399 * doc/.cvsignore (gcc.info*): Remove.
4400 (gccint.info*): Likewise.
4401 (gccinstall.info*): Likewise.
4402 (cpp.info*): Likewise.
4403 (cppinternals.info*): Likewise.
4404 (*.info*): Add it.
4405 * doc/sourcebuild.texi: Update description of install-info.
4406 * objc/Make-lang.in (objc.install-info): Remove.
4407
4408 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4409
4410 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
4411 Use it in _MIPS_SIM definition.
4412 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
4413
4414 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4415
4416 * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
4417 virtual register, but only if file == asm_out_file.
4418 * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
4419 for ARG_POINTER_REGNUM.
4420
4421 2003-10-20 Zack Weinberg <zack@codesourcery.com>
4422
4423 * c-common.c (registered_builtin_types): New static.
4424 (c_common_type_for_mode): Consult registered_builtin_types.
4425 (c_register_builtin_type): Add type to registered_builtin_types.
4426 * optabs.c (init_floating_libfuncs): Initialize libfuncs for
4427 all MODE_FLOAT modes, not just the ones corresponding to
4428 float_type_node, double_type_node, and long_double_type_node.
4429
4430 2003-10-20 Richard Henderson <rth@redhat.com>
4431
4432 * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
4433 * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
4434
4435 2003-10-20 Dorit Naishlos <dorit@il.ibm.com>
4436
4437 * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
4438 support new flag -minsert-sched-nops.
4439 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
4440 * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
4441 support new flag -minsert-sched-nops.
4442 (is_cracked_insn, is_microcoded_insn): New functions.
4443 (rs6000_sched_finish): New function.
4444 (rs6000_issue_rate): Return 5 for power4.
4445 (get_next_active_insn, insn_terminates_group_p): New
4446 functions.
4447 (is_costly_group, force_new_group): New functions.
4448 (redefine_groups, pad_groups): New functions.
4449 (rs6000_variable_issue): Use new functions.
4450 * doc/invoke.texi (-minsert-sched-nops): Document new
4451 option.
4452
4453 2003-10-20 David S. Miller <davem@redhat.com>
4454
4455 * config/sparc/sparc.md (type attribute): Add new insn types
4456 fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
4457 (patterns emitting VIS insns): Use them.
4458 * config/sparc/ultra1_2.md: Add VIS scheduling rules.
4459 * config/sparc/ultra3.md: Likewise.
4460
4461 2003-10-20 Falk Hueffner <falk@debian.org>
4462
4463 PR target/12654
4464 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
4465 comparison against constant by adjusting the argument except for
4466 EQ and NE.
4467
4468 2003-10-19 Mark Mitchell <mark@codesourcery.com>
4469
4470 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
4471 arm1136jfs, and armv6j.
4472 * config/arm/arm.c (FL_ARCH6J): New macro.
4473 (FL_VFPV2): Likewise.
4474 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
4475 and arm1136jfs.
4476 (all_architectures): Add entry for armv6j.
4477 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
4478 arm1136js, and arm1136jfs.
4479 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
4480 (TARGET_CPU_arm1026ej_s): Likewise.
4481 (TARGET_CPU_arm1136j_s): Likewise.
4482 (TARGET_CPU_arm1136jf_s): Likewise.
4483 * doc/invoke.texi: Document new ARM cores and architecture
4484 variants.
4485
4486 2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4487
4488 * Makefile.in (toplev.o): Add value-prof.h dependency.
4489 (value-prof.o): Add REGS_H dependency.
4490 * common.opt (fprofile-values, fvpt): New.
4491 * flags.h (flag_value_profile_transformations): Declare.
4492 * opts.c (common_handle_option): Handle -fprofile_values and
4493 -fvpt.
4494 * profile.c (branch_prob): Don't remove death notes here.
4495 * timevar.def (TV_VPT): New.
4496 * value-prof.c: Include regs.h.
4497 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
4498 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
4499 mod_subtract_transform, value_profile_transformations): New.
4500 (insn_values_to_profile): Call insn_divmod_values_to_profile.
4501 (find_values_to_profile): Add dumps.
4502 * value-prof.h (value_profile_transformations): Declare.
4503 * toplev.c: Include value-prof.h.
4504 (rest_of_handle_value_profile_transformations): New.
4505 (enum dump_file_index): Add DFI_vpt.
4506 (dump_file): Add vpt dump.
4507 (flag_value_profile_transformations): New.
4508 (lang_independent_options): Add flag_profile_values and
4509 flag_value_profile_transformations.
4510 (rest_of_compilation): Call
4511 rest_of_handle_value_profile_transformations.
4512 (process_options): Let -fvpt imply -fprofile-values.
4513 * doc/invoke.texi (-fvpt): Document.
4514
4515 2003-10-19 Jan Hubicka <jh@suse.cz>
4516
4517 * i386.c (print_reg): Do not abort on certain registers.
4518
4519 PR optimization/12612
4520 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
4521 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
4522 match_scratch; avoid bogus paralles.
4523
4524 PR target/12674
4525 * i386.c (ix86_function_regparm): Disable implicit register passing
4526 conventions when profiling.
4527
4528 2003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
4529 Richard Henderson <rth@redhat.com>
4530
4531 PR optimization/8178
4532 * config/i386/i386.md (*movsi_zero): Delete.
4533 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
4534
4535 2003-10-19 Richard Henderson <rth@redhat.com>
4536
4537 * config/alpha/alpha.c (fix_operator): New.
4538 (divmod_operator): Tidy.
4539 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
4540 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
4541 (PREDICATE_CODES): Update.
4542 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
4543 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
4544 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
4545 (fix_truncsfdi_ieee): Likewise.
4546 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
4547 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
4548 * config/alpha/alpha-protos.h: Update.
4549
4550 2003-10-19 Richard Sandiford <rsandifo@redhat.com>
4551
4552 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
4553 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
4554 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
4555 constant operands.
4556
4557 2003-10-18 Kazu Hirata <kazu@cs.umass.edu>
4558
4559 * doc/extend.texi: Fix typos.
4560 * doc/invoke.texi: Likewise.
4561
4562 2003-10-18 Nicolas Pitre <nico@cam.org>
4563
4564 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
4565 XScale optimizations not arm_arch_xscale.
4566 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
4567
4568 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
4569
4570 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
4571 * config/s390/s390.c (shift_count_operand): New function.
4572 (s390_extra_constraint): Use it to implement 'Y' constraint.
4573 (print_shift_count_operand): New function.
4574 (print_operand): Use it to implement '%Y'.
4575 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
4576 (PREDICATE_CODES): Add shift_count_operand.
4577 * config/s390/s390.md ("rotldi3"): Merge alternatives,
4578 using "shift_count_operand" predicate and "Y" constraint,
4579 and "%Y" to output the combined shift count.
4580 ("rotlsi3"): Likewise.
4581 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
4582 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
4583 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
4584 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
4585 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
4586 ("lshrsi3"): Likewise.
4587
4588 2003-10-18 Gunther Nikl <gni@gecko.de>
4589
4590 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
4591 argument to asm_fprintf statement.
4592
4593 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
4594
4595 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
4596 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
4597 a "long long" argument.
4598
4599 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
4600
4601 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
4602 as well.
4603
4604 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
4605
4606 * rtl.h (rtl_size): Declare.
4607 (rtunion): Remove rtwint.
4608 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
4609 (RTX_HDR_SIZE, RTX_SIZE): New macros.
4610 (RTL_CHECK1): Adjust for new rtx_def layout.
4611 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
4612 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
4613 (X0WINT): Remove.
4614 (X0ANY): New macro.
4615 * rtl.def: Adjust comments for new rtx_def layout.
4616 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
4617 number of slots.
4618 * rtl.c (rtx_size): New array.
4619 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
4620 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
4621 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
4622 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
4623 * emit-rtl.c (copy_most_rtx): Likewise.
4624 (copy_rtx_if_shared): Use RTX_SIZE.
4625 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
4626 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
4627 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
4628 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
4629 an array. Adjust output for new rtx_def layout.
4630 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
4631 * reload1.c (eliminate_regs): Use RTX_SIZE.
4632 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
4633 * gdbinit.in (pi): Likewise.
4634
4635 2003-10-18 Jan Hubicka <jh@suse.cz>
4636
4637 * integrate.c (copy_decl_for_inlining): Revert previous patch.
4638
4639 2003-10-18 Jan Hubicka <jh@suse.cz>
4640
4641 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
4642
4643 2003-10-18 Roger Sayle <roger@eyesopen.com>
4644
4645 * libgcc.texi: Group multi-word types, such as "long double" and
4646 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
4647 Document __unord?f2 as returning a non-zero value, not just one.
4648
4649 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
4650
4651 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
4652 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
4653
4654 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4655
4656 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
4657 match_operand.
4658
4659 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4660
4661 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
4662 parameter packed_p. Search for a DECL_PACKED field only if
4663 packed_p is false. Pass packed_p recursively.
4664 (function_arg_record_value_2): Likewise.
4665 (function_arg_record_value): Update calls to
4666 function_arg_record_value_1 and function_arg_record_value_2.
4667
4668 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4669
4670 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
4671 was successfully forced to memory before using the result.
4672
4673 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4674
4675 PR optimization/8178
4676 * config/i386/i386.md (*movsi_zero): New insn to set
4677 a register to zero on TARGET_USE_MOV0 targets.
4678
4679 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
4680
4681 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
4682 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
4683
4684 2003-10-17 David Edelsohn <edelsohn@gnu.org>
4685
4686 * doc/invoke.texi (gcse-las): Fix typo.
4687
4688 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4689
4690 * doc/install.texi: Remove first part of the sentence for
4691 zsh not working. Change gcc to GCC.
4692
4693 PR bootstrap/12546
4694 * doc/install.texi: Document that zsh does not work when
4695 configuring gcc.
4696
4697 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
4698
4699 * config/ptx4.h: Switch to DWARF 2; update comments.
4700
4701 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
4702 Hartmut Penner <hpenner@de.ibm.com>
4703
4704 PR 10404, partial 11591, partial 11601
4705 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
4706 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
4707 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
4708 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
4709 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
4710 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
4711 (altivec_expand_stv_builtin): Adjust for the memory_operand.
4712 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
4713 (altivec_init_builtins): Use `long int' for memory offsets.
4714
4715 2003-10-17 Jan Hubicka <jh@suse.cz>
4716
4717 * opts.c (common_handle_option): Handle OPT_fweb
4718 * invoke.texi (-fweb): Add missing parts of documentation.
4719
4720 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4721
4722 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
4723 before redefinition.
4724
4725 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
4726
4727 * common.opt: Add description of the new -fgcse-las flag.
4728 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
4729 * gcse.c (hash_scan_set): Handle the case of store expression and
4730 insert the memory expression to the hash table, this way we make it
4731 possible to discover redundant loads after stores and remove them.
4732 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
4733 to pre_insert_copies, it is not the correct place to call it after
4734 adding stores to be in the available expression hash table.
4735 (pre_insert_copies): Added the call to update_ld_motion_stores when
4736 one or more copies were inserted.
4737 * opts.c (common_handle_option): Handle the -fgcse-las flag.
4738 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
4739
4740 * doc/invoke.tex: Document new -fgcse-las flag.
4741
4742 2003-10-18 Alan Modra <amodra@bigpond.net.au>
4743
4744 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
4745 for posterity, then remove it.
4746
4747 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4748 Nathan Sidwell <nathan@codesourcery.com>
4749
4750 * config/arm/arm.c (use_return_insn): Not a single instruction, if
4751 there's a frame pointer.
4752 (arm_output_epilogue): Protect stack pointer from being corrupted
4753 on interrupt.
4754
4755 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
4756
4757 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
4758
4759 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
4760
4761 * combine.c (simplify_set): Do not clear out undobuf.other_insn
4762 already set elsewhere.
4763
4764 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
4765
4766 * config/i386/i386.c (ix86_expand_prologue): Use
4767 gen_allocate_stack_worker.
4768
4769 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4770
4771 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
4772 without gas.
4773 (mips-sgi-irix6*): Likewise.
4774
4775 * config/mips/iris6gas.h: New file.
4776 * gcc/config.gcc (mips-sgi-irix6*): Use it.
4777
4778 * config/mips/mips.h (TARGET_IRIX): Provide default.
4779 (TARGET_IRIX5): Likewise.
4780 (TARGET_SGI_O32_AS): Likewise.
4781 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
4782 (TARGET_IRIX5): Likewise.
4783 * config/mips/iris6.h (TARGET_IRIX6): Remove.
4784 (TARGET_IRIX5): Redefine as 0.
4785
4786 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
4787 linker workaround with TARGET_IRIX and mips_abi instead of
4788 ASM_OUTPUT_UNDEF_FUNCTION.
4789 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
4790 testing TARGET_IRIX and mips_abi explicitly.
4791 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
4792 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
4793
4794 * config/mips/mips.c (irix_output_external_libcall): Renamed from
4795 mips_output_external_libcall.
4796 Use new TARGET_IRIX in guard.
4797 * config/mips/mips-protos.h (irix_output_external_libcall): Match
4798 this.
4799 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
4800
4801 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
4802 Define as 0.
4803
4804 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
4805 depending on mips_abi.
4806 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
4807 * config/mips/mips.c (mips_output_function_prologue): Test
4808 FUNCTION_NAME_ALREADY_DECLARED at runtime.
4809 (mips_output_function_epilogue): Likewise.
4810 (build_mips16_function_stub): Likewise.
4811 (build_mips16_call_stub): Likewise.
4812 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
4813 default.
4814
4815 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
4816 IRIX 6 O32 assembler.
4817 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
4818 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
4819 _MIPS_SIM for O32 ABI.
4820 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
4821 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
4822 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
4823 Integrate O32 version.
4824 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
4825 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
4826 O32 ABI.
4827 (BSS_SECTION_ASM_OP_32): Define.
4828 (BSS_SECTION_ASM_OP_64): Likewise.
4829 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
4830 using them.
4831 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
4832 Move up to allow override for O32 ABI without GNU as.
4833 (EH_FRAME_SECTION_NAME): Define explicitly.
4834 (MUST_USE_SJLJ_EXCEPTIONS): Define.
4835 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
4836 DTORS_SECTION_ASM_OP): Dummy definitions.
4837 (TARGET_ASM_NAMED_SECTION): Undef statically.
4838 (EH_FRAME_SECTION_NAME): Likewise.
4839 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
4840 (LINK_SPEC): Only use default options -call_shared -no_unresolved
4841 without -r.
4842 Don't pass -init, -fini with -mabi=32.
4843 (COLLECT_PARSE_FLAG): Define.
4844
4845 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
4846 TARGET_IRIX.
4847 Renamed to use irix_ prefix.
4848 (iris6_asm_named_section): Likewise.
4849 (iris_section_align_entry_eq): Likewise.
4850 (iris_section_align_entry_hash): Likewise.
4851 (iris6_file_start): Likewise.
4852 (iris6_section_align_1): Likewise.
4853 (iris6_file_end): Likewise.
4854 (iris6_section_type_flags): Likewise.
4855 (iris_section_align_htab): Likewise.
4856 (iris_orig_asm_out_file): Likewise.
4857 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
4858 (TARGET_ASM_FILE_END): Likewise.
4859 (TARGET_SECTION_TYPE_FLAGS): Likewise.
4860
4861 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
4862 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
4863 override_options instead.
4864 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4865 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
4866 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
4867 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
4868 assemblers.
4869 Likewise for constructor/destructor handling.
4870 (override_options): Handle IRIX O32 assembler quirks.
4871 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
4872 without gas.
4873 (mips_file_start): Use new TARGET_IRIX.
4874 (mips_declare_object_name): No special processing for IRIX O32
4875 assembler.
4876 (mips_finish_declare_object): Likewise.
4877 (irix_asm_output_align): Renamed from iris6_asm_output_align.
4878 Don't record alignment for O32 ABI.
4879 (irix_file_start): Renamed from iris6_file_start.
4880 Return early for O32 ABI.
4881 (irix_file_end): Renamed from iris6_file_end.
4882 Don't emit .section directives for O32 ABI.
4883 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
4884 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
4885
4886 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
4887 (MULTILIB_OSDIRNAMES): Likewise.
4888
4889 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4890
4891 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
4892 (main): Use it.
4893 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
4894
4895 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4896
4897 * arm-modes.def (CC_Nmode): New condition code mode.
4898 * arm.c (thumb_condition_code): Delete.
4899 (arm_select_cc_mode): Handle single-bit test for Thumb.
4900 (arm_print_operand, cases 'd' and 'D'): Don't special case the
4901 condition code logic for Thumb.
4902 (get_arm_condition_code): Handle CC_Nmode.
4903 (thumb_cbrch_target_operand): New function.
4904 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
4905 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
4906 * arm.md: Add Thumb split patterns for zero_extract and
4907 sign_extract.
4908 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
4909 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
4910 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
4911 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
4912 (cbranchne_decr1): Re-work to use CC_Nmode.
4913
4914 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
4915 by the return instruction. Add a use of the link register if it
4916 wasn't stored.
4917
4918 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4919
4920 * flow.c (init_propagate_block_info): Don't abort if a conditional
4921 jump is not a comparison of a register. Instead, just don't record
4922 conditional life information.
4923
4924 2003-10-16 Jan Hubicka <jh@suse.cz>
4925
4926 PR optimization/12630
4927 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
4928 for operands 7 and 8.
4929
4930 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
4931
4932 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
4933
4934 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
4935
4936 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
4937
4938 * config/i386/winnt.c (gen_stdcall_suffix): Make static
4939 (gen_fastcall_suffix): Likewise.
4940 (i386_pe_dllexport_p): Likewise.
4941 (i386_pe_dllimport_p): Likewise.
4942 (i386_pe_mark_dllexport): Likewise.
4943 (i386_pe_mark_dllimport): Likewise.
4944 (i386_pe_asm_named_section): Fix formatting.
4945
4946 2003-10-16 Zack Weinberg <zack@codesourcery.com>
4947
4948 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
4949 * system.h: Declare snprintf if necessary.
4950 * configure, config.in: Regenerate.
4951
4952 2003-10-15 David Edelsohn <edelsohn@gnu.org>
4953
4954 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
4955 arguments if TARGET_ALTIVEC_ABI.
4956
4957 2003-10-15 Roger Sayle <roger@eyesopen.com>
4958
4959 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
4960 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
4961 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
4962 New functions.
4963 (expand_builtin_memcpy): Use integer_zerop instead of testing
4964 host_integerp and tree_low_cst directly. Move misapplied hunk
4965 for optimization wher SRC and DEST point to the same location.
4966 (expand_builtin_mempcpy): From here.
4967 (expand_builtin_memmove): Use integer_zerop instead of testing
4968 host_integerp and tree_low_cst_directly.
4969 (expand_builtin_memset): Likewise.
4970 (expand_builtin_memcmp): Likewise (and for integer_onep).
4971 (expand_builtin_strncmp): Likewise.
4972 (fold_builtin): Call the appropriate fold_builtin_foo functions
4973 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
4974 strcmp and strncmp.
4975
4976 2003-10-15 Geoffrey Keating <geoffk@apple.com>
4977
4978 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
4979 prototype. Clean up some whitespace.
4980 * config/darwin.c: Use gen_rtx_FOO (...) rather than
4981 gen_rtx (FOO, ...).
4982 (machopic_non_lazy_ptr_name): Make static.
4983 (name_needs_quotes): Allow '.' and '$' unquoted.
4984 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
4985 case.
4986
4987 2003-10-15 Gábor Lóki <alga@rgai.hu>
4988
4989 * fold-const.c (tree_swap_operands_p): Disable some features
4990 when optimizing for size.
4991
4992 2003-10-15 David Daney <ddaney@avtrex.com>
4993
4994 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
4995 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
4996 from leaf functions.
4997 (DWARF_FRAME_RETURN_COLUMN): Ditto.
4998 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
4999 by MD_FALLBACK_FRAME_STATE_FOR.
5000 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
5001
5002 2003-10-15 Zack Weinberg <zack@codesourcery.com>
5003
5004 * genmodes.c: Include hashtab.h.
5005 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
5006 (adj_bytesize, adj_alignment, adj_format, new_adjust)
5007 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
5008 (print_maybe_const_decl, emit_mode_adjustments): New.
5009 (known_modes): Rename to modes.
5010 (find_mode): Kill class argument; look up in hash table.
5011 (new_mode): Insert into hash table also.
5012 (new_adjust): New.
5013 (reset_float_format, make_partial_integer_mode)
5014 (make_vector_mode): Tweak error reporting.
5015 (reset_float_format): Correct type of fourth argument.
5016 (emit_insn_modes_h): Add #defines to help make mode_size,
5017 mode_base_align, and real_format_for_mode conditionally const.
5018 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
5019 (emit_real_format_for_mode): Likewise, but temporarily disabled.
5020 (emit_insn_modes_c): Call emit_mode_adjustments.
5021 (main): Initialize modes_by_name.
5022 * Makefile.in: Update dependencies.
5023 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
5024 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
5025 declarations of mode_size and mode_base_align. Declare
5026 init_adjust_machine_modes.
5027 * toplev.c (backend_init): Call init_adjust_machine_modes.
5028
5029 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
5030
5031 * genmodes.c (calc_wider_mode): Allocate enough room for all the
5032 entries we'll possibly assign in the sort buffer.
5033
5034 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
5035
5036 * config.gcc (s390x-ibm-tpf*): New target.
5037 * doc/install.texi: Document it.
5038 * config/s390/t-tpf: New file.
5039 * config/s390/tpf.h: New file.
5040
5041 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
5042
5043 PR target/12598
5044 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
5045 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
5046 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
5047 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
5048 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
5049 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
5050 replace_equiv_address, not gen_rtx_MEM.
5051 * config/cris/cris.c (cris_mem_op): New match_operator function.
5052 (cris_notice_update_cc): Use replace_equiv_address, not
5053 gen_rtx_MEM.
5054 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
5055
5056 2003-10-15 Bernardo Innocenti <bernie@develer.com>
5057
5058 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
5059 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
5060 definitions after the other flags.
5061
5062 2003-10-14 Ziemowit Laski <zlaski@apple.com>
5063
5064 * c-parse.in (methoddef, methodproto): Call objc_add_method()
5065 instead of add_method().
5066 * objc/objc-act.c (objc_check_decl): Do not check for
5067 constant_string_type.
5068 (add_method): Rename to objc_add_method().
5069 (really_start_method): Call objc_add_method() instead of
5070 add_method().
5071 * objc/objc-act.h (add_method): Rename to objc_add_method().
5072
5073 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
5074
5075 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
5076 (s390_slb_comparison): Likewise.
5077 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
5078 New functions.
5079 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
5080 and s390_slb_comparison.
5081 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
5082 zSeries machines.
5083 ("*adddi3_31z", "*subdi3_31z"): New insns.
5084 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
5085 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
5086 New insns.
5087
5088 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
5089
5090 * configure.in: Clean up some feedback echoes.
5091 * configure: Regenerate.
5092
5093 * aclocal.m4: Properly quote names of macros being defined.
5094
5095 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
5096
5097 2003-10-14 Steve Ellcey <sje@cup.hp.com>
5098
5099 * config/ia64/ia64.c (ia64_expand_call): Force function address
5100 to DImode.
5101 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
5102
5103 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
5104
5105 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
5106 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
5107 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
5108 "*divsf3_ibm"): Likewise.
5109
5110 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
5111
5112 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
5113 target_alias with target_noncanonical.
5114
5115 2003-10-14 Geoffrey Keating <geoffk@apple.com>
5116
5117 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
5118 and add case for machines where outgoing register parameters
5119 get stack space.
5120
5121 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
5122 register when generating indirect address.
5123
5124 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
5125
5126 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
5127 * arm.md (cbranchne_decr1): Fix bootstrap warning.
5128
5129 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5130
5131 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
5132 * fixinc/fixincl.x: Regenerate.
5133 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
5134 testcase.
5135 Fixes PR bootstrap/9330.
5136
5137 2003-10-13 Eric Christopher <echristo@redhat.com>
5138
5139 * config/frv/frv.c (frv_adjust_field_align): Redo check for
5140 too wide bitfields.
5141 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
5142 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
5143 (SBSS_SECTION_ASM_OP): Remove.
5144 (EXTRA_SECTIONS): Remove in_sbss.
5145 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
5146 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
5147 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
5148 named_section.
5149
5150 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
5151
5152 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
5153 uses of ${target_alias} for directory names (and other places which
5154 won't like the empty string) with ${target_noncanonical}. Introduce
5155 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
5156 available.
5157 * configure: Regenerate.
5158
5159 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
5160
5161 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
5162 * config/arm/arm.md: For splits which rely on conditional moves,
5163 remove ! TARGET_IWMMXT condition.
5164
5165 2003-10-13 David S. Miller <davem@redhat.com>
5166
5167 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
5168 (find_cond_trap): Always increment if we emit a conditional
5169 trap insn.
5170
5171 2003-10-13 Zack Weinberg <zack@codesourcery.com>
5172
5173 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
5174 with min-insn-modes.o.
5175 (STAGESTUFF): Add min-insn-modes.c.
5176 (genobjs): Add genmodes.o.
5177 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
5178 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
5179 (min-insn-modes.c, min-insn-modes.o): New rules.
5180 (s-modes): Also generate min-insn-modes.c.
5181 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
5182 * genmodes.c (struct mode_data): Add format field.
5183 (blank_mode, validate_mode, complete_mode): Update to match.
5184 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
5185 (_SCALAR_MODE): Kill.
5186 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
5187 (emit_insn_modes_c_header): Adjust.
5188 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
5189 (emit_min_insn_modes_c): New functions.
5190 (emit_insn_modes_c): Call emit_real_format_for_mode.
5191 (main): Add -m option to generate min-insn-modes.c.
5192 * machmode.h: Update documentation. Add format argument to
5193 all uses of FLOAT_MODE.
5194 * real.c: Don't define real_format_for_mode here.
5195
5196 * dwarfout.c: Move default definition of PRINT_REG...
5197 * defaults.h: ...here.
5198 * print-rtl.c: Include tm_p.h.
5199 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
5200 Kill.
5201 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
5202 this entire block with #ifndef GENERATOR_FILE.
5203 * regclass.c: Unconditionally define reg_names.
5204 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
5205 Don't define DEBUG_REGISTER_NAMES.
5206 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
5207 redefinition of REGISTER_NAMES.
5208 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
5209
5210 * combine.c: Change all preprocessor conditionals on
5211 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
5212 for clarity.
5213 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
5214 * configure.in: Don't define EXTRA_CC_MODES.
5215 * configure, config.in: Regenerate.
5216 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
5217
5218 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
5219 May assume that GET_MODE_CLASS is accurate for extra CC modes
5220 at all times.
5221
5222 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
5223 number of arguments to aggregate_value_p.
5224
5225 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
5226 * machmode.def: Explain ARCH-modes.def. Document
5227 RESET_FLOAT_FORMAT. Improve commentary on various mode
5228 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
5229 XF, or TF modes here. Remove backward-compatibility
5230 definition of CC.
5231
5232 * config/alpha/alpha-modes.def: New file; define TF mode.
5233 * config/arc/arm-modes.def: Define XF mode.
5234 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
5235 float format for SF and DF modes.
5236 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
5237 * config/i386/i386-modes.def: Define XF and TF modes.
5238 * config/i960/i960-modes.def: Define TF mode.
5239 * config/ia64/ia64-modes.def: Define TF and OI modes.
5240 * config/m68k/m68k-modes.def: New file; define XF mode.
5241 * config/mips/mips-modes.def: New file; define TF mode, reset
5242 formats for SF and DF modes.
5243 * config/pa/pa-modes.def: Define TF mode.
5244 * config/rs6000/rs6000.c: Define TF and PSI modes.
5245 * config/s390/s390-modes.def: Define OI mode.
5246 * config/sh/sh-modes.def: New file; define PSI mode.
5247 * config/sparc/sparc-modes.def: Define TF mode.
5248 * config/vax/vax-modes.def: New file; reset formats for SF and
5249 DF modes.
5250
5251 * config/c4x/c4x.c (c4x_override_options): No need to mess
5252 with real_format_for_mode or set REAL_MODE_FORMATs.
5253 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
5254 variable.
5255 * config/i386/i386.c (override_options): No need to set
5256 REAL_MODE_FORMATs here.
5257 * config/i960/i960.c (i960_initialize): Likewise.
5258 * config/m68k/m68k.c (m68k_override_options): Likewise.
5259 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
5260 for TFmode only if not the default.
5261 * config/mips/mips.c (override_options): Likewise.
5262 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
5263 DFmode only if not the default.
5264
5265 * config/i370/i370.h (RET_REG): Don't consider TFmode.
5266 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
5267 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
5268 of modes that don't appear anywhere in the machine description.
5269
5270 * config/arc/arc-modes.def, config/arm/arm-modes.def
5271 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
5272 * config/i386/i386-modes.def, config/i960/i960-modes.def
5273 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
5274 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
5275 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
5276 * config/sparc/sparc-modes.def: Convert to new style for
5277 declaring extra CC modes.
5278
5279 2003-10-13 Zack Weinberg <zack@codesourcery.com>
5280
5281 * cpplex.c (_cpp_clean_line): In the common case of a line
5282 with no trigraphs and no \-newline, avoid writing to memory.
5283 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
5284 of the buffer member. Make c an uchar to avoid unnecessary
5285 sign extensions.
5286
5287 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
5288
5289 * configure.in: Remove unnecessary test.
5290 * configure: Regenerate.
5291
5292 * configure.in: Fix grammatical error. Move UWIN host error to...
5293 * config.host: Here.
5294 * configure: Regenerate.
5295
5296 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
5297
5298 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
5299 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
5300 of flag_unsafe_math_optimizations.
5301 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
5302 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
5303 fused-madd and no-fused-madd.
5304 * doc/invoke.texi: Documented the new options fused-madd and
5305 no-fused-madd for S/390.
5306
5307 2003-10-14 Alan Modra <amodra@bigpond.net.au>
5308
5309 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
5310 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
5311 assign DEFAULT_ABI.
5312 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
5313 * config/rs6000/rs6000.c: Formatting.
5314 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
5315 when rs6000_alignment_string given.
5316
5317 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
5318
5319 PR target/12538
5320 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
5321 (sparc_flat_must_save_register_p): New function to decide whether
5322 a register must be saved/restored in the function prologue/epilogue.
5323 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
5324
5325 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
5326
5327 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
5328 ISO C90 function declarations and definitions.
5329 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
5330
5331 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
5332
5333 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
5334 config files which do the same thing.
5335 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
5336 config/freebsd6.h: Remove now unnecessary files.
5337
5338 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
5339
5340 * c-common.c (c_common_truthvalue_conversion): Warn if the
5341 address of a non-weak function is used as a truth value.
5342
5343 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
5344
5345 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
5346 a literal.
5347 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
5348 instead of a literal.
5349
5350 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
5351
5352 * doc/extend.texi (Function Attributes): Mention the exceptional
5353 path for noreturn-marked functions.
5354
5355 2003-10-12 Jan Hubicka <jh@suse.cz>
5356
5357 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
5358 warning.
5359
5360 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
5361
5362 * config/i386/i386.c (x86_this_parameter): Fix typo.
5363
5364 203-10-11 Jan Hubicka <jh@suse.cz>
5365
5366 * Makefile.in (web.o): New.
5367 * web.c: New file.
5368 * rtl.h (web_main): Declare.
5369 * timervar.def (TV_WEB): New.
5370 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
5371 (rest_of_hanle_web): New.
5372 (flag_web): New static variable.
5373 (lang_independent_options): Add "web".
5374 (rest_of_compilation): Call rest_of_handle_web.
5375 * invoke.texi (-fweb): Document.
5376 * common.opt (fweb): New.
5377 * flags.h (flag_web): New.
5378 * opts.c (decode_options): Set flag_web at -O3.
5379
5380 * passes.texi (web construction): Document.
5381 * invoke.texi (-O3): Document that -fweb is enabled.
5382
5383 * regrename.c (regrename_optimize): Deal better with situation when
5384 replacement failed.
5385
5386 * sched-ebb.c: Include params.h and profile.h
5387 (schedule_ebbs): Use tracer parameters to discover superblocks
5388 * Makefile.in (sched-ebb.o): Add dependencies.
5389
5390 2003-10-11 Roger Sayle <roger@eyesopen.com>
5391
5392 * fold-const.c (negate_mathfn_p): New function to determine whether
5393 a built-in mathematical function is sign preserving, f(-x) == -f(x).
5394 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
5395 (tree_swap_operands_p): Change API to take an additional argument
5396 indicating that the swapped operands evaluate in reverse order.
5397 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
5398 operand side-effects or we don't care about flag_evaluation_order.
5399 (reorder_operands_p): New function to check whether its safe to
5400 evaluate the given operands in reverse order.
5401 (negate_expr_p): We can always negate integer constants unless
5402 we honor -ftrapv and the signed type would overflow. Only allow
5403 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
5404 negation of COMPLEX_CST if both real and imaginary parts can be
5405 negated. Allow negation through floating point extensions and
5406 sign-preserving built-in functions.
5407 (negate_expr): Move the code to negate integers from "fold" to
5408 here. Always negate integer constants unless we honor -ftrapv
5409 and the signed type would overflow. Always negate real constants
5410 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
5411 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
5412 Optimize negation through floating point extensions and
5413 sign-preserving built-in functions (as defined by negate_mathfn_p).
5414 (fold): Adjust calls to tree_swap_operands_p.
5415 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
5416 to negate_expr_p/negate_expr.
5417 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
5418 allowed to convert (-A) - B into (-B) - A.
5419
5420 2003-10-11 Roger Sayle <roger@eyesopen.com>
5421
5422 * builtins.c (expand_builtin_strcmp): Defend against the possibility
5423 that gen_cmpstrsi may fail: Stabilize the argument list against
5424 re-evaluation and expand the library call directly using this saved
5425 argument list if a cmpstrsi sequence can't be generated.
5426 (expand_builtin_strncmp): Likewise.
5427
5428 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
5429
5430 2003-10-11 Roger Sayle <roger@eyesopen.com>
5431
5432 PR optimization/12260
5433 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
5434 operations through CONST nodes. Optimize (neg (plus X C)) as
5435 (minus -C X) for constant values C.
5436 (simplify_binary_operation): Optimize (minus (neg X) C) as
5437 (minus -C X) for constant values C.
5438 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
5439 instead create (minus -C X).
5440
5441 2003-10-11 Roger Sayle <roger@eyesopen.com>
5442
5443 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
5444 safe_from_p for us, once it chooses an evaluation order.
5445 (expand_expr <MULT_EXPR>): Likewise.
5446 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
5447 places the second operand in "target", swap the operands.
5448 (do_store_flag): Let expand_operands call safe_from_p for us.
5449
5450 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
5451
5452 PR optimization/12544
5453 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
5454 for DECL_NONLOCAL decls.
5455
5456 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5457
5458 * expr.c: Follow spelling conventions.
5459 * final.c: Likewise.
5460 * optabs.c: Likewise.
5461 * sched-deps.c: Likewise.
5462 * sdbout.c: Likewise.
5463
5464 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
5465
5466 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
5467 re-computing of variable.
5468
5469 2003-10-11 Richard Henderson <rth@redhat.com>
5470
5471 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
5472 return_in_memory, make static, change signature to match target hook.
5473 (alpha_setup_incoming_varargs): Make static, change signature to
5474 match target hook, add code for vms and unicos.
5475 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5476 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
5477 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
5478 TARGET_STRICT_ARGUMENT_NAMING,
5479 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
5480 * config/alpha/alpha-protos.h: Update.
5481 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
5482 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
5483 SETUP_INCOMING_VARARGS): Remove.
5484 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
5485 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
5486
5487 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
5488
5489 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
5490
5491 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5492
5493 * config/m68k/lb1sf68.asm: Follow spelling conventions.
5494 * config/m68k/m68k.c: Likewise.
5495 * config/m68k/m68k.h: Likewise.
5496 * config/m68k/m68k.md: Likewise.
5497
5498 2003-10-11 Roger Sayle <roger@eyesopen.com>
5499
5500 * builtins.c (expand_builtin_memcpy): Optimize case when the two
5501 pointer arguments are the equal, non-volatile and side-effect free.
5502 (expand_builtin_mempcpy): Likewise.
5503 (expand_builtin_memmove): Likewise.
5504 (expand_builtin_strcpy): Likewise.
5505 (expand_builtin_memcmp): Likewise.
5506 (expand_builtin_strcmp): Likewise.
5507 (expand_builtin_strncmp): Likewise.
5508
5509 2003-10-11 Roger Sayle <roger@eyesopen.com>
5510
5511 * combine.c (apply_distributive_law): Enable "distributive" floating
5512 point optimizations with -funsafe-math-optimizations.
5513
5514 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
5515
5516 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
5517
5518 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5519
5520 * config/m68k/m68k-protos.h: Remove the prototype for
5521 finalize_pic.
5522
5523 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5524
5525 * config/m68k/m68k.c: Fix comment typos.
5526
5527 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5528
5529 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
5530 int to bool.
5531 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
5532 (current_frame): New global var.
5533 (m68k_compute_frame_layout): Cache computations in current_frame.
5534 (m68k_initial_elimination_offset): Use values from current_frame
5535 instead of recomputing them.
5536 (use_return_insn): Likewise.
5537 (m68k_output_function_prologue): Likewise.
5538 (m68k_output_function_epilogue): Likewise.
5539 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
5540 inside the block for __pic__.
5541
5542 2003-10-11 Peter Barada <peter@baradas.org>
5543 Bernardo Innocenti <bernie@develer.com>
5544
5545 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
5546 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
5547 (m68k_interrupt_function_p): New function.
5548 (m68k_handle_fndecl_attribute): Ditto.
5549 (m68k_compute_frame_layout): Ditto.
5550 (m68k_attribute_table): Define back-end specific attributes.
5551 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
5552 functions.
5553
5554 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5555
5556 * config/m68k/t-uclinux: New target Makefile fragment.
5557 * config/m68k/uclinux.h: New target macro file.
5558 * config.gcc (m68k-*-uclinux): New target definition.
5559
5560 2003-10-10 Roger Sayle <roger@eyesopen.com>
5561
5562 * builtins.c (builtin_mathfn_code): Generalize to check whether
5563 the call is to any built-in function by comparing the call's
5564 argument list against the builtin decl's function type.
5565
5566 2003-10-10 Roger Sayle <roger@eyesopen.com>
5567
5568 * cse.c (constant_pool_entries_regcost): New global variable to
5569 hold the register cost component of constant_pool_entries_cost.
5570 (fold_rtx): Calculate constant_pool_entries_regcost at the same
5571 time as constant_pool_entries_cost.
5572 (cse_insn): Set both src_folded_cost and src_folded_regcost from
5573 constant_pool_entries_cost and constant_pool_entries_regcost.
5574 (cse_main): Initialize constant_pool_entries_regcost to zero.
5575
5576 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
5577 the semantics of the sequence of bit operations used to negate
5578 a floating-point value.
5579 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
5580 the semantics of the bit operations used to abs a floating point
5581 value.
5582
5583 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5584 Paul Dale <pauli@snapgear.com>
5585
5586 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
5587 support.
5588 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
5589 -fpic, -fPIC, -msep-data and -mid-shared-library.
5590 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
5591 (override_options): Add -msep-data and -mshared-library-id support.
5592 (m68k_output_function_prologue): Generate code to load A5 for
5593 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
5594 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
5595 (m68k_output_pic_call): New function.
5596 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
5597 (TARGET_ID_SHARED_LIBRARY): Ditto.
5598 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
5599 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
5600 (call_value): Likewise.
5601
5602 2003-10-10 Zack Weinberg <zack@codesourcery.com>
5603
5604 * gengenrtl.c (find_formats, genheader): Make i an unsigned
5605 int, remove cast of NUM_RTX_CODE.
5606 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
5607 entire file. Remove the #ifs on GET_MODE_MASK etc and
5608 GET_MODE_WIDER_MODE etc.
5609
5610 2003-10-10 Eric Christopher <echristo@redhat.com>
5611
5612 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
5613 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
5614 that set mode.
5615 * config/sh/sh.h (MODE_ENTRY): New macro.
5616 (MODE_EXIT): Ditto.
5617 (MODE_AFTER): Ditto.
5618 * config/sh/sh.md: Change for MODE_AFTER. Add
5619 fp_set attribute.
5620 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
5621
5622 2003-10-10 Zack Weinberg <zack@codesourcery.com>
5623
5624 * genmodes.c, mode-classes.def: New files.
5625 * machmode.def: Rewritten to genmodes.c interface.
5626 * Makefile.in (extra_modes_file): New substitution variable.
5627 (MACHMODE_H): No longer includes machmode.def or
5628 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
5629 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
5630 (OBJS-common): Add insn-modes.o.
5631 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
5632 genmodes$(build_exeext).
5633 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
5634 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
5635 (s-genrtl): Don't depend on $(RTL_BASE_H).
5636 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
5637 or $(RTL_BASE_H); just rtl.def.
5638 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
5639 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
5640 substitute definition of NUM_RTX_CODE. Add casts to avoid
5641 warnings.
5642 * machmode.h: Include insn-modes.h, not machmode.def. Include
5643 mode-classes.def to define enum mode_class. Tweak definitions
5644 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
5645 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
5646 (inner_mode_array): Renamed mode_inner.
5647 (mode_base_align): New.
5648 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
5649 mode_unit_size, mode_wider_mode, mode_mask_array,
5650 inner_mode_array, class_narrowest_mode): Delete definitions.
5651 * stor-layout.c (get_mode_alignment): Use mode_base_align.
5652 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
5653 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
5654
5655 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
5656 No need to define BITS_PER_UNIT.
5657
5658 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5659
5660 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
5661 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
5662 (ia64_initialize_trampoline): If not using GAS, declare trampoline
5663 as global.
5664 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
5665 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
5666
5667 * stor-layout.c (compute_record_mode): Don't force BLKmode if
5668 field is zero-length BLKmode.
5669 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
5670 zero-size references.
5671
5672 * combine.c (distribute_links): Properly test for REG being set.
5673
5674 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
5675 gen_lowpart and company except for REG.
5676
5677 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5678
5679 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
5680
5681 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
5682
5683 * config.gcc (mips*-*-netbsd*): Remove content-free line.
5684
5685 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5686
5687 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
5688 gcov_position_t and gcov_type.
5689
5690 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
5691
5692 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
5693 * configure: Regenerate.
5694
5695 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
5696
5697 * config/h8300/h8300.md (define_asm_attributes): Specify
5698 the length of an asm insn more precisely.
5699
5700 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5701
5702 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
5703
5704 2003-10-09 Bob Wilson <bob.wilson@acm.org>
5705
5706 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
5707 FP register number to 48 and MAC16 accumulator to 0x210.
5708
5709 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
5710
5711 * config.gcc: Remove redundant thread_file setting clauses for
5712 various *-*-linux* targets.
5713
5714 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
5715
5716 * config/h8300/h8300.md (define_asm_attributes): New.
5717
5718 2003-10-09 Roger Sayle <roger@eyesopen.com>
5719
5720 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
5721 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
5722
5723 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
5724
5725 * haifa-sched.c (ok_for_early_schedule): New function.
5726 (early_queue_to_ready): New function.
5727 (schedule_block): Allow early removal of insns from Q.
5728 (schedule_insn): Update INSN_TICK in case of premature
5729 issue.
5730 * common.opt (sched_stalled_insns): New flag.
5731 (sched_stalled_insns_dep): New flag.
5732 * flags.h: Same above flags.
5733 * opts.c: Same as above.
5734 * toplev.c: Same as above.
5735 * target.h (targetm.sched.is_costly_dependence): New
5736 hook.
5737 * target-def.h: Same as above.
5738 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
5739 Support new flag -msched-costly-dep.
5740 (DEFAULT_SCHED_COSTLY_DEP): Define.
5741 * config/rs6000/rs6000.c:
5742 (rs6000_is_costly_dependence): New function.
5743 (is_load_insn, is_store_insn): New functions.
5744 (is_load_insn1, is_store_insn1, is_mem_ref): New
5745 functions.
5746 * doc/invoke.texi (-fsched-stalled-insns-dep)
5747 (-fsched-stalled-insns, -msched-costly-dep): Document
5748 options.
5749 * doc/tm.texi (is_costly_dependence): Define new
5750 scheduler target hook.
5751
5752 2003-10-09 Jason Merrill <jason@redhat.com>
5753
5754 PR c++/6392
5755 * c-common.c (c_build_qualified_type): Look through arrays first.
5756 (c_apply_type_quals_to_decl): Look through arrays.
5757
5758 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
5759 types with constructors.
5760
5761 * coverage.c (build_ctr_info_value): Use build_decl to make a
5762 VAR_DECL.
5763 (create_coverage): Likewise.
5764
5765 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
5766 here.
5767 (expand_asm_operands): Not here.
5768 (parse_input_constraint): No longer static.
5769 * tree.h: Declare it.
5770
5771 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
5772
5773 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
5774 libgcc_s.so.
5775 (SHLIB_INSTALL): Likewise.
5776
5777 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
5778
5779 * doc/install.texi: Remove reference to removed 'pthreads' thread
5780 option.
5781
5782 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
5783
5784 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
5785 operand 2.
5786
5787 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
5788
5789 * config.gcc: Don't accept --enable-threads=pthreads. Clean
5790 up related case statements.
5791 * configure.in: Don't accept --enable-threads=pthreads,
5792 decosf1, mach, or os2 (none of which work anyway). Alphabetize
5793 supported thread files in case clause.
5794 * configure: Regenerate.
5795
5796 2003-10-08 Geoffrey Keating <geoffk@apple.com>
5797
5798 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
5799 definition to above SPARC_STACK_BOUNDARY_HACK.
5800
5801 2003-10-08 Jason Merrill <jason@redhat.com>
5802
5803 * c-pretty-print.c (pp_c_postfix_expression)
5804 <COMPOUND_LITERAL_EXPR>: Fix thinko.
5805
5806 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5807
5808 * mklibgcc.in: Don't hide undefined or typeless symbols.
5809
5810 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5811
5812 PR optimization/12142
5813 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
5814 uses of the register in the SET_SRC. Remove unnecessary argument.
5815 * pa.c (legitimize_pic_address): Before reload, use a scratch register
5816 for the intermediate result in loading the address of a SYMBOL_REF.
5817 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
5818 which loads the SYMBOL_REF address.
5819
5820 2003-10-08 Timo Kokkonen <tjko@iki.fi>
5821 Eric Botcazou <ebotcazou@libertysurf.fr>
5822
5823 PR bootstrap/12490
5824 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
5825 to define the size of the extern_C_braces array. Set it to 200.
5826 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
5827
5828 2003-10-08 Carlo Wood <carlo@alinoe.com>
5829
5830 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
5831 a space after the -o option. flex 2.5.31 understands both, with
5832 and without the space. Removed that space.
5833
5834 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
5835
5836 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
5837 (compute_frame_size): Initialize it. Remove the .cprestore slot
5838 from args_size.
5839 (mips_output_function_prologue): Simplify accordingly.
5840 (mips_debugger_offset): Change the mips16 frame pointer offset from
5841 current_function_outgoing_args to cfun->machine->frame.args_size.
5842 (mips_initial_elimination_offset): Likewise.
5843 (mips_expand_prologue): Likewise.
5844 (mips_expand_epilogue): Likewise.
5845
5846 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
5847
5848 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
5849 (EXTRA_MEMORY_CONSTRAINT): Define.
5850 (CAN_ELIMINATE): Remove lwu workaround.
5851 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
5852 Use a 'W' constraint for the source operand.
5853
5854 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
5855
5856 * genopinit.c (main): Output code to declare undefined
5857 variables.
5858
5859 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
5860
5861 * gengtype-lex.l: Remove -Wtraditional cruft.
5862 * Makefile.in (gengtype-lex.c): Likewise.
5863
5864 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5865
5866 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
5867
5868 2003-10-07 Jason Merrill <jason@redhat.com>
5869
5870 PR c++/12519
5871 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
5872 it isn't a decl.
5873
5874 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
5875
5876 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
5877 not overridden.
5878 Fixes PR bootstrap/12173.
5879
5880 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5881
5882 * errors.c: Don't include coretypes.h or tm.h.
5883 (trim_filename): Use IS_DIR_SEPARATOR.
5884 * Makefile.in: Update dependencies of errors.o and
5885 $(BUILD_PREFIX_1)errors.o.
5886
5887 2003-10-07 Geoffrey Keating <geoffk@apple.com>
5888
5889 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
5890 account when aligning arguments.
5891 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
5892 * defaults.h (STACK_POINTER_OFFSET): ... to here.
5893 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
5894 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
5895 (SPARC_STACK_BOUNDARY_HACK): Define.
5896 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
5897 arrange for vector parameters to varargs functions to be passed
5898 in both memory and GPRs when appropriate.
5899 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
5900 aligned.
5901
5902 * hooks.c (hook_bool_tree_true): New.
5903 (hook_rtx_tree_int_null): New.
5904 (hook_rtx_rtx_null): Use NULL, not 0.
5905 * hooks.h: Add 'extern' to everything.
5906 (hook_bool_tree_true): New.
5907 (hook_rtx_tree_int_null): New.
5908 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
5909 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
5910 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
5911 prototype.
5912 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
5913 (setup_incoming_varargs): Prototype.
5914 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
5915 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
5916 (TARGET_STRUCT_VALUE_RTX): Define.
5917 (TARGET_RETURN_IN_MEMORY): Define.
5918 (TARGET_SETUP_INCOMING_VARARGS): Define.
5919 (TARGET_STRICT_ARGUMENT_NAMING): Define.
5920 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
5921 (init_cumulative_args): Use rs6000_return_in_memory.
5922 (setup_incoming_varargs): Make 'static'.
5923 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
5924 (PROMOTE_FUNCTION_RETURN): Delete.
5925 (STRUCT_VALUE): Delete.
5926 (RETURN_IN_MEMORY): Delete.
5927 (SETUP_INCOMING_VARARGS): Delete.
5928
5929 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
5930
5931 * doc/invoke.texi (Warning Options): Simplify and clarify the
5932 descriptions of -Wnonnull and -Winit-self.
5933
5934 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
5935
5936 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
5937 indicees for floating-point conversersion libcalls.
5938
5939 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
5940
5941 * Makefile.in: Add more comments separating large conceptually
5942 separate sections.
5943
5944 * configure.in: Clean up thread file logic.
5945 * configure: Regenerate.
5946
5947 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
5948
5949 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
5950 (switch_to_section): Handle in_readonly_data.
5951 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
5952 readonly data.
5953
5954 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
5955
5956 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
5957 it.
5958 (cbranchne_decr1): New Thumb pattern.
5959 * arm.c (arm_addimm_operand): New insn predicate.
5960 * arm-protos.h: Add a prototype for it.
5961 * arm.h (PREDICATE_CODES): Add it.
5962
5963 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
5964
5965 * sched-int.h (sched_info): New field
5966 sched_max_insns_priority.
5967 * sched-rgn.c (init_ready_list): Add invocations to
5968 targetm.sched.adjust_priority.
5969 (sched_max_insns_priority): Init new field.
5970 * sched-ebb.c (sched_max_insns_priority): Init new field.
5971 * haifa-sched.c (set_priorities): Set
5972 sched_info->sched_max_insns_priority.
5973 * config/rs6000/rs6000.h:
5974 (rs6000_sched_restricted_insns_priority_str): Support new
5975 flag -mprioritize-restricted-insns.
5976 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
5977 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
5978 function.
5979 (rs6000_adjust_priority): Change priority of restricted
5980 insns, using above new function and new flag.
5981 * doc/invoke.texi (-mprioritize-restricted-insns): Document
5982 new option.
5983
5984 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5985
5986 * expr.c (cmpstr_optab, cmpmem_optab): New.
5987 * genopinit.c: Initialize them.
5988 * optabs.h: Declare them.
5989 * optabs.c (init_optabs): Clear them.
5990 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
5991 block memory compare insns, not conditional chains. Restructure
5992 the fallback generation of a call to memcmp/bcmp for better
5993 readability.
5994
5995 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5996
5997 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
5998 (mips_save_restore_fn): New typedef.
5999 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
6000 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
6001 (save_restore_insns): Remove, replacing with...
6002 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
6003 (mips_save_reg, mips_restore_reg): New function.
6004 (mips_expand_prologue, mips_expand_epilogue): Rework.
6005 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
6006 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
6007 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
6008
6009 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
6010
6011 * config/mips/mips.c (mips_expand_prologue): Remove unused
6012 traversal of function arguments.
6013
6014 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
6015
6016 * doc/invoke.texi: Remove documentation of -mentry.
6017 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
6018 (override_options, mips_save_reg_p): Remove handling.
6019 (compute_frame_size, mips_output_function_prologue): Likewise.
6020 (mips_expand_prologue, mips_expand_epilogue): Likewise.
6021 * config/mips/mips.h (mips_entry_string): Remove declaration.
6022 (TARGET_OPTIONS): Remove -mentry.
6023 * config/mips/mips16.S: Remove mention of -mentry.
6024
6025 2003-10-06 Zack Weinberg <zack@codesourcery.com>
6026
6027 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
6028 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
6029 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
6030 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
6031 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
6032 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
6033 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
6034 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
6035 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
6036 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
6037 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
6038 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
6039 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
6040 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
6041 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
6042 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
6043 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
6044 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
6045 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
6046 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
6047 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
6048 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
6049 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
6050 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
6051 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
6052 (fixunstfti_libfunc): Delete.
6053 * optabs.h (struct optab_handlers): Break out of struct optab.
6054 (struct convert_optab, convert_optab, enum convert_optab_index,
6055 convert_optab_table, sext_optab, zext_optab, trunc_optab,
6056 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
6057 sfloat_optab, ufloat_optab): New.
6058 (set_conv_libfunc): Prototype.
6059 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
6060 (trunc_optab): Renamed btrunc_optab.
6061 * builtins.c (expand_builtin_mathfn): Update to match.
6062 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
6063 (convert_optab_table, new_convert_optab, init_convert_optab)
6064 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
6065 (set_conv_libfunc): New.
6066 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
6067 (expand_float, expand_fix): Use new conversion optabs,
6068 not old insn code tables or long chains of ifs.
6069 (init_optabs): No need to clear old insn code tables.
6070 Initialize the new optabs, not the old libfunc array entries.
6071 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
6072 * genopinit.c: Initialize conversion optabs, not the
6073 former insn code tables. Remove unnecessary casts.
6074 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
6075 * expr.c (convert_move): Remove redundant check that
6076 to_real==from_real. Use the conversion optabs instead
6077 of long chains of tests of modes. Move partial-integer-mode
6078 interconversion above all integer conversion. Do not recurse
6079 on a value forced into a register in the original mode.
6080
6081 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
6082 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
6083 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
6084 in new conversion optabs; do not reference the old libfunc
6085 array entries. No need to include libfuncs.h.
6086
6087 2003-10-06 Roger Sayle <roger@eyesopen.com>
6088
6089 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
6090 point comparison sequence with a REG_EQUAL note that describes
6091 the comparison's semantics.
6092
6093 2003-10-06 Roger Sayle <roger@eyesopen.com>
6094
6095 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
6096 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
6097
6098 2003-10-06 Roger Sayle <roger@eyesopen.com>
6099 Zack Weinberg <zack@codesourcery.com>
6100
6101 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
6102 instruction by using LCT_CONST and then calling emit_libcall_block
6103 ourselves.
6104
6105 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6106
6107 PR optimization/11974
6108 * optabs.c (expand_unop): Promote libcall outmode according to
6109 hard_libcall_value.
6110
6111 2003-10-06 Zack Weinberg <zack@codesourcery.com>
6112
6113 * real.h (REAL_MODE_FORMAT): New macro.
6114 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
6115 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
6116 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
6117 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
6118 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
6119 directly to real_format_for_mode array, wherever possible.
6120
6121 2003-10-06 Devang Patel <dpatel@apple.com>
6122
6123 * dwarf2out.c (is_main_source): Remove variable.
6124 (dwarf2out_start_source_file): Do not check is_main_source.
6125 Do not reset is_main_source.
6126 (dwarf2out_init): Do not initialize is_main_source.
6127
6128 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6129
6130 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
6131 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
6132 introduced some multi-line prototypes.
6133 * fixinc/fixincl.x: Regenerate.
6134
6135 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6136
6137 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
6138 * config/mips/mips.c (stack_operand): New predicate.
6139 * config/mips/mips.md: Use it for the destination of mips16 insns
6140 that store $31.
6141
6142 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6143
6144 * config/mips/mips.md (*lowsi): Renamed from lowsi.
6145 (*lowdi): Likewise lowdi.
6146 (*lowsi_mips16, *lowdi_mips16): New patterns.
6147 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
6148 mips16 CONSTANT_RELOC handling.
6149 (mips_delegitimize_address): Adjust for new sdata representation.
6150
6151 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6152
6153 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
6154 skip any remaining register arguments.
6155
6156 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
6157
6158 * reload.c (find_reloads_subreg_address): Use correct offset for
6159 paradoxical MEM subregs on big-endian targets.
6160
6161 2003-10-06 Andrew Haley <aph@redhat.com>
6162
6163 * tree.c (get_callee_fndecl): Call
6164 lang_hooks.lang_get_callee_fndecl.
6165 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
6166 (lhd_get_callee_fndecl): New.
6167
6168 2003-10-06 Andrew Pinski <apinski@apple.com>
6169
6170 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
6171 error in calculating the length of the string.
6172 (machopic_stub_name): Likewise.
6173
6174 2003-10-06 Roger Sayle <roger@eyesopen.com>
6175
6176 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
6177 describing the return value of the comparison libcall to the
6178 REG_RETVAL instruction of the emitted sequence.
6179
6180 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
6181
6182 PR optimization/12215
6183 * cse.c (cse_set_around_loop): Emit the move at the beginning
6184 of the next basic block for trapping sets.
6185
6186 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
6187
6188 PR optimization/11637
6189 * combine.c (adjust_for_new_dest): New function to adjust the
6190 notes and LOG_LINKS when the dest of an insn has changed.
6191 (try_combine): Use it when deleting the first insn of a two-insn
6192 parallel or splitting a two-load parallel.
6193
6194 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6195
6196 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
6197 if TARGET_EXPLICIT_RELOCS.
6198
6199 2003-10-06 Mark Mitchell <mark@codesourcery.com>
6200
6201 PR bootstrap/12512
6202 * Makefile.in (info): Use double-colon rules.
6203 (dvi): Likewise.
6204 (generated-manpages): Likewise.
6205 * configure.in: Do not create lang.info, lang.dvi, or
6206 lang.generated-manpages hooks.
6207 * configure: Regenerated.
6208 * objc/Make-lang.in (objc.info): Remove.
6209 (objc.dvi): Remove.
6210 (objc.generated-manpages): Remove.
6211 * doc/sourcebuild.texi: Update description of info, dvi, and
6212 generated-manpages hooks.
6213
6214 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
6215
6216 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
6217
6218 2003-10-05 Andrew Pinski <apinski@apple.com>
6219
6220 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
6221 errors in memcpy destinations.
6222 (machopic_stub_name): Likewise.
6223
6224 2003-10-05 Andrew Pinski <apinski@apple.com>
6225
6226 * config/darwin.c (machopic_non_lazy_ptr_name):
6227 Change strcat to memcpy and add length together.
6228 (machopic_stub_name): Likewise.
6229
6230 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
6231
6232 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
6233 signal trampoline codes.
6234
6235 2003-10-05 Chris Demetriou <cgd@broadcom.com>
6236
6237 * config/mips/mips.md (*divsf3): Move description of
6238 SB-1 F2 erratum from here to...
6239 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
6240 flag_unsafe_math_optimizations is not.
6241
6242 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
6243
6244 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
6245 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
6246
6247 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6248
6249 * c-pretty-print.c: Fix comment typos.
6250 * c-pretty-print.h: Likewise.
6251 * calls.c: Likewise.
6252 * cfgloopmanip.c: Likewise.
6253 * cgraphunit.c: Likewise.
6254 * cppfiles.c: Likewise.
6255 * final.c: Likewise.
6256 * function.c: Likewise.
6257 * gcov-io.h: Likewise.
6258 * gcse.c: Likewise.
6259 * genoutput.c: Likewise.
6260 * loop.c: Likewise.
6261 * postreload.c: Likewise.
6262 * reg-stack.c: Likewise.
6263 * regmove.c: Likewise.
6264 * sched-int.h: Likewise.
6265 * sched-rgn.c: Likewise.
6266 * simplify-rtx.c: Likewise.
6267 * tree-inline.c: Likewise.
6268 * config/m68hc11/m68hc11.h: Likewise.
6269 * config/mmix/mmix.c: Likewise.
6270 * config/mn10300/mn10300.md: Likewise.
6271 * config/sh/sh.h: Likewise.
6272
6273 2003-10-05 Richard Henderson <rth@redhat.com>
6274
6275 * tree-inline.c (remap_type): New.
6276 (remap_decl): Use it. Remap DECL_SIZE*.
6277 (copy_body_r): Use it.
6278 (walk_tree): Walk TREE_TYPE too.
6279 (copy_tree_r): Don't walk subtrees of types.
6280 * tree.c (variably_modified_type_p): Restructure. Consider integer
6281 types with non-const bounds variably modified.
6282
6283 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6284
6285 * doc/invoke.texi: Fix typos.
6286
6287 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6288
6289 * fold-const.c: Follow spelling conventions.
6290 * function.c: Likewise.
6291 * config/c4x/c4x.h: Likewise.
6292 * config/c4x/c4x.md: Likewise.
6293 * config/frv/frv.md: Likewise.
6294 * config/rs6000/aix.h: Likewise.
6295 * config/rs6000/linux64.h: Likewise.
6296 * config/xtensa/xtensa.c: Likewise.
6297
6298 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
6299
6300 * c-pretty-print.c: Fix comment formatting.
6301 * cfglayout.c: Likewise.
6302 * cfgloopanal.c: Likewise.
6303 * cppcharset.c: Likewise.
6304 * dbxout.c: Likewise.
6305 * ggc-page.c: Likewise.
6306 * ggc.h: Likewise.
6307 * target.h: Likewise.
6308
6309 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
6310
6311 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
6312
6313 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
6314
6315 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
6316 Convert to ISO C90 function declarations and definitions.
6317
6318 2003-10-04 Zack Weinberg <zack@codesourcery.com>
6319
6320 * libfuncs.h
6321 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
6322 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
6323 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
6324 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
6325 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
6326 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
6327 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
6328 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
6329 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
6330 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
6331 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
6332 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
6333 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
6334 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
6335 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
6336 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
6337 Delete.
6338 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
6339 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
6340 (le_optab, unord_optab): New.
6341
6342 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
6343 from the code_to_optab table, not a giant switch; use
6344 swap_condition; do widening only if a comparison function that
6345 we can call exists in a wider mode, not if a cmp_optab insn or
6346 libfunc exists in a wider mode; call protect_from_queue
6347 exactly once on each operand.
6348 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
6349
6350 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
6351 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
6352 Set floating point comparison libfuncs using set_optab_libfunc
6353 on the appropriate optab.
6354
6355 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
6356 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
6357 selector conditionals.
6358
6359 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
6360
6361 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
6362 identical to m68hc12 as far as libraries are concerned.
6363
6364 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6365
6366 PR c/12446
6367 * c-typeck.c (convert_for_assignment): Issue an error for
6368 array to pointer assignment after default conversion.
6369 (digest_init): Likewise.
6370
6371 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
6372
6373 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
6374
6375 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
6376
6377 * doc/extend.texi (Function Attributes): Fix title of GNU C
6378 Preprocessor manual.
6379 (C++ Extensions): Fix reference to "Predefined Macros" in the
6380 GNU C Preprocessor manual.
6381
6382 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
6383
6384 * doc/extend.texi: Document how GCC estimates and relies on the size
6385 of an asm.
6386
6387 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
6388
6389 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
6390 arguments downward for big-endian o64.
6391
6392 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
6393
6394 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
6395 PCH generation, avoiding too-frequent flushes when writing to NFS
6396 file system.
6397
6398 2003-10-03 Ziemowit Laski <zlaski@apple.com>
6399
6400 * objc/objc-act.c (lookup_category): Mark as 'inline'.
6401
6402 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
6403 Ziemowit Laski <zlaski@apple.com>
6404
6405 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
6406 New functions.
6407 (lookup_method_in_hash_lists): New parameter indicating whether
6408 we are messaging 'Class' or 'id'.
6409 (check_duplicates): Likewise; do not assume all methods will
6410 be either class or instance methods.
6411 (generate_category, finish_class): Use lookup_category().
6412 (add_method): Use add_method_to_hash_list(); insert instance
6413 methods of root classes into the global class method hash table.
6414 (add_category): Use lookup_category(); avoid constructing
6415 duplicate categories.
6416 (really_start_method): Add method to corresponding @interface,
6417 if not already there (and if the @interface exists).
6418 (finish_message_expr, finish_objc): Adjust calls to
6419 check_duplicates().
6420
6421 2003-10-03 Roger Sayle <roger@eyesopen.com>
6422
6423 PR optimization/9325, PR java/6391
6424 * fold-const.c (fold_convert): For floating point to integer
6425 conversions, return the maximum/minimum representable integer
6426 value if the real constant overflows the destination type.
6427 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
6428 meaning don't truncate the result to a floating point mode.
6429 Simplify the logic by calling real_from_integer directly.
6430 * simplify-rtx.c (simplify_unary_operation): Implement the
6431 same semantics for folding floating point to integer conversions
6432 in RTL.
6433
6434 2003-10-03 Chris Demetriou <cgd@broadcom.com>
6435
6436 * config/mips/mips.c (mips_emit_prefetch): Restructure
6437 to avoid use of arrays, handle indexed prefetch.
6438 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
6439 (ISA_HAS_PREFETCHX): New deffine.
6440 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
6441 update comments.
6442 (prefetch_indexed_di, prefetch_indexed_si): New insns.
6443
6444 2003-10-03 Jeff Sturm <jsturm@one-point.com>
6445 Roger Sayle <roger@eyesopen.com>
6446
6447 PR optimization/12289
6448 * calls.c (emit_call_1): Pretend to have popped the arguments
6449 to noreturn and longjmp functions instead of ignoring them.
6450 (expand_call): Don't adjust stack_pointer_dela while
6451 inhibit_defer_pop is set.
6452
6453 2003-10-03 Andreas Schwab <schwab@suse.de>
6454
6455 PR bootstrap/12276
6456 * configure.in: Check for libunwind on the host only if building
6457 a native compiler.
6458 * configure: Regenerated.
6459
6460 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
6461
6462 * unwind-pe.h (read_encoded_value_with_base): Constify u and
6463 its inizialization cast.
6464
6465 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
6466
6467 PR target/12485
6468 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
6469
6470 2003-10-02 Mark Mitchell <mark@codesourcery.com>
6471
6472 PR optimization/12180
6473 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
6474 functions containing calls to __builtin_next_arg.
6475
6476 2003-10-02 Chris Demetriou <cgd@broadcom.com>
6477
6478 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
6479 in instructions being output.
6480 * config/mips/mips.md (prefetch_si_address): Change third
6481 operand's constraint letter to 'I'.
6482 (prefetch_di_address): Likewise.
6483 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
6484
6485 2003-10-02 Zack Weinberg <zack@codesourcery.com>
6486
6487 * system.h: Poison macros obsoleted by earlier patch.
6488 * config/cris/cris.c: C90-ify a function definition.
6489
6490 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6491
6492 PR/12292
6493 * combine.c (make_field_assignment): Check whether rtx's code
6494 is CONST_INT before using INTVAL.
6495
6496 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6497
6498 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
6499 htab_find_slot_with_hash.
6500 (cgraph_node_for_identifier): Use NO_INSERT.
6501 (cgraph_remove_node): Use NO_INSERT.
6502 (cgraph_varpool_node): Use INSERT.
6503 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
6504
6505 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6506
6507 Waldek Hebisch <hebisch@math.uni.wroc.pl>
6508 PR/12072
6509 * varasm.c (compare_constant): Fix thinko.
6510
6511 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
6512
6513 * config/frv/frv.c (frv_issue_rate): New function.
6514 (frv_pack_insns): Use it.
6515 (TARGET_SCHED_ISSUE_RATE): Define.
6516
6517 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
6518
6519 * config/mcore/mcore.c: Convert to ISO C90 function declarations
6520 and definitions.
6521 * config/mcore/mcore.h: Likewise.
6522 * config/mcore/mcore-protos.h: Likewise.
6523
6524 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
6525
6526 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
6527 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6528
6529 2003-10-01 Per Bothner <pbothner@apple.com>
6530
6531 * c-lex.c (src_line): Remove unneeded static variable.
6532 (cb_line_change): Set input_line directly, instead of src_line.
6533 (get_non_padding_token): We no longer need to compensate for the
6534 "horrible things" the C++ front-end does with the current line number,
6535
6536 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
6537 callback even when popping the main file.
6538 * c-lex.c (fe_file_change): Handle a NULL new_map.
6539 * fix-header.c (cb_file_change): Likewise.
6540 * c-ppoutput.c (pp_file_change): Likewise.
6541
6542 * cppinit.c (cpp_read_main_file): Split into two functions:
6543 Distribute _cpp_stack_file call over the two functions.
6544 (cpp_find_main_file): New function.
6545 Don't call _cpp_do_file_change even if working_directory flag set.
6546 (cpp_push_main_file): New function.
6547 * cppfiles.c (_cpp_find_failed): New helper function.
6548 (find_file): Made non-static and renamed to _cpp_find_file.
6549 (_cpp_stack_file): No longer needed. But note the following.
6550 (stack_file): Made non-static and renamed to _cpp_stack_file.
6551 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
6552 call with calls to cpp_find_main_file and cpp_push_main_file.
6553 (search_path_head): If there is no current buffer, use main_file.
6554 * cpphash.h: Update function declarations.
6555 * cpplib.h: Update function declarations.
6556
6557 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
6558 (c_common_parse_file): No longer need to call cpp_read_main_file
6559 when file_index > 0 (as in multi-file or server compiation).
6560 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
6561 as this now happens before cpp_push_main_file.
6562 (push_command_line_include): When done with options, pass LC_LEAVE
6563 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
6564 (fe_file_change): Handle NULL new_map, and simplify.
6565 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
6566 08-28 change, since we're never called with a NULL buffer.
6567 (_cpp_lex_direct): Likewise.
6568 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
6569 Return false if buffer is NULL at end.
6570
6571 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
6572 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
6573 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
6574 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
6575 remove the unused return_at_eof parameter.
6576 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
6577 Update callers of cpp_push_buffer.
6578
6579 2003-10-01 Zack Weinberg <zack@codesourcery.com>
6580
6581 * target.h (init_libfuncs): New hook.
6582 * target-def.h: Default TARGET_INIT_BUILTINS and
6583 TARGET_INIT_LIBFUNCS to hook_void_void. Add
6584 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
6585 * builtins.c (default_init_builtins): Delete.
6586 * expr.h (default_init_builtins): Delete prototype.
6587 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
6588 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
6589 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
6590 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
6591 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
6592 and UMODDI3_LIBCALL,
6593
6594 * Makefile.in (optabs.o): Depends on target.h.
6595 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
6596 * optabs.c: Include target.h.
6597 (prepare_float_lib_cmp): No need for #ifdef around use of
6598 FLOAT_LIB_COMPARE_RETURNS_BOOL.
6599 (set_optab_libfunc): New function.
6600 (init_optabs): Delete use of all *_LIBCALL defines.
6601 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
6602 * optabs.h: Prototype set_optab_libfunc.
6603
6604 * config.gcc: Remove all references to pa/long_double.h,
6605 ia64/hpux_longdouble.h, and gofast.h.
6606 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
6607 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
6608
6609 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
6610 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
6611 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
6612 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
6613 * config/sparc/sparc.c, config/vax/vax.c:
6614 Provide a definition for TARGET_INIT_LIBFUNCS. Where
6615 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
6616
6617 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
6618 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
6619 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
6620 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
6621 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
6622 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
6623 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
6624 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
6625 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
6626
6627 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
6628 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
6629 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
6630 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
6631 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
6632
6633 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
6634 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
6635 SUN_INTEGER_MULTIPLY_64 to 0.
6636 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
6637 SUN_INTEGER_MULTIPLY_64 to 1.
6638 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
6639 SUN_INTEGER_MULTIPLY_64 to 0.
6640 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
6641 Define US_SOFTWARE_GOFAST.
6642 * config/vax/vax.h: Default TARGET_ELF to 0.
6643 * config/vax/elf.h: Redefine TARGET_ELF to 1.
6644
6645 * config/gofast.h: Don't define any macros here. Provide one
6646 static function, gofast_maybe_init_libfuncs, which does what
6647 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
6648 is already defined. Do not clear negation libfuncs. Do
6649 not mess with HFmode, XFmode, or TFmode libfuncs.
6650
6651 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
6652
6653 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
6654
6655 PR C/12466
6656 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
6657
6658 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6659
6660 * config/mips/xm-iris5.h: Remove, unnecessary.
6661 * config.build (mips-sgi-irix5*): Remove.
6662 (mips-sgi-irix6*o32): Likewise.
6663 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
6664 (mips-sgi-irix5cross64): Likewise.
6665 (mips-sgi-irix5*): Likewise.
6666 * config.host (mips-sgi-irix5*): Remove.
6667 (mips-sgi-irix6*o32): Likewise.
6668
6669 2003-10-01 Zack Weinberg <zack@codesourcery.com>
6670
6671 * dbxout.c (dbxout_fptype_value): Delete.
6672 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
6673
6674 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
6675
6676 * output.h (compute_reloc_for_constant): Declare.
6677 * varasm.c (compute_reloc_for_constant): Extract from...
6678 (output_addressed_constants): ... here. Adjust all callers.
6679
6680 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6681
6682 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
6683 * configure: Rebuilt.
6684
6685 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6686
6687 * fold-const.c (make_range): When handling unsigned, don't reverse
6688 range if high bound is zero.
6689
6690 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
6691
6692 * config/frv/frv.h (PREDICATE_CODES): Added
6693 condexec_si_media_operator, condexec_sf_add_operator and
6694 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
6695 and condexec_sf_unary_operator.
6696
6697 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6698
6699 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
6700 * configure: Rebuilt.
6701
6702 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6703
6704 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
6705 Allow override.
6706 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
6707
6708 2003-09-23 David S. Miller <davem@redhat.com>
6709
6710 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
6711 before redefining.
6712 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6713
6714 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
6715
6716 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
6717 C90 function declarations and definitions.
6718
6719 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
6720
6721 * config.gcc (cris-*-linux*): Revert mistaken commit.
6722
6723 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
6724
6725 PR optimization/11753
6726 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
6727 the length in the non-V9 case.
6728
6729 2003-09-30 Richard Henderson <rth@redhat.com>
6730
6731 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
6732 DWARF_ALT_FRAME_RETURN_COLUMN.
6733 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
6734 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
6735 (uw_frame_state_for): Return end-of-stack for null return address.
6736 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
6737
6738 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
6739 (alpha_expand_prologue): Store a zero for it.
6740 (alpha_expand_epilogue): Don't reload it.
6741 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
6742 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
6743 for the sigframe return address.
6744
6745 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
6746
6747 * sdbout.c: Convert to ISO C90 prototypes.
6748 * objc/objc-act.c: Likewise.
6749
6750 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
6751
6752 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
6753 * config/i386/winnt.c: Likewise.
6754 * config/i386/cygming.h: Likewise.
6755
6756 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
6757
6758 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6759 (A ^ B) - B for any B.
6760
6761 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
6762
6763 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
6764 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
6765
6766 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
6767
6768 * arm/ieee754-sf.S: Tidy formatting.
6769
6770 2003-09-30 Nicolas Pitre <nico@cam.org>
6771
6772 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
6773 and ARM_MOD_BODY.
6774 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
6775 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
6776 added better divisor alignment in the other case.
6777 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
6778 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
6779 macros above, add fast exits for divisor >= dividend, etc.
6780
6781 2003-09-30 Nicolas Pitre <nico@cam.org>
6782
6783 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
6784 L_fixdfsi target.
6785 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
6786
6787 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
6788
6789 * config.gcc: Default use_fixproto to 'no'.
6790
6791 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
6792
6793 PR optimization/12345
6794 * config/mips/mips-protos.h (mips_restore_gp): Remove.
6795 (mips_gp_save_slot): Declare.
6796 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
6797 (mips_gp_save_slot): ...this new function.
6798 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
6799 and mips_output_move to generate the output template.
6800 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
6801 a gp load after a noreturn call. Load the gp using a move rather
6802 than an exception_receiver pattern.
6803 (call_value_internal, call_value_multiple_internal): Likewise.
6804 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
6805
6806 2003-09-30 Carlo Wood <carlo@alinoe.com>
6807
6808 PR debug/12319
6809 * cfglayout.c (insn_scope): Use prologue_locator and
6810 epilogue_locator; return the outer function scope for
6811 pro- and epilogue insns.
6812
6813 2003-09-29 Zack Weinberg <zack@codesourcery.com>
6814
6815 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
6816 REAL_TYPEs based on the bitsize of the type's mode, not the
6817 mode directly.
6818
6819 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6820
6821 * dwarf2out.c (default_eh_frame_section): Split into ...
6822 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
6823 functions.
6824 * output.h (named_section_eh_frame_section): Declare.
6825 (collect2_eh_frame_section): Likewise.
6826
6827 2003-09-29 Zack Weinberg <zack@codesourcery.com>
6828
6829 * real.c (real_sqrt): Use get_canonical_qnan directly.
6830
6831 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
6832
6833 * varasm.c (assemble_real): Use real_to_target directly,
6834 calculate the number of significant elements of the result
6835 array and write them out in a loop, instead of using a giant
6836 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
6837 macro.
6838
6839 2003-09-29 Jan Hubicka <jh@suse.cz>
6840
6841 PR c++/12175
6842 * varasm.c (notice_global_symbol): Discard external symbols.
6843
6844 PR optimization/12286
6845 * gcov-io.c (gcov_read_words): Fix memmove call.
6846 * profile.c (compute_branch_probabilities): Add extra sanity checks.
6847
6848 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6849
6850 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
6851 Solaris 7-9.
6852
6853 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
6854 wildcards which explicitly match micro versions.
6855 * fixinc/fixincl.x: Regenerate.
6856
6857 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6858
6859 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6860 (A ^ B) - B, where B is any power of 2 minus 1.
6861
6862 2003-09-29 Jan Hubicka <jh@suse.cz>
6863
6864 * libgcov.c (gcov_exit): Fix two pastos.
6865
6866 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6867
6868 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
6869 define_split immediately below to form define_insn_and_split.
6870
6871 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6872
6873 * config/h8300/h8300.md (*tstsi_variable_bit): New.
6874 (*tstsi_variable_bit_qi): Likewise.
6875
6876 2003-09-28 Phil Edwards <phil@codesourcery.com>
6877
6878 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
6879 reference name.
6880
6881 2003-09-28 Richard Henderson <rth@redhat.com>
6882
6883 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
6884 file and line separately.
6885
6886 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6887
6888 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
6889 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
6890 "*subdi3_borrow_cconly"): New insns.
6891 ("*addsi3_sub", "*subsi3_sub"): Remove.
6892 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
6893 ("*subsi3_cc"): Fix op_type attribute.
6894
6895 2003-09-28 Richard Henderson <rth@redhat.com>
6896
6897 * stmt.c (expand_asm_operands): Take a location_t, instead of
6898 individual file and line.
6899 * c-typeck.c (c_expand_asm_operands): Likewise.
6900 * tree.h (expand_asm_operands): Update decl.
6901 * c-common.h (c_expand_asm_operands): Likewise.
6902 * c-semantics (genrtl_asm_stmt): Update call.
6903
6904 2003-09-28 Philip Blundell <philb@gnu.org>
6905
6906 * config/arm/arm.c (legitimize_pic_address): Check
6907 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
6908 (arm_assemble_integer): Likewise.
6909
6910 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
6911
6912 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6913 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
6914 config/c4x/c4x.h:
6915 Convert to ISO C90 function declarations and definitions.
6916
6917 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
6918
6919 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
6920 Convert to ISO C90 function declarations and definitions.
6921
6922 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
6923
6924 * config/mips/mips.c (mips_constant_info): Add reloc field.
6925 (mips_classify_constant): Initialize it. Always set SYMBOL to the
6926 underlying symbol, not to an unspec.
6927 (mips_delegitimize_address, print_operand): Clean up accordingly.
6928
6929 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
6930
6931 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
6932 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
6933 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
6934 (mips_classify_constant): Use it.
6935 (mips_splittable_symbol_p): Add an offset argument.
6936 (mips_classify_address): Adjust call accordingly.
6937 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
6938 than a relocation unspec. Update call to mips_splittable_symbol_p.
6939 Generalize the code that copes with symbols + invalid offsets.
6940 (print_operand): Allow '%R' to be applied to small data addresses.
6941 (mips_reloc_string): Remove RELOC_GPREL16.
6942 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
6943 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
6944 relocation operators.
6945 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
6946 constants accordingly.
6947
6948 2003-09-27 Roger Sayle <roger@eyesopen.com>
6949
6950 * toplev.c (flag_evaluation_order): New global variable.
6951 * flags.h (flag_evaluation_order): Prototype here.
6952 * expr.c (expand_operands): If we need to preserve observable
6953 evaluation order, protect exp1 from clobbering exp0's result.
6954
6955 2003-09-28 Andreas Jaeger <aj@suse.de>
6956
6957 * c-decl.c (finish_function): Convert definition to ISO C90.
6958 * ifcvt.c (mark_loop_exit_edges): Likewise.
6959 * ra-rewrite.c (emit_colors): Likewise.
6960
6961 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
6962
6963 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
6964 * config.gcc (arm*-*-uclinux*): Disable fixproto.
6965 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
6966 powerpc-*-eabialtivec*): Disable fixproto.
6967
6968 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
6969
6970 PR optimization/12340
6971 * loop.h (struct induction): Document the new semantics
6972 of the 'same' field for bivs.
6973 * unroll.c (biv_total_increment): Don't count the same
6974 biv increment several times.
6975 (loop_iterations) [GENERAL_INDUCT]: Likewise.
6976
6977 2003-09-27 Graham Stott <graham.stott@btinternet.com>
6978
6979 * unroll.c (loop_interations)[GT]: Add missing break.
6980
6981 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
6982
6983 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
6984 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
6985 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
6986 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
6987 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
6988 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
6989 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
6990 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
6991 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
6992 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
6993 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
6994 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
6995 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
6996 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
6997 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
6998 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
6999 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
7000 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
7001 config/alpha/xm-vms.h, config/arc/arc-modes.def,
7002 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
7003 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
7004 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7005 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
7006 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
7007 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
7008 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
7009 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
7010 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
7011 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
7012 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
7013 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
7014 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
7015 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
7016 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
7017 config/i960/i960-c.c, config/i960/i960-coff.h,
7018 config/i960/i960-modes.def, config/i960/i960-protos.h,
7019 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
7020 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
7021 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
7022 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
7023 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7024 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
7025 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
7026 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
7027 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
7028 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
7029 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
7030 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
7031 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
7032 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
7033 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
7034 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7035 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
7036 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
7037 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
7038 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
7039 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
7040 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
7041 config/mips/vr.h, config/mn10300/linux.h,
7042 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
7043 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
7044 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
7045 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
7046 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
7047 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
7048 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
7049 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
7050 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
7051 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
7052 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
7053 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
7054 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
7055 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
7056 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
7057 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
7058 fixinc/fixinc.svr4: GNU CC -> GCC.
7059
7060 2003-09-26 Loren James Rittle <ljrittle@acm.org>
7061
7062 * objc/objc-act.c (tm_p.h): Tweak order.
7063 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
7064
7065 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
7066
7067 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
7068 Include t-slibgcc-elf-ver and t-linux in tmake_file.
7069 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
7070 Disable fixproto.
7071 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
7072 Disable fixproto.
7073 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
7074 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
7075
7076 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
7077
7078 2003-09-26 Loren James Rittle <ljrittle@acm.org>
7079
7080 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
7081 * objc/objc-act.c (tm_p.h): Include.
7082
7083 2003-09-26 Per Bothner <pbothner@apple.com>
7084
7085 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
7086 No longer any need to reverse by recursion.
7087
7088 2003-09-26 Roger Sayle <roger@eyesopen.com>
7089 Richard Henderson <rth@redhat.com>
7090
7091 PR optimization/11741
7092 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
7093 appropriate set to match that in hash_scan_insn. Fall back to
7094 the original copy method, if we can't validate changing insn.
7095 (pre_delete): Only delete instructions that have a single_set,
7096 instead of aborting when we encounter an PARALLEL insn with more
7097 then one SET.
7098
7099 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
7100
7101 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
7102 ("builtin_longjmp"): Insn deleted.
7103 ("save_stack_nonlocal"): Save literal pool base pointer behind
7104 backchain and stack pointer.
7105 ("restore_stack_nonlocal"): Restore literal pool base pointer.
7106 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
7107 the stack save area for the nonlocal goto case.
7108
7109 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7110
7111 PR bootstrap/12358
7112 * pa.c (output_bvb): Fix typo.
7113
7114 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
7115
7116 * expmed.c (store_bit_field): Don't search for an integer mode
7117 unless we need the result.
7118
7119 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
7120
7121 * expr.c (emit_move_insn_1): If there is no move pattern for the
7122 original mode, try using a pattern for the corresponding integer mode.
7123
7124 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
7125
7126 PR middle-end/9200
7127 * combine.c (if_then_else_cond): Tighten mode check.
7128
7129 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7130
7131 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
7132 'struct _cpp_strbuf'.
7133
7134 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7135 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
7136 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
7137 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
7138 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
7139 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
7140 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
7141 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
7142 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
7143 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
7144 * config/i386/i386-aout.h, config/i386/i386-coff.h,
7145 config/i386/i386-interix.h, config/i386/i386-interix3.h,
7146 config/i386/i386-modes.def, config/i386/i386-protos.h,
7147 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
7148 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
7149 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
7150 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
7151 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
7152 "GNU compiler" -> GCC.
7153 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
7154 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
7155 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
7156 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
7157 config/i386/freebsd-aout.h, config/i386/freebsd.h,
7158 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
7159
7160 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
7161
7162 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
7163 "local" to the callgraph dump. Output "after inlining" earlier.
7164 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
7165 callgraph dumps. Correct misspellings.
7166 (cgraph_decide_inlining): Output number of insns before inlining.
7167 Output the calling function into which a function is inlined.
7168 (cgraph_decide_small_functions): Format dump file like always_inline.
7169
7170 2003-09-25 Loren James Rittle <ljrittle@acm.org>
7171
7172 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
7173
7174 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
7175
7176 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
7177 FPR slots in the save area.
7178 (s390_emit_epilogue): Likewise.
7179
7180 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
7181
7182 * cgraph.h (cgraph_remove_edge): Declare.
7183 * cgraph.c (cgraph_remove_edge): Make extern.
7184 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
7185 instead of cgraph_remove_call.
7186
7187 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
7188
7189 * objc/objc-act.c (gen_declaration_1): Fix printf format.
7190
7191 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
7192
7193 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
7194 arm7tdmi core.
7195
7196 2003-09-25 Ziemowit Laski <zlaski@apple.com>
7197
7198 * config/darwin-protos.h (objc_image_info_section):
7199 New prototype.
7200
7201 2003-09-25 Ziemowit Laski <zlaski@apple.com>
7202
7203 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
7204
7205 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7206
7207 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
7208 tsc701 as a --with-cpu, --with-tune setting for sparc.
7209
7210 2003-09-25 Ziemowit Laski <zlaski@apple.com>
7211
7212 * c-parse.in (objc_try_stmt): Do not specify a %type.
7213
7214 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7215
7216 * config.gcc: New 'widely ported system' clause for rtems.
7217 Set thread file there, not in individual clauses.
7218
7219 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
7220
7221 PR target/6222
7222 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
7223 passed on the stack.
7224
7225 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
7226
7227 * config.gcc (widely ported systems section): Mostly alphabetize
7228 by system. Comment the case where we can't.
7229 * config.gcc (widely ported systems section): Reindent and clean up.
7230
7231 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
7232 Actually allow ep9312 as an arm --with-arch setting.
7233
7234 * config.gcc (*-hpux11): Disable fixproto.
7235
7236 2003-09-24 Phil Edwards <phil@codesourcery.com>
7237
7238 PR pch/12112
7239 * gcc/cppfiles.c (pch_open_file): Return based on combined
7240 result of all files.
7241 (validate_pch): Return validate flag for current file.
7242
7243 2003-09-24 Roger Sayle <roger@eyesopen.com>
7244
7245 PR bootstrap/12358
7246 * fold-const.c (tree_swap_operands_p): Only reorder operands when
7247 one of the operands is constant.
7248
7249 2003-09-24 Ziemowit Laski <zlaski@apple.com>
7250
7251 MERGE OF objc-improvements-branch into MAINLINE:
7252 * Makefile.in (C_OBJS): Add in stub-objc.o.
7253 (c-parse.y): Change sed demarcations to begin with '@@'.
7254 (stub-objc.o): New rule.
7255 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
7256 flag_replace_objc_classes): New flags.
7257 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
7258 RID_AT_SYNCHRONIZED): New keywords.
7259 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
7260 flag_replace_objc_classes): New flags.
7261 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
7262 objc_comptypes, objc_message_selector, lookup_objc_ivar,
7263 get_current_scope, objc_mark_locals_volatile): New prototypes,
7264 some moved from c-tree.h.
7265 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
7266 (finish_decl): Adjust where objc_check_decl() gets called.
7267 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
7268 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
7269 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
7270 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
7271 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
7272 '@@end_ifc', respectively.
7273 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
7274 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
7275 objc_finally_block): New rules.
7276 (component_decl_list2): Clean up semantic action for @defs construct.
7277 (component_decl, c99_block_start): Remove call to add_objc_decls().
7278 (poplevel): Add call to objc_clear_super_receiver().
7279 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
7280 constructs.
7281 (classdef, methodprotolist): Clean up/simplify.
7282 (methodprotolist2): Eliminate.
7283 (methodproto): Call add_method() instead of add_class_method() and
7284 add_instance_method().
7285 (receiver): Add TYPENAME production.
7286 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
7287 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
7288 AT_SYNCHRONIZED.
7289 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
7290 objc_comptypes, objc_message_selector)
7291 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
7292 struct and pointer types.
7293 (build_c_cast): Do not discard ObjC protocol qualifiers.
7294 (convert_for_assignment): Cache result of comp_target_types() instead
7295 of calling it more than once.
7296 * c.opt (fnext-runtime): Update description string.
7297 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
7298 New ObjC/ObjC++-specific flags.
7299 * function.h (GCC_FUNCTION_H): Header guard.
7300 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
7301 * stub-objc.c: New file, to be used to satisfy references to ObjC
7302 functions by the C and C++ front-ends.
7303 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
7304 * config/darwin.h (FUNCTION): Add in_objc_image_info.
7305 (SECTION_FUNCTION): Add objc_image_info_section.
7306 * doc/invoke.texi: Link to GCC web site for Objective-C information.
7307 (-fconstant-string-class): Update documentation.
7308 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
7309 -fzero-link): New documentation.
7310 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
7311 with '@@'.
7312 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
7313 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
7314 throughout; provide casts for return values from memory allocation
7315 functions (xmalloc, alloca, ggc_alloc, etc.).
7316 (OBJC_VOID_AT_END): New macro.
7317 (rtl.h): Do not #include any more.
7318 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
7319 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
7320 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
7321 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
7322 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
7323 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
7324 val_stack_pop): New.
7325 (objc_check_decl): Fix precondition for error message, along with
7326 the message itself.
7327 (lookup_and_install_protocols): Remove nonexistent protocols from
7328 protocol list instead of returning error_mark_node.
7329 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
7330 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
7331 (synth_module_prologue): General clean-up; construct NeXT-specific
7332 runtime API prototypes if needed.
7333 (build_string_class_template): Remove.
7334 (check_string_class_template, string_layout_checked): New.
7335 (build_objc_string_object): Generalize to work with
7336 -fconstant-string-class.
7337 (build_objc_symtab_template): Fix layout for the NeXT runtime.
7338 (build_metadata_decl): New.
7339 (forward_declare_categories): Call build_metadata_decl() instead of
7340 create_builtin_decl() et al.
7341 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
7342 void_list_node_1.
7343 (build_selector_reference_decl, build_class_reference_decl,
7344 build_objc_string_decl): Do not set TREE_READONLY.
7345 (get_proto_encoding): Do not call hack_method_prototype().
7346 (get_class_reference): Add failure mode for invalid class names;
7347 support -fzero-link; defer if in an ObjC++ template declaration.
7348 (objc_declare_alias, objc_declare_class): Fix up duplicate name
7349 lookup; check for global scope if in ObjC++.
7350 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
7351 RECORD_TYPE, IDENTIFIER_NODE, etc.)
7352 (objc_is_id): Removed.
7353 (objc_is_object_ptr): New function.
7354 (get_class_ivars_from_name): New function, used for @defs construct.
7355 (get_class_ivars): Add option to return raw ivars; create a
7356 ClASS_OWN_IVARS list for each class as needed.
7357 (objc_enter_block, objc_exit_block, objc_declare_variable,
7358 objc_build_throw_stmt, val_stack_push, val_stack_pop,
7359 objc_build_try_enter_fragment, objc_build_extract_expr,
7360 objc_build_try_exit_fragment, objc_build_extract_fragment,
7361 objc_build_try_prologue, objc_build_try_epilogue,
7362 objc_build_catch_stmt, objc_build_catch_epilogue,
7363 objc_build_finally_prologue, objc_build_finally_epilogue,
7364 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
7365 objc_build_synchronized_epilogue, build_objc_exception_stuff):
7366 New functions.
7367 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
7368 the future).
7369 (build_private_template): Fix up calls to get_class_ivars().
7370 (offset_is_register, forwarding_offset): Remove.
7371 (objc_method_parm_type, objc_encoded_type_size): New functions.
7372 (encode_method_prototype): Simplify to no longer depend on
7373 back-end information.
7374 (build_tmp_function_decl_xxx, build_tmp_function_decl,
7375 hack_method_prototype): Removed.
7376 (generate_protocol_references): Remove calls to
7377 build_tmp_function_decl().
7378 (generate_protocols): Adjust calls to encode_method_prototype().
7379 (build_class_template): Generate sel_id' and 'gc_object_type' fields
7380 for the NeXT runtime.
7381 (synth_forward_declarations): Call build_metadata_decl().
7382 (check_ivars): Check that the number of ivars matches also.
7383 (build_super_template): Modify super_type directly; disable debugging
7384 output while generating decl.
7385 (build_ivar_list_initializer): Skip list elements that are not
7386 FIELD_DECLs.
7387 (ivar_list_length): New function.
7388 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
7389 and encode_method_prototype() instead of encode_method_def().
7390 (build_shared_structure_initializer): Generate 'sel_id' field for
7391 the NeXT runtime.
7392 (generate_category): Do not set TREE_USED.
7393 (build_keyword_selector): Ditto; transform into a function argument
7394 chain.
7395 (get_arg_type_list): If there are no user-specified arguments, use
7396 '...'; use OBJC_VOID_AT_END.
7397 (check_duplicates): Add a parameter indicating whether methods or
7398 selectors are being checked.
7399 (receiver_is_class_object): Add parameters indicating whether
7400 receiver is 'self' or 'super'; robustify.
7401 (build_message_expr): Defer call to finish_message_expr() if
7402 inside an ObjC++ template.
7403 (lookup_method_in_hash_lists): New function.
7404 (finish_message_expr): Complete rewrite/fix.
7405 (build_objc_method_call): Ditto; factor out commonalities between
7406 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
7407 messenger variants on the NeXT.
7408 (lookup_instance_method_static, lookup_class_method_static):
7409 Fold into a single lookup_method_static() function with an
7410 additional parameter.
7411 (add_class_method, add_instance_method): Fold into a single
7412 add_method() function with an additional parameter.
7413 (add_category): Make duplicate categories a hard error in ObjC++.
7414 (add_instance_variable): Properly handle unnamed ivars, arrays of
7415 zero or no size and bitfields. In ObjC++, check for nontrivial
7416 C++ class instances.
7417 (is_public): Allow C functions to access non-@public ivars, with
7418 a warning.
7419 (start_class): Move common initializations to
7420 synth_module_prologue(); check for global scope if in ObjC++.
7421 (continue_class): Fix calls to finish_struct().
7422 (objc_declare_protocols, start_protocol): Check for global scope
7423 if in ObjC++.
7424 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
7425 (encode_aggregate_within): Rewrite to properly distinguish
7426 struct tags from typedefs in both ObjC and ObjC++.
7427 (encode_bitfield, encode_complete_bitfield): Remove.
7428 (encode_next_bitfield, encode_gnu_bitfield): New functions.
7429 (encode_field_decl): Call encode_next_bitfield() or
7430 encode_gnu_bitfield() as needed.
7431 (synth_self_and_ucmd_args): New function.
7432 (start_method_def): Use it.
7433 (objc_types_are_equivalent): New function.
7434 (comp_proto_with_proto): Use it instead of comptypes(), since
7435 we need symmetry.
7436 (really_start_method): Use lookup_method_static() instead of
7437 lookup_class_method_static() and lookup_instance_method_static();
7438 Emit 'extern "C"' if in ObjC++ mode.
7439 (add_objc_decls): Removed.
7440 (UOBJC_SUPER_scope): New variable.
7441 (get_super_receiver): Move construction of 'super' from
7442 add_objc_decls(); remove dependency on struct objc_class.
7443 (encode_method_def): Removed; encode_method_prototype() is
7444 used instead.
7445 (objc_clear_super_receiver): New function.
7446 (objc_expand_function_end): Do not do anything for ordinary
7447 C functions.
7448 (finish_method_def): Mark ObjC methods as un-inlinable.
7449 (gen_declaration_1): Emit widths of bitfields.
7450 (finish_objc): Call generate_objc_image_info() if needed;
7451 use check_duplicates() when checking for selector duplicates.
7452 (generate_objc_image_info): New function.
7453 * objc/objc-act.h (add_instance_method, add_class_method,
7454 get_class_ivars): Remove prototypes.
7455 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
7456 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
7457 objc_build_catch_stmt, objc_build_catch_epilogue,
7458 objc_build_finally_prologue, objc_build_finally_epilogue,
7459 add_method, get_class_ivars_from_name): New prototypes.
7460 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
7461 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
7462 TRANSLATION_UNIT_DECLs.
7463 (OBJC_TYPE_NAME): New.
7464 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
7465 got included.
7466 (IS_SUPER): Robustify.
7467 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
7468 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
7469 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
7470 objc_exception_match_decl, objc_exception_throw_decl,
7471 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
7472 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
7473 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
7474 objc_catch_type): New ObjC/ObjC++ roots.
7475 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
7476 ObjC/ObjC++ tree node codes.
7477
7478 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
7479
7480 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
7481 code path that calls a handler.
7482
7483 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
7484
7485 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
7486 Disable fixproto.
7487
7488 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
7489 the section giving $with_cpu defaults by target.
7490
7491 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
7492 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
7493 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
7494 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
7495 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
7496 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
7497
7498 2003-09-24 David Edelsohn <edelsohn@gnu.org>
7499
7500 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
7501 together. Protect load string instruction with TARGET_STRING.
7502 (movti_string): Collapse case 1 and 2 together.
7503
7504 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
7505
7506 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
7507
7508 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
7509
7510 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
7511 do...while(0)
7512
7513 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7514
7515 * config.gcc: Move use_fixproto=no from generic vxworks clause to
7516 specific one.
7517
7518 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
7519 (accidentally missed in last pass).
7520
7521 2003-09-23 Andrew Pinski <apinski@apple.com>
7522
7523 PR bootstrap/12383
7524 * configure: Regenerate.
7525
7526 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7527
7528 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
7529 missed in last pass).
7530
7531 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
7532
7533 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
7534 constant.
7535
7536 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7537
7538 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
7539
7540 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
7541 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
7542 powerpcle-*-eabi*): Disable fixproto.
7543
7544 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
7545 specific FreeBSD clauses.
7546 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
7547 specific NetBSD clauses.
7548 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
7549 to specific OpenBSD clauses.
7550
7551 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7552
7553 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
7554 without adding a frame note.
7555 * pa.md (allocate_stack): Save pic register in new frame marker when
7556 generating pic code.
7557
7558 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
7559
7560 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
7561 cgraph_expand_functions.
7562
7563 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7564
7565 * Makefile.in (gnucompare*): Merge into ...
7566 (slowcompare*): ... here.
7567 (fastcompare*): New targets.
7568 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
7569 other "fast" cmp programs.
7570 * configure: Regenerate.
7571
7572 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7573
7574 * targhooks.c: Include output.h.
7575 * Makefile.in (targhooks.o): Add output.h to dependency list.
7576
7577 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7578
7579 * config.host: Removed superfluous newline.
7580
7581 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7582
7583 * config.gcc: Use ${target}, not $machine.
7584 * configure.in: Don't set $machine.
7585 * configure: Regenerate.
7586
7587 2003-09-23 Geoffrey Keating <geoffk@apple.com>
7588
7589 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
7590
7591 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
7592 pass zero-size arrays by reference.
7593 (rs6000_va_arg): Likewise.
7594
7595 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7596
7597 * config.gcc: Set use_fixproto=no in each specific *-gnu*
7598 configuration, rather than the generic one.
7599
7600 2003-09-23 Richard Henderson <rth@redhat.com>
7601
7602 * tree-inline.c (remap_save_expr): Map new save_expr to identity
7603 rather than to error_mark_node.
7604
7605 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7606
7607 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
7608 Update description.
7609 * configure: Regenerate.
7610 * config.in: Likewise.
7611 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
7612 HAVE_GAS_SHF_MERGE value.
7613 * varasm.c (mergeable_string_section): Likewise.
7614 (mergeable_constant_section): Likewise.
7615
7616 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7617
7618 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
7619 value.
7620
7621 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7622
7623 * target.h (struct gcc_target): New member external_libcall.
7624 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
7625 (TARGET_ASM_OUT): Use it.
7626 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
7627 * targhooks.c: Convert to ISO C 90.
7628 (default_external_libcall): New function.
7629 * targhooks.h (default_external_libcall): Declare.
7630 * varasm.c (assemble_external_libcall): Use
7631 targetm.asm_out.external_libcall instead of
7632 ASM_OUTPUT_EXTERNAL_LIBCALL.
7633 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
7634 (mips_output_external_libcall): Declare.
7635 * config/mips/mips.c (mips_output_external_libcall): Change
7636 definition guard.
7637 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
7638 Only operate for O32 ABI.
7639 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
7640 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
7641 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
7642 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
7643
7644 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
7645
7646 * config.gcc: Do per-target disabling of fixproto here in clauses,
7647 not in t- fragments.
7648 * configure.in: Adjust to set STMP_FIXPROTO correctly.
7649 * configure: Regenerate.
7650 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
7651 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
7652 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
7653 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
7654 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
7655 t-interix, t-linux-aout: Delete files consisting only of
7656 setting of STMP_FIXPROTO.
7657
7658 * config.host: Allow unknown hosts (not targets). Allow
7659 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
7660 empty clauses. Remove useless obsolete-configuration clause.
7661 Prune unsupported configuration list. Collapse identical
7662 clauses for closely related systems. Rewrite comment for
7663 unsupported hosts list. Reorganize a little.
7664
7665 2003-09-22 Richard Henderson <rth@redhat.com>
7666
7667 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
7668 not precision.
7669
7670 2003-09-22 David Edelsohn <edelsohn@gnu.org>
7671 Hartmut Penner <hpenner@de.ibm.com>
7672 Segher Boessenkool <boessen@de.ibm.com>
7673
7674 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
7675 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
7676 (rs6000_split_altivec_in_gprs): Rename to ...
7677 (rs6000_split_multireg_move): Add support for update addressing.
7678 * config/rs6000/rs6000-protos.h: Same.
7679 * config/rs6000/altivec.md: Same.
7680 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
7681 multiple GPRs.
7682 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
7683 (movti_power): Use new splitter for multiple GPRs.
7684 (movti_string): Same.
7685 (movti_ppc64): Same.
7686
7687 2003-09-22 Bob Wilson <bob.wilson@acm.org>
7688
7689 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
7690 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
7691
7692 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
7693
7694 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
7695 (andsi3): Set attr cc to set_zn when using shifts or adds.
7696
7697 2003-09-22 Bernardo Innocenti <bernie@develer.com>
7698
7699 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
7700
7701 2003-09-22 Bernardo Innocenti <bernie@develer.com>
7702
7703 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
7704 Resurrect -mrtd option.
7705
7706 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
7707
7708 PR target/12281
7709 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
7710 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
7711
7712 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
7713
7714 PR target/9786
7715 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
7716 after potential deletion of trapping insn. Avoids later ICE
7717 from call to fixup_abnormal_edges.
7718 (convert_regs_2): Stack the current block successors before
7719 processing this block, that is, before the potential deletion of
7720 dead edges by convert_regs_1, because these edges have been used
7721 to initialize the predecessors count.
7722
7723 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
7724
7725 * real.c: Fix several nits in the head comment.
7726
7727 2003-09-21 Richard Henderson <rth@redhat.com>
7728
7729 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7730 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7731 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7732 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7733 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
7734
7735 2003-09-21 Richard Henderson <rth@redhat.com>
7736
7737 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
7738 (TREE_FILENAME, TREE_LINENO): Likewise.
7739 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
7740 (TREE_LOCUS_SET_P): New.
7741 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7742 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7743 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7744 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7745 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
7746
7747 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
7748
7749 * config/vax/vax-protos.h: Convert to ISO C90.
7750 * config/vax/vax.c: Convert to ISO C90.
7751
7752 2003-09-21 Graham Stott <grahams@btinternet.com>
7753
7754 PR target/12353
7755 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
7756
7757 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
7758
7759 PR target/12301
7760 * reorg.c (stop_search_p): Return 1 for insns that can
7761 throw internally.
7762
7763 2003-09-20 Richard Henderson <rth@redhat.com>
7764
7765 * c-format.c (gcc_diag_char_table): Add %J.
7766 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
7767 (check_format_types): Fix wanted_type name lookup.
7768 (init_dynamic_diag_info): Setup %J.
7769 * diagnostic.c (text_specifies_location): Implement %J.
7770 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
7771 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
7772 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
7773 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
7774 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
7775
7776 * tree-inline.c: Include intl.h
7777 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
7778 * Makefile.in (tree-inline.o): Update.
7779
7780 2003-09-20 Roger Sayle <roger@eyesopen.com>
7781
7782 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
7783 transformation of a>=0 into (unsigned)a<0x80000000.
7784
7785 2003-09-20 Andrew Pinski <apinski@apple.com>
7786
7787 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
7788
7789 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
7790
7791 * Makefile.in: Don't set (unused) DLLTOOL.
7792
7793 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
7794 Remove obsolete references to ENQUIRE.
7795
7796 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
7797
7798 * configure.in: Remove --with-elf, which doesn't work.
7799 * configure: Regenerate.
7800 * config.gcc: Remove references to $elf, which does nothing.
7801
7802 * config/i386/xm-vsta.h: Remove xm-file believed useless.
7803 * config.build (i386-vsta): Remove reference to it.
7804 * config.host (i386-vsta): Remove reference to it.
7805
7806 2003-09-19 Phil Edwards <phil@codesourcery.com>
7807
7808 * doc/install.texi: Document the multiple testsuite options.
7809
7810 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
7811
7812 * doc/install.texi (Specific): Add the specific versions of GCC
7813 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
7814 version 3 and older was discontinued.
7815
7816 2003-09-19 Joel Sherrill <joel@oarcorp.com>
7817
7818 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
7819 68881.
7820
7821 2003-09-19 Bernardo Innocenti <bernie@develer.com>
7822
7823 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
7824 for -m68030, -m68020-60 and -m68020-40.
7825 * config/m68k/m68k.h (TARGET_68030): New target flag.
7826 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
7827 TARGET_REGPARM): Remove.
7828 * config/m68k/m68k.h: Regroup and renumber target flags.
7829 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
7830 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
7831 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
7832 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
7833 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
7834
7835 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7836
7837 * config/m68k/t-rtems (m68k-*-rtems*): New.
7838 * config.gcc: Use config/m68k/t-rtems.
7839
7840 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7841
7842 * config/mips/t-rtems: New.
7843 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
7844
7845 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
7846
7847 * cgraph.c: Fix typo in debugging output.
7848
7849 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7850 Eric Botcazou <ebotcazou@libertysurf.fr>
7851
7852 PR target/12166
7853 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
7854
7855 2003-09-18 Mike Stump <mrs@apple.com>
7856
7857 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
7858 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
7859 cb_ident, cb_def_pragma): Use fileline typedef.
7860 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
7861
7862 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
7863
7864 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
7865 total parm size if a parm has incomplete type.
7866 (gen_fastcall_suffix): Likewise.
7867
7868 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7869
7870 * except.c (output_function_exception_table): Adjust last change
7871 to handle TYPE of INTEGER_CST.
7872
7873 2003-09-18 Mark Mitchell <mark@codesourcery.com>
7874
7875 PR target/11184
7876 * builtins.c (expand_builtin_apply): Use convert_memory_address
7877 before returning the value.
7878
7879 * alias.c (find_base_value): Simplify use of
7880 convert_memory_address.
7881 (find_base_term): Likewise.
7882 * builtins.c (expand_builtin_stejmp_setup): Likewise.
7883 (expand_builtin_longjmp): Likewise.
7884 (expand_builtin_prefetch): Likewise.
7885 (get_memory_rtx): Likewise.
7886 (expand_builtin_return): Likewise.
7887 (expand_builtin_memcpy): Likewise.
7888 (expand_builtin_strncpy): Likewise.
7889 (expand_builtin_memset): Likewise.
7890 (expand_builtin_va_arg): Likewise.
7891 (expand_builtin_va_copy): Likewise.
7892 (expand_builtin_alloca): Likewise.
7893 * calls.c (expand_call): Likewise.
7894 * except.c (expand_builtin_extract_return_addr): Likewise.
7895 (expand_builtin_eh_return): Likewise.
7896 * explow.c (convert_memory_address): Define even when
7897 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
7898 is already in the right mode.
7899 * explow.c (memory_address): Simplify use of convert_memory_address.
7900 (probe_stack_range): Likewise.
7901 * expmed.c (make_tree): Likewise.
7902 * expr.c (emit_block_move_in_libcall): Likewise.
7903 (expand_assignment): Likewise.
7904 (expand_expr): Likewise.
7905 * function.c (assign_parms): Likewise.
7906 (expand_function_end): Likewise.
7907 * integrate.c (copy_rtx_and_substitute): Likewise.
7908 * stmt.c (expand_computed_goto): Likewise.
7909
7910 2003-09-18 Roger Sayle <roger@eyesopen.com>
7911
7912 * simplify-rtx.c (simplify_unary_operation): Only transform
7913 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
7914 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
7915
7916 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7917
7918 PR target/11674
7919 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
7920
7921 2003-09-18 Roger Sayle <roger@eyesopen.com>
7922
7923 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
7924 PARITY_EXPR): Delete unused tree codes.
7925 * c-common.c (c_common_truthvalue_conversion): Delete references
7926 to FFS_EXPR and POPCOUNT_EXPR.
7927 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
7928 (pp_c_expression): Likewise.
7929 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
7930 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
7931 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
7932 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
7933 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
7934 and long long variants.
7935
7936 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
7937
7938 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
7939 * c-pretty-print.c: Fix formatting.
7940 (pp_c_integer_constant): Append type annotation to literals. Tidy.
7941 (pp_c_type_specifier): Tidy.
7942 (pp_c_compound_literal): New function.
7943 (pp_c_initializer): Simplify..
7944 (pp_c_initializer_list): Likewise.
7945 (pp_c_brace_enclosed_initializer_list): New function.
7946 (pp_c_postfix_expression): Simplify.
7947
7948 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
7949
7950 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
7951 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
7952
7953 2003-09-17 Richard Henderson <rth@redhat.com>
7954
7955 * tree-optimize.c (tree_rest_of_compilation): Save and restore
7956 input_location.
7957
7958 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7959
7960 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
7961
7962 2003-09-17 Richard Henderson <rth@redhat.com>
7963
7964 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
7965
7966 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7967
7968 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
7969 * configure: Regenerate.
7970
7971 2003-09-17 Mark Mitchell <mark@codesourcery.com>
7972
7973 PR debug/12066
7974 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
7975 * langhooks-def.h (lhd_return_null_tree_v): New function.
7976 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
7977 (LANG_HOOKS_DECLS): Add it to the intializer.
7978 * langhooks.c (lhd_return_null_tree_v): New function.
7979 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
7980
7981 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7982
7983 * configure.in: Quote gcc_config_arguments for configargs.h.
7984 * configure: Regenerated.
7985 * gccbug.in: Don't shell-expand gcc_config_arguments.
7986
7987 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
7988
7989 PR c++/11357
7990 * c-pretty-print.c (pp_c_floating_constant): Append
7991 type-annotation to floating constants.
7992
7993 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7994
7995 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
7996 Define _ABIO32.
7997 Use it for _MIPS_SIM.
7998 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
7999
8000 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
8001 Moved ...
8002 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
8003 updating comment.
8004 Fixes PR target/10190.
8005
8006 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
8007
8008 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
8009 to shared libraries.
8010
8011 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8012
8013 PR optimization/11646
8014 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
8015 EDGE_ABNORMAL flag for EH edges.
8016 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
8017 if dead edges were purged.
8018
8019 2003-09-16 Bernardo Innocenti <bernie@develer.com>
8020
8021 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
8022 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
8023 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
8024 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
8025
8026 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
8027
8028 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
8029 returned by tablejump_p.
8030
8031 2003-09-16 Joel Brobecker <brobecker@gnat.com>
8032
8033 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
8034
8035 2003-09-16 Roger Sayle <roger@eyesopen.com>
8036
8037 PR bootstrap/12269
8038 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
8039 argument to be VOIDmode, taking the mode of the comparison from
8040 the operands. Only call simplify_relational_operation if we
8041 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
8042 if comparison has a floating point result. Ensure that the
8043 result is always of the specified mode.
8044 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
8045 (simplify_unary_operation): Ensure the correct mode and cmp_mode
8046 are always passed to simplify_gen_relational. Simplify NOT of
8047 comparison operator in any mode, not just BImode.
8048 (simplify_ternary_operation): Correct tests on the return value
8049 of simplify_relational_operation to use const_true_rtx, not
8050 const1_rtx. Abort if it ever returns a non-constant result.
8051
8052 * cfgloopanal.c (count_strange_loop_iterations): Use the function
8053 simplify_relational_operation, not simplify_gen_relational, if
8054 we're only interested in constant comparisons and will ignore
8055 non-constant results.
8056
8057 2003-09-16 Roger Sayle <roger@eyesopen.com>
8058
8059 * fold-const.c (tree_swap_operands_p): New function to determine
8060 the prefered ordering of operands.
8061 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
8062 operands to commutative, comparison or ternary operators. Replace
8063 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
8064 transformation of A ? B : C into !A ? C : B.
8065
8066 2003-09-16 Jakub Jelinek <jakub@redhat.com>
8067
8068 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8069 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8070 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8071 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8072 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8073 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8074 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8075 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8076
8077 2003-09-16 Jason Merrill <jason@redhat.com>
8078 Jakub Jelinek <jakub@redhat.com>
8079
8080 * c-common.c (handle_warn_unused_result_attribute): New function.
8081 (c_common_attribute_table): Add warn_unused_result.
8082 (c_expand_expr): Issue warning when result of inlined function
8083 with warn_unused_result attribute is ignored.
8084 * calls.c (expand_call): Issue warning when result of function
8085 with warn_unused_result attribute is ignored.
8086 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
8087 * expr.c (expr_wfl_stack): Define.
8088 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
8089 pass const0_rtx as target. Chain locations into expr_wfl_stack.
8090 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
8091 bit if inlined function has warn_unused_result attribute.
8092 * input.h (expr_wfl_stack): Declare.
8093 * doc/extend.texi: Document warn_unused_result attribute.
8094
8095 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
8096
8097 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
8098
8099 2003-09-15 Bob Wilson <bob.wilson@acm.org>
8100
8101 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
8102 ATTRIBUTE_UNUSED.
8103 (call_insn_operand): For PIC, don't allow a direct call to a
8104 function in a different section than the current one.
8105
8106 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8107
8108 * doc/invoke.texi (Warning Options): Add missing hyphen before
8109 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
8110 Move "-Wold-style-definition" to the C-only section.
8111 Fix the ordering of the warning options.
8112
8113 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8114 Jeff Law <law@redhat.com>
8115
8116 * gcse.c (remove_reachable_equiv_notes): New.
8117 replace_store_insn): Call it. Update antic list.
8118 (store_killed_in_insn): Take REG_EQUAL notes into account.
8119 (build_store_vectors, delete_store): Add parameter to
8120 replace_store_insn call.
8121
8122 2003-09-15 Bob Wilson <bob.wilson@acm.org>
8123
8124 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
8125 SYMBOL_REF_LOCAL_P.
8126
8127 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
8128
8129 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
8130 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
8131 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
8132 Likewise.
8133 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
8134 Likewise.
8135 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
8136 * config/sparc/sparc.c (function_arg_padding): Likewise.
8137
8138 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
8139
8140 * haifa-sched.c (schedule_block): Use ready_remove_first instead
8141 of choose_ready for non-dfa insn scheduling.
8142
8143 2003-09-15 Andreas Jaeger <aj@suse.de>
8144 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8145
8146 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
8147 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
8148 * c-parse.in: Warn about old-style parameter definition.
8149 * c-common.c: Define warn_old_style_defintion.
8150 * c-common.h: Declare it.
8151 * c.opt: Add Wold-style-defintion.
8152
8153 2003-09-15 Andreas Jaeger <aj@suse.de>
8154
8155 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
8156 * config/rs6000/rs6000.c: Likewise.
8157
8158 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8159
8160 PR optimization/10914
8161 * expr.h (get_condition, canonicalize_condition): Declaration changed.
8162 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
8163 and canonicalize_condition calls.
8164 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
8165 delete_null_pointer_checks): Ditto.
8166 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
8167 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
8168 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
8169 (canonicalize_condition, get_condition): Allow to return comparisons
8170 of cc mode registers.
8171 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
8172 cc mode registers comparison in condition.
8173
8174 2003-09-12 Mark Mitchell <mark@codesourcery.com>
8175
8176 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
8177 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
8178 function.
8179 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
8180
8181 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
8182
8183 * combine.c (simplify_comparison): Convert
8184 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
8185 (eq (and (lshiftrt X Y) 1) 0).
8186
8187 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
8188
8189 * alias.c: Follow spelling conventions.
8190 * cpphash.h: Likewise.
8191 * fold-const.c: Likewise.
8192
8193 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
8194
8195 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
8196 * c-lex.c (cb_line_change): Skip line changing whenever
8197 c-ppoutput.c would.
8198
8199 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
8200
8201 * ra.c: Convert to ISO C90 prototypes.
8202 * ra-build.c: Likewise.
8203 * ra-colorize.c: Likewise.
8204 * ra-debug.c: Likewise.
8205 * ra-rewrite.c: Likewise.
8206
8207 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
8208
8209 * Makefile.in (%.dvi): Remove excess $(docdir).
8210
8211 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
8212
8213 * function.c (STACK_BYTES): Move definition to head of file.
8214 (assign_parms): Don't pass current_function_pretend_args_size
8215 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
8216 round current_function_pretend_args_size up to STACK_BYTES. Skip any
8217 excess before laying out the argument.
8218
8219 2003-09-14 Andreas Jaeger <aj@suse.de>
8220
8221 * objc/objc-act.c: Convert to ISO C90 prototypes.
8222 * objc/objc-act.h: Likewise.
8223
8224 2003-09-14 Olaf Hering <olh@suse.de>
8225
8226 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
8227
8228 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
8229
8230 PR target/12021
8231 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
8232 as they already are done in config/m68k/m68k.h.
8233 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
8234
8235 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
8236 (machopic_output_stub): Only generate pic base symbols when using pic
8237 and generate them in the form L00000000$spb.
8238
8239 2003-09-13 Richard Henderson <rth@redhat.com>
8240
8241 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
8242 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
8243 * cgraph.h: Update.
8244
8245 2003-09-12 Dale Johannesen <dalej@apple.com>
8246
8247 * config/rs6000/rs6000.c: Fix typos in previous.
8248
8249 2003-09-12 Ziemowit Laski <zlaski@apple.com>
8250
8251 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
8252 when allocating pp->buffer.
8253
8254 2003-09-12 Geoffrey Keating <geoffk@apple.com>
8255
8256 * config/darwin.c (machopic_select_rtx_section): Use
8257 const_data_section for things that might require relocation.
8258
8259 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
8260
8261 PR bootstrap/12264
8262 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
8263
8264 2003-09-12 Bob Wilson <bob.wilson@acm.org>
8265
8266 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
8267 * config/xtensa/linux.h (ASM_SPEC): Likewise.
8268 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
8269 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
8270 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
8271 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
8272 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
8273 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
8274 and redefine corresponding TARGET_* macros with constants from the
8275 xtensa-config.h header.
8276 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
8277 for the options listed above.
8278
8279 2003-09-12 Dale Johannesen <dalej@apple.com>
8280
8281 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
8282 * config/rs6000/rs6000-c.c: Ditto.
8283 * config/rs6000/rs6000.c: Ditto.
8284 * config/rs6000/ sysv4.h: Ditto.
8285
8286 2003-09-12 Chris Lattner <sabre@nondot.org>
8287
8288 * loop.c: Move comments describing BIV's and GIV's to top of file
8289
8290 2003-09-12 Roger Sayle <roger@eyesopen.com>
8291
8292 PR optimization/8967
8293 * alias.c (write_dependence_p): Modify to take an additional constp
8294 argument that controls whether the UNCHANGING_RTX_P flags are used.
8295 (anti_dependence, output_dependence): Adjust write_dependence_p
8296 callers to pass this additional argument, to return the same result.
8297 (unchanging_anti_dependence): New variant of anti_dependence that
8298 ignores the UNCHANGING_RTX_P property on memory references.
8299 * rtl.h (unchaning_anti_dependence): Prototype here.
8300 * flow.c (init_propagate_block): Place fake constant mem writes on
8301 the mem_set_list so that dead writes to const variables are deleted.
8302 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
8303 (mark_used_regs): Likewise.
8304
8305 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
8306
8307 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
8308 (mcore_secondary_reload_class): Declare.
8309 (mcore_output_inline_const_forced): Remove.
8310 * config/mcore/mcore.md (movsi): Remove the code that forced
8311 non-inlineable constants into a register if the target was r15
8312 or the stack pointer. Remove constant restrictions from the main
8313 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
8314 of an r <- P alternative. Remove fallback define_insn for reload.
8315 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
8316 define_insn. Use mcore_output_move in the remaining define_insn.
8317 Adjust condition and constraints in the way as for movsi.
8318 (movdi): Always split unacceptable constants into two. Use
8319 simplify_gen_subreg instead of operand_subword{,_force}.
8320 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
8321 (mcore_output_move): Support HImode and QImode moves as well.
8322 (mcore_m15_operand_p): New function.
8323 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
8324 (mcore_secondary_reload_class): New function.
8325 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
8326 terms of mcore_secondary_reload_class.
8327
8328 2003-09-11 Mike Stump <mrs@apple.com>
8329
8330 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
8331
8332 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8333
8334 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
8335 MODE exactly, then only convert logN(N) -> 1.0 if
8336 flag_unsafe_math_optimizations is set.
8337
8338 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
8339 init_builtin_dconsts): Delete.
8340 * emit-rtl.c (dconstpi, dconste): Define.
8341 (init_emit_once): Initialize dconstpi & dconste.
8342 * real.h (dconstpi, dconste): Declare.
8343
8344 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
8345
8346 PR fortran/11522
8347 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
8348 for ultimate origin even if block is abstract.
8349
8350 2003-09-11 Roger Sayle <roger@eyesopen.com>
8351
8352 * combine.c (combine_simplify_rtx): Move several NOT and NEG
8353 optimizations from here...
8354 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
8355 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
8356
8357 2003-09-11 Richard Henderson <rth@redhat.com>
8358
8359 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
8360 Tweek tests for function already generated.
8361 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
8362 * cgraph.h (cgraph_finalize_function): Update for extra arg.
8363 * c-decl.c (finish_function): Likewise.
8364
8365 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
8366
8367 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
8368
8369 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
8370
8371 * real.c: Update URL to VAX floating point docs.
8372 (decode_vax_d): Extract 8 exponent bits instead of 7.
8373
8374 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
8375
8376 * combine.c (force_to_mode): Set fuller_mask based only on mask,
8377 not op_mode.
8378
8379 2003-09-11 Jan Hubicka <jh@suse.cz>
8380
8381 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
8382 on why function is not inlinable; do not check
8383 the body.
8384 (inline_forbidden_p): Move to...
8385 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
8386 deal with alloca, longjmp.
8387 (inline_forbidden_p): New static function.
8388 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
8389 find_builtin_longjmp_call): Kill.
8390
8391 2003-09-10 Richard Henderson <rth@redhat.com>
8392
8393 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
8394 * cgraphunit.c: Update to match.
8395 (record_call_1): Rearrange. Call lang hook for language nodes.
8396 (cgraph_analyze_function): Don't call lower_function.
8397 * langhooks.h (struct lang_hooks_for_callgraph): Replace
8398 lower_function with analyze_expr.
8399 * langhooks-def.h: Update to match.
8400 * langhooks.c (lhd_callgraph_analyze_expr): New.
8401
8402 2003-09-10 Martin Husemann <martin@duskware.de>
8403
8404 PR target/11965
8405 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
8406 constants greater than 63.
8407 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
8408 against constants greater than 31.
8409 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
8410 constants greater than 63.
8411
8412 2003-09-09 Richard Henderson <rth@redhat.com>
8413
8414 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
8415 * cgraph.h (cgraph_finalize_function): Update.
8416 * c-decl.c (finish_function): Update.
8417
8418 2003-09-09 Devang Patel <dpatel@apple.com>
8419
8420 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
8421 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
8422
8423 2003-09-09 Eric Christopher <echristo@redhat.com>
8424
8425 * configure.in: Change usage of 'head' to 'sed 1q'.
8426 * configure: Regenerate.
8427
8428 2003-09-09 Richard Henderson <rth@redhat.com>
8429
8430 * except.c: Include cgraph.h.
8431 (output_function_exception_table): Invoke
8432 cgraph_varpool_mark_needed_node.
8433 * Makefile.in (except.o): Update.
8434
8435 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
8436
8437 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
8438 and use it throughout.
8439
8440 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8441
8442 * builtins.c (real_dconstp, fold_builtin_logarithm,
8443 fold_builtin_exponent): New, split out from fold_builtin. Also
8444 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
8445 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
8446 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
8447 of hardcoded array size.
8448 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
8449 (tree_expr_nonnegative_p): Likewise.
8450 * real.h (dconst3, dconst10, dconstthird): New.
8451
8452 2003-09-09 Jan Hubicka <jh@suse.cz>
8453
8454 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
8455 inline functions.
8456 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
8457 DECL_SAVED_TREE.
8458
8459 2003-09-09 Roger Sayle <roger@eyesopen.com>
8460
8461 * builtins.c (fold_builtin_cabs): Protect the complex argument
8462 against multiple evaluation when optimizing cabs* into sqrt*.
8463
8464 2003-09-09 Jan Hubicka <jh@suse.cz>
8465
8466 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
8467
8468 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
8469
8470 * Makefile.in: Revert yesterday's change.
8471
8472 2003-09-08 Bernardo Innocenti <bernie@develer.com>
8473 Peter Barada <peter@baradas.org>
8474
8475 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
8476 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
8477 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
8478 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
8479 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
8480 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
8481 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
8482 (m68k_compute_frame_layout): New function.
8483 (m68k_initial_elimination_offset): New function.
8484 (m68k_output_function_prologue): ColdFire-specific movem handling.
8485 (m68k_output_function_epilogue): Likewise.
8486 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
8487 (ARG_POINTER_REGNUM): Add new definition.
8488 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
8489 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
8490 (CAN_ELIMINATE): Likewise.
8491 (INITIAL_ELIMINATION_OFFSET): Likewise.
8492
8493 2003-09-08 Bernardo Innocenti <bernie@develer.com>
8494
8495 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
8496 by removing redundant variable cfa_store_offset.
8497
8498 2003-09-08 Mark Mitchell <mark@codesourcery.com>
8499
8500 * langhooks-def.h (lhd_register_builtin_type): New function.
8501 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
8502 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8503 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
8504 * langhooks.c (lhd_register_builtin_type): New function.
8505 * c-common.h (c_register_builtin_type): Declare.
8506 * c-common.c (c_register_builtin_type): New function.
8507 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
8508 c_register_builtin_type.
8509 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
8510 __float80, and __float128 macros.
8511 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
8512 __float80, and __float128 types.
8513
8514 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8515
8516 * builtin-types.def
8517 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
8518 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
8519 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
8520 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
8521 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
8522 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
8523 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
8524 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
8525 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
8526 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
8527 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
8528 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
8529 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
8530 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
8531 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
8532 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
8533 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
8534 New.
8535 * doc/extend.texi: Document new builtins.
8536
8537 2003-09-09 Jan Hubicka <jh@suse.cz>
8538
8539 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
8540 finalization.
8541 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
8542 functions, check for COMDAT.
8543 (cgraph_assemble_pending_functions): Break out from...
8544 (cgraph_finalize_function): ... here; allow redefinig of extern inline
8545 functions.
8546 (record_call_1): Record function references only in non-unit-at-a-time
8547 mode.
8548 (cgraph_analyze_function): Reset current_function_decl.
8549 (cgraph_finalize_compilation_unit): Assemble pending functions.
8550
8551 2003-09-08 Mark Mitchell <mark@codesourcery.com>
8552
8553 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
8554 (libgov.a): Likewise.
8555 (libgcc_eh.a): Likewise.
8556
8557 2003-09-08 Roger Sayle <roger@eyesopen.com>
8558
8559 * fold-const.c (operand_equal_p): Clarify documentation.
8560
8561 2003-09-08 Richard Henderson <rth@redhat.com>
8562
8563 * c-decl.c (c_expand_body_1): Push and pop function context here.
8564 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
8565 nested argument instead of computing nesting ourselves.
8566
8567 2003-09-08 Jakub Jelinek <jakub@redhat.com>
8568
8569 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
8570 regstack if optimizing but not scheduling after reload.
8571
8572 2003-09-08 Jakub Jelinek <jakub@redhat.com>
8573
8574 * config/sparc/sparc.c (struct machine_function): New type.
8575 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
8576 (sparc_override_options): Initialize init_machine_status.
8577 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
8578 tie_symbolic_operand, tle_symbolic_operand): New functions.
8579 (symbolic_operand): Disallow tls_symbolic_operand.
8580 (symbolic_memory_operand): Likewise.
8581 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
8582 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
8583 New functions.
8584 (sparc_tls_symbol): New variable.
8585 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
8586 legitimize_address): New functions.
8587 (print_operand): Handle %&.
8588 (sparc_init_machine_status, get_some_local_dynamic_name,
8589 get_some_local_dynamic_name_1): New functions.
8590 (sparc_output_dwarf_dtprel): New function.
8591 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
8592 constant_address_p.
8593 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
8594 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
8595 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
8596 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
8597 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
8598 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
8599 (ASM_OUTPUT_DWARF_DTPREL): Define.
8600 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
8601 tie_symbolic_operand, tle_symbolic_operand.
8602 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
8603 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
8604 (tls_call_delay): New attribute.
8605 (in_call_delay): Use it.
8606 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
8607 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
8608 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
8609 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
8610 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
8611 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
8612 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
8613 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
8614 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
8615 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
8616 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
8617 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
8618 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
8619 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
8620 insns.
8621 * config/sparc/sparc-protos.h (legitimate_constant_p,
8622 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
8623 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
8624 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
8625 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8626 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
8627 * configure.in (sparc*-*-*): Add TLS check.
8628 * configure: Rebuilt.
8629
8630 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8631
8632 PR target/11689
8633 * config/i386/i386.c (memory_address_length): Fix computation when
8634 the base is esp or ebp.
8635
8636 2003-09-07 Mark Mitchell <mark@codesourcery.com>
8637
8638 PR c++/11852
8639 * varasm.c (initializer_constant_valid_p): Correct logic for
8640 CONSTRUCTORs.
8641
8642 2003-09-07 Roger Sayle <roger@eyesopen.com>
8643
8644 * expr.c (expand_operands): New function to expand an operand pair.
8645 (expand_expr): Call expand_operands whenever we need to expand both
8646 operands of a binary operator.
8647 (do_store_flag): Likewise for operands of comparison operations.
8648
8649 2003-09-07 Roger Sayle <roger@eyesopen.com>
8650
8651 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
8652 (-A)*B if we care about sign-dependent rounding.
8653
8654 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
8655
8656 * c-pretty-print.h (pp_c_left_brace): Declare.
8657 (pp_c_right_brace): Likewise.
8658 * c-pretty-print.c (pp_c_left_brace): Now a function
8659 (pp_c_right_brace): Likewise.
8660
8661 2003-09-07 Jan Hubicka <jh@suse.cz>
8662
8663 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
8664
8665 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
8666
8667 * diagnostic.c (warn_deprecated_use): Move to toplev.c
8668
8669 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
8670
8671 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
8672 * Makefile.in (langhooks.o): Depend on diagnostic.h
8673
8674 2003-09-06 James E Wilson <wilson@tuliptree.org>
8675
8676 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
8677 simplify.
8678
8679 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
8680
8681 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
8682 and use it throughout.
8683
8684 2003-09-07 Jan Hubicka <jh@suse.cz>
8685
8686 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
8687
8688 * toplev.c (rest_of_decl_compilation): Do not finalize external
8689 virables.
8690
8691 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
8692 functions.
8693 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
8694
8695 2003-09-06 Jan Hubicka <jh@suse.cz>
8696
8697 PR target/12070
8698 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
8699
8700 PR opt/12082
8701 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
8702
8703 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
8704
8705 * diagnostic.c (announce_function): Move to toplev.c.
8706
8707 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8708
8709 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
8710 volatile mem.
8711
8712 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8713
8714 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
8715 when gc checking is enabled.
8716
8717 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
8718
8719 PR c/9862
8720 * c-decl.c (c_expand_body_1): Move return warning from here...
8721 (finish_function): ...to here.
8722
8723 2003-09-05 Geoffrey Keating <geoffk@apple.com>
8724
8725 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
8726 a subset of the input class.
8727
8728 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
8729
8730 * config/i860/i860.c: Follow spelling conventions.
8731 * config/i860/i860.h: Likewise.
8732 * config/sh/sh.h: Likewise.
8733
8734 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
8735
8736 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
8737 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
8738 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
8739
8740 2003-09-05 Roger Sayle <roger@eyesopen.com>
8741 Richard Henderson <rth@redhat.com>
8742
8743 PR optimization/1823
8744 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
8745 multiplication to implement division by constant integer.
8746
8747 2003-09-05 Jan Hubicka <jh@suse.cz>
8748
8749 * opts.c (decode_options): Enable unit-at-a-time at -O2.
8750 * params.def (max-inline-insns-single): Set to 500
8751 (max-inline-insns-auto): Set to 150
8752 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
8753
8754 2003-09-04 Richard Henderson <rth@redhat.com>
8755
8756 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
8757 (cgraph_mark_needed_node): Remove needed argument.
8758 * cgraph.h: Update to match.
8759 * cgraphunit.c (decide_is_function_needed): Split out from ...
8760 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
8761 if we generated the function.
8762 (record_call_1): Update for cgraph_mark_reachable_node.
8763 * varasm.c (mark_referenced): Likewise.
8764 * objc/objc-act.c (mark_referenced_methods): Likewise.
8765
8766 2003-09-04 DJ Delorie <dj@redhat.com>
8767
8768 * targhooks.c: Add comment explaining the migration process.
8769
8770 2003-09-04 Eric Christopher <echristo@redhat.com>
8771
8772 * config/frv/t-frv: Fix path for frv-abi.h.
8773 * config/frv/frv-asm.h: Fix string concatenation.
8774
8775 2003-09-04 DJ Delorie <dj@redhat.com>
8776
8777 * builtins.c (apply_args_size): Guard against a NULL cfun.
8778 (expand_builtin_apply_args_1): Likewise.
8779 (expand_builtin_apply): Likewise.
8780 Fixes PR bootstrap/12172.
8781
8782 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8783
8784 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
8785 assembler supports Sun syntax for cmov.
8786 * configure: Regenerate.
8787 * config.in: Likewise.
8788 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
8789 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
8790 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
8791 Fixes PR target/12101.
8792
8793 2003-09-04 Matt Austern <austern@apple.com>
8794
8795 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
8796 with verbosity 0, instead of DECL_NAME, for human-readable string.
8797
8798 2003-09-04 Eric Christopher <echristo@redhat.com>
8799
8800 * targhooks.c (default_return_in_memory): Allow
8801 unconverted ports.
8802
8803 2003-09-04 Eric Christopher <echristo@redhat.com>
8804
8805 * targhooks.c (default_return_in_memory): Fix typo
8806 in last checkin.
8807
8808 2003-09-04 Eric Christopher <echristo@redhat.com>
8809
8810 * targhooks.c (default_return_in_memory): Fix default
8811 definition.
8812
8813 2003-09-04 Bernardo Innocenti <bernie@develer.com>
8814
8815 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
8816 deleted function.
8817 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
8818 enable coff-only code in m68k.c.
8819
8820 2003-09-04 Nick Clifton <nickc@redhat.com>
8821
8822 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
8823 v850e1.
8824 * config/v850/v850.h: Accept v850e1 as a default CPU.
8825 Accept -mv850e1 as a command line option.
8826 * doc/invoke.texi: Document new -mv850e1 command line switch.
8827 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
8828 -mv850e.
8829
8830 2003-09-04 Nick Clifton <nickc@redhat.com>
8831
8832 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
8833 * config/v850/t-v850: Only produce one extra multilib - for
8834 the v850e.
8835 * config/v850/t-v850e: New file: Only produce one extra
8836 multilib - for the v850.
8837
8838 2003-09-04 Jakub Jelinek <jakub@redhat.com>
8839
8840 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
8841 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
8842 * unwind.h (_Unwind_GetBSP): New prototype.
8843 * libgcc-std.ver: Add empty GCC_3.3.2 version.
8844 * mkmap-symver.awk: For symbol versions with no exported symbols,
8845 don't put anything into version script, just change all symbol
8846 versions which inherit from it to inherit from its ancestor.
8847
8848 2003-09-04 Eric Christopher <echristo@redhat.com>
8849
8850 * config/mips/mips.c (mips_expand_prologue): Convert to
8851 calls.struct_value_rtx hook.
8852 (reg_or_const_float_1_operand): New.
8853 * config/mips/mips.h: Update Comments.
8854 (mips_arg): Add reg_or_const_float_1_operand.
8855 * config/mips/mips.md (divdf3); Convert to expander.
8856 (divsf3): Ditto.
8857 (*divdf3): New pattern.
8858 (*divsf3): Ditto.
8859
8860 2003-09-04 Jan Hubicka <jh@suse.cz>
8861
8862 * toplev.c (wrapup_global_declarations): Fix final pass in
8863 unit-at-atime mode.
8864
8865 2003-09-04 Mark Mitchell <mark@codesourcery.com>
8866
8867 * doc/extend.texi: Document removal of cast-as-lvalue extension in
8868 C++.
8869
8870 2003-09-04 Nicolas Roche <roche@act-europe.fr>
8871
8872 * gcc.c (process_command): Fix typo.
8873
8874 2003-09-03 David O'Brien <obrien@FreeBSD.org>
8875
8876 optimization/11980
8877 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
8878 (PTRDIFF_TYPE): Likewise.
8879 (WCHAR_TYPE_SIZE): Likewise.
8880
8881 2003-09-03 DJ Delorie <dj@redhat.com>
8882
8883 * targhooks.c: New file.
8884 * targhooks.h: New file.
8885 * Makefile.in: Add targhooks.o support.
8886 (function.o): Depend on$(TARGET_H).
8887 (stmt.o): Likewise.
8888 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
8889 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
8890 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
8891 (expand_builtin_saveregs): Convert to
8892 calls.expand_builtin_saveregs hook.
8893 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
8894 here, instead of ...
8895 (get_parm_info) ... here.
8896 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
8897 hook.
8898 (finish_function): Handle calls.promote_prototypes hook here too.
8899 * c-typeck.c (convert_arguments): Convert to
8900 calls.promote_prototypes hook.
8901 (c_convert_parm_for_inlining): Likewise.
8902 * calls.c (initialize_argument_information): Convert to
8903 calls.promote_function_args hook.
8904 (expand_call): Convert to calls.struct_value_rtx,
8905 calls.strict_argument_naming,
8906 calls.pretend_outgoing_varargs_named, and
8907 calls.promote_function_return hooks. Pass fndecl to
8908 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
8909 hooks, so they can use that.
8910 (emit_library_call_value_1): Likewise.
8911 * combine.c (setup_incoming_promotions): Convert to
8912 calls.promote_function_args hook.
8913 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
8914 * expr.c (expand_assignment): Pass call to aggregate_value_p.
8915 (expand_expr): Likewise.
8916 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
8917 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8918 RETURN_IN_MEMORY macro defaults.
8919 * final.c (profile_function): Convert to calls.struct_value_rtx
8920 hook.
8921 * function.c (aggregate_value_p): Accept function type tree as
8922 second parameter; try to deduce fntype from it. Convert to
8923 calls.return_in_memory hook.
8924 (assign_parms): Convert to calls.setup_incoming_varargs,
8925 calls.strict_argument_naming, calls.promote_function_args,
8926 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
8927 aggregate_value_p.
8928 (expand_function_start): Likewise. Convert to
8929 calls.struct_value_rtx hook.
8930 (expand_function_end): Convert to calls.promote_function_return hook.
8931 (allocate_struct_function): Pass fndecl to aggregate_value_p.
8932 * hard-reg-set.h: Update comments to new hook names.
8933 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
8934 * reg-stack.c (stack_result): Likewise.
8935 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
8936 * stmt.c (expand_value_return): Convert to
8937 calls.promote_function_return hook.
8938 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
8939 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8940 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
8941 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
8942 TARGET_STRICT_ARGUMENT_NAMING,
8943 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
8944 * target.h: Likewise.
8945 * tree.h (aggregate_value_p): Also takes a tree to deduce function
8946 attributes from (for target hooks).
8947 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
8948 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
8949 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
8950 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
8951 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
8952 to hooks.
8953
8954 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
8955 to aggregate_value_p.
8956 * config/arm/arm.c (arm_init_cumulative_args,
8957 arm_output_mi_thunk): Likewise.
8958 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
8959 Likewise.
8960 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
8961 mips_can_use_return_insn): Likewise.
8962 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8963 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8964 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
8965 aggregate_value_p.
8966 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
8967 function to aggregate_value_p.
8968 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
8969 aggregate_value_p.
8970
8971 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
8972 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
8973 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
8974 (sh_handle_renesas_attribute, sh_promote_prototypes,
8975 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
8976 sh_setup_incoming_varargs, sh_strict_argument_naming,
8977 sh_pretend_outgoing_varargs_named): New decls.
8978 (targetm): Add new hooks.
8979 (calc_live_regs): Save MACL and MACH if the function has the
8980 renesas attribute.
8981 (sh_expand_prologue): Support renesas attribute.
8982 (sh_builtin_saveregs): Make static.
8983 (sh_build_va_list): Support renesas attribute.
8984 (sh_va_start): Likewise.
8985 (sh_va_arg): Likewise.
8986 (sh_promote_prototypes): New.
8987 (sh_function_arg): New, moved from sh.h. Support renesas
8988 attribute.
8989 (sh_function_arg_advance): Likewise.
8990 (sh_return_in_memory): Likewise.
8991 (sh_strict_argument_naming): Likewise.
8992 (sh_pretend_outgoing_varargs_named): Likewise.
8993 (sh_struct_value_rtx): New.
8994 (sh_attribute): Add renesas attribute.
8995 (sh_handle_renesas_attribute): New.
8996 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
8997 (sh_ms_bitfield_layout_p): Support renesas attribute also.
8998 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
8999 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
9000 -mhitachi.
9001 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
9002 target hooks.
9003 (sh_args): Add renesas_abi flag.
9004 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
9005 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
9006 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
9007 stack for the renesas abi.
9008 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
9009 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
9010 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
9011 call cookie to indicate renesas calls.
9012
9013 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
9014
9015 * gcse.c (replace_one_set): New function.
9016 (pre_insert_copy_insn): Change the order of copying
9017 to make copy propagation discover additional PRE opportunities.
9018
9019 2003-09-03 Roger Sayle <roger@eyesopen.com>
9020
9021 PR optimization/11700.
9022 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
9023 of a hard register is representable before trying to simplify it
9024 using subreg_hard_regno.
9025
9026 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9027
9028 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
9029 * configure: Regenerate.
9030
9031 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9032
9033 * intl.h (N_): Remove parentheses.
9034
9035 2003-09-03 Bernardo Innocenti <bernie@develer.com>
9036
9037 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
9038 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
9039 definition and code blocks compiled when not defined.
9040 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
9041 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
9042 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
9043 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
9044
9045 2003-09-03 Jeff Sturm <jsturm@one-point.com>
9046
9047 * cgraphunit.c (visited_nodes): New static variable.
9048 (record_call_1): Use walk_tree with visited_nodes.
9049 (cgraph_create_edges): Use walk_tree with visited_nodes.
9050 Setup/teardown visited_nodes hashtable.
9051
9052 2003-09-03 Roger Sayle <roger@eyesopen.com>
9053
9054 * toplev.c (flag_rounding_math): New global variable.
9055 (f_options): Add to the list of language independent options.
9056 * flags.h (flag_rounding_math): Prototype here.
9057 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
9058 * common.opt (frounding-math): New common command line option.
9059 * opts.c (common_handle_option): Handle OPT_frounding_math.
9060 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
9061
9062 * doc/invoke.texi: Document this new command line option.
9063
9064 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9065
9066 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
9067
9068 2003-09-03 Jan Hubicka <jh@suse.cz>
9069
9070 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
9071 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
9072 * c-objc-common.c: Kill include of gt-c-objc-common.h
9073 (expand_deferred_fns, deffer_fn): Kill function.
9074 (deferred_fns): Kill variable.
9075 (finish_cdtor): Update finish_function call.
9076 (c_objc_common_finish_file): Always call cgraph code.
9077 * c-parse.c: Regenerate.
9078 * c-parse.y: Regenerate.
9079 * c-tree.h (finish_function): Update prototype.
9080 * objc-acct.c (build_module_descriptor, finish_method_def):
9081 Update call of finish_function.
9082 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
9083 forward prototype.
9084 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
9085 function and assemble it if needed.
9086 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
9087 mode.
9088 (cgraph_optimize): Likewise.
9089 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
9090 even when it has no inline callees.
9091 * c-parse.in: Update calls to finish_function.
9092
9093 2003-09-03 Nick Clifton <nickc@redhat.com>
9094
9095 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
9096 Use #error to generate the message if TARGET_DEFAULT is not
9097 recognised.
9098
9099 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
9100
9101 * config/mips/mips.h (MASK_UNUSED1): Remove.
9102 (MASK_XGOT, TARGET_XGOT): Define.
9103 (TARGET_SWITCHES): Add an entry for -mxgot.
9104 (ASM_SPEC): Map -mxgot to -xgot.
9105 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
9106 whether we're using a big-GOT sequences.
9107 (mips_legitimize_const_move, mips_expand_call): Likewise.
9108 (override_options): Revert 2003-01-09 change.
9109 * doc/invoke.texi: Document -mxgot.
9110
9111 2003-09-02 Jason Merrill <jason@redhat.com>
9112
9113 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
9114 * config/sparc/sol2.h: Not here.
9115
9116 2003-09-02 Roger Sayle <roger@eyesopen.com>
9117
9118 * expr.c (expand_expr): The code following both_summands performs
9119 the same task as simplify_gen_binary. Replace all gotos to
9120 both_summands with a call to simplify_gen_binary and delete the
9121 now unused label.
9122
9123 2003-09-02 Jason Merrill <jason@redhat.com>
9124
9125 PR c++/7327
9126 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
9127
9128 2003-09-02 Jeff Sturm <jsturm@one-point.com>
9129
9130 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
9131 (cgraph_optimize_function): Set current_function_decl to the
9132 fndecl we're integrating from.
9133
9134 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9135
9136 * builtins.def: Break out _Complex math functions into their
9137 own category.
9138
9139 2003-09-02 Andreas Jaeger <aj@suse.de>
9140
9141 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
9142
9143 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
9144
9145 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
9146 finding the note again.
9147
9148 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
9149
9150 * config.gcc: Remove host-specific rewrites of target_alias.
9151
9152 2003-09-01 Mark Mitchell <mark@codesourcery.com>
9153
9154 * Makefile.in (genprogs): Fix typo.
9155
9156 * Makefile.in (gencheck.o): Remove build commands.
9157 (dummy-conditions.o): Likewise.
9158 (read-rtl.o): Likewise.
9159 (gensupport.o): Likewise.
9160 (genconfig$(build_exeext)): Remove rule.
9161 (genconfig.o): Remove build commands.
9162 (genflags$(build_exeext)): Remove rule.
9163 (genflags.o): Remove build commands.
9164 (gencodes$(build_exeext)): Remove rule.
9165 (gencodes.o): Remove build commands.
9166 (genconstants.o): Remove build commands.
9167 (genemit$(build_exeext)): Remove rule.
9168 (genemit.o): Remove build commands.
9169 (genrecog$(build_exeext)): Remove rule.
9170 (genrecog.o): Remove build commands.
9171 (genextract$(build_exeext)): Remove rule.
9172 (genextract.o): Remove build commands.
9173 (genpeep$(build_exeext)): Remove rule.
9174 (genpeep.o): Remove build commands.
9175 (genattr$(build_exeext)): Remove rule.
9176 (genattr.o): Remove build commands.
9177 (genprognames): New variable.
9178 (genprogs): Likewise.
9179 (genobjs): Likewise.
9180 (genprogs): New rule.
9181 (genobjs): Likewise.
9182 (genattrtab.o): Remove build commands.
9183 (genautomata.o): Likewise.
9184 (genoutput$(build_exeext)): Remove rule.
9185 (genoutput.o): Remove build commands.
9186 (gengenrtl.o): Likewise.
9187 (genpreds.o): Likewise.
9188 (gengtype.o): Likewise.
9189 (genconditions.o): Likewise.
9190 (gen-protos.o): Likewise.
9191 (scan.o): Likewise.
9192 (fix-header.o): Likewise.
9193 (scan-decls.o): Likewise.
9194 (check-g++): Combine with other check targets.
9195 (check-gcc): Likewise.
9196 (check-g77): Likewise.
9197 (check-objc): Likewise.
9198
9199 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
9200
9201 * config.gcc: Remove host-specific stuff which is unused here
9202 since the introduction of config.host.
9203
9204 * doc/fragments.texi: Mention config.host.
9205 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
9206 of config.build, config.host, and config.gcc.
9207
9208 2003-09-01 Zack Weinberg <zack@codesourcery.com>
9209
9210 * c-decl.c (pushdecl): Don't put variables on
9211 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
9212 incomplete.
9213
9214 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
9215
9216 * config.host: New file.
9217 * config.gcc: Remove some host-specific stuff and some
9218 logic needed only for repeated invocation.
9219 * configure.in: Use config.host.
9220 * configure: Regenerate.
9221
9222 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
9223
9224 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
9225 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
9226 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
9227 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
9228 * tree.def (BIT_ANDTC_EXPR): Kill.
9229
9230 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
9231
9232 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
9233 * configure: Regenerate.
9234
9235 * config.gcc: Remove references to install_headers_dir, now unused
9236 since introduction of config.build.
9237 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
9238
9239 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
9240 config.build.
9241
9242 * config.build: New file.
9243 * config.gcc: Remove some build-specific stuff.
9244 * configure.in: Use config.build.
9245 * configure: Regnerate.
9246
9247 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
9248 Roger Sayle <roger@eyesopen.com>
9249
9250 PR middle-end/11823
9251 * stmt.c (expand_end_case_type): Only use jump tables for dense
9252 switch statements when optimizing for size.
9253
9254 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
9255
9256 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
9257 the != 0 case, which ensures pending stack adjustments are flushed.
9258
9259 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9260
9261 * configure.frag: Delete file.
9262 * configure.in: Rename the substitution variables
9263 dep_host_xmake_file and dep_tmake_file to xmake_file and
9264 tmake_file respectively. Do not expand $srcdir in the
9265 value of these; leave that for Make. Introduce a new
9266 substitution varaible, all_lang_makefrags, which lists
9267 subdirectory Make-lang.in files; exclude these from
9268 all_lang_makefiles, which is now only for subdirectory
9269 outputs. Do not invoke configure.frag. Do not set nor
9270 AC_SUBST_FILE target_overrides, host_overrides, or
9271 language_fragments. Create build subdirectories in
9272 config.status extra commands.
9273 * configure: Regenerate.
9274 * Makefile.in: Update substitutions to match changes to
9275 configure. Use include directives instead of @-insertions
9276 to read in host, target, and language fragments.
9277 (Makefile rule): Do not invoke configure.frag. Do not copy
9278 config.status to config.run before executing it. Set
9279 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
9280 regenerated.
9281 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
9282
9283 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9284
9285 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
9286 * c-typeck.c (same_translation_unit_p): New function.
9287 (comptypes): Use it instead of flags parameter to identify
9288 structure types from different translation units.
9289 * c-decl.c (duplicate_decls): Always call comptypes with
9290 COMPTYPE_STRICT flags argument.
9291 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
9292 to file_scope_decl.
9293
9294 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9295
9296 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
9297 * c-decl.c (struct c_scope): Remove "incomplete" field.
9298 (pushdecl): Attach variables with incomplete types to
9299 the TYPE_MAIN_VARIANT of the incomplete type in question.
9300 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
9301 to complete, not at current_scope->incomplete. All such
9302 variables do need completion.
9303
9304 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
9305 Nicolas Pitre <nico@cam.org>
9306
9307 * arm/lib1funcs.asm (RETCOND): Delete.
9308 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
9309 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
9310 (__ARM_ARCH__): Move here from ieee754-?f.S.
9311 (RET, RETc): Clean up definitions.
9312 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
9313 (FUNC_END): New macro that marks the end of any function.
9314 (ARM_FUNC_START): New macro that allows an assembler routine to be
9315 implemented in ARM code even if a Thumb-only build.
9316 Unconditionally include ieee754-?f.S.
9317 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
9318 Mark ends of functions.
9319 Split into separate conditionally-compiled units.
9320 Use RETLDM to return from routines.
9321 * arm/ieee754-sf.S: Similarly.
9322 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
9323 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
9324 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
9325 _fixsfsi and _fixunssfsi.
9326
9327 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
9328 multiplication underflows to zero.
9329 (__adddf3): Fix bug when using VFP ordering on little-endian
9330 processors.
9331 (__fixdfsi): Use rrx to extract the carry into a register instead of
9332 MRS instruction. Optimize later use of result.
9333 * arm/ieee754-sf.S (__fixsfsi): Likewise.
9334 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
9335
9336 2003-08-29 Richard Henderson <rth@redhat.com>
9337
9338 * tree-optimize.c: New file.
9339 * Makefile.in (OBJS-archive): Add tree-optimize.o.
9340 (tree-optimize.o): New.
9341 * c-decl.c (store_parm_decls): Use allocate_struct_function.
9342 (finish_function): Don't free_after_parsing or free_after_compilation.
9343 (set_save_expr_context): Move to tree-optimize.c.
9344 (c_expand_body_1): Use tree_rest_of_compilation.
9345 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
9346 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
9347 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
9348 iterate until closure.
9349 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
9350 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
9351 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
9352 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
9353 * toplev.h (tree_rest_of_compilation): Declare it.
9354
9355 2003-08-29 Richard Henderson <rth@redhat.com>
9356
9357 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
9358 * integrate.c (save_for_inline): Set saved_for_inline.
9359 * c-semantics.c (genrtl_scope_stmt): Check it.
9360 * toplev.c (wrapup_global_declarations): Check it.
9361 (rest_of_handle_inlining): Set and check rtl_inline_init.
9362 (rest_of_compilation): Remove out of date comment.
9363
9364 2003-08-29 Richard Henderson <rth@redhat.com>
9365
9366 * function.c (allocate_struct_function): New, split out of ...
9367 (prepare_function_start, init_function_start): ... here.
9368 * expr.c (init_expr): Use ggc_alloc_cleared.
9369 * stmt.c (init_stmt_for_function): Likewise.
9370 * tree.h (allocate_struct_function): Declare.
9371
9372 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9373
9374 * config.gcc: Don't use negated character class in shell case
9375 clause.
9376
9377 2003-08-29 Richard Henderson <rth@redhat.com>
9378
9379 * function.h (struct function): Move function_frequency and
9380 max_jumptable_ents before start of bit field members.
9381
9382 2003-08-29 Richard Henderson <rth@redhat.com>
9383
9384 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
9385 (fold_builtin_constant_p) ... not here.
9386
9387 2003-08-29 Richard Henderson <rth@redhat.com>
9388
9389 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
9390 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
9391 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
9392
9393 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9394
9395 * builtins.def: Fix typos.
9396 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
9397 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
9398 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
9399 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
9400 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
9401
9402 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
9403 Use ATTR_MATHFN_FPROUNDING_ERRNO.
9404
9405 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9406
9407 * config.gcc (i386-*-vsta): Fix obvious bogosity.
9408
9409 * fixinc/inclhack.def: Remove special cases for unsupported
9410 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
9411 * fixinc/fixincl.x: Regenerate.
9412
9413 2003-08-29 Mark Mitchell <mark@codesourcery.com>
9414
9415 * Makefile.in (cpp.info): Just state dependencies.
9416 (gcc.info): Likewise.
9417 (gccint.info): Likewise.
9418 (gccinstall.info): Likewise.
9419 (cppinternals.info): Likewise.
9420 (cpp.dvi): Likewise.
9421 (gcc.dvi): Likewise.
9422 (gccint.dvi): Likewise.
9423 (gccinstall.dvi): Likewise.
9424 (cppinternals.dvi): Likewise.
9425 (gcov.1): Likewise.
9426 (cpp.1): Likewise.
9427 (gcc.1): Likewise.
9428 (gfdl.7): Likewise.
9429 (gpl.7): Likewise.
9430 (fsf-funding.7): Likewise.
9431 ($(objdir)/%.info): New pattern rule.
9432 (%.dvi): Likewise.
9433
9434 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
9435
9436 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
9437 (restage2): Likewise.
9438 (restage3): Likewise.
9439 (restage4): Likewise.
9440 (restageprofile): Likewise.
9441 (restagefeedback): Likewise.
9442 (bubblestrap): Likewise.
9443
9444 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
9445
9446 * config.gcc: Narrow unsupported target match to avoid clobbering
9447 i?86-sequent-sysv4*.
9448
9449 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9450
9451 * builtins.c (mathfn_built_in): Handle new math builtins.
9452
9453 2003-08-28 Per Bothner <per@bothner.com>
9454
9455 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
9456 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
9457 (_cpp_lex_buffer): Likewise.
9458 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
9459
9460 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9461
9462 * config/s390/s390.md ("*mulsi3_sign"): New insn.
9463 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
9464 ("mulsidi3"): ... this new insn.
9465 ("umulsidi3"): New insn.
9466 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
9467 mixed-mode matching constraints.
9468 ("udivmodsi4", "udivmoddisi3"): New insns.
9469 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
9470
9471 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9472
9473 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
9474 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
9475 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
9476 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
9477 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
9478 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
9479 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
9480 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
9481 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
9482 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
9483 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
9484 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
9485 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
9486 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
9487 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
9488 * tree.c: Assign new type_nodes.
9489 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
9490 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
9491 (float_ptr_type_node, double_ptr_type_node,
9492 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
9493
9494 * doc/extend.texi: Document new builtins.
9495
9496 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9497
9498 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
9499 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
9500
9501 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
9502 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
9503 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
9504 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
9505 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
9506 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
9507 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
9508 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
9509 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
9510 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
9511
9512 * doc/extend.texi: Document new builtins.
9513
9514 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
9515
9516 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9517 variants of i?86, powerpcle, and thumb.
9518 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9519 arm and hppa variants.
9520
9521 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9522
9523 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
9524 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
9525 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
9526 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
9527 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
9528 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
9529 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
9530 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
9531 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
9532 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
9533
9534 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
9535 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
9536 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
9537 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
9538 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
9539 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
9540 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
9541 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
9542 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
9543 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
9544 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
9545 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
9546 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
9547 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
9548 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
9549 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
9550 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
9551 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
9552 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
9553 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
9554 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
9555 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
9556 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
9557 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
9558 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
9559 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
9560 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
9561 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
9562 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
9563 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
9564 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
9565
9566 * doc/extend.texi: Document new builtins.
9567
9568 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9569
9570 * config/s390/s390.c (legitmate_constant_p): Use LARL on
9571 zSeries machines even in 31-bit addressing mode.
9572 (legitimate_reload_constant_p): Likewise.
9573 (legitimize_pic_address): Likewise.
9574 (legitimize_tls_address): Likewise.
9575 (s390_split_branches): Likewise.
9576 (s390_dump_pool): Likewise.
9577 (s390_mainpool_finish): Likewise.
9578 (s390_chunkify_start): Likewise.
9579 (s390_select_rtx_section): Likewise.
9580 * config/s390/s390.md ("doloop_si"): Likewise.
9581 ("pool_start_31", "pool_end_31"): Likewise.
9582 ("pool_start_64", "pool_end_64"): Likewise.
9583 ("main_base_31_small", "main_base_31_large"): Likewise.
9584 ("main_base_64"): Likewise.
9585 ("reload_base_31", "reload_base_64"): Likewise.
9586 ("*movsi_larl"): New insn.
9587 ("cjump", "icjump"): Use long branches on zSeries machines.
9588 ("jump"): Likewise.
9589 ("call"): Use BRASL on zSeries machines.
9590 ("call_value", "call_value_tls"): Likewise.
9591 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
9592 and replace by ...
9593 ("*bras", "*brasl", "*basr") ... these new insns.
9594 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
9595 "bas_31_r"): Remove and replace by ...
9596 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
9597 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
9598 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
9599 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
9600 ("*return_si", "*return_di"): Remove and replace by ...
9601 ("*return"): ... this new insn.
9602 ("rotlsi3"): Allow on zSeries machines.
9603
9604 * config/s390/s390.c (legitimize_reload_constant_p): Use
9605 LL/LH type instructions in z/Architecture mode.
9606 * config/s390/s390.md ("*movsi_lli"): Likewise.
9607 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
9608 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
9609 ("*extendqisi2"): Use LB in z/Architecture mode.
9610 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
9611 z/Architecture mode.
9612 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
9613 Likewise.
9614
9615 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
9616 and 31-bit mode.
9617 ("ptr_extend"): Allow only in 64-bit mode.
9618
9619 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
9620
9621 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
9622 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
9623 definitions.
9624 (main): Only use standard_startfile_prefix if native.
9625 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
9626
9627 2003-08-27 Per Bothner <pbothner@apple.com>
9628
9629 * cpperror.c (print_location): Don't check for !pfile->buffer. That
9630 test fails following my 08-21 change, and it seems unnecessary anyway.
9631 (cpp_error): Likewise.
9632
9633 2003-08-27 Jason Merrill <jason@redhat.com>
9634
9635 * real.c (do_multiply): Initialize with memset.
9636
9637 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9638
9639 * gcov.c (typedef struct arc_info): New field cs_count.
9640 (accumulate_line_counts): Find cycles correctly.
9641
9642 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
9643
9644 * config/s390/s390.c (struct machine_function): Remove member
9645 literal_pool_label.
9646 (s390_optimize_prolog): Replace TEMP_REG argument with
9647 TEMP_USED and BASE_USED. Do not check get_pool_size ().
9648 (general_s_operand): Accept all immediates before reload if
9649 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
9650 references.
9651 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
9652 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
9653 (s390_alloc_pool): New function.
9654 (s390_new_pool): Call it.
9655 (s390_dump_pool): Add REMOTE_LABEL argument.
9656 (s390_chunkify_start): Add BASE_REG argument. Do not check
9657 get_pool_size ().
9658 (s390_chunkify_finish): Add BASE_REG argument. Adapt
9659 s390_dump_pool call.
9660 (s390_pool_count, s390_nr_constants): Remove.
9661 (s390_output_constant_pool): Remove.
9662 (s390_mainpool_start): New function.
9663 (s390_mainpool_finish): New function.
9664 (s390_mainpool_cancel): New function.
9665 (s390_reorg): Implement main literal pool handling.
9666 (s390_emit_prologue): Emit main_pool placeholder instead of
9667 literal_pool_31 / literal_pool_64 insns.
9668 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
9669 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
9670 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
9671 ("main_base_31_small", "main_base_31_large"): New insns.
9672 ("main_base_64", "main_pool"): New insns.
9673 ("literal_pool_31", "literal_pool_64"): Remove.
9674
9675 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
9676
9677 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
9678 fixinc.ptx.
9679 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
9680 Prettify a little.
9681 * fixinc/fixincl.x: Regenerate.
9682
9683 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
9684
9685 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
9686 (L_ieee754_dp): New. Include ieee754-df.S.
9687 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
9688 and compilation in apcs-26 mode.
9689 * arm/ieee754-df.S: Likewise.
9690 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
9691 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
9692
9693 2003-08-27 Nicolas Pitre <nico@cam.org>
9694
9695 * arm/ieee754-sf.S: New.
9696 * arm/ieee754-df.S: New.
9697
9698 2003-08-27 Jakub Jelinek <jakub@redhat.com>
9699
9700 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
9701 and restore it if returning NULL.
9702
9703 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
9704
9705 * calls.c (initialize_argument_information): If an argument has no
9706 stack space associated with it, and BLOCK_REG_PADDING is defined,
9707 use it to decide at which end the argument should be padded.
9708 * function.c (assign_parms): Allocate BLKmode stack slots.
9709 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
9710 (mips_pad_reg_upward): Declare.
9711 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
9712 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
9713 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
9714 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
9715 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
9716 (mips_expand_call): Remove code for generating structure shifts.
9717 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
9718 types unless using the EABI.
9719 (function_arg_advance): Don't generate shift instructions.
9720 (function_arg): Don't return them. Don't short-circuit the
9721 check for double structure chunks for DFmode arguments.
9722 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
9723 (mips_expand_prologue): Remove code to emit structure shifts.
9724 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
9725 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
9726 comments to say that only structure returns are a problem.
9727
9728 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
9729
9730 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
9731 Fix to match produced versions.
9732 * fixinc/inclhack.def (longlong_t): New disabled test, ported
9733 from fixinc.svr4.
9734 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
9735 from fixinc.ptx.
9736 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
9737 ported from fixinc.ptx.
9738
9739 2003-08-26 Per Bothner <pbothner@apple.com>
9740
9741 * cpplib.h (struct cpp_token): Change type of field line to fileline.
9742 (cpp_error_with_line): Use fileline for appropriate parameter.
9743 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
9744 (struct cpp_reader): Likewise for fields line and directive_line.
9745 (_cpp_begin_message): Use fileline for appropriate parameter.
9746 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
9747 cpp_error): Use fileline for appropriate parameters and variables.
9748 (print_location): New local lin, since it is not a fileline.
9749
9750 2003-08-26 Roger Sayle <roger@eyesopen.com>
9751
9752 PR middle-end/12002
9753 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
9754 (FLOAT_TYPE_P): Define in terms of these two new macros.
9755 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
9756 for complex floating point types.
9757
9758 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
9759
9760 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
9761 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
9762 s390_output_pool_entry.
9763
9764 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
9765
9766 * fixinc/inclhack.def (svr4_preproc_lint_on,
9767 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
9768 fixes, ported from fixinc.svr4.
9769
9770 2003-08-26 Mark Mitchell <mark@codesourcery.com>
9771
9772 * doc/install.texi (Prerequisites): Mention GNU make requirement.
9773
9774 * Makefile.in (AR_FOR_TARGET): Export it.
9775 (AR_CREATE_FOR_TARGET): Likewise.
9776 (AR_FLAGS_FOR_TARGET): Likewise.
9777 (AR_EXTRACT_FOR_TARGET): Likewise.
9778 (AWK): Likewise.
9779 (BUILD_PREFIX): Likewise.
9780 (BUILD_PREFIX_1): Likewise.
9781 (DESTDIR): Likewise.
9782 (GCC_FOR_TARGET): Likewise.
9783 (INCLUDES): Likewise.
9784 (INSTALL_DATA): Likewise.
9785 (LIB1ASMSRC): Likewise.
9786 (LIBGCC2_CFLAGS): Likewise.
9787 (MACHMODE_H): Likewise.
9788 (NM_FOR_TARGET): Likewise.
9789 (RANLIB_FOR_TARGET): Likewise.
9790 (libsubdir): Likewise.
9791 (slibdir): Likewise.
9792 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
9793 exporting.
9794 (libgcc.a): Don't pass them here.
9795 (stmp-multilib): Or here.
9796 (install-libgcc): Or here.
9797 (install-multilib): Or here.
9798 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
9799 (stage1_build): Or here.
9800
9801 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
9802
9803 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
9804 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
9805
9806 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
9807
9808 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
9809 "*fmaddsf", "*fmsubsf"): New insns.
9810
9811 2003-08-26 Roger Sayle <roger@eyesopen.com>
9812
9813 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
9814 (C1*C2)/X when unsafe math optimizations are allowed.
9815 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
9816 math optimizations. Minor code clean-ups. Recursively call
9817 fold when constructing sub-expressions.
9818
9819 2003-08-26 Roger Sayle <roger@eyesopen.com>
9820
9821 * builtins.c (fold_builtin_bitop): New function to perform constant
9822 folding of ffs, clz, ctz, popcount and parity builtin functions
9823 and their long and long long variants (such as ffsl and ffsll).
9824 (fold_builtin): fold_builtin_bitop when appropriate.
9825 * simplify-rtx.c (simplify_unary_operation): Honor both
9826 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
9827 evaluating clz and ctz at compile-time, for operands wider
9828 than HOST_WIDE_INT.
9829
9830 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
9831
9832 * builtins.c (build_function_call_expr): Don't set
9833 TREE_SIDE_EFFECTS here.
9834 * expr.c (emit_block_move_via_libcall): Likewise.
9835 (clear_storage_via_libcall): Likewise.
9836 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
9837 CALL_EXPRs.
9838
9839 * gcse.c (is_too_expensive): New function.
9840 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
9841
9842 2003-08-25 Zack Weinberg <zack@codesourcery.com>
9843
9844 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
9845 commented-out logic to use DCE threads (if present), add
9846 support for POSIX threads.
9847 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
9848 #defines for -pthread. Add -lpthread to LIB_SPEC when
9849 -pthread. In both cases take -mt as a synonym for -pthread
9850 for acc compatibility.
9851 Define GTHREAD_USE_WEAK to 0.
9852 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
9853 Remove old logic for DCE threads from LIB_SPEC.
9854 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
9855
9856 2003-08-25 Roger Sayle <roger@eyesopen.com>
9857
9858 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
9859 return 0 for invalid argument types. Instead drop through to a
9860 call of expand_call at the bottom of function. If op is SQRT,
9861 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
9862
9863 2003-08-25 Richard Henderson <rth@redhat.com>
9864
9865 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
9866 result when op0 is SImode.
9867
9868 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
9869
9870 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
9871 from fixinc.svr4.
9872 * fixinc/fixincl.x: Regenerate.
9873 * fixinc/tests/base/sys/signal.h: Regenerate.
9874
9875 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9876
9877 * combine.c (simplify_comparison): Re-enable widening of comparisons
9878 with non-paradoxical subregs of non-REG expressions.
9879
9880 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9881
9882 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
9883
9884 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9885
9886 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
9887
9888 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9889
9890 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
9891 * c-pretty-print.h (c_pretty_printer): Now typedef to the
9892 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
9893 (struct c_pretty_print_info): Document. Add new fields.
9894 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
9895 (pp_direct_abstract_declarator): New macro.
9896 (pp_ptr_operator): Likewise.
9897 (pp_simple_type_specifier): Likewise.
9898 (pp_expression): Likewise.
9899 (pp_parameter_list): Rename from pp_parameter_declaration.
9900 * c-pretty-print.c (pp_c_whitespace): Now a function.
9901 (pp_c_left_paren): Likewise.
9902 (pp_c_right_paren): Likewise.
9903 (pp_c_dot): Likewise.
9904 (pp_c_ampersand): Likewise.
9905 (pp_c_arrow): Likewise.
9906 (pp_c_semicolon): Likewise.
9907 (pp_c_type_cast): New function.
9908 (pp_c_space_for_pointer_operator): Likewise.
9909 (pp_c_call_argument_list): Likewise.
9910 (pp_c_cv_qualifier): Adjust prototype.
9911 (pp_c_type_qualifier_list): Likewise.
9912 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
9913 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
9914 Adjust to follow standard grammar.
9915 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
9916 REFERENCE_TYPE. Tidy.
9917 (pp_c_parameter_type_list): Adjust prototype. Tidy.
9918 (pp_c_parameter_declaration): Remove.
9919 (pp_c_abstract_declarator): Adjust prototype.
9920 (pp_c_direct_abstract_declarator): Likewise.
9921 (pp_c_type_id): Likewise.
9922 (pp_c_storage_class_specifier): Likewise.
9923 (pp_c_function_specifier): Likewise.
9924 (pp_c_declaration_specifiers): Likewise.
9925 (pp_c_direct_declarator): Likewise.
9926 (pp_c_declarator): Likewise.
9927 (pp_c_declarator): Likewise.
9928 (pp_c_declaration): Likewise.
9929 (pp_c_attributes): Likewise. Tidy.
9930 (pp_c_function_definition): Adjust prototype.
9931 (pp_c_char): Likewise.
9932 (pp_c_string_literal): Likewise.
9933 (pp_c_integer_constant): Likewise.
9934 (pp_c_character_constant): Likewise.
9935 (pp_c_bool_constant): Likewise.
9936 (pp_c_enumeration_constant): Likewise.
9937 (pp_c_floating_constant): Likewise.
9938 (pp_c_constant): Likewise.
9939 (pp_c_identifier): Likewise.
9940 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
9941 (pp_c_initializer): Adjust prototype.
9942 (pp_c_init_declarator): Likewise.
9943 (pp_c_initializer_list): Likewise.
9944 (pp_c_id_expression): Likewise.
9945 (pp_c_postfix_expression): Likewise.
9946 (pp_c_expression_list): Likewise.
9947 (pp_c_unary_expression): Likewise.
9948 (pp_c_cast_expression): Likewise.
9949 (pp_c_multiplicative_expression): Likewise.
9950 (pp_c_additive_expression): Likewise.
9951 (pp_c_shift_expression): Likewise.
9952 (pp_c_relational_expression): Likewise.
9953 (pp_c_equality_expression): Likewise.
9954 (pp_c_and_expression): Likewise.
9955 (pp_c_exclusive_or_expression): Likewise.
9956 (pp_c_inclusive_or_expression): Likewise.
9957 (pp_c_logical_and_expression): Likewise.
9958 (pp_c_logical_or_expression): Likewise.
9959 (pp_c_conditional_expression): Likewise.
9960 (pp_c_assignment_expression): Likewise.
9961 (pp_c_expression): Likewise. Tidy.
9962 (pp_c_statement): Likewise. Document.
9963 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
9964
9965 * c-lang.c (c_initialize_diagnostics): Update.
9966 * c-common.h (strip_pointer_operator): Declare.
9967 * c-common.c (strip_pointer_operator): Define.
9968
9969 2003-08-25 Mark Mitchell <mark@codesourcery.com>
9970
9971 PR c++/8795
9972 * tree.h (build_method_type_directly): Declare.
9973 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
9974 (vector_size_helper): Likewise.
9975 * tree.c (build_method_type_directly): New function.
9976 (build_method_type): Use it.
9977
9978 2003-08-24 Richard Henderson <rth@redhat.com>
9979
9980 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
9981 for 16-byte vector modes if sse not enabled; warn for abi change.
9982 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
9983
9984 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
9985
9986 * rtlanal.c (may_trap_p): Simplify an integer comparison.
9987
9988 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
9989
9990 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
9991 comment. Enable for DYNIX/ptx systems (when they switch to
9992 regular fixincludes).
9993 * fixinc/fixincl.x: Regenerate.
9994
9995 2003-08-23 Jason Eckhardt <jle@rice.edu>
9996
9997 * config/i860/t-i860: New.
9998 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
9999
10000 2003-08-23 Jakub Jelinek <jakub@redhat.com>
10001
10002 * c-decl.c (pushdecl): Only put decls which finish_struct will do
10003 something about onto incomplete chain.
10004 (finish_struct): If not removing type from incomplete
10005 list, update prev.
10006
10007 2003-08-20 Jan Hubicka <jh@suse.cz>
10008
10009 PR target/11369
10010 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
10011
10012 PR target/11031
10013 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
10014 const_0_to_15_operand, const_0_to_255_operand): New predicates.
10015 * i386.h (PREDICATE_CODES): Add these.
10016 * i386.c (pinsrw and pextrw patterns): Use them.
10017
10018 PR target/10984
10019 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
10020
10021 PR target/8869
10022 * expr.c (convert_modes): Deal properly with integer to vector
10023 constant conversion.
10024
10025 PR target/8871
10026 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
10027
10028 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
10029
10030 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
10031 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
10032 ("*movhi"): ... this.
10033 ("movqi", "*movqi"): Likewise.
10034 ("movqi_64"): Remove.
10035 ("*zero_extendhisi2_31"): Change predicate to s_operand.
10036
10037 2003-08-23 Dale Johannesen <dalej@apple.com>
10038 * calls.c (emit_library_call_value_1): Fix obvious errors in
10039 arguments to emit_group_store.
10040
10041 2003-08-23 Jason Eckhardt <jle@rice.edu>
10042
10043 * calls.c (emit_library_call_value_1): Remove code related
10044 to LIBGCC_NEEDS_DOUBLE.
10045 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
10046 * doc/tm.texi: Likewise.
10047 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
10048
10049 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
10050
10051 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
10052
10053 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
10054
10055 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
10056 as well. Put memory references in the varargs alias set.
10057 (mips_expand_prologue): Remove varargs handling from here.
10058
10059 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
10060
10061 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
10062 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
10063 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
10064 for function pointer calls.
10065 * config/s390/s390.md ("*negdi2_31"): Likewise.
10066
10067 2003-08-23 Roger Sayle <roger@eyesopen.com>
10068
10069 * combine.c (apply_distributive_law): Correct comment.
10070
10071 2003-08-23 Jason Eckhardt <jle@rice.edu>
10072
10073 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
10074
10075 2003-08-22 Jason Eckhardt <jle@rice.edu>
10076
10077 * config/i860/i860.c (i860_build_va_list): Create the va_decl
10078 declaration. Document the va_list structure.
10079 (i860_va_start): Initialize the va_list structure.
10080 (i860_va_arg): Rewrite completely.
10081 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
10082 * config/i860/varargs.asm: Do not allocate or initialize
10083 a va_list. Return the address of the register save area.
10084
10085 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10086
10087 * config/iq2000/iq2000.c: Fix comment typos.
10088 * config/iq2000/iq2000.md: Likewise.
10089
10090 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10091
10092 * config/iq2000/iq2000.c: Follow spelling conventions.
10093 * config/iq2000/iq2000.h: Likewise.
10094 * config/mn10300/mn10300.c: Likewise.
10095
10096 2003-08-22 Jason Eckhardt <jle@rice.edu>
10097
10098 * config/i860/i860.c (output_move_double): Don't set latehalf
10099 to zero for CONST_INT (since it could be, e.g., -1).
10100
10101 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
10102 (MODSI3_LIBCALL): ...with this one.
10103 (UREMSI3_LIBCALL): Replace this macro...
10104 (UMODSI3_LIBCALL): ...with this one.
10105
10106 2003-08-22 Jason Eckhardt <jle@rice.edu>
10107
10108 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
10109 (output_delayed_branch): Remove prototype.
10110 (single_insn_src_p): Remove prototype.
10111 * config/i860/i860.c (single_insn_src_p): Remove function.
10112 (output_delayed_branch): Remove function.
10113 (output_delay_insn): Remove function.
10114 (va_start): Remove unconditional test and dead code, re-format.
10115 Fix coding style and spelling problems in various comments.
10116 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
10117 (blockage pattern): ...and use it here.
10118 (all define_peephole patterns related to delayed branches): Remove.
10119 Fix coding style and spelling problems in various comments.
10120
10121 2003-08-22 Jason Eckhardt <jle@rice.edu>
10122
10123 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
10124 Remove all uses of the PARAMS macro. Remove superflous prototypes.
10125 Convert all function definitions from traditional to ISO C90 syntax.
10126 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
10127 with 'GCC'. Remove all uses of the PARAMS macro.
10128 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
10129 * config/i860/i860.md: Likewise.
10130 * config/i860/sysv4.h: Likewise.
10131 * config/i860/varargs.asm: Likewise.
10132
10133 2003-08-22 Jason Eckhardt <jle@rice.edu>
10134
10135 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
10136 argument.
10137 (tdesc_section): Add prototype.
10138 Update copyright dates.
10139 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
10140 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
10141 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
10142 (targetm): Likewise.
10143 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
10144 for '%d' where necessary.
10145 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
10146 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
10147 by UNITS_PER_WORD when referencing (likewise for .floats).
10148 (I860_SVR4_VARARGS): Rename...
10149 (I860_SVR4_VA_LIST): ...to this.
10150 Call build() with 't' rather than 'field'.
10151 (i860_rtx_costs): New function.
10152 (TARGET_RTX_COSTS): Define.
10153 (i860_internal_label): New function.
10154 (TARGET_ASM_INTERNAL_LABEL): Define.
10155 (i860_file_start): New function.
10156 Update copyright dates.
10157 * config/i860/i860.h (CPP_PREDEFINES): Remove.
10158 (TARGET_CPU_CPP_BUILTINS): Define.
10159 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
10160 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
10161 (ASM_FILE_START): Remove.
10162 (ASM_FILE_START_1): Remove.
10163 (ASM_GLOBALIZE_LABEL): Remove.
10164 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
10165 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
10166 with targetm.asm_out.internal_label.
10167 Update copyright dates.
10168 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
10169 (CPP_PREDEFINES): Remove.
10170 (TARGET_OS_CPP_BUILTINS): Define.
10171 (GLOBAL_ASM_OP): Define.
10172 (ASM_FILE_START): Remove.
10173 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
10174 (TARGET_ASM_FILE_START): Define.
10175 Update copyright dates.
10176
10177 2003-08-22 Jason Eckhardt <jle@rice.edu>
10178
10179 * gcc/config.gcc (i860-*-sysv4*): Add target.
10180 * config/i860/i860-protos.h: New.
10181 * config/i860/i860.c: New.
10182 * config/i860/i860.h: New.
10183 * config/i860/i860.md: New.
10184 * config/i860/sysv4.h: New.
10185 * config/i860/varargs.asm: New.
10186 * config/i860/x-sysv4: New.
10187
10188 2003-08-22 Jason Eckhardt <jle@rice.edu>
10189
10190 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
10191 Remove all uses of PARAMS macro.
10192 Convert all function definitions to ISO C90 syntax.
10193 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
10194 * config/pa/fptr.c: Likewise.
10195 * config/pa/lib2funcs.asm: Likewise.
10196 * config/pa/long_double.h: Likewise.
10197 * config/pa/milli64.S: Likewise.
10198 * config/pa/pa-64.h: Likewise.
10199 * config/pa/pa-hpux.h: Likewise.
10200 * config/pa/pa-hpux10.h: Likewise.
10201 * config/pa/pa-hpux11.h: Likewise.
10202 * config/pa/pa-linux.h: Likewise.
10203 * config/pa/pa-modes.def: Likewise.
10204 * config/pa/pa-osf.h: Likewise.
10205 * config/pa/pa-pro-end.h: Likewise.
10206 * config/pa/pa.md: Likewise.
10207 * config/pa/pa32-linux.h: Likewise.
10208 * config/pa/pa64-linux.h: Likewise.
10209 * config/pa/pa64-hpux.h: Likewise.
10210 * config/pa/pa64-regs.h: Likewise.
10211 * config/pa/quadlib.c: Likewise.
10212 * config/pa/rtems.h: Likewise.
10213 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
10214 all uses of the PARAMS macro.
10215 * config/pa/pa.h: Likewise.
10216 * config/pa/som.h: Likewise.
10217
10218 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
10219 Remove all uses of PARAMS macro.
10220 Convert all function definitions to ISO C90 syntax.
10221 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
10222 Remove all uses of PARAMS macro.
10223 * config/iq2000.h: Remove all uses of PARAMS macro.
10224 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
10225
10226 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
10227
10228 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
10229 * config/s390/s390.c (gen_consttable): Remove.
10230 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
10231 (s390_output_pool_entry): New function.
10232 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
10233 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
10234 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
10235 (UNSPECV_POOL_ENTRY): ... this new constant.
10236 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
10237 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
10238 ("*pool_entry"): ... and replace by this new insn.
10239 ("literal_pool_31"): Do not emit anchor label if pool empty.
10240
10241 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
10242 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
10243 (s390_fixup_clobbered_return_reg): Remove.
10244 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
10245 (s390_return_addr_rtx): Always retrieve return address from save area
10246 slot. Use save_return_addr_p to force slot to be filled.
10247 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
10248
10249 2003-08-22 Chris Demetriou <cgd@broadcom.com>
10250
10251 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
10252 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
10253 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
10254 around SB-1 errata if TARGET_FIX_SB1 is set.
10255 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
10256 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
10257
10258 2003-08-22 Roger Sayle <roger@eyesopen.com>
10259
10260 * hashtable.c (ht_expand): Avoid calculating rehash for the common
10261 case that the first probe hits an empty hash table slot.
10262
10263 2003-08-22 Mark Mitchell <mark@codesourcery.com>
10264
10265 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
10266
10267 2003-08-22 Mark Mitchell <mark@codesourcery.com>
10268
10269 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
10270 (ptr_extend_plus_imm): ... this.
10271 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
10272 optimization in C++.
10273 (ia64_output_mi_thunk): Support ILP32 mode.
10274
10275 2003-08-22 Bernardo Innocenti <bernie@develer.com>
10276
10277 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
10278 function.
10279 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
10280
10281 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10282
10283 * config/i386/i386.c (const_int_1_operand): Simplify an
10284 integer comparison.
10285
10286 2003-08-22 Alan Modra <amodra@bigpond.net.au>
10287
10288 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
10289 * config/rs6000/ppc64-fp.c: Likewise.
10290
10291 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10292
10293 * cfgcleanup.c: Fix comment typos.
10294 * emit-rtl.c: Likewise.
10295 * optabs.c: Likewise.
10296 * ra-build.c: Likewise.
10297 * rtlanal.c: Likewise.
10298 * tree.h: Likewise.
10299
10300 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10301
10302 * c-decl.c: Fix comment formatting.
10303 * cfgrtl.c: Likewise.
10304 * combine.c: Likewise.
10305 * convert.c: Likewise.
10306 * dominance.c: Likewise.
10307 * dwarf2out.c: Likewise.
10308 * dwarfout.c: Likewise.
10309 * expmed.c: Likewise.
10310 * fold-const.c: Likewise.
10311 * gcov.c: Likewise.
10312 * genattrtab.c: Likewise.
10313 * ggc-common.c: Likewise.
10314 * mips-tfile.c: Likewise.
10315 * regmove.c: Likewise.
10316
10317 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
10318
10319 * builtin-attrs.def: Fix comment formatting.
10320 * c-pretty-print.c: Likewise.
10321 * diagnostic.h: Likewise.
10322 * langhooks.h: Likewise.
10323 * recog.c: Likewise.
10324 * simplify-rtx.c: Likewise.
10325 * tree.def: Likewise.
10326
10327 2003-08-22 Bernardo Innocenti <bernie@develer.com>
10328
10329 * config/m68k/m68k-protos.h: Convert to ISO C90.
10330 * config/m68k/m68k.c: Likewise.
10331
10332 2003-08-21 Bernardo Innocenti <bernie@develer.com>
10333 Paul Dale <pauli@snapgear.com>
10334 Peter Barada <peter@baradas.org>
10335
10336 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
10337 ColdFire cores.
10338
10339 2003-08-21 Zack Weinberg <zack@codesourcery.com>
10340
10341 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
10342 * config.gcc (*-*-openbsd): Don't set tm_file.
10343 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
10344 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
10345 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
10346 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
10347 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
10348 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
10349 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
10350 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
10351 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
10352 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
10353 xscale-*-coff): Use explicit and complete lists of target headers
10354 to include. Move definitions to tm_defines where appropriate.
10355 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
10356 not-yet-contributed configuration.
10357
10358 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
10359 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
10360 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
10361 * config/i386/nto.h, config/iq2000/iq2000.h,
10362 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
10363 * config/m68k/linux.h, config/m68k/m68k-aout.h
10364 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
10365 * config/m68k/netbsd.h, config/m68k/openbsd.h
10366 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
10367 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
10368 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
10369 Remove includes of other target config headers, and
10370 definitions of macros moved to tm_defines lists. Add #undefs
10371 where now necessary to prevent redefinition warnings.
10372
10373 * config/h8300/coff.h: New file split out of...
10374 * config/h8300/elf.h: ...here.
10375 * config/m68k/hp320base.h: New file split out of...
10376 * config/m68k/hp320.h: ...here.
10377 * config/rs6000/lynxbase.h: New file split out of...
10378 * config/rs6000/lynx.h: ...here.
10379
10380 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
10381 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
10382
10383 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
10384 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
10385 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
10386 Remove unnecessary #ifndef.
10387 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
10388 [under IN_LIBGCC2] with config/.
10389
10390 2003-08-21 Per Bothner <pbothner@apple.com>
10391
10392 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
10393 to cpp_push_buffer.
10394 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
10395 by return_at_eof check. Always call _cpp_pop_buffer at end.
10396
10397 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
10398
10399 PR target/11805
10400 * config/h8300/h8300.md (two anonymous patterns): Remove.
10401
10402 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
10403
10404 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
10405 * config/mips/mips.c (function_arg_pass_by_reference): Never return
10406 true for n32 & n64.
10407
10408 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
10409
10410 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
10411 and similarly in (A | C) == D where C & ~D != 0.
10412
10413 2003-08-20 Geoffrey Keating <geoffk@apple.com>
10414
10415 PR 8180
10416 * configure.in: When testing with_libs and with_headers, treat
10417 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
10418 * configure: Regenerate.
10419
10420 2003-08-20 Peter Barada <peter@baradas.org>
10421
10422 * longlong.h (umul_ppmm): Add ColdFire support.
10423
10424 2003-08-20 Peter Barada <peter@baradas.org>
10425 Bernardo Innocenti <bernie@develer.com>
10426
10427 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
10428 * config/m68k/m68k.h: Likewise.
10429 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
10430 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
10431 * config/m68k/linux.h: Likewise.
10432 * config/m68k/m68k.c: Likewise.
10433 * config/m68k/m68k.md: Likewise.
10434 * config/m68k/m68kelf.h: Likewise.
10435 * config/m68k/netbsd-elf.h: Likewise.
10436 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
10437
10438 2003-08-20 Bernardo Innocenti <bernie@develer.com>
10439
10440 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
10441 * config/m68k/m68k.md: Likewise.
10442
10443 2003-08-20 Mark Mitchell <mark@codesourcery.com>
10444
10445 PR java/11996
10446 Revert this change:
10447 2003-08-19 Mark Mitchell <mark@codesourcery.com>
10448 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10449 types with precisions other than those given by native machine
10450 modes.
10451
10452 2003-08-20 Gunther Nikl <gni@gecko.de>
10453
10454 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
10455 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
10456 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
10457 * config/m68k/m68k.md (anonymous define_insn): Likewise
10458 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
10459 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
10460 code selected by NO_ASM_FMOVECR
10461
10462 2003-08-20 Gunther Nikl <gni@gecko.de>
10463
10464 * config/m68k/m68k.c (output_move_const_into_data_reg,
10465 output_move_himode): unify MOTOROLA/MIT handling of moveq
10466 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
10467 Likewise
10468
10469 2003-08-20 Gunther Nikl <gni@gecko.de>
10470
10471 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
10472 label name
10473 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
10474 HOST_WIDE_INT_PRINT_DEC with %wd
10475
10476 2003-08-20 Loren James Rittle <ljrittle@acm.org>
10477
10478 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
10479 redefine warning.
10480
10481 2003-08-20 Roger Sayle <roger@eyesopen.com>
10482
10483 PR middle-end/11984
10484 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
10485 operands before calling tree_int_cst_lt when performing associative
10486 transformations.
10487
10488 2003-08-20 Jason Merrill <jason@redhat.com>
10489
10490 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
10491 (EXPR_CHECK): Don't check for 'r' or 's' if we're
10492 checking IS_EXPR_CODE_CLASS.
10493 * calls.c (calls_function_1): Likewise.
10494 * fold-const.c (fold): Likewise.
10495 * tree.c (iterative_hash_expr): Likewise.
10496 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
10497
10498 2003-08-20 Gunther Nikl <gni@gecko.de>
10499
10500 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
10501 depending on MOTOROLA_BSR
10502 * config/m68k/m68k.md (anonymous define_insn): Likewise
10503
10504 2003-08-20 Jason Merrill <jason@redhat.com>
10505
10506 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
10507 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
10508 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
10509 * dojump.c (do_jump): Likewise.
10510 * fold-const.c (operand_equal_p, fold): Likewise.
10511 (tree_expr_nonnegative_p): Likewise.
10512
10513 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
10514 TYPE_USER_ALIGN for FIELD_DECLs.
10515
10516 * attribs.c (decl_attributes): Rebuild the function pointer type after
10517 changing the target type.
10518 * tree.c (get_qualified_type): Also check that the attributes match.
10519
10520 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
10521
10522 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
10523 * objc/config-lang.in (stagestuff): ... to here.
10524
10525 2003-08-19 Mark Mitchell <mark@codesourcery.com>
10526
10527 PR c++/11946
10528 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
10529 NOP_EXPR) when necessary.
10530 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10531 types with precisions other than those given by native machine
10532 modes.
10533
10534 2003-08-19 Geoffrey Keating <geoffk@apple.com>
10535
10536 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
10537 because some macro is defined.
10538
10539 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
10540 options.
10541 * config/i386/darwin.h (ASM_SPEC): New.
10542 (SUBTARGET_EXTRA_SPECS): New.
10543 * config/rs6000/darwin.h (ASM_SPEC): New.
10544 (SUBTARGET_EXTRA_SPECS): New.
10545 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
10546 a cross-compiler between two different processors on Darwin.
10547 * configure: Regenerate.
10548
10549 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10550
10551 * builtins.c: Fix comment typos.
10552 * c-common.c: Likewise.
10553 * c-decl.c: Likewise.
10554 * c-pretty-print.c: Likewise.
10555 * cfgbuild.c: Likewise.
10556 * cfglayout.c: Likewise.
10557 * cfgloopanal.c: Likewise.
10558 * cgraphunit.c: Likewise.
10559 * cppfiles.c: Likewise.
10560 * dwarfout.c: Likewise.
10561 * expr.c: Likewise.
10562 * fold-const.c: Likewise.
10563 * gcse.c: Likewise.
10564 * ggc-page.c: Likewise.
10565 * haifa-sched.c: Likewise.
10566 * pretty-print.c: Likewise.
10567 * tree.c: Likewise.
10568 * tree.h: Likewise.
10569 * value-prof.c: Likewise.
10570
10571 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10572
10573 * c-decl.c: Follow spelling conventions.
10574 * cppfiles.c: Likewise.
10575
10576 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10577
10578 * c-common.c: Fix comment formatting.
10579 * c-common.h: Likewise.
10580 * c-decl.c: Likewise.
10581 * cppinit.c: Likewise.
10582 * cpplib.h: Likewise.
10583 * emit-rtl.c: Likewise.
10584 * input.h: Likewise.
10585 * line-map.h: Likewise.
10586 * opts.c: Likewise.
10587 * opts.h: Likewise.
10588 * simplify-rtx.c: Likewise.
10589
10590 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
10591
10592 * unwind-c.c: Add libgcc-style exception.
10593 * unwind-dw2.c: Likewise.
10594 * unwind-pe.h: Likewise.
10595 * unwind-sjlj.c: Likewise.
10596 * unwind.inc: Likewise.
10597
10598 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
10599
10600 PR c/5582 PR c++/10538
10601 * langhooks-def.h (lhd_decl_uninit): Declare.
10602 (LANG_HOOKS_DECL_UNINIT): New macro.
10603 (LANG_HOOKS_INITIALIZER): Adjust.
10604 * langhooks.h (struct lang_hooks): Add new field
10605 decl_uninit.
10606 * langhooks.c (lhd_decl_uninit): Define.
10607 * c-common.c (c_decl_uninit_1): New function.
10608 (c_decl_uninit): New function.
10609 (warn_init_self): Define.
10610 * c-common.h (c_decl_uninit): Declare.
10611 (warn_init_self): Declare.
10612 * c.opt: Introduce -Winit-self.
10613 * c-opts.c (c_common_handle_options): Set warn_init_self.
10614 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
10615 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
10616 * function.c (uninitialized_vars_warning): Call the language hook.
10617 * doc/invoke.texi: Document -Winit-self.
10618
10619 2003-08-19 Chris Demetriou <cgd@broadcom.com>
10620
10621 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
10622 to use better predicates and constraints. Define new
10623 instruction to handle "trap_if" with DI-mode arguments.
10624 (conditional_trap): FAIL if trap code is not 0.
10625
10626 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
10627
10628 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
10629 strstr with $pb to a strcompare with "<pic base>"
10630 (ix86_output_addr_diff_elt): Output the real pic base.
10631
10632 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
10633
10634 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
10635 (LANG_HOOKS_INITIALIZER): Correct.
10636 * c-lang.c: Likewise.
10637
10638 2003-08-19 Jan Hubicka <jh@suse.cz>
10639
10640 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
10641 (cgraph_varpool_mark_needed_node): Likewise.
10642 * cgraph.h (notice_global_symbol): Declare
10643 * varasm.c (notice_global_symbol): Break out from ...
10644 (assemble_start_function): ... here; update for variables.
10645 (assemble_variable): Use notice_global_symbol.
10646
10647 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
10648
10649 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
10650 expect SFmode and DFmode arguments to be passed in FPRs,
10651 regardless of the underlying type.
10652
10653 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
10654
10655 PR target/11924
10656 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
10657 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
10658
10659 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
10660
10661 PR c/11207
10662 * c-typeck.c (set_init_index): Check for negative index.
10663
10664 2003-08-18 Bob Wilson <bob.wilson@acm.org>
10665
10666 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
10667 call0 ABI.
10668 * config/xtensa/crtn.asm (_init, _fini): Likewise.
10669 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
10670 __umodsi3, __modsi3): Likewise.
10671 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
10672 $(INCLUDES).
10673
10674 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
10675
10676 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
10677
10678 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10679
10680 * config/mips/mips.md: Quote C code in braces. Remove use of
10681 fake const0_rtx operands. Remove double backslashes. Use \;.
10682 Remove workarounds for bogus warnings.
10683
10684 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10685
10686 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
10687 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
10688 rather than TARGET_MIPS4300.
10689 (mulsf3_internal, mulsf3_r4300): Likewise.
10690
10691 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10692
10693 * config/mips/mips.md: Renumber unspecs. Clean up comments.
10694
10695 2003-08-17 Roger Sayle <roger@eyesopen.com>
10696
10697 * simplify-rtx.c (associative_constant_p): New function to test
10698 whether an RTX expression is an immediate constant.
10699 (simplify_associative_operation): New function to perform some
10700 reassociation optimizations of associative binary expressions.
10701 (simplify_binary_operation): Use simplify_associative_operation
10702 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
10703 Floating point expressions are only reassociated when unsafe
10704 math optimizations are permitted.
10705
10706 2003-08-17 Andreas Jaeger <aj@suse.de>
10707
10708 * config/alpha/alpha.md: Remove usage of PARAMS.
10709
10710 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
10711 * config/i386/i386-interix.h: Likewise.
10712 * config/i386/winnt.c: Likewise.
10713 * config/i386/cygming.h: Likewise.
10714 * config/i386/cygwin2.c: Likewise.
10715 * config/darwin.c: Likewise.
10716 * config/darwin-c.c: Likewise.
10717 * config/darwin-protos.h: Likewise.
10718 * config/darwin.h: Likewise.
10719 * config/s390/s390-protos.h: Likewise.
10720 * config/s390/s390.c: Likewise.
10721 * config/ia64/ia64.c: Likewse
10722 * config/ia64/ia64-protos.h: Likewise.
10723 * config/ia64/ia64-c.c: Likewise.
10724
10725 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10726
10727 * config/sparc/sparc.c: Convert to ISO C.
10728
10729 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
10730 * config/sparc/sparc.c: Likewise.
10731
10732 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
10733
10734 PR c++/11512
10735 * stmt.c (expand_expr_stmt_value): Don't warn about any void
10736 typed expression.
10737
10738 2003-08-16 Jan Hubicka <jh@suse.cz>
10739
10740 * i386.c (ix86_fntype_regparm): Rename from ...
10741 (ix86_function_regparm): ... this one; add fastcall and local
10742 functions.
10743 (ix86_function_ok_for_sibcall): Update.
10744 (ix86_return_pops_args): Likewise.
10745 (init_cumulative_args): Likewise.
10746 (x86_can_output_mi_thunk): Likewise.
10747 (function_arg): Fix formating.
10748 (x86_this_parameter): Fix fastcall.
10749 (x86_output_mi_thunk): Likewise.
10750
10751 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
10752 body as reachable; mark nested functions as needed too.
10753 (dump_cgraph): Do not output global.calls.
10754 * cgraph.h (cgraph_global_info): Kill.
10755 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
10756 (record_call_1): Speedup.
10757 (cgraph_analyze_function): Break out from ...; compute inlining
10758 parameters.
10759 (cgraph_finalize_compilation_unit): ... here.
10760 (cgraph_mark_inline): Kill computation of calls.
10761 (cgraph_decide_inlining): Do not compute most of initial values.
10762
10763 2003-08-14 Roger Sayle <roger@eyesopen.com>
10764
10765 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
10766 to negate if either operand is easy to negate, if we don't care
10767 about sign-dependent rounding.
10768 (negate_expr): Make the logic to negate a REAL_CST explicit.
10769 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
10770 that's easy to negate, if we don't honor sign-dependent rounding.
10771 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
10772 negate, and the symmetric A * -B as -A * B if A is easy to negate.
10773 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
10774 -C/D if B and C are cheap to negate. Add an explicit rule to
10775 optimize X/-1.0 as -X when we don't care about signaling NaNs.
10776
10777 2003-08-14 Zack Weinberg <zack@codesourcery.com>
10778
10779 * Makefile.in (tm_file): Rename tm_include_list.
10780 (tm_p_file): Rename tm_p_include_list.
10781 (build_xm_file): Rename build_xm_include_list.
10782 (host_xm_file): Rename host_xm_include_list.
10783 (xm_file): Rename xm_include_list.
10784 (xm_file_list): Add to be substituted.
10785 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
10786 Update to match.
10787 (bt-load.o): Add missing dependency on $(TM_H).
10788 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
10789 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
10790 build_xm_file, generate both *_file_list and *_include_list
10791 values from it. (xm_file_list was formerly not being generated.)
10792 In *_include_list, prefix the names of all headers found in
10793 $(srcdir)/config with config/. In each loop, consider only
10794 the special case files that can actually appear in that list.
10795 AC_SUBST all *_file_list and all *_include_list variables; do
10796 not AC_SUBST the plain *_file variables.
10797 * configure: Regenerate.
10798
10799 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10800
10801 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
10802
10803 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10804
10805 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
10806 direct calls.
10807 (attr_length_call): Include it here. Improve length estimate for
10808 local calls.
10809 (output_call): Use targetm.binds_local_p.
10810
10811 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10812
10813 * builtins.c (CASE_MATHFN): New helper macro.
10814 (mathfn_built_in): Simplify and sort.
10815
10816 * protoize.c (substr): Delete, callers changed to `strstr'.
10817
10818 2003-08-13 Zack Weinberg <zack@codesourcery.com>
10819
10820 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
10821 * config/iq2000/xm-iq2000.h: Delete file.
10822
10823 2003-08-13 Geoffrey Keating <geoffk@apple.com>
10824
10825 * gengtype.c (walk_type): Process a subobject before processing
10826 the pointer that points to the subobject.
10827
10828 2003-08-13 Per Bothner <pbothner@apple.com>
10829
10830 * regclass.c (init_reg_modes): Make non-static.
10831 Rename to init_reg_modes_once per new naming convention.
10832 (init_regs): Don't call init_reg_modes here.
10833 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
10834 * rtl.h (init_reg_modes_once): New declaration.
10835 * toplev.c (backend_init): Call init_regs after init_emit_once.
10836
10837 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
10838
10839 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
10840 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
10841
10842 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
10843
10844 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
10845 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
10846
10847 2003-08-13 Dale Johannesen <dalej@apple.com>
10848
10849 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
10850 handling of decrement-and-branch farther than 32 bits.
10851
10852 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
10853
10854 * configure.in (make_compare_target): Move test to ...
10855 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
10856 * configure: Regenerate.
10857
10858 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
10859
10860 * config/mips/iris6.h: Convert to C90 prototypes.
10861 * config/mips/irix6-libc-compat.c: Likewise.
10862 * config/mips/mips-protos.h: Likewise.
10863 * config/mips/mips.c: Likewise.
10864
10865 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
10866
10867 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
10868 for selected machines. Comment heavily.
10869 fixinc/fixincl.x: Rebuild.
10870 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
10871
10872 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
10873
10874 * config/mips/mips.h: Tweak various comments.
10875 * config/mips/mips.c: Likewise.
10876
10877 2003-08-11 James E Wilson <wilson@tuliptree.org>
10878
10879 PR optimization/11319
10880 PR target/10021
10881 * alias.c (find_base_value, case REG): Return 0 not src if no base
10882 found.
10883
10884 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10885
10886 * gcse.c (gmalloc): Fix last change.
10887
10888 2003-08-11 Roger Sayle <roger@eyesopen.com>
10889
10890 * simplify-rtx.c (simplify_binary_operation): Replace calls to
10891 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
10892 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
10893 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
10894
10895 2003-08-11 Roger Sayle <roger@eyesopen.com>
10896
10897 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
10898 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
10899 typecode for an ABS_EXPR.
10900
10901 * doc/c-tree.texi: Document ABS_EXPR.
10902
10903 2003-08-11 Roger Sayle <roger@eyesopen.com>
10904
10905 * fold-const.c (fold): Optimize any associative floating point
10906 operator with -funsafe-math-optimizations, not just MULT_EXPR.
10907
10908 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
10909
10910 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
10911 information in SHmedia case too.
10912 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
10913 Likewise.
10914 (__set_fpscr): Use an access via GOT for PIC case.
10915
10916 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
10917
10918 * configure.in (intermodule): Make switch test more portable.
10919 * configure: Regenerate.
10920
10921 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
10922
10923 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
10924 (restrap): Likewise.
10925
10926 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10927
10928 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
10929 (grealloc): Size argument is a size_t.
10930 (gcalloc): New function. Use throughout in lieu of
10931 gmalloc/memset.
10932
10933 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
10934 xmalloc/memset.
10935 * config/ia64/ia64.c (ia64_reorg): Likewise.
10936 * conflict.c (conflict_graph_new): Likewise.
10937 * fixinc/fixincl.c (run_compiles): Likewise.
10938 * genattrtab.c (optimize_attrs): Likewise.
10939 * genrecog.c (new_decision): Likewise.
10940 * haifa-sched.c (schedule_block): Likewise.
10941 * hashtable.c (ht_create): Likewise.
10942
10943 2003-08-11 Bob Wilson <bob.wilson@acm.org>
10944
10945 * config/xtensa/lib2funcs.S: Fix whitespace.
10946 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
10947 syntax where appropriate. Remove unnecessary backslash escapes.
10948 Reformat comments and fix some code formatting.
10949 (extendqisi2): Rearrange conditional.
10950 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
10951 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
10952 of fatal_insn.
10953
10954 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
10955
10956 * config/mips/mips.c: Various formatting fixes.
10957 (override_options): Resync -mtune handling with gas.
10958 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
10959 * config/mips/mips.h: More formatting fixes.
10960 (mips_abi): Move declaration.
10961 * config/mips/mips.md (exception_receiver): Add mode to
10962 unspec_volatile.
10963
10964 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
10965
10966 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
10967 evsplatfi here.
10968 (bdesc_1arg): Remove evsplati and evsplatfi.
10969
10970 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
10971
10972 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
10973 into account.
10974
10975 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10976
10977 * builtins.c (expand_builtin_strcat): Optimize constant strings.
10978
10979 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
10980
10981 * pretty-print.c (pp_base_indent): Rename from pp_indent.
10982 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
10983 (struct c_pretty_print_info): Add more fields.
10984 (pp_c_left_paren): Move to c-pretty-print.c.
10985 (pp_c_right_paren): Likewise.
10986 (pp_c_left_brace): Likewise.
10987 (pp_c_right_brace): Likewise.
10988 (pp_c_left_bracket): Likewise.
10989 (pp_c_right_bracket): Likewise.
10990 (pp_c_declarator): Declare.
10991 (pp_c_direct_declarator): Likewise.
10992 (pp_c_specifier_qualifier_list): Likewise.
10993 (pp_c_type_id): Likewise.
10994 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
10995 (pp_c_type_qualifier_list): New.
10996 (pp_c_pointer): Likewise.
10997 (pp_c_parameter_type_list): Likewise.
10998 (pp_c_function_definition): Likewise.
10999 (pp_c_id_expression): Likewise.
11000 (pp_c_simple_type_specifier): Tidy.
11001 (pp_c_unary_expression): Likewise.
11002 (pp_c_expression): Likewise.
11003 (pp_c_pretty_printer_init): Likewise.
11004 (pp_c_specifier_qualifier_list): Rework..
11005 (pp_c_abstract_declarator): Likewise.
11006 (pp_c_postfix_expression): Likewise.
11007 (pp_c_primary_expression): Likewise.
11008 (pp_c_cast_expression): Likewise.
11009 (pp_c_direct_abstract_declarator): Likewise.
11010 (pp_c_storage_class_specifier): Likewise.
11011 (pp_c_function_specifier): Likewise.
11012 (pp_c_declaration_specifiers): Likewise.
11013 (pp_c_direct_declarator): Likewise.
11014 (pp_c_declarator): Likewise.
11015 (pp_c_declaration): Likewise.
11016 (pp_c_statement): Likewise.
11017 (pp_c_integer_constant): Rename from pp_c_integer_literal.
11018 (pp_c_character_constant): Rename from pp_c_character_literal.
11019 (pp_c_bool_constant): Rename from pp_c_bool_literal.
11020 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
11021 (pp_c_floating_constant): Rename from pp_c_real_literal.
11022 (pp_c_constant): Rename from pp_c_literal.
11023 * c-lang.c: Include diagnostic.h and c-pretty-print.h
11024 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
11025 (c_initialize_diagnostics): New.
11026 * Makefile.in (c-lang.o): Update dependency.
11027
11028 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
11029
11030 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
11031
11032 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
11033
11034 * config/mips/mips.c (mips_no_mips16_string): Remove.
11035 (override_options): Don't handle -mips16 as part of -mipsN.
11036 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
11037 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
11038 (TARGET_OPTIONS): Remove -mno-mips16.
11039
11040 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
11041
11042 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
11043 (coprocessor2_operand): Likewise.
11044 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
11045 (lookup_name): Remove declaration.
11046 (abort_with_insn): Remove. Replace all uses with fatal_insn.
11047 (mips16, mips_abicalls): Remove.
11048 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
11049 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
11050 (coprocessor_operand, coprocessor2_operand): Remove.
11051 (override_options): Don't set mips16 or mips_abicalls.
11052 (print_operand): Don't expect SIGN_EXTEND operands.
11053 (mips_secondary_reload_class): Likewise.
11054 (mips_output_conditional_branch): Remove disabled long-branch code.
11055 * config/mips/mips.h (call_used_regs): Remove declaration.
11056 (may_call_alloca): Likewise.
11057 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
11058 (mips_abicalls, mips16): Remove declarations.
11059 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
11060 (CC1_SPEC): Remove outdated comment.
11061 (MIPS_VERSION, MACHINE_TYPE): Remove.
11062 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11063 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
11064 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
11065 (PUSH_ROUNDING): Likewise.
11066 (ASSEMBLER_SCRATCH_REGNUM): Remove.
11067 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
11068 and mips16 with TARGET_MIPS16.
11069
11070 2003-08-09 Per Bothner <pbothner@apple.com>
11071
11072 * cppinit.c (cpp_read_main_file): Split out source-independent
11073 initialization to separate function ...
11074 (cpp_post_options): New function.
11075 * cppfiles.c (cpp_stack_file): Rename public name to ...
11076 (_cpp_stack_file): New internal function name.
11077 * cpplib.h: Update accordingly.
11078 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
11079 (cpp_read_main_file): Don't initialize line here.
11080 * c-opts.c (c_common_post_options): Call cpp_post_options.
11081 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
11082 * fix-header.c (read_scan_file): Call cpp_post_options.
11083
11084 2003-08-09 Per Bothner <per@bothner.com>
11085
11086 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
11087
11088 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11089
11090 * pa.c (pa_asm_output_mi_thunk): Fix typo.
11091
11092 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
11093
11094 PR preprocessor/11839
11095 * cppfiles.c (open_file): Handle ENOTDIR.
11096
11097 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
11098
11099 PR target/11699
11100 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
11101
11102 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11103
11104 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
11105 source/destination is not a register operand.
11106
11107 2003-08-08 Richard Henderson <rth@redhat.com>
11108
11109 PR target/11535
11110 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
11111 RETURN_ADDRESS_POINTER_REGNUM.
11112 (ia64_expand_prologue): Don't frob it.
11113 (ia64_output_function_epilogue): Likewise.
11114 (ia64_return_addr_rtx): New.
11115 (ia64_split_return_addr_rtx): New.
11116 * config/ia64/ia64-protos.h: Update.
11117 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
11118 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
11119 (GENERAL_REGNO_P): Don't check it.
11120 (AR_*_REGNUM): Renumber.
11121 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
11122 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
11123 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
11124 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
11125 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
11126 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
11127 (movdi_ret_addr): New.
11128
11129 2003-08-08 Geoffrey Keating <geoffk@apple.com>
11130
11131 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
11132
11133 2003-08-08 Roger Sayle <roger@eyesopen.com>
11134
11135 * tree.h (get_identifier) Define a macro form of get_identifier
11136 that calls get_identifier_with_length when the string is constant.
11137 (get_identifier_with_length): Change type of second argument to
11138 size_t in prototype.
11139 * stringpool.c (get_identifier): Undefine the macro before giving
11140 the function definition.
11141 (get_identifier_with_length): Change type of second argument to
11142 size_t in function definition.
11143 * hashtable.c (calc_hash): Change type of second argument to size_t.
11144 (ht_lookup): Change type of third argument to size_t. Reorganize
11145 to speed-up the cases where the hash table slot is empty, or the
11146 first probe matches (i.e. there isn't a collision).
11147 * hashtable.h (ht_lookup): Adjust function prototype.
11148
11149 2003-08-08 Bernardo Innocenti <bernie@develer.com>
11150
11151 PR target/9697
11152 PR target/11777
11153 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
11154
11155 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
11156
11157 * common.opt: Add debug switches.
11158 * flags.h (use_gnu_debug_info_extensions): Boolify.
11159 * opts.c (write_symbols, debug_info_level,
11160 use_gnu_debug_info_extensions): Move from toplev.c.
11161 (set_debug_level): New.
11162 (common_handle_options): Handle debug switches.
11163 (print_help): Display target options directly.
11164 * toplev.c (debug_hooks): Don't initialize.
11165 (write_symbols, debug_info_level,
11166 use_gnu_debug_info_extensions): Move to opts.c.
11167 (debug_args, display_help, decode_g_option): Remove.
11168 (process_options): Set no debug if level zero here,
11169 and no-debug-hooks. Error here if impossible debug format selected.
11170 * toplev.h (display_help, decode_g_option): Remove.
11171
11172 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
11173
11174 * tree.c (get_file_function_name_long): Fix size of alloca() area.
11175
11176 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
11177
11178 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
11179 and gcc_cv_prog_cmp_skip.
11180 * configure: Regenerate.
11181
11182 2003-08-08 Stan Cox <scox@redhat.com>
11183
11184 * config/iq2000: New port.
11185 * config.gcc (iq2000-*-elf): Added.
11186 * doc/install.texi (Specific): Add iq2000 description.
11187
11188 2003-08-08 Andreas Schwab <schwab@suse.de>
11189
11190 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
11191 and insert missing empty argument.
11192 * configure: Regenerate.
11193
11194 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11195
11196 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
11197 (attr_length_millicode_call): Likewise.
11198 (attr_length_call): Likewise. Revise some maximum insn lengths.
11199 (attr_length_indirect_call): Likewise.
11200 (output_call): Fix thinko that added extra nop.
11201 * pa.h (IN_NAMED_SECTION_P): Define.
11202
11203 PR c++/11712
11204 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
11205 __STDC_EXT__ when using C++ dialect.
11206
11207 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
11208
11209 * sh.c (calc_live_regs): If the return address pointer is live,
11210 force pr live.
11211 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
11212 for saves / restores.
11213 (sh_expand_epilogue): If sh_media_register_for_return returns a
11214 register number, flag the instructions that restores PR_MEDIA_REG
11215 as possibly dead.
11216 Remove dead update of offset.
11217 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
11218 we can use the result of get_hard_reg_initial_val.
11219 * sh.md (UNSPEC_RA): New constant.
11220 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
11221 (load_ra). Handle UNSPEC_RA.
11222 (sibcall_media): Use PR_MEDIA_REG.
11223
11224 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
11225 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
11226 needs saving on SHmedia.
11227
11228 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
11229
11230 * config/s390/s390.md: Replace all occurrences of \\t with \t.
11231
11232 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
11233
11234 * local-alloc.c (combine_regs): Fix comment typo.
11235
11236 2003-08-06 Zack Weinberg <zack@codesourcery.com>
11237
11238 * c-decl.c (builtin_decls): Replace with first_builtin_decl
11239 and last_builtin_decl.
11240 (c_init_decl_processing): Initialize both.
11241 (c_reset_state): Iterate from first_builtin_decl to
11242 last_builtin_decl inclusive to reintroduce builtins.
11243
11244 2003-08-06 David Mosberger <davidm@hpl.hp.com>
11245
11246 * doc/extend.texi (Function Attributes): Document the IA-64 version
11247 of the "model" attribute.
11248
11249 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
11250 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
11251 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
11252
11253 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
11254 (ia64_encode_section_info): Likewise.
11255 (ia64_attribute_table): Add "model" attribute.
11256 (TARGET_ENCODE_SECTION_INFO): Define.
11257 (small_addr_symbolic_operand): New function.
11258 (got_symbolic_operand): Return 0 for a symbolref to an object
11259 in the small address area.
11260 (enum ia64_addr_area): New type.
11261 (small_ident1): New variable.
11262 (small_ident2): Likewise.
11263 (init_idents): New function.
11264 (ia64_get_addr_area): Likewise.
11265 (ia64_encode_addr_area): Likewise.
11266 (ia64_encode_section_info): Likewise.
11267 (ia64_expand_load_address): For symbolic references to objects in
11268 the small-address-area, load the address via gen_rtx_SET() (which,
11269 eventually, will expand into "addl").
11270
11271 2003-08-06 Per Bothner <pbothner@apple.com>
11272
11273 * line-map.h (fileline): New typedef.
11274 (struct line_map, linemap_add, linemap_lookup): Use it.
11275 * input.h (struct location_s): Comment notes that long-term we want
11276 to replace it by fileline.
11277
11278 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
11279
11280 Fix SHcompact exception handling:
11281 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
11282 by the prologue, return a MEM with return_address_pointer_rtx
11283 as address.
11284 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
11285 (RETURN_ADDR_OFFSET): Don't define.
11286 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
11287 registers that are visible in compact mode. Show that SHmedia
11288 registers still exist in compact mode, even if there are not
11289 readily accessible.
11290 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
11291 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
11292 and DW_EH_PE_pcrel for pic data.
11293 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
11294 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
11295 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
11296 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
11297 * sh.md (movsi_media-1): New splitter.
11298
11299 2003-08-06 Graeme Peterson <gp@qnx.com>
11300
11301 * config/i386/nto.h: New.
11302 * config/i386/t-nto: New.
11303 * config.gcc (i[34567]86-*-nto-qnx*): New.
11304
11305 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
11306
11307 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
11308
11309 2003-08-06 Alan Modra <amodra@bigpond.net.au>
11310
11311 * calls.c (load_register_parameters): Arrange for call_fusage to
11312 report the whole register as used when shifting to the msb.
11313
11314 2003-08-05 Roger Sayle <roger@eyesopen.com>
11315
11316 * builtins.c (expand_builtin): When not optimizing, call the library
11317 function for all builtins that have library functions (except alloca).
11318
11319 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
11320
11321 * c.opt: Introduce -fworking-directory.
11322 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
11323 * c-common.h (flag_working_directory): Declare.
11324 * c-common.c (flag_working_directory): Define.
11325 * c-opts.c (c_common_handle_options): Set it.
11326 (sanitize_cpp_opts): Set...
11327 * cpplib.h (struct cpp_options): ... working_directory option.
11328 (struct cpp_callbacks): Add dir_change.
11329 * cppinit.c (read_original_filename): Call...
11330 (read_original_directory): New. Look for # 1 "directory//"
11331 and process it.
11332 (cpp_read_main_file): Call dir_change callback if working_directory
11333 option is set.
11334 * gcc.c (cpp_unique_options): Pass -g*.
11335 * c-lex.c (cb_dir_change): New.
11336 (init_c_lex): Set dir_change callback.
11337 * toplev.c (src_pwd): New static variable.
11338 (set_src_pwd, get_src_pwd): New functions.
11339 * toplev.h (get_src_pwd, set_src_pwd): Declare.
11340 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
11341 * dwarf2out.c (gen_compile_unit_die): Likewise.
11342 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
11343
11344 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
11345
11346 * pretty-print.h (pp_set_line_maximum_length): Make macro.
11347 (pp_set_prefix): Likewise.
11348 (pp_destroy_prefix): Likewise.
11349 (pp_remaining_character_count_for_line): Likewise.
11350 (pp_clear_output_area): Likewise.
11351 (pp_formatted_text): Likewise.
11352 (pp_last_position_in_text): Likewise.
11353 (pp_emit_prefix): Likewise.
11354 (pp_append_text): Likewise.
11355 (pp_flush): Likewise.
11356 (pp_format_text): Likewise.
11357 (pp_format_verbatim): Likewise.
11358 (pp_tree_identifier): Tidy.
11359 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
11360 (pp_base_format_verbatim): Rename from pp_format_verbatim.
11361 (pp_base_flush): Rename from pp_flush.
11362 (pp_base_set_line_maximum_length): Rename from
11363 pp_set_line_maximum_length.
11364 (pp_base_clear_output_area): Rename from pp_clear_output_area.
11365 (pp_base_set_prefix): Rename from pp_set_prefix.
11366 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
11367 (pp_base_emit_prefix): Rename from pp_emit_prefix.
11368 (pp_base_append_text): Rename from pp_append_text.
11369 (pp_base_formatted_text): Rename from pp_formatted_text.
11370 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
11371 (pp_base_remaining_character_count_for_line): Rename from
11372 pp_remaining_character_count_for_line.
11373 * diagnostic.h (diagnostic_format_decoder): Tidy.
11374 (diagnostic_flush_buffer): Likewise.
11375 * c-pretty-print.h: (pp_c_string_literal): Declare.
11376 (pp_c_real_literal): Likewise.
11377 (pp_c_integer_literal): Likewise.
11378 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
11379 pp_identifier.
11380 (pp_c_character_literal): Tidy.
11381 (pp_c_string_literal): Make public.
11382 (pp_c_bool_literal): Likewise.
11383 (pp_c_integer_literal): Likewise.
11384 (pp_c_real_literal): Likewise.
11385
11386 * Makefile.in (C_PRETTY_PRINT_H): New variable.
11387 (c-pretty-print.o): Update dependence.
11388
11389 2003-08-05 Chris Demetriou <cgd@broadcom.com>
11390
11391 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
11392 ".set nomacro" state.
11393 (fix_truncsfsi2_macro): Likewise.
11394
11395 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
11396
11397 * tree.h (DID_INLINE_FUNC): Remove macro.
11398 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
11399 add tree check for FUNCTION_DECL.
11400 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
11401 (struct tree_decl): Rename inlined_function_flag to
11402 declared_inline_flag.
11403 * c-common.h (c_lang_decl): Remove.
11404 (DECL_ESTIMATED_INSNS): Remove.
11405 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
11406 (DECL_DECLARED_INLINE_P): Remove.
11407 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
11408 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
11409 (finish_function): Make uninlinable a bool. Fixup call to
11410 tree_inlinable_function_p() and fix some code style issues.
11411 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
11412 * cgraph.c (dump_cgraph): Likewise.
11413 * cgraphunit.c (cgraph_decide_inlining): Likewise
11414 (cgraph_finalize_compilation_unit): Likewise.
11415 Also update call to tree_inlinable_function_p().
11416 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
11417 look at DECL_DECLARED_INLINE and reverse logic.
11418 * print-tree.c (print_node): Likewise.
11419 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
11420 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
11421 prototype.
11422 * tree-inline.c (inlinable_function_p): Split up in this function to
11423 check for basic inlining inhibiting conditions, and new
11424 limits_allow_inlining() function. Warn if inlining is impossible
11425 because the inline candidate calls alloca or uses sjlj exceptions.
11426 (limits_allow_inlining): this new function to check if the inlining
11427 limits are satisfied. Throttle from currfn_max_inline_insns, not from
11428 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
11429 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
11430 Update prototypes.
11431 (tree_inlinable_function_p): Make a bool. Update call to
11432 inlinable_function_p
11433 (expand_call_inline): Use limits_allow_inlining() when not in
11434 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
11435 instead see if the function was declared `inline'.
11436
11437 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
11438
11439 * gcse.c (try_replace_reg): Fix updating of note.
11440
11441 2003-08-04 Roger Sayle <roger@eyesopen.com>
11442
11443 PR middle-end/11771
11444 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
11445 logic in negate_expr, i.e. we don't invert (A-B) for floating
11446 point types unless flag_unsafe_math_optimizations.
11447
11448 2003-08-04 Roger Sayle <roger@eyesopen.com>
11449
11450 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
11451 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
11452 for floating point expressions with -ffast-math.
11453 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
11454 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
11455
11456 2003-08-04 Roger Sayle <roger@eyesopen.com>
11457
11458 * c-common.c (flag_noniso_default_format_attributes): Delete.
11459 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
11460 (c_attrs_initialized): Delete.
11461 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
11462 always call c_init_attributes.
11463 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
11464 set c_attrs_initialized when done.
11465 (c_common_insert_default_attributes): Delete.
11466 * c-common.h (flag_noniso_default_format_attributes): Delete.
11467 (c_coomon_insert_default_attributes): Delete prototype.
11468 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
11469 flag_noniso_default_format_attributes.
11470
11471 * c-decl.c (c_insert_default_attributes): Delete.
11472 * c-tree.h (c_insert_default_attributes): Delete prototype.
11473
11474 * attribs.c (decl_attributes): Don't call insert_default_attributes
11475 langhook. Update function description comment.
11476 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
11477 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
11478 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
11479 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
11480
11481 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
11482 define.
11483
11484 2003-08-04 Richard Sandiford <rsandif@redhat.com>
11485
11486 * config/mips/mips.c (override_options): Disable -G on targets that
11487 have no .section support.
11488 (mips_select_section): Use default_select_section for such targets.
11489
11490 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
11491
11492 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
11493 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
11494 * fixinc/fixincl.x: Rebuild.
11495 * fixinc/tests/base/regexp.h: New test.
11496
11497 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
11498
11499 * c-ppoutput.c (cb_line_change): Don't skip line changing while
11500 parsing macro arguments in the top-level context.
11501
11502 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
11503
11504 * config.in: Remove HAVE_LSTAT.
11505 * configure, configure.in: Don't test for lstat.
11506
11507 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11508
11509 * opts.c (decode_options): Do language-specific initialization for
11510 the global diagnostic context.
11511 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
11512 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
11513 (LANG_HOOKS_INITIALIZER): Adjust.
11514 * langhooks.h (struct lang_hooks): Add new field
11515 initialize_diagnostics.
11516 * langhooks.c (lhd_initialize_diagnostics): Define.
11517
11518 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11519
11520 * pretty-print.h: Adjust macro definitions.
11521 * pretty-print.c (pp_newline): Rename to pp_base_newline.
11522 (pp_character): Rename to pp_base_character.
11523 (pp_string): Rename to pp_base_string.
11524 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
11525 (pp_newline): Likewise. Adjust.
11526 (pp_c_char): Adjust.
11527
11528 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11529
11530 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
11531 BUILT_IN_LLABS): Move to miscellaneous section.
11532
11533 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
11534
11535 PR preprocessor/11534
11536 * cppexp.c (parse_defined): Warn only if -pedantic.
11537
11538 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
11539
11540 * cppfiles.c (stack_file): Use file path.
11541
11542 2003-08-02 Roger Sayle <roger@eyesopen.com>
11543
11544 * builtin-types.def (BT_SSIZE): New primitive type.
11545 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
11546 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
11547 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
11548 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
11549 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
11550 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
11551 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
11552 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
11553 few functions that define default attributes using it.
11554 * c-common.c (c_common_insert_default_attributes): Do nothing.
11555
11556 * doc/extend.texi: Document these "new" builtins.
11557
11558 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
11559
11560 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
11561 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
11562 when -mieee-fp set and -shared not set.
11563 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
11564
11565 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
11566
11567 * cppfiles.c (struct _cpp_file): Rename once_only_next to
11568 next_file. Remove import and pragma_once, add once_only.
11569 (find_file): Add new file structures to the all_files list.
11570 (should_stack_file): Mark #import-ed files once-only, and
11571 don't stack them if the file has already been stacked.
11572 (_cp_mark_file_once_only): Simplify.
11573 * cpphash.h (struct cpp_reader): Rename once_only_files
11574 to all_files. Rename saw_pragma_once to seen_once_only.
11575 (_cpp_mark_file_once_only): Update prototype.
11576 * cpplib.c (do_pragma_once): Update.
11577
11578 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
11579
11580 * cppfiles.c (ENOTDIR): Remove.
11581 (open_file_in_dir): Rename find_file_in_dir. Handle errors
11582 other than ENOENT here.
11583 (once_only_file_p): Rename should_stack_file.
11584 (find_file, open_file_failed, read_file_guts): Report errors
11585 with full path name.
11586 (read_file): Move pch handling to should_stack_file.
11587 (should_stack_file): Handle PCH and once-only issues, and
11588 reading the file.
11589 (stack_file): Don't do file reads.
11590
11591 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11592
11593 * libgcov.c (gcov_exit): Cleanup and fix.
11594 * profile.c (compute_value_histograms): Don't try to read profiles
11595 that are not present.
11596
11597 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11598
11599 * builtins.def: Categorize.
11600
11601 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
11602 Mind fp rounding.
11603 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
11604
11605 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
11606
11607 * config.gcc: Enable posix threads by default on darwin.
11608
11609 2003-08-01 Jakub Jelinek <jakub@redhat.com>
11610
11611 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
11612 even if nehedges1 is 0.
11613
11614 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
11615
11616 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
11617 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
11618 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
11619 and defintions.
11620
11621 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
11622 * fixinc/fixincl.x: Regenerate.
11623 * fixinc/tests/base/math.h: Regenerate to match test_text change.
11624
11625 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11626
11627 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
11628
11629 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11630
11631 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
11632 for accesses to exc_ptr.
11633
11634 2003-08-01 Geoffrey Keating <geoffk@apple.com>
11635
11636 * doc/sourcebuild.texi (Front End Directory): Don't make references
11637 to libsubdir, it's not part of the interface to frontends.
11638 * doc/install.texi (Configuration): Help users read faster by saying
11639 that GCC's configure options are the standard autoconf ones.
11640 Mention --libdir. Update the default rules for finding the
11641 assembler. Don't use libsubdir since we haven't said what it means.
11642 (Specific): In the Solaris 7 notes, update the place to put the
11643 assembler.
11644 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
11645 * doc/cpp.texi (Search Path): Actually, the search path
11646 depends on libdir, which can relocate with cpp.
11647 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
11648 now a private interface between the Makefile and the driver.
11649
11650 2003-08-01 Richard Henderson <rth@redhat.com>
11651
11652 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
11653
11654 * varasm.c (lookup_constant_def): New function.
11655 * rtl.h (lookup_constant_def): Declare it.
11656 * dwarf2out.c (loc_descriptor_from_tree): Use it.
11657 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
11658
11659 2003-08-01 Zack Weinberg <zack@codesourcery.com>
11660
11661 * c-decl.c (gettags, pushdecl_function_level): Delete.
11662 (last_function_parm_vars): Rename last_function_parm_others.
11663 (current_function_parm_vars): Rename current_function_parm_others.
11664 (struct c_scope): Rewrite comment explaining this data structure.
11665 Add names_last, blocks_last, parms_last fields. Rename
11666 incomplete_list to incomplete.
11667 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
11668 (poplevel): Ignore second argument. No need to nreverse
11669 anything. Restructure such that each list is processed
11670 exactly once. Use 'const location_t *locus' syntactic sugar
11671 variable where useful. Issue unused variable warnings
11672 ourselves, do not rely on function.c.
11673 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
11674 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
11675 (implicitly_declare): decl cannot be error_mark_node.
11676 (undeclared_variable): Manipulate scope structure directly.
11677 (c_make_fname_decl): Likewise.
11678 (getdecls, c_init_decl_processing): Fix comment.
11679 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
11680 for 'last' variable.
11681 (grokparms): No need to nreverse parms list.
11682 (store_parm_decls_newstyle): Set up the parms_last and
11683 names_last fields of the new scope too.
11684 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
11685 on parms to begin with; check this under ENABLE_CHECKING. Set
11686 up parms_last.
11687 (check_for_loop_decls): Refer directly to current_scope->tags.
11688 Use consistent quote style in diagnostics.
11689 (c_write_global_declarations): The names list is not backward.
11690
11691 * c-common.h: Don't prototype gettags.
11692 * c-parse.in: Call poplevel with second argument 0 always.
11693
11694 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11695
11696 * builtins.def: Resort builtins.
11697
11698 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11699
11700 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
11701 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
11702 Prepend "__builtin_" onto NAME with string concatenation. Remove
11703 explicit "__builtin_" from each macro call.
11704
11705 Reformat entire file.
11706
11707 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11708
11709 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
11710 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
11711
11712 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
11713
11714 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
11715 CCL1, or CCL2 modes with floating point operations.
11716
11717 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
11718 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
11719 "*subdf3_cconly"): New insns.
11720 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
11721
11722 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
11723
11724 * Makefile.in: Refine dependencies.
11725 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
11726 * c.opt: Update help for -Wimport.
11727 * cppfiles.c: Include hashtab.h. Update comments.
11728 (stack_file): Read the file before updating dependencies.
11729 (once_only_file_p): Be smarter about marking once-only files.
11730 (_cpp_mark_file_once_only): Correct the check for existence on
11731 the list.
11732 (open_file_failed): Use name not path, which is NULL.
11733 * cpphash.h: Don't include hashtab.h.
11734 (struct _cpp_file): Remove.
11735 (struct cpp_reader): Update.
11736 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
11737 * cpplib.h (struct cpp_options): Remove warn_import.
11738 (cpp_simplify_path): Remove.
11739
11740 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
11741
11742 PR c++/11295
11743 * doc/extend.texi (Statement Expressions): Document C++ semantics.
11744
11745 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11746
11747 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
11748
11749 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11750
11751 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
11752 throughout.
11753 * builtins.def: Likewise.
11754
11755 2003-07-31 Jason Merrill <jason@redhat.com>
11756
11757 * Makefile.in (bubblestrap): Don't require a previous full
11758 bootstrap.
11759
11760 * expr.c (mostly_zeros_p): No longer static.
11761 * tree.h: Declare it.
11762 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
11763 unless we need to do substitutions.
11764
11765 2003-07-31 Roger Sayle <roger@eyesopen.com>
11766
11767 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
11768 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
11769 as pow(x,2.0) when the latter will be expanded back into x*x.
11770 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
11771 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
11772 pow can never set errno when used with an integer exponent.
11773 Always use expand_powi when exponent is -1, 0, 1 or 2.
11774 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
11775 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
11776 the pow forms of these expressions.
11777
11778 2003-07-31 Geoffrey Keating <geoffk@apple.com>
11779
11780 * Makefile.in (libexecdir): New.
11781 (libsubdir): Use gcc instead of gcc-lib.
11782 (libexecsubdir): New.
11783 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
11784 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
11785 gcc-lib.
11786 (installdirs): Make libexecsubdir.
11787 (install-common): Put executables in libexecsubdir.
11788 (itoolsdir): Use libexecsubdir.
11789 (itoolsdatadir): New.
11790 (install-mkheaders): Separate data files and executables.
11791 (install-collect2): Put executables in libexecsubdir.
11792 (uninstall): Remove libexecsubdir.
11793 * mkheaders.in: Update for new arrangement of files.
11794 (libexecdir): New.
11795 (libexecsubdir): New.
11796 (itoolsdir): Use libexecsubdir.
11797 (itoolsdatadir): New.
11798 * gcc.c (gcc_libexec_prefix): New.
11799 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
11800 (standard_exec_prefix_1): Use libexec.
11801 (standard_exec_prefix_2): New.
11802 (standard_libexec_prefix): New.
11803 (process_command): Update for new arrangement of files. Compute
11804 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
11805
11806 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
11807
11808 * inclhack.def (stdio_va_list): Avoid bogus replacement which
11809 triggers on Interix.
11810 * fixincl.x: Regenerate.
11811
11812 2003-07-31 Jakub Jelinek <jakub@redhat.com>
11813
11814 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
11815 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
11816
11817 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11818
11819 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
11820
11821 2003-07-31 Per Bothner <pbothner@apple.com>
11822
11823 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
11824 (add_input_filename): New function.
11825 (handle_options): Call add_input_filename directly instead of
11826 with a lang hook.
11827 * opts.h (in_fnames, num_in_fnames): Moved here.
11828 (add_input_filename): Declare.
11829 * c-decl.c: Need to #include opts.h.
11830 * Makefile.in (c-decl.o): Also depends on opts.h.
11831 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
11832 (c_common_handle_filename): Replaced by add_input_filename.
11833 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
11834 Remove.
11835 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
11836 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
11837 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
11838 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
11839
11840 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11841
11842 * combine.c (try_combine): Set JUMP_LABEL for newly created
11843 unconditional jump.
11844
11845 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11846
11847 * fold-const.c (fold): Fold some comparisons of bit operations.
11848
11849 2003-07-31 Jan Hubicka <jh@suse.cz>
11850
11851 * cgraph.c (create_edge): Fix typo.
11852 * i386.c (pic_symbolic_operand): Reorder tests.
11853
11854 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
11855
11856 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
11857 more fully.
11858 (Gcov Data Files): Update.
11859
11860 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11861
11862 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
11863 default.
11864
11865 * gthr-posix.c: New file.
11866 * gthr-posix.h: Define _REENTRANT if missing.
11867 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
11868
11869 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
11870 by gthr-posix.o.
11871 * config/alpha/t-osf-pthread: New file.
11872
11873 * fixinc/inclhack.def (alpha_pthread): New fix.
11874 * fixinc/fixincl.x: Regenerate.
11875 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
11876
11877 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
11878 warning.
11879 Fixes PR bootstrap/9330.
11880
11881 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11882
11883 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
11884 without GNU ld.
11885 Update comment.
11886 * configure: Regenerate.
11887
11888 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
11889
11890 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
11891 setter.
11892
11893 2003-07-30 Roger Sayle <roger@eyesopen.com>
11894
11895 * builtins.def: Alphabetize.
11896
11897 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
11898
11899 * doc/c-tree.texi: Normalize spellings of "lowercase" and
11900 "uppercase".
11901 * doc/cpp.texi: Likewise.
11902 * doc/md.texi: Likewise.
11903 * doc/rtl.texi: Likewise.
11904 * doc/tm.texi: Likewise.
11905
11906 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
11907
11908 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
11909 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
11910 of cc1obj.
11911
11912 2003-07-30 Chris Demetriou <cgd@broadcom.com>
11913
11914 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
11915 macros before defining them.
11916
11917 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
11918
11919 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
11920 UNSPECV_BLOCKAGE): New constants.
11921 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
11922 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
11923 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
11924 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
11925
11926 (all insns and expanders): Write output control string as brace block
11927 where appropriate. Remove \-escapes for doublequote characters.
11928
11929 2003-07-31 Jan Hubicka <jh@suse.cz>
11930
11931 * gcse.c (insert_store): Fix typo in previous patch.
11932
11933 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
11934
11935 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
11936
11937 2003-07-30 Andi Kleen <ak@muc.de>
11938
11939 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
11940
11941 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11942
11943 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
11944 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
11945 GCOV_N_VALUE_COUNTERS): New.
11946 * profile.c (compute_value_histograms): New static function.
11947 (branch_prob): Read back the value histograms.
11948 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
11949 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
11950 * value-prof.c: Add comment on reading the profile.
11951 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
11952 * doc/invoke.texi (-fprofile-values): Document behavior with
11953 -fbranch-probabilities.
11954
11955 2003-07-30 David Edelsohn <edelsohn@gnu.org>
11956
11957 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
11958
11959 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
11960
11961 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
11962 symbolically.
11963
11964 2003-07-30 Jan Hubicka <jh@suse.cz>
11965
11966 * gcse.c (insert_store): Ignore fake edges.
11967
11968 * c-common.c (flag_vtable_gc): Kill.
11969 * c-common.g (flag_vtable_gc): Kill.
11970 * c-opts (c_common_handle_option): Kill.
11971 * c.opt (fvtable-gc): Kill.
11972 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
11973 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11974 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11975
11976 * invoke.texi (-ftable-gc): Kill documentation.
11977
11978 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
11979 just because function body is missing.
11980
11981 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
11982
11983 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
11984
11985 * unwind-sjlj.c: Fix typo in file description.
11986
11987 2003-07-30 Alan Modra <amodra@bigpond.net.au>
11988
11989 * calls.c (load_register_parameters): When shifting reg sized values
11990 to the msb, move the value to a reg first.
11991
11992 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11993
11994 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
11995 * line-map.h (linemap_add): Update comments.
11996 * line-map.c (linemap_add): Update comments, interpret zero-length
11997 filename as "<stdin>".
11998
11999 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
12000
12001 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
12002
12003 2003-07-29 Zack Weinberg <zack@codesourcery.com>
12004
12005 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
12006 New static variables.
12007 (struct c_scope): Add parms and warned_forward_parm_decls
12008 fields; remove parm_order.
12009 (storedecls, storetags): Delete.
12010 (poplevel): Also clear bindings on the parms chain.
12011 (pushdecl): Handle forward declarations of parameters, and
12012 chain PARM_DECLs on the parms list, not the names list.
12013 (lookup_name_current_level): Check for PARM_DECLs on the parms
12014 list too.
12015 (push_parm_decl): Don't update parm_order.
12016 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
12017 warning, only once per parameter list, and set TREE_ASM_WRITTEN
12018 on the decls here. Then move the forward decls to the names list.
12019 (grokparms): Set last_function_parm_vars.
12020 (get_parm_info): Don't use gettags or getdecls. No need to
12021 extract non-parms from the parms list, or reorganize the parms
12022 list. Feed nonparms back in the TREE_TYPE of the list node
12023 returned. Issue only one error per parameter list for "void"
12024 appearing more than once in said parameter list. Collapse
12025 parmlist_tags_warning into this function to avoid double scan
12026 of tags list.
12027 (start_function): Set current_function_parm_vars.
12028 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
12029 directly. Get non-parms from current_function_parm_vars; no
12030 need to extract them from the parms chain. Properly bind tags
12031 in the new scope.
12032 (store_parm_decls_oldstyle): No need to extract non-parameters
12033 from the parms chain, nor to store them back afterward. Move
12034 declaration to top of function, restructure code reordering
12035 DECL_ARGUMENTS.
12036 (store_parm_decls): No need to save and restore warn_shadow.
12037 * c-parse.in: Don't call parmlist_tags_warning nor
12038 clear_parm_order. Call mark_forward_parm_decls when forward
12039 parm decls are encountered.
12040 * c-tree.h: Prototype mark_forward_parm_decls; not
12041 clear_parm_order or parmlist_tags_warning.
12042
12043 2003-07-29 Geoffrey Keating <geoffk@apple.com>
12044
12045 * c-common.c (allow_pch): Remove.
12046 * c-common.h (allow_pch): Remove.
12047 (c_common_no_more_pch): Declare.
12048 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
12049 * c-pch.c: Include hosthooks.h.
12050 (c_common_valid_pch): Don't check allow_pch.
12051 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
12052 (c_common_no_more_pch): New.
12053 * ggc-common.c: Include hosthooks.h.
12054 (gt_pch_save): Call gt_pch_get_address.
12055 (gt_pch_restore): Call gt_pch_use_address.
12056 * hooks.c (hook_voidp_size_t_null): New.
12057 (hook_bool_voidp_size_t_false): New.
12058 * hooks.h (hook_voidp_size_t_null): New.
12059 (hook_bool_voidp_size_t_false): New.
12060 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
12061 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
12062 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
12063 HOST_HOOKS_GT_PCH_USE_ADDRESS.
12064 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
12065 gt_pch_use_address.
12066 * doc/hostconfig.texi (Host Common): Document
12067 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
12068 * Makefile.in (c-pch.o): Depend on hosthooks.h.
12069 (ggc-common.o): Likewise.
12070
12071 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
12072 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
12073 (pch_address_space): New.
12074 (darwin_rs6000_gt_pch_get_address): New.
12075 (darwin_rs6000_gt_pch_use_address): New.
12076
12077 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
12078
12079 PR preprocessor/11569
12080 PR preprocessor/11649
12081 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
12082 * cppfiles.c: Completely rewritten.
12083 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
12084 struct cpp_path is now struct cpp_dir.
12085 (remove_duplicates): Don't simplify path names.
12086 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
12087 cpp_stack_file.
12088 * cpphash.h: Include hashtab.h.
12089 (_cpp_file): Declare.
12090 (struct cpp_buffer): struct include_file is now struct _cpp_file,
12091 and struct cpp_path is now struct cpp_dir. Rename members.
12092 (struct cpp_reader): Similarly. New members once_only_files,
12093 file_hash, file_hash_entries, quote_ignores_source_dir,
12094 no_search_path, saw_pragma_once. Remove all_include_files and
12095 max_include_len. Make some members bool.
12096 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
12097 (_cpp_stack_file): Renamed from _cpp_read_file.
12098 (_cpp_stack_include): Renamed from _cpp_execute_include.
12099 (_cpp_init_files): Renamed from _cpp_init_includes.
12100 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
12101 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
12102 (cpp_read_next_file): Rename and move to cppfiles.c.
12103 (cpp_read_main_file): Update.
12104 * cpplib.c (run_directive): Update for renamed members.
12105 (do_include_common, _cpp_pop_buffer): Update.
12106 (do_import): Undeprecate #import.
12107 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
12108 * cpplib.h: Remove file_name_map_list.
12109 (cpp_options): Remove map_list.
12110 (cpp_dir): Rename from cpp_path. New datatype for name_map.
12111 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
12112
12113 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
12114
12115 * Makefile.in: Make stamp-objdir safe for parallel builds.
12116
12117 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
12118
12119 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
12120 (info): Depend on stmp-docobjdir.
12121
12122 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12123
12124 * configure: Regenerate.
12125
12126 2003-07-29 Jan Hubicka <jh@suse.cz>
12127
12128 PR C++/11131
12129 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
12130 in !unit-at-a-time mode.
12131
12132 2003-07-28 Geoffrey Keating <geoffk@apple.com>
12133
12134 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
12135 main function.
12136
12137 2003-07-28 Mark Mitchell <mark@codesourcery.com>
12138
12139 PR c++/11667
12140 * c-common.c (shorten_compare): Take into account differences
12141 between C and C++ representation for enumeration types.
12142 * tree.h (set_min_and_max_values_for_integral_type): Declare.
12143 * stor-layout.c (set_min_and_max_values_for_integral_type): New
12144 function, broken out from ...
12145 (fixup_signed_type): ... here and ...
12146 (fixup_unsigned_type): ... here.
12147
12148 2003-07-28 Zack Weinberg <zack@codesourcery.com>
12149
12150 * c-decl.c: Update commentary, adjust blank lines throughout.
12151 (struct c_scope): Fix indentation. Reorder members so
12152 outer-context pointers come first, booleans last.
12153 (duplicate_decls, define_label): Use a 'locus' variable for
12154 diagnostic locations in a few more places.
12155 (warn_if_shadowing): Un-split a conditional that fits on one line.
12156 (c_init_decl_processing): No need to clear current_scope and
12157 current_function_scope.
12158 (start_decl): Merge if/else if statements with same action.
12159 (push_parm_decl): Rename old_immediate_size_expand to use
12160 save_foo convention; save/restore around entire function.
12161 (grokdeclarator): Remove unnecessary braces.
12162
12163 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
12164 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
12165
12166 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
12167 when warn_declaration_after_statement. Call pedwarn_c90, not
12168 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
12169 * c-common.c (warn_declaration_after_statement): Define.
12170 * c-common.h (warn_declaration_after_statement): Declare.
12171 * c.opt (Wdeclaration-after-statement): New.
12172 * c-errors.c (pedwarn_c90): New function.
12173 * c-opts.c (c_common_handle_option) <case
12174 OPT_Wdeclaration_after_statement>: New.
12175 * c-tree.h (pedwarn_c90): Declare.
12176 * doc/invoke.texi (Option Summary): Document
12177 -Wdeclaration-after-statement.
12178 (Warning Options): Ditto.
12179
12180 2003-07-28 Jan Hubicka <jh@suse.cz>
12181
12182 * i386.md (memory attribute) Avoid accessing uninitialized memory
12183 for ishift1 type instructions.
12184
12185 2003-07-28 Jakub Jelinek <jakub@redhat.com>
12186
12187 * configure.in (--enable-checking): Add fold category.
12188 (ENABLE_FOLD_CHECKING): Define if requested.
12189 * configure: Rebuilt.
12190 * config.in: Rebuilt.
12191 * doc/install.texi: Document it.
12192 * fold-const.c: Include md5.h.
12193 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
12194 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
12195 print_fold_checksum): New functions.
12196
12197 * fold-const.c (fold): Never modify argument passed to fold, instead
12198 change a copy and return it.
12199 * convert.c (convert_to_integer): Likewise.
12200
12201 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
12202
12203 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
12204 cleanup of junk after #else and #endif directives. Collapse repeated
12205 clauses into for statment.
12206
12207 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
12208
12209 2003-07-27 Zack Weinberg <zack@codesourcery.com>
12210
12211 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
12212 (keep_next_if_subblocks): Rename next_is_function_body.
12213 (pushlevel): Adjust commentary. Always set ->keep on the
12214 outermost level of a function. Don't set ->keep_if_subblocks.
12215 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
12216 (store_parm_decls): Adjust to match.
12217 (finish_function): Adjust to match.
12218 Call poplevel with all three arguments zero.
12219
12220 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
12221 New functions split out of store_parm_decls.
12222 Avoid unnecessary work. Use local variables consistently.
12223 (store_parm_decls): Likewise.
12224
12225 (finish_function): No need to set functionbody flag on call to
12226 poplevel.
12227 (struct language_function): Remove scope field.
12228 (c_push_function_context, c_pop_function_context): No need to
12229 save and restore current_scope.
12230
12231 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
12232
12233 * doc/extend.texi (Deprecated Features): Implicit typename is
12234 gone. Default args on types is going.
12235
12236 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
12237
12238 * Makefile.in (ifcvt.o): Depend on target.h
12239 * ifcvt.c (target.h): Include.
12240 (if_convert): Don't call mark_loop_exit_edges if we can't
12241 modify jumps.
12242
12243 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12244
12245 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
12246
12247 2003-07-26 Richard Henderson <rth@redhat.com>
12248
12249 PR inline-asm/11676
12250 * cse.c (count_reg_usage): Handle asm_operands properly.
12251
12252 2003-07-26 Roger Sayle <roger@eyesopen.com>
12253
12254 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
12255 (DEF_EXT_FALLBACK_BUILTIN): Delete.
12256 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
12257 the regular DEF_EXT_LIB_BUILTIN macro.
12258 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
12259 the regular DEF_LIB_BUILTIN macro.
12260 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
12261 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
12262 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
12263 DEF_EXT_LIB_BUILTIN macro.
12264
12265 * c-decl.c (duplicate_decls): Remove code to handle builtin
12266 functions prototyped without an argument list.
12267
12268 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
12269
12270 * config/i386/winnt.c: Revert 2003-07-08 change.
12271 (i386_pe_section_type_flags): Remove error_with_decl here too.
12272
12273 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
12274
12275 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
12276 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
12277 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
12278 (v850_handle_data_area_attribute): Likewise.
12279
12280 2003-07-26 Geoffrey Keating <geoffk@apple.com>
12281
12282 * varasm.c (output_constant_def_contents): Use
12283 ASM_DECLARE_CONSTANT_NAME if defined.
12284 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
12285 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
12286 objects get at least one byte to prevent assembler problems.
12287 (ASM_DECLARE_CONSTANT_NAME): New.
12288
12289 * Makefile.in (libbackend.o): Remove options_.h.
12290 (mostlyclean): Likewise.
12291
12292 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
12293 insert a label at the end of an function under Mach-O.
12294
12295 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
12296
12297 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
12298
12299 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
12300 equality.
12301 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
12302
12303 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
12304
12305 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12306
12307 * doc/passes.texi (Passes): Mention pretty-printing and
12308 diagnostic files.
12309
12310 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
12311
12312 * doc/extend.texi (Function Attributes): GNU C++ does now allow
12313 unused parameter decls.
12314 (Attribute Syntax): GNU C++ does not allow label attributes to be
12315 after the ':'.
12316
12317 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12318
12319 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
12320 (objc_declare_class): Likewise.
12321 (error_with_ivar): Likewise.
12322 (start_class): Likewise.
12323 (warn_with_method): Likewise.
12324
12325 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
12326
12327 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
12328 from GCC.
12329 * calls.c (try_to_integrate): Don't use xxx_with_decl.
12330 (expand_call): Likewise.
12331 * dwarfout.c (output_reg_number): Likewise.
12332 * expr.c (expand_expr): Likewise.
12333 * function.c (assign_temp): Likewise.
12334 (uninitialized_vars_warning): Likewise.
12335 (setjmp_args_warning): Likewise.
12336 (expand_function_end): Likewise.
12337 * stmt.c (fixup_gotos): Likewise.
12338 (warn_about_unused_variables): Likewise.
12339 (expand_end_bindings): Likewise.
12340 * stor-layout.c (layout_decl): Likewise.
12341 (place_field): Likewise.
12342 * toplev.c (check_global_declarations): Likewise.
12343 (rest_of_handle_inlining): Likewise.
12344 (default_tree_printer): New function.
12345 (general_init): Initialize diagnostic machinery before routing
12346 signals to the ICE machinery. Set default tree printer.
12347 * toplev.h (pedwarn_with_decl): Remove declaration.
12348 (warning_with_decl): Likewise.
12349 (error_with_decl): Likewise.
12350 (pedwarn): Remove attribute for the time being.
12351 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
12352 * varasm.c (named_section): Likewise.
12353 (make_decl_rtl): Likewise.
12354 (assemble_variable): Likewise.
12355 (merge_weak): Likewise.
12356 (declare_weak): Likewise.
12357
12358 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
12359 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
12360 (format_with_decl): Remove.
12361 (diagnostic_for_decl): Likewise.
12362 (pedwarn_with_decl): Likewise.
12363 (warning_with_decl): Likewise.
12364 (error_with_decl): Likewise.
12365 (diagnostic_initialize): Adjust.
12366 (diagnostic_count_diagnostic): Likewise.
12367 (announce_function): Likewise.
12368 (lhd_print_error_function): Likewise.
12369 (diagnostic_report_current_module): Likewise.
12370 (default_diagnostic_starter): Likewise.
12371 (diagnostic_report_diagnostic): Likewise.
12372 (default_diagnostic_finalizer): Likewise.
12373 (verbatim): Likewise.
12374 (error): Likewise.
12375 (warning): Likewise.
12376 * opts.c (common_handle_option): Likewise.
12377 * pretty-print.c: New file.
12378 * c-pretty-print.h (pp_base): Override.
12379 * c-pretty-print.c: Adjust use of macros throughout.
12380 (pp_buffer): New macro.
12381 (pp_newline): Likewise.
12382 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
12383 * Makefile.in (DIAGNOSTIC_H): New variable.
12384 (c-errors.o): Use it.
12385 (c-objc-common.o): Likewise.
12386 (c-common.o): Likewise.
12387 (c-opts.o): Likewise.
12388 (c-format.o): Likewise.
12389 (diagnostic.o): Likewise.
12390 (opts.o): Likewise.
12391 (toplev.o): Likewise.
12392 (rtl-error.o): Likewise.
12393 (dwarf2out.o): Likewise.
12394 (jump.o): Likewise.
12395 (pretty-print.o): New rule.
12396
12397 2003-07-24 Roger Sayle <roger@eyesopen.com>
12398
12399 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
12400 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
12401 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
12402 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
12403 (DEF_FRONT_END_LIB_BUILTIN): Delete.
12404 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
12405 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
12406
12407 * builtins.c (build_string_literal): New function to construct
12408 a char* pointer to a string literal.
12409 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
12410 "rtx target" to be consistent with other expand_builtin_* functions.
12411 Change 3rd argument from "int unlocked" to "bool unlocked".
12412 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
12413 c-common.c to avoid front-end dependencies. Optimize printf("")
12414 as a no-op when the result isn't required. Handle embedded NULs
12415 in format string.
12416 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
12417 from c-common.c to avoid front-end dependencies. Likewise, optimize
12418 fprintf(fp,"") as a no-op when the result isn't required, evaluating
12419 fp for side-effects. Handle embedded NULs in format string.
12420 (expand_builtin_sprintf): Fix typo.
12421 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
12422 optimizing. Adjust calls of expand_builtin_fputs to match the API
12423 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
12424 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
12425 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
12426
12427 * c-common.c (is_valid_printf_arglist): Delete.
12428 (c_expand_builtin): Delete.
12429 (c_expand_builtin_printf): Moved to builtins.c. Delete.
12430 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
12431 (c_expand_expr): No longer treat CALL_EXPRs specially.
12432 (CALLED_AS_BUILT_IN): Delete.
12433
12434 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12435
12436 PR optimization/11631
12437 * gcse.c (store_motion): Connect infinite loops to exit.
12438
12439 2003-07-24 Jason Merrill <jason@redhat.com>
12440
12441 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
12442 (boolean_true_node, boolean_false_node): Likewise.
12443 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
12444 * tree.c (build_common_tree_nodes): Init boolean_type_node.
12445 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
12446 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
12447 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
12448 (truthvalue_true_node): Renamed from boolean_true_node.
12449 (truthvalue_false_node): Renamed from boolean_false_node.
12450 * c-decl.c: Just set truthvalue_* to integer_*.
12451 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
12452
12453 2003-07-24 Roger Sayle <roger@eyesopen.com>
12454
12455 * c-decl.c (match_builtin_function_types): New subroutine of
12456 duplicate_decls to test whether a redeclaration of a builtin
12457 function is suitably close, i.e. the return type and all of
12458 the argument types have the same modes as the builtin expects.
12459 (duplicate_decls): Fuzzy type matching for builtin functions
12460 moved to match_builtin_function_types.
12461
12462 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12463
12464 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
12465 flag correctly.
12466
12467 2003-07-24 Zack Weinberg <zack@codesourcery.com>
12468
12469 * c-decl.c: Search-and-replace change 'binding level' to
12470 'scope' in commentary.
12471 (struct binding_level): Now struct c_scope.
12472 (current_binding_level): Now current_scope.
12473 (free_binding_level): Now scope_freelist.
12474 (current_function_level): Now current_function_scope.
12475 (global_binding_level): Now global_scope.
12476 (make_binding_level): Now make_scope.
12477 (pop_binding_level): Now pop_scope.
12478
12479 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12480
12481 * configure.in (libgcc_visibility): Add missing whitespace.
12482
12483 2003-07-24 Richard Henderson <rth@redhat.com>
12484
12485 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
12486 __gcc_personality_v0.
12487
12488 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12489
12490 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
12491
12492 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
12493
12494 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
12495 documentation missed from my 2003-07-09 patch.
12496
12497 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
12498
12499 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
12500 it's not provided.
12501 * configure: Rebuild.
12502
12503 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
12504
12505 PR c/10602
12506 * c-typeck.c (type_lists_compatible_p): Do not compare
12507 arguments if one of them is an error_mark_node
12508
12509 2003-07-24 Alan Modra <amodra@bigpond.net.au>
12510
12511 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
12512 if current_function_calls_eh_return.
12513
12514 2003-07-23 Mark Mitchell <mark@codesourcery.com>
12515
12516 * doc/c-tree.texi (OFFSET_TYPE): Update description.
12517
12518 2003-07-23 Bob Wilson <bob.wilson@acm.org>
12519
12520 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
12521 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
12522 __umodsi3, __modsi3): Increase frame size to 32.
12523
12524 2003-07-23 Geoffrey Keating <geoffk@apple.com>
12525
12526 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
12527 prototype.
12528
12529 2003-07-23 Mark Mitchell <mark@codesourcery.com>
12530
12531 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
12532
12533 PR optimization/10679
12534 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
12535
12536 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12537
12538 PR target/11607 and PR target/11516
12539 * pa.md (extzv, extv, insv): Revert latter half of last patch.
12540
12541 2003-07-22 Mark Mitchell <mark@codesourcery.com>
12542
12543 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
12544 * varasam.c (output_constant): Likewise.
12545
12546 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12547
12548 * alias.c: Fix comment formatting.
12549 * c-common.c: Likewise.
12550 * c-decl.c: Likewise.
12551 * c-opts.c: Likewise.
12552 * combine.c: Likewise.
12553 * cpplib.c: Likewise.
12554 * diagnostic.c: Likewise.
12555 * dojump.c: Likewise.
12556 * final.c: Likewise.
12557 * fold-const.c: Likewise.
12558 * gcc.c: Likewise.
12559 * gcse.c: Likewise.
12560 * ggc-page.c: Likewise.
12561 * jump.c: Likewise.
12562 * loop.c: Likewise.
12563 * mips-tfile.c: Likewise.
12564 * recog.c: Likewise.
12565 * regclass.c: Likewise.
12566 * regmove.c: Likewise.
12567 * tree.c: Likewise.
12568 * tree.h: Likewise.
12569
12570 2003-07-22 Per Bothner <pbothner@apple.com>
12571
12572 * line-map.c (add_line_map): Handle invalid LEAVE request.
12573 Fixes PR preprocessor/11361.
12574
12575 2003-07-22 Per Bothner <pbothner@apple.com>
12576
12577 * diagnostic.c.(diagnostic_report_current_module): Update to match
12578 2003-06-05 changes to push_srcloc and pop_srcloc.
12579
12580 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
12581
12582 * doc/trouble.texi: Better document two-stage name lookup.
12583
12584 2003-07-22 Eric Christopher <echristo@redhat.com>
12585
12586 * config/s390.c (s390_valid_pointer_mode): New.
12587 (TARGET_VALID_POINTER_MODE): Use.
12588 (s390_emit_prologue): Add tpf profiling hooks.
12589 (s390_emit_epilogue): Ditto.
12590 * config/s390.h (MASK_TPF): New.
12591 (TARGET_TPF): Use.
12592 (POINTERS_EXTEND_UNSIGNED): Define.
12593 * config/s390.md (ptr_extend): New pattern.
12594
12595 2003-07-22 Zack Weinberg <zack@codesourcery.com>
12596
12597 * hashtable.c (approx_sqrt): Make static.
12598 * hashtable.h: Don't prototype approx_sqrt.
12599 * line-map.c (init_line_maps): Rename linemap_init.
12600 (free_line_maps): Rename linemap_free.
12601 (add_line_map): Rename linemap_add.
12602 (lookup_line): Rename linemap_lookup.
12603 (print_containing_files): Rename linemap_print_containing_files.
12604 * linemap.h: Update to match.
12605
12606 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
12607 linemap routines to use new names.
12608
12609 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
12610
12611 * c-common.c (handle_packed_attribute): Don't pack a struct via a
12612 typedef. Propagate packedness from a main variant.
12613
12614 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
12615
12616 * Makefile.in (install-common): Add dependency on installdirs.
12617
12618 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
12619
12620 * c-common.c (c_common_type_for_mode): Return integer types for
12621 pointer modes.
12622
12623 2003-07-22 Geoffrey Keating <geoffk@apple.com>
12624
12625 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
12626 (finish_decl): Call maybe_apply_pragma_weak here.
12627 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
12628 TREE_PUBLIC and TREE_STATIC are decided.
12629 (start_function): Move call to maybe_apply_pragma_weak. Check that
12630 DECL_ASSEMBLER_NAME isn't set too early.
12631
12632 * cpplex.c (_cpp_process_line_notes): Mention option name in
12633 trigraphs warning.
12634
12635 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12636
12637 * combine.c (if_then_else_cond): Simplify the comparison of
12638 rtx against -1, 0, and 1.
12639 * loop.c (check_dbra_loop): Likewise.
12640 * optabs.c (emit_conditional_move): Likewise.
12641 (emit_conditional_add): Likewise.
12642 * config/i386/i386.md (*movsi_or): Likewise.
12643 (*movdi_or_rex6): Likewise.
12644
12645 2003-07-22 Jan Hubicka <jh@suse.cz>
12646
12647 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
12648
12649 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
12650
12651 * cppfiles.c (open_file_pch): Don't put unused entries in the
12652 splay tree. Remove dead code.
12653
12654 2003-07-21 Geoffrey Keating <geoffk@apple.com>
12655
12656 * c-common.h (num_in_fnames): Declare.
12657 (c_static_assembler_name): Move from here...
12658 * c-tree.h (c_static_assembler_name): ... to here.
12659 * c-opts.c: Don't include langhooks-def.h.
12660 (c_static_assembler_name): Move to c-decl.c.
12661 (num_in_fnames): Make externally visible.
12662 * c-decl.c: Include langhooks-def.h.
12663 (c_static_assembler_name): Move from c-opts.c.
12664 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
12665 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
12666
12667 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
12668 when it's not needed.
12669
12670 2003-07-21 Jakub Jelinek <jakub@redhat.com>
12671
12672 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
12673 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
12674 (rs6000_emit_prologue): Save FPRs inline if set.
12675
12676 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
12677
12678 * config/ia64/ia64.md (prefetch): Support predicate.
12679
12680 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
12681
12682 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
12683 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
12684 table.
12685
12686 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12687
12688 PR optimization/11536
12689 * unroll.c (loop_iterations): Do not replace a register holding
12690 the final value by its equivalent before the loop if it is not
12691 invariant.
12692
12693 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
12694
12695 * doc/extend.texi: Fixes to spelling, grammar, and diction.
12696
12697 2003-07-21 Ben Elliston <bje@wasabisystems.com>
12698
12699 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
12700 (V850 Options): Spelling fixes.
12701
12702 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
12703
12704 * doc/invoke.texi: Fixes to style, grammar and diction.
12705
12706 2003-07-20 Roger Sayle <roger@eyesopen.com>
12707
12708 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
12709 * system.h (SMALL_STACK): Poison obsolete target macro.
12710 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
12711
12712 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
12713
12714 * configure.in: Cache the results of testing for cmp's capabilities.
12715 * configure: Regenerate.
12716
12717 2003-07-20 Mark Mitchell <mark@codesourcery.com>
12718
12719 PR debug/11279
12720 * dwarf2out.c (gen_enumeration_type_die): Remember that
12721 enumerators can be unsigned.
12722
12723 2003-07-19 Zack Weinberg <zack@codesourcery.com>
12724
12725 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
12726 (push_label_level, pop_label_level): Kill.
12727 (struct binding_level): Rename level_chain to outer.
12728 Add outer_function field. Change parm_flag, function_body,
12729 keep, keep_if_subblocks to 1-bit bitfields of type bool.
12730 (current_function_level): New variable.
12731 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
12732 (keep_next_level, declare_parm_level, warn_if_shadowing):
12733 Update to match.
12734 (struct language_function): Kill named_labels, shadowed_labels fields.
12735 (c_init_decl_processing, start_function, c_push__function_context)
12736 (c_pop_function_context): No need to muck with named_labels nor
12737 shadowed_labels.
12738
12739 (make_binding_level): No need to clear the structure here.
12740 (pop_binding_level): Always operate on current_binding_level.
12741 Update current_function_level if necessary.
12742 (pushlevel): Don't clear named_labels. Update current_function_level
12743 if necessary. Use "true" and "false" where appropriate.
12744 (poplevel): Diagnose labels defined but not used, or vice
12745 versa, and clear out label-meanings leaving scope, while
12746 walking down the decls list, for all binding levels.
12747 Handle LABEL_DECLs appearing in the shadowed list.
12748 pop_binding_level takes no arguments.
12749 (pushdecl_function_level): Use current_function_level.
12750
12751 (make_label, bind_label): New static functions.
12752 (declare_label): New exported function.
12753 (lookup_label, define_label): Rewritten for new data structure.
12754 (shadow_label): Kill.
12755
12756 * c-tree.h: Prototype declare_label; don't prototype
12757 push_label_level, pop_label_level, nor shadow_label.
12758 * c-parse.in: Remove all calls to push_label_level and
12759 pop_label_level. Use declare_label for __label__ decls.
12760
12761 * doc/extend.texi: Clarify that __label__ can be used to
12762 declare labels with local scope in any nested block, not
12763 just statement expressions. Cross-reference nested functions
12764 section from local labels section.
12765
12766 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12767
12768 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
12769
12770 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
12771
12772 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
12773
12774 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12775
12776 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
12777 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
12778
12779 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
12780
12781 * config/s390/s390.c (legitimize_pic_address): Access local symbols
12782 relative to the GOT instead of relative to the literal pool base.
12783 (s390_output_symbolic_const): Handle new GOT-relative accesses.
12784 * config/s390/s390.md ("call"): Access local functions and PLT stubs
12785 relative to the GOT instead of relative to the literal pool base.
12786 ("call_value"): Likewise.
12787 ("call_value_tls"): Likewise.
12788
12789 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
12790 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
12791 (s390_chunkify_finish): Likewise.
12792 (s390_chunkify_cancel): Likewise.
12793 (s390_reorg): Adapt caller.
12794 (find_base_register_in_addr,
12795 find_base_register_ref, replace_base_register_ref): Delete.
12796 (find_ltrel_base, replace_ltrel_base): New functions.
12797 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
12798 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
12799 base vs. index register usage.
12800 (struct constant_pool): Remove 'anchor'.
12801 (s390_add_anchor): Delete.
12802 (s390_dump_pool): Remove anchor handling.
12803 * config/s390/s390.md ("reload_anchor"): Remove.
12804
12805 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
12806 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
12807 (s390_emit_prologue): Use it.
12808 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
12809 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
12810 hard-code register 14.
12811 * config/s390/s390-protos.h (s390_load_got): Declare.
12812
12813 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
12814 Support TImode constants.
12815 * config/s390/s390.md ("consttable_ti"): New.
12816 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
12817
12818 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
12819 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
12820 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
12821 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
12822 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
12823 New symbolic constants.
12824 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
12825 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
12826 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
12827 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
12828 symbolic UNSPEC values.
12829 * config/s390/s390.c (larl_operand, s390_short_displacement,
12830 bras_sym_operand, s390_cannot_force_const_mem,
12831 s390_delegitimize_address, s390_decompose_address,
12832 legitimize_pic_address, s390_output_symbolic_const,
12833 s390_function_profiler): Use symbolic UNSPEC values.
12834
12835 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12836
12837 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
12838 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
12839 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
12840 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
12841 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
12842 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
12843 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
12844 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
12845 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
12846 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
12847 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
12848 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
12849 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
12850 postreload.c prefix.c print-tree.c protoize.c ra-build.c
12851 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
12852 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
12853 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
12854 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
12855 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
12856 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
12857 casts.
12858
12859 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12860
12861 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
12862 * toplev.h (warning): Remove attribute.
12863
12864 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12865
12866 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
12867 (pop_label_level): Likewise.
12868 (duplicate_decls): Likewise.
12869 (implicitly_declare): Likewise.
12870 (shadow_label): Likewise.
12871 (start_decl): Likewise.
12872 (finish_decl): Likewise.
12873 (grokdeclarator): Likewise.
12874 (get_parm_info): Likewise.
12875 (detect_field_duplicates): Likewise.
12876 (finish_struct): Likewise.
12877 (start_function): Likewise.
12878 (store_parm_decls): Likewise.
12879 (finish_function): Likewise.
12880 (c_expand_body_1): Likewise.
12881 (check_for_loop_decls): Likewise.
12882 (merge_translation_unit_decls): Likewise.
12883
12884 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
12885
12886 * common.opt: Document --param.
12887 * opts.c (columns, undocumented_msg): New.
12888 (print_help): Get number of columns from environment. Print
12889 --param help. Tweak newline handling.
12890 (print_param_help): New.
12891 (print_filtered_help): Better handling of duplicates. Complain
12892 about undocumented switches.
12893 (print_switch): New.
12894 (wrap_help): Improve wrapping, use COLUMNS.
12895 * opts.sh: Ignore comments in records.
12896 * params.def: Fix typos and remove trailing periods.
12897 * toplev.c (display_help): Don't dump --param help.
12898 * doc/sourcebuild.texi: Update.
12899
12900 2003-07-18 Richard Henderson <rth@redhat.com>
12901
12902 PR target/11556
12903 * optabs.c (prepare_operand): Fail gracefully instead of abort
12904 if the predicate doesn't satisfy.
12905 (gen_cond_trap): Allow prepare_operand to fail.
12906
12907 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12908
12909 * c-common.c: Don't undefine GCC_DIAG_STYLE.
12910 (fname_decl): Don't use xxx_with_decl.
12911 (c_add_case_label): Likewise.
12912 (handle_section_attribute): Likewise.
12913 (handle_alias_attribute): Likewise.
12914 (handle_no_instrument_function_attribute): Likewise.
12915 (handle_no_limit_stack_attribute): Likewise.
12916 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
12917 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
12918
12919 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12920
12921 * Makefile.in (ifcvt.o): Add cfgloop.h.
12922 * basic-block.h (EDGE_LOOP_EXIT): New flag.
12923 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
12924 * ifcvt.c: Include cfgloop.h.
12925 (mark_loop_exit_edges): New static function.
12926 (if_convert): Call it.
12927 (find_if_header): Ignore branches out of loops.
12928
12929 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
12930
12931 * combine.c (simplify_comparison): Don't share rtx when converting
12932 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
12933
12934 2003-07-18 David Edelsohn <edelsohn@gnu.org>
12935
12936 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
12937 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12938 (MUST_PASS_IN_STACK): Define.
12939 (BLOCK_REG_PADDING): Define.
12940
12941 2003-07-18 Richard Henderson <rth@redhat.com>
12942
12943 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
12944 to skip the addr_vec.
12945
12946 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
12947
12948 * combine.c (combinable_i3pat): Don't forbid occurrences of
12949 i2dest or i1dest in inner_dest if inner_dest is a mem.
12950
12951 2003-07-18 Jan Hubicka <jh@suse.cz>
12952
12953 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
12954
12955 2003-07-17 Jakub Jelinek <jakub@redhat.com>
12956
12957 PR target/11087
12958 * loop.c (basic_induction_var): Check if convert_modes emitted any
12959 instructions. Remove them and return 0 if so.
12960
12961 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
12962
12963 PR optimization/11083
12964 * toplev.c (rest_of_handle_addresof): Rename into
12965 rest_of_handle_addressof. Delete unreachable blocks
12966 if dead edges were purged after the addressof pass.
12967
12968 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
12969
12970 * Makefile.in, configure, configure.in: Remove handling of
12971 lang-options.h and options_.h.
12972 * toplev.c (struct lang_opt, documented_lang_options): Remove.
12973 (display_help): Don't use documented_lang_options.
12974
12975 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12976
12977 * c-decl.c (pushdecl_function_level): Make static, return nothing.
12978 (kept_level_p): Fold into poplevel.
12979 (undeclared_variable): Moved here from c-typeck.c. Export.
12980 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
12981 (undeclared_variable): Prototype here. Don't prototype
12982 kept_level_p nor pushdecl_function_level.
12983 * c-parse.in: Change first argument to poplevel from
12984 "kept_level_p()" to "KEEP_MAYBE".
12985 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
12986
12987 2003-07-17 Roger Sayle <roger@eyesopen.com>
12988
12989 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
12990 commutative operands instead of modifying the RTL in-place.
12991
12992 2003-07-17 Mark Mitchell <mark@codesourcery.com>
12993
12994 PR optimization/11557
12995 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
12996 unless we know which function is being called.
12997
12998 2003-07-17 Roger Sayle <roger@eyesopen.com>
12999
13000 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
13001 whether to reorder the operands of a commutative binary operator.
13002
13003 2003-07-17 Roger Sayle <roger@eyesopen.com>
13004
13005 * fold-const.c (const_binop): Avoid performing the FP operation at
13006 compile-time, if either operand is NaN and we honor signaling NaNs,
13007 or if we're dividing by zero and either flag_trapping_math is set
13008 or the desired mode doesn't support infinities.
13009 (fold_initializer): New function to fold an expression ignoring any
13010 potential run-time exceptions or traps.
13011 * tree.h (fold_initializer): Prototype here.
13012 * c-typeck.c (build_binary_op): Move to the end of the file so
13013 that intializer_stack is in scope. If constructing an initializer,
13014 i.e. when initializer_stack is not NULL, use fold_initializer to
13015 fold expressions.
13016 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
13017 performing FP operations at compile-time, if they would raise an
13018 exception at run-time.
13019
13020 2003-07-17 Geoffrey Keating <geoffk@apple.com>
13021
13022 PR 11498
13023 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
13024 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
13025 (GTFILES): Add langhooks.c.
13026 (gt-langhooks.h): New.
13027 * c-common.h (c_static_assembler_name): Prototype.
13028 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
13029 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
13030 * c-opts.c: Include langhooks-def.h.
13031 (c_static_assembler_name): New.
13032 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
13033 (var_labelno): New.
13034 (lhd_set_decl_assembler_name): Give static objects with context
13035 unique names.
13036 * varasm.c (var_labelno): Delete.
13037 (make_decl_rtl): Don't change the assembler name once it's set.
13038
13039 * c-opts.c (this_input_filename): New.
13040 (finish_options): Take new parameter, name of file being compiled.
13041 Update callers. Set this_input_filename.
13042 (push_command_line_include): Use this_input_filename not
13043 main_input_filename.
13044
13045 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
13046
13047 * Makefile.in: Depend .pot generation on options.c.
13048 * po/exgettext: Add an extra_files variable containing additional
13049 files to scan.
13050
13051 2003-07-17 Zack Weinberg <zack@codesourcery.com>
13052
13053 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
13054 c_write_global_declarations.
13055
13056 * c-decl.c: Fix typos in several comments. Remove all
13057 #if 0 blocks; reindent as needed. Remove unused argument
13058 to declare_parm_level; all callers changed.
13059 * c-parse.in: Update calls to declare_parm_level. Avoid
13060 issuing a double warning in some circumstances.
13061 * c-typeck.c: Update calls to declare_parm_level.
13062 * c-tree.h: Update prototype of declare_parm_level.
13063
13064 * c-pragma.c (apply_pragma_weak): Don't complain about a
13065 redundant #pragma weak.
13066
13067 * objc/objc-act.c (forward_declare_categories,
13068 build_selector_reference_decl, build_class_reference_decl,
13069 build_objc_string_decl, synth_forward_declarations,
13070 build_protocol_reference): Set TREE_PUBLIC on synthetic
13071 forward decl to 0, consistent with eventual definition.
13072 Correct comments to match.
13073
13074 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
13075 in regexp that don't form a range expression.
13076 * fixinc/fixincl.def: Regenerate.
13077
13078 2003-07-17 Richard Henderson <rth@redhat.com>
13079
13080 PR target/10907
13081 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
13082 even with !TARGET_CONST_GP.
13083 (ia64_function_ok_for_sibcall): Reject non-local functions.
13084
13085 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
13086
13087 * c-common.c (c_estimate_num_insns_1): Don't handle
13088 METHOD_CALL_EXPR.
13089 * expr.c (safe_from_p): Likewise.
13090 * gengtype.c (adjust_field_tree_exp): Likewise.
13091 * stmt.c (warn_if_unused_value): Likewise
13092 * tree.c (first_rtl_op): Likewise.
13093 * tree.def: Don't define METHOD_CALL_EXPR.
13094 * java/lang.c (java_estimate_num_insns_1): Don't handle
13095 METHOD_CALL_EXPR.
13096
13097 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
13098
13099 PR other/11466
13100 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
13101 and its restrictions for the SPARC64 port.
13102 Move the entry of "-mimpure-text" before that of "-mv8".
13103
13104 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
13105 Phil Edwards <phil@jaj.com>
13106
13107 * doc/install.texi (*-*-solaris2*): Document the step-by-step
13108 procedure to bootstrap and install.
13109 Document the preference for the legacy Sun tools in /usr/bin
13110 over the POSIX tools in /usr/xpg4/bin for the build process.
13111
13112 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
13113
13114 * c.opt: Document Uncodumented; use it. Document ObjC options.
13115 * opts.c (print_filtered_help): Skip undocumented switches.
13116 * opts.h (CL_UNDOCUMENTED): New.
13117 * opts.sh: Handle Undocumented.
13118 * toplev.c (documented_lang_options): Prevent its becoming empty.
13119 objc:
13120 * lang-options.h: Remove.
13121
13122 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
13123
13124 * loop.c (check_ext_dependent_givs): Pass const struct loop *
13125 instead of struct loop_info * as argument. Accept BIVs with
13126 increment +/- 1 provided there is a friendly exit test against
13127 a loop-invariant value.
13128 (strength_reduce): Adapt call to check_ext_dependent_givs.
13129
13130 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
13131 Con Bradley <con.bradley@superh.com>
13132
13133 * sh-protos.h (sh_get_pr_initial_val): Declare.
13134 * sh.c (regno_reg_class): Make its elements type enum reg_class.
13135 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
13136 and live_regs_mask arguments. Changed all callers.
13137 (save_schedule_s): New structure.
13138 (save_schedule): New typedef.
13139 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
13140 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
13141 In interrupts handlers, also save registers that are usually
13142 partially saved, and make sure there is at least one general purpose
13143 register saved if a target register needs saving.
13144 Add casts in comparisons to avoid warnings.
13145 (sh_media_register_for_return): return -1 for interrupt handlers.
13146 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
13147 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
13148 registers used are available.
13149 Set RTX_FRAME_RELATED_P where appropriate.
13150 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
13151 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
13152 (initial_elimination_offset): Likewise.
13153 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
13154 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
13155 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
13156 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
13157 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
13158 and for target registers.
13159 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
13160 (regno_reg_class): Make its elements type enum reg_class.
13161 (CONSTRAINT_LEN): Don't use isdigit.
13162 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
13163 (FUNCTION_ARG): Add parentheses to avoid warnings.
13164 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
13165 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
13166 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
13167 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
13168 * sh.md (xordi3+1): Remove unused variable regno.
13169 (return_media): Check that tr0 is available before using it.
13170
13171 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
13172
13173 * c.opt: Document more options.
13174
13175 2003-07-16 Roger Sayle <roger@eyesopen.com>
13176
13177 * combine.c (subst): Also handle (subreg (const_double ...)) case
13178 if created by a substitution, by using the original inner mode.
13179
13180 2003-07-16 Roger Sayle <roger@eyesopen.com>
13181
13182 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
13183 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
13184 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
13185
13186 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
13187
13188 * doc/install.texi (--without-headers): New.
13189
13190 Partial Fix PR/10129
13191 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
13192 (machopic_output_function_base_name): New; print the true pic label.
13193 (machopic_classify_ident): Pic Base is always a defined data.
13194 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
13195 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
13196
13197 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
13198 if they are not floating point registers.
13199
13200 PR c/10962
13201 * ggc.h: Add header guards.
13202 * c-decl.c (finish_struct): Sort fields if
13203 number greater than 15 and there are no
13204 anonymous structs/unions.
13205 * c-common.h: Include ggc.h.
13206 (sorted_fields_type): New struct.
13207 (field_decl_cmp): New prototype.
13208 (resort_sorted_fields): New prototype.
13209 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
13210 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
13211 as s, removing other fields.
13212 * c-typeck.c (lookup_field): Use s in lang_type.
13213 These were mostly moved from cp/class.c:
13214 * c-common.c (field_decl_cmp): New static function.
13215 (field_decl_cmp): New function.
13216 (resort_sorted_fields): New function.
13217
13218 2003-07-16 Geoffrey Keating <geoffk@apple.com>
13219
13220 * config/darwin.c (machopic_select_section): Use decl_readonly_section
13221 to do most of the work.
13222
13223 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
13224
13225 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
13226 * config/mmix/mmix.c: Convert functions to ISO C90.
13227 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
13228 formatting.
13229 (mmix_get_hard_reg_initial_val): Tweak section head comment.
13230
13231 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
13232
13233 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
13234
13235 2003-07-16 Jakub Jelinek <jakub@redhat.com>
13236
13237 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
13238 (uw_update_context_1): Use it.
13239 * config/rs6000/rs6000.c (insn_after_throw): Remove.
13240 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
13241 in parent frame if _Unwind_* called directly instead of through
13242 .plt.
13243 (rs6000_emit_eh_toc_restore): Remove.
13244 (rs6000_emit_prologue): Update stack pointer before doing any saving
13245 if current_function_calls_eh_return. Generate unwind info for $r2.
13246 (rs6000_emit_epilogue): Restore stack pointer after doing all
13247 restoring if current_function_calls_eh_return. Restore $r2.
13248 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
13249 * config/rs6000/rs6000.md (eh_return): Remove call to
13250 rs6000_emit_eh_toc_restore.
13251 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
13252 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
13253
13254 2003-07-15 Jakub Jelinek <jakub@redhat.com>
13255
13256 * expr.c (emit_block_move): Don't move anything if size is const 0.
13257 (clear_storage): Test against const0_rtx instead of comparing INTVAL
13258 against 0.
13259
13260 2003-07-15 David S. Miller <davem@redhat.com>
13261
13262 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
13263 emit nop if the last real insn is CALL_INSN.
13264
13265 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
13266
13267 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
13268 as "nul".
13269 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
13270
13271 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
13272
13273 * config/i386/winnt.c (associated_type): Artificial methods are not
13274 affected by the import/export status of their class unless they are
13275 COMDAT.
13276 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
13277
13278 * config/i386/winnt.c: Fix GCC copyright comment.
13279
13280 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
13281
13282 PR c++/11531
13283 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
13284 not recursing on hard error.
13285 (diagnostic_for_decl): Likewise.
13286 * diagnostic.def: Rearrange.
13287
13288 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
13289
13290 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13291 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
13292
13293 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
13294 Richard Henderson <rth@redhat.com>
13295
13296 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
13297 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
13298 (_Unwind_SetGR): Likewise.
13299 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
13300 (Unwind_SpTmp): New typedef.
13301 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
13302 (uw_update_context): Use _Unwind_GetPtr.
13303 (init_dwarf_reg_size_table): Move above uw_init_context_1.
13304 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
13305 Use _Unwind_SetSpColumn.
13306 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
13307 Use _Unwind_GetPtr.
13308
13309 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
13310
13311 * c.opt: Document more options.
13312 * toplev.c (documented_lang_options): Remove all local help strings.
13313
13314 2003-07-15 Mark Mitchell <mark@codesourcery.com>
13315
13316 PR debug/11473
13317 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
13318 base classes.
13319
13320 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
13321
13322 PR target/10795
13323 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
13324 swap comparison operands if doing so would generate an
13325 unrecognizable insn.
13326
13327 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
13328
13329 PR optimization/11320
13330 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
13331 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
13332 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
13333 current_sched_info->compute_jump_reg_dependencies. Record which
13334 registers are used and which registers are set by the jump.
13335 Clear deps->reg_conditional_sets after a barrier.
13336 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
13337 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
13338 (init_deps): Initialize reg_conditional_sets.
13339 (free_deps): Clear reg_conditional_sets.
13340 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
13341 Mark registers live on entry of the fallthrough block and conditionally
13342 set as set by the jump. Mark registers live on entry of non-fallthrough
13343 blocks as used by the jump.
13344 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
13345 Mark new parameters as unused.
13346
13347 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13348
13349 * doc/invoke.texi: Resync MIPS -march documentation.
13350
13351 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13352
13353 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
13354 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
13355 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
13356 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
13357 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
13358 (mips_issue_rate): Handle PROCESSOR_R9000.
13359 (mips_use_dfa_pipeline_interface): Likewise.
13360 * config/mips/9000.md: New file.
13361 * config/mips/mips.md: Include it.
13362 (define_attr cpu): Add r9000.
13363 (mulsi3_mult3): Use "mul" for rm9000 code.
13364
13365 2003-07-15 Stan Cox <scox@redhat.com>
13366
13367 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
13368 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
13369 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
13370 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
13371 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
13372 (mips_issue_rate): Handle PROCESSOR_R7000.
13373 (mips_use_dfa_pipeline_interface): Likewise.
13374 * config/mips/7000.md: New file.
13375 * config/mips/mips.md: Include it.
13376 (define_attr cpu): Add r7000.
13377 (mulsi3_mult3): Use "mul" for rm7000 code.
13378
13379 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
13380
13381 * config/mips/mips.md (define_attr type): Add condmove. Use it for
13382 the conditional move patterns.
13383 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
13384 Check for condmove type.
13385 (ir_vr54_arith): Add move type.
13386 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
13387 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
13388
13389 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
13390
13391 * c-opts.c (print_help): Remove.
13392 (c_common_handle_option): Don't handle --help.
13393 * c.opt: Document some options.
13394 (--help): Remove.
13395 * opts.c (print_filtered_help): New.
13396 (print_help): Use it.
13397
13398 2003-07-14 Geoffrey Keating <geoffk@apple.com>
13399
13400 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
13401 * tree.c: (build_common_tree_nodes_2): Likewise.
13402 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
13403 (V4DF_type_node): New.
13404
13405 * c-opts.c (push_command_line_include): Don't free deferred_opts,
13406 we'll need it.
13407 (finish_options): Reset init_cursor.
13408
13409 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
13410
13411 * expr.c (expand_assignment): Remove an unused argument
13412 SUGGEST_REG.
13413 * expr.h: Update the prototype.
13414 * function.c: Update the callers.
13415 * stmt.c: Likewise.
13416
13417 2003-07-14 Mark Mitchell <mark@codesourcery.com>
13418
13419 PR debug/11098
13420 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
13421 as DECL_ABSTRACT.
13422
13423 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13424
13425 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
13426 with __cplusplus, not "we must use the C++ compiler's type"
13427 * fixinc/inclhack.def (void_null): Note that Interix needs this.
13428 * fixinc/fixincl.x: Regenerate.
13429
13430 2003-07-14 Geoffrey Keating <geoffk@apple.com>
13431
13432 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
13433 and unseen_objects from the global data before calling
13434 __deregister_frame_info_bases.
13435 (examine_objects): Insert objects into the seen_objects list,
13436 not unseen_objects.
13437 (_Unwind_Find_FDE): Always unlock the global object lists, even if
13438 we couldn't allocate a data structure to put in it.
13439
13440 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
13441 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
13442 (SET_TYPE_PROTOCOL_LIST): New.
13443 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
13444 (get_object_reference): Likewise.
13445
13446 2003-07-14 Jan Hubicka <jh@suse.cz>
13447
13448 * cfglayout.c (locator_file): Break out from ....
13449 (insn_file): ... here.
13450 (locator_line): Break out from ....
13451 (insn_line): ... here.
13452 * rtl.h (locator_file, locator_line): Declare.
13453 (final_start_function): Set proper line/file info.
13454
13455 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
13456
13457 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
13458 handled by pp_c_cast_expression.
13459
13460 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13461
13462 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
13463 allocate 32768 bytes of stack. Use addition rather than subtraction
13464 when a single insn is enough.
13465 * config/mips/mips.md: Remove insns and splitters for subtracting
13466 constants.
13467 (subsi3): Only accept register operands.
13468 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
13469 (subdi3_internal_3, subsi3_internal_2): Likewise.
13470 (casesi): Use expand_binop to subtract the lower bound.
13471
13472 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13473
13474 * config/mips/mips.c (mips_in_small_data_p): Don't handle
13475 TARGET_MIPS16 specially.
13476
13477 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13478
13479 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
13480 mips_output_aligned_bss.
13481 * config/mips/linux.h: Likewise.
13482 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
13483 * config/mips/mips.c (mips_output_aligned_bss): New function.
13484
13485 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
13486 * config/mips/elf64.h: Likewise.
13487
13488 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
13489 mips_declare_object_name.
13490 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
13491 * config/mips/elf64.h: As for elf.h.
13492 * config/mips/iris6.h: Likewise.
13493 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
13494 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
13495 do...while (0) block.
13496 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
13497 (mips_finish_declare_object): Declare.
13498 * config/mips/mips.c (mips_declare_object_name): New function.
13499 (mips_finish_declare_object): New function.
13500
13501 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
13502 * config/mips/linux.h: Likewise.
13503
13504 * config/mips/mips.c (inside_function): Delete.
13505 (file_in_function_warning, ignore_line_number): Delete.
13506 (mips_output_filename): Don't warn about changing filenames within
13507 a function.
13508 (mips_output_lineno): Update accordingly.
13509 (mips_output_function_prologue): Don't reset the deleted variables.
13510 * config/mips/mips.h (inside_function): Delete.
13511 (file_in_function_warning, ignore_line_number): Delete.
13512
13513 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
13514 * config/mips/elf64.h: Likewise.
13515 * config/mips/openbsd.h: Likewise.
13516 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
13517 * config/mips/linux.h: Likewise.
13518 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
13519 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
13520
13521 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
13522 to the list of include files when using gas.
13523 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
13524 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
13525 * config/mips/elf64.h: Likewise.
13526 * config/mips/iris5.h: Likewise.
13527 * config/mips/linux.h: Likewise.
13528 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
13529 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
13530 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
13531 * config/mips/sdb.h: ...this new file.
13532
13533 2003-07-14 Douglas Rupp <rupp@gnat.com>
13534
13535 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
13536 argument to getcwd; use fixed buffer instead.
13537
13538 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13539
13540 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
13541 * fixinc/fixinc.wrap: Delete.
13542
13543 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13544
13545 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
13546 don't have 2.
13547
13548 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13549
13550 * ggc-page.c (struct globals): Add new fields to keep track of the
13551 total allocated memory and overhead.
13552 (ggc_print_statistics): Print them.
13553 (ggc_alloc): Keep track of the total allocated memory and the
13554 overhead.
13555
13556 * tree.c (dump_tree_statistics): Increase spacing.
13557 (enum tree_node_kind): Move to ...
13558 * tree.h (enum tree_node_kind): ... here.
13559 (tree_node_counts, tree_node_sizes): Declare.
13560
13561 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
13562
13563 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
13564
13565 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13566
13567 PR optimization/11440
13568 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
13569 SIGN_EXTRACT SETs.
13570
13571 2003-07-14 Alan Modra <amodra@bigpond.net.au>
13572
13573 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
13574 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
13575 (emit_group_load, emit_group_store): Adjust declarations.
13576 Remove most occurrences of #ifdef TREE_CODE.
13577 * expr.c (emit_group_load): Add "type" param, and use
13578 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
13579 aligned accesses if !SLOW_UNALIGNED_ACCESS.
13580 (emit_group_store): Likewise.
13581 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
13582 emit_group_load and emit_group_store calls.
13583 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
13584 BLOCK_REG_PADDING to determine whether we need endian_correction.
13585 (load_register_parameters): Localize vars. Handle shifting of
13586 small values to the correct end of regs. Adjust emit_group_load
13587 call.
13588 (expand_call, emit_library_call_value_1): Adjust emit_group_load
13589 and emit_group_store calls.
13590 * function.c (assign_parms): Set mem alignment for stack slots.
13591 Adjust emit_group_store call. Store values at the "wrong" end
13592 of regs to the stack. Use BLOCK_REG_PADDING.
13593 (locate_and_pad_parm): Save where_pad.
13594 (expand_function_end): Adjust emit_group_load call.
13595 * stmt.c (expand_value_return): Adjust emit_group_load call.
13596 * Makefile.in (calls.o): Depend on $(OPTABS_H).
13597 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
13598 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
13599 (MUST_PASS_IN_STACK): Define.
13600 (BLOCK_REG_PADDING): Define.
13601 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
13602 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
13603 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
13604 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
13605 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
13606
13607 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
13608
13609 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
13610
13611 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13612
13613 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
13614 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
13615
13616 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
13617
13618 PR other/11123
13619 * toplev.c: Don't cut off option names.
13620
13621 2003-07-13 Andreas Jaeger <aj@suse.de>
13622
13623 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
13624 to integer of different size.
13625
13626 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
13627
13628 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
13629 to (eq (and X 1) 0).
13630
13631 2003-07-13 Andreas Jaeger <aj@suse.de>
13632
13633 * config.gcc: Add pmmintrin.h for x86_64-*-*.
13634
13635 2003-07-13 Zack Weinberg <zack@codesourcery.com>
13636
13637 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
13638 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
13639 list. Move these all together down by cpplib.
13640
13641 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
13642 definition of CPPCHAR_SIGNED_T.
13643
13644 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
13645 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
13646 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
13647
13648 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
13649 * cppinit.c (cpp_create_reader): Likewise.
13650
13651 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
13652 * cpptrad.c: Likewise. All callers changed.
13653 * cpplib.c: All callers changed.
13654 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
13655 * hashtable.h: Define GTY(x) to nothing here too.
13656
13657 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13658
13659 * stor-layout.c (compute_record_mode): Remove very obsolete test
13660 that forces BLKmode for records with fields crossing word boundary.
13661
13662 2003-07-13 Zack Weinberg <zack@codesourcery.com>
13663
13664 * Makefile.in: Remove orphan reference to acconfig.h.
13665
13666 2003-07-13 Andreas Jaeger <aj@suse.de>
13667
13668 * cgraphunit.c: Convert prototypes to ISO C90.
13669
13670 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
13671
13672 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
13673 (for OpenBSD).
13674 * fixinc/fixincl.x: Rebuild.
13675
13676 2003-07-12 Zack Weinberg <zack@codesourcery.com>
13677
13678 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
13679 i?86-*-*. Use correct name of cache variable.
13680 * configure: Regenerate.
13681
13682 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
13683
13684 * config/alpha/alpha.c: Fix comment typos.
13685 * config/alpha/alpha.md: Likewise.
13686 * config/arm/arm.c: Likewise.
13687 * config/arm/arm.md: Likewise.
13688 * config/arm/lib1funcs.asm: Likewise.
13689 * config/avr/avr.md: Likewise.
13690 * config/arm/README-interworking: Fix typos.
13691
13692 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
13693
13694 * c-format.c: Fix comment formatting.
13695 * c-typeck.c: Likewise.
13696 * coverage.c: Likewise.
13697 * cppcharset.c: Likewise.
13698 * cpplib.c: Likewise.
13699 * dbxout.c: Likewise.
13700 * gcov-io.h: Likewise.
13701 * toplev.c: Likewise.
13702
13703 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
13704
13705 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
13706 fix.
13707
13708 2003-07-12 Zack Weinberg <zack@codesourcery.com>
13709
13710 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
13711 uses three-argument AC_DEFINE so no acconfig.h entries are
13712 needed.
13713 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
13714 which contains the GAS version number as a scaled integer.
13715 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
13716 ability to check for ELF assembler.
13717 (gcc_GAS_CHECK_FEATURE): New macro.
13718 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
13719 assembler feature checks using gcc_GAS_CHECK_FEATURE.
13720 Use three-argument AC_DEFINE everywhere.
13721 * acconfig.h: Deleted.
13722 * config.in, configure: Regenerate.
13723
13724 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
13725
13726 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
13727 (on OpenBSD).
13728 * fixinc/fixincl.x: Regenerate.
13729
13730 * fixinc/inclhack.def (gnu_types): Improve comment.
13731
13732 2003-07-12 Andreas Jaeger <aj@suse.de>
13733
13734 * fp-test.c (main): Use ISO C90 prototype.
13735
13736 * version.c: Remove unneded include of ansidecl.h.
13737
13738 * cgraph.h: Convert prototypes to ISO C90.
13739 * cgraph.c: Likewise.
13740 * fix-header.c: Likewise.
13741 * ra.h: Likewise.
13742 * protoize.c: Likewise.
13743
13744 2003-07-12 Jan Hubicka <jh@suse.cz>
13745
13746 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
13747 warning.
13748
13749 2003-07-12 Jan Hubicka <jh@suse.cz>
13750 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13751
13752 * cgraph.c (cgraph_max_uid): New global variable.
13753 (cgraph_node): Set uid field.
13754 (create_edge): Keep inline flags consistent.
13755 (dump_cgraph): Dump more info.
13756 * cgraph.h (struct cgraph_local_info): Remove inline_many and
13757 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
13758 (struct cgraph_global_info): Add insns, calls, cloned_times,
13759 will_be_output.
13760 (struct cgraph_node): Add uid.
13761 (struct cgraph_edge): Add inline_call.
13762 (cgraph_max_uid, cgraph_inline_p): Declare.
13763 * cgraph.c: Include params.h and fibheap.h
13764 (cgraph_mark_functions_to_inline_once): Kill.
13765 (INSNS_PER_CALL): New constant.
13766 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
13767 static variables.
13768 (cgraph_finalize_function): Do not analyze inlining.
13769 (cgraph_finalize_compilation_unit): Set inlining attributes.
13770 (cgraph_mark_functions_to_output): More consistency checks.
13771 (cgraph_optimize_function): Set current_function_decl to NULL.
13772 (cgraph_expand_function): Use new inline flags.
13773 (cgraph_postorder): Expand from cgraph_expand_functions.
13774 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
13775 (cgraph_inlined_into, cgraph_inlined_callees,
13776 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
13777 cgraph_mark_inline, cgraph_check_inline_limits,
13778 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
13779 cgraph_decide_inlining, cgraph_inline_p): New functions.
13780 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
13781 PARAM_INLINE_UNIT_GROWTH): New parameters.
13782 * tree-inline.c (struct inline_data): New field current_decl.
13783 (expand_call_inline): Avoid forward declarations; use
13784 inlinable_function_p.
13785 (optimize_inline_calls): Set id.current_decl.
13786
13787 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
13788
13789 * configure.in: Remove wrongly added definition of
13790 local_prefix.
13791 * configure: Regenerate.
13792
13793 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13794
13795 * rtl.def (NOTE): Do not use padding.
13796
13797 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
13798
13799 * doc/install.tex: Update required binutils for i?86-*-linux*
13800
13801 2003-07-11 Richard Henderson <rth@redhat.com>
13802
13803 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
13804
13805 2003-07-11 Mark Mitchell <mark@codesourcery.com>
13806
13807 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
13808 TRANSLATION_UNIT_DECL as top_level.
13809
13810 2003-07-11 Jakub Jelinek <jakub@redhat.com>
13811
13812 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
13813 then fall back to cmpstrM.
13814 * builtins.c (expand_builtin_memcmp): Likewise.
13815 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
13816 (s390_expand_cmpmem): ... this.
13817 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
13818 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
13819 from cmpstr* patterns. Rename call to s390_expand_cmpstr
13820 to s390_expand_cmpmem.
13821 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
13822 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
13823 to cmpmem*.
13824 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
13825 cmpstr* patterns.
13826 * doc/md.texi (cmpstrM): Describe as String compare insn, not
13827 Block compare insn.
13828 (cmpmemM): Add.
13829
13830 2003-07-11 Loren James Rittle <ljrittle@acm.org>
13831
13832 * config/i386/freebsd.h (SET_ASM_OP): Remove.
13833 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
13834 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
13835 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
13836
13837 2003-07-11 Richard Henderson <rth@redhat.com>
13838
13839 * function.c (assign_parms): Don't recombine complex args if
13840 fnargs is unchanged from orig_fnargs.
13841 (split_complex_args): Return args without complex before copying.
13842 Re-layout the modified parameters.
13843
13844 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
13845
13846 * regclass.c (choose_hard_reg_mode): Add third argument.
13847 Changed all callers.
13848 * rtl.h (choose_hard_reg_mode): Update declaration.
13849 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13850 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
13851
13852 2003-07-11 Geoffrey Keating <geoffk@apple.com>
13853
13854 * c-decl.c (finish_decl): Handle 'used' here...
13855 * cgraphunit.c (cgraph_finalize_function): ... and here ...
13856 * c-common.c: (handle_used_attribute): ... not here.
13857
13858 * configure.in (onstep): Support --enable-intermodule.
13859 * Makefile.in (OBJS-common): New.
13860 (OBJS-md): New.
13861 (OBJS-archive): New.
13862 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
13863 (OBJS-onestep): New.
13864 (libbackend.a): Support @onestep@.
13865 (libbackend.o): New.
13866 * configure: Regenerate.
13867
13868 * c-common.h (c_reset_state): New prototype.
13869 (c_parse_file): New prototype.
13870 (finish_file): Move prototype from c-tree.h.
13871 * c-decl.c: Include <hashtab.h>.
13872 (builtin_decls): New.
13873 (current_file_decl): New.
13874 (duplicate_decls): Add extra parameter. Change all callers. Don't
13875 output duplicate common symbols.
13876 (link_hash_hash): New.
13877 (link_hash_eq): New.
13878 (poplevel): Handle popping of the top level.
13879 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
13880 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
13881 (pushdecl_top_level): Likewise.
13882 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
13883 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
13884 (finish_decl): Handle TRANSLATION_UNIT_DECL.
13885 (merge_translation_unit_decls): New.
13886 (c_write_global_declarations): New.
13887 (c_reset_state): New.
13888 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
13889 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
13890 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
13891 TRANSLATION_UNIT_DECL.
13892 (c_objc_common_finish_file): Call merge_translation_unit_decls.
13893 * c-opts.c (in_fnames): Rename from in_fname.
13894 (c_common_decode_option): Handle multiple input filenames.
13895 (c_common_post_options): Likewise.
13896 (c_common_parse_file): Likewise; also, call c_parse_file rather than
13897 yyparse.
13898 * c-parse.in: Move cleanup code to c_parse_file.
13899 (free_parser_stacks): Move contents to c_parse_file.
13900 (c_parse_file): New.
13901 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
13902 for integer types.
13903 (C_DECL_FILE_SCOPE): New.
13904 (finish_file): Move prototype to c-common.h.
13905 (merge_translation_unit_decls): New prototype.
13906 (comptypes): Add extra parameter to prototype.
13907 (c_write_global_declarations): New prototype.
13908 * c-typeck.c (tagged_types_tu_compatible_p): New.
13909 (function_types_compatible_p): Add extra parameter, change all callers.
13910 (type_lists_compatible_p): Likewise.
13911 (comptypes): Likewise.
13912 (struct tagged_tu_seen): New.
13913 (tagged_tu_seen_base): New.
13914 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
13915 (c_mark_addressable): Remove #if 0 code.
13916 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
13917 comment explaining why it shouldn't have to.
13918 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
13919 options.
13920 * cppinit.c (cpp_read_next_file): New.
13921 (cpp_read_main_file): Use it.
13922 * cpplib.c (undefine_macros): New.
13923 (cpp_undef_all): New.
13924 * cpplib.h (cpp_read_next_file): Prototype.
13925 (cpp_undef_all): Prototype.
13926 * langhooks-def.h (write_global_declarations): Remove prototype.
13927 * toplev.h (write_global_declarations): Add prototype.
13928 * tree.c (decl_type_context): Use switch statement, handle
13929 TRANSLATION_UNIT_DECL.
13930 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
13931 (TRANSLATION_UNIT_DECL): New kind of tree.
13932 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
13933 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
13934 * doc/invoke.texi: Make attempt to document new functionality.
13935
13936 2003-05-19 Per Bothner <bothner@apple.com>
13937
13938 * gcc.c (combine_inputs): New.
13939 (process_command): Set combine_inputs.
13940 (do_spec_1): Handle combine_inputs.
13941 (main): Likewise.
13942
13943 2003-07-10 James E Wilson <wilson@tuliptree.org>
13944
13945 PR optimization/9745
13946 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
13947 loop_insn_emit_before.
13948 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13949
13950 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13951
13952 * cppcharset.c: Fix comment.
13953 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
13954 (EILSEQ): #define to EINVAL if not already defined.
13955 (convert_using_iconv): #if out when !HAVE_ICONV.
13956 (init_iconv_desc): Handle !HAVE_ICONV here...
13957 (cpp_init_iconv): ...not here.
13958
13959 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
13960
13961 * common.opt: More --help messages.
13962 * opts.c (print_help): Use puts().
13963 * toplev.c (f_options): Remove help text.
13964 (display_help): Don't dump f_options.
13965
13966 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
13967
13968 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
13969 Move i?86-*-interix* to the don't-fix list.
13970 * fixinc/fixinc.interix: Delete with extreme prejudice.
13971
13972 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
13973
13974 PR bootstrap/10758
13975 * doc/install.texi: Document requirements for ia64-*-hpux* target.
13976
13977 2003-07-10 Roger Sayle <roger@eyesopen.com>
13978
13979 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
13980
13981 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13982
13983 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
13984 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
13985 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
13986 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
13987 convert_no_conversion, convert_using_iconv): New functions.
13988 (APPLY_CONVERSION): New macro.
13989 (struct conversion, conversion_tab): New data structure.
13990 (init_iconv_desc): Check conversion_tab for a custom conversion
13991 primitive before trying to use iconv.
13992 (convert_cset): Deleted.
13993 (cpp_init_iconv): Use UTF- terminology, not UCS-.
13994 (_cpp_destroy_iconv): Update to match.
13995 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
13996 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
13997 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
13998 (_cpp_interpret_string_notranslate): New function, moved here
13999 from cpplib.c.
14000
14001 * cpphash.h (convert_f, struct cset_converter): New types.
14002 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
14003 are now struct cset_converter, not bare iconv_t.
14004 Update prototypes.
14005 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
14006 all callers changed.
14007
14008 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
14009
14010 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
14011 to opts.sh command line.
14012 * opts.sh: Write to temporary files with a move-if-change at the end.
14013
14014 2003-07-10 Denis Chertykov <denisc@overta.ru>
14015 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14016
14017 * combine.c (gen_binary): Handle the CLOBBER rtx and
14018 don't build a binary operation with it.
14019
14020 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14021
14022 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
14023 store_killed_after, store_killed_before): Keep track of the correct
14024 dependency function to use.
14025
14026 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
14027 * toplev.c (do_compile): Don't try to open dump files before
14028 lang_dependent_init initializes dump_base_name.
14029
14030 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14031
14032 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
14033 Use ARRAY_SIZE.
14034 * config/frv/frv.c (frv_expand_builtin): Likewise.
14035 * config/sh/sh.c (sh_media_init_builtins): Likewise.
14036
14037 2003-07-09 Mark Mitchell <mark@codesourcery.com>
14038
14039 PR c++/10032
14040 * doc/invoke.texi (C++ Dialect Options): Change documentation of
14041 -fpermissive.
14042
14043 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
14044
14045 * tm.texi (RETURN_ADDR_OFFSET): Document.
14046
14047 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
14048
14049 * gcov-io.h: Update documentation.
14050 (GCOV_UNSIGNED2STRING): New.
14051 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
14052 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
14053 GCOV_TAG_SUMMARY_LENGTH): Adjust.
14054 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
14055 GCOV_TAG_COUNTER_NUM): New.
14056 (GCOV_BLOCK_SIZE): Number of words.
14057 (gcov_var): Adjust buffer type.
14058 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
14059 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
14060 count, not byte count.
14061 (gcov_open): Adjust overread init.
14062 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
14063 gcov_write_string, gcov_write_tag, gcov_write_length,
14064 gcov_write_tag_length): Adjust.
14065 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
14066 (gcov_sync, gcov_seek): Adjust.
14067 * gcov-dump.c (print_usage): Show gcc version only.
14068 (dump_file): Use GCOV_UNSIGNED2STRING.
14069 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
14070 * gcov.c (print_version): Show gcc version only.
14071 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
14072 GCOV_TAG_*_NUM macros.
14073 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
14074 GCOV_TAG_COUNTER_LENGTH.
14075 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
14076 Use GCOV_TAG_COUNTER_NUM.
14077 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
14078 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
14079
14080 2003-07-10 Andreas Schwab <schwab@suse.de>
14081
14082 * gcov-dump.c (dump_file): Fix missing address operator.
14083
14084 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
14085
14086 PR c/11449
14087 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
14088 of HOST_WIDE_INT.
14089 (fold_single_bit_test): If sign_bit_p() fails, assume that the
14090 bit being tested is not a sign bit.
14091
14092 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
14093
14094 * config/h8300/h8300.md (a peephole2): New.
14095
14096 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
14097
14098 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
14099 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
14100 from ld-linux.so.2 to ld.so.1.
14101 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
14102 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
14103 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
14104 nor -Wl,-rpath-link.
14105 (LIB_SPEC): Add -rpath-link if !static.
14106 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
14107 * config/mn10300/mn10300.c (mn10300_protect_label): New
14108 variable.
14109 * config/mn10300/linux.h (PRINT_OPERAND,
14110 PRINT_OPERAND_ADDRESS): Set it during their execution.
14111 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
14112 mn10300_protect_label is set.
14113 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
14114 -Wl,-rpath-link.
14115 (LIB_SPEC, STARTFILE_SPEC): Define.
14116 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
14117 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
14118 FLOAT_BIT_ORDER_MISMATCH.
14119 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
14120 * config.gcc (am33_2.0-*-linux*): Added.
14121 * config/mn10300/linux.h: New.
14122 * config/mn10300/t-linux: New.
14123
14124 2003-07-10 Andreas Jaeger <aj@suse.de>
14125
14126 * fold-const.c: Properly wrap prototypes.
14127
14128 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
14129
14130 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
14131 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
14132 Moved from...
14133 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
14134 * config/mn10300/mn10300.h: GTY-declare it.
14135 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
14136 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
14137 prototype. Use incoming RTL argument.
14138 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
14139 * config/mn10300/mn10300.md (int_label): Move C statements...
14140 (GOTaddr2picreg): ... here.
14141 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
14142 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
14143 * config/mn10300/mn10300.c (mn10300_encode_section_info):
14144 ... here. New function.
14145 (TARGET_ENCODE_SECTION_INFO): Define to it.
14146 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
14147 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
14148 pattern name.
14149 (mn10300_loadPC): Define as insn splittable after reload.
14150 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
14151 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
14152 be defined in .rodata even in PIC, now that the assembler
14153 supports that.
14154 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
14155 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
14156 symbol take an underscore prefix.
14157 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14158 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
14159 legitimize_pic_address): Declare.
14160 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
14161 the PIC register as fixed.
14162 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
14163 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
14164 PIC.
14165 (LEGITIMATE_PIC_OPERAND_P): Define.
14166 (PIC_OFFSET_TABLE_REGNUM): Define.
14167 (GOT_SYMBOL_NAME): Define.
14168 (SYMBOLIC_CONST_P): Define.
14169 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
14170 symbols.
14171 (MN10300_GLOBAL_P): Test it.
14172 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
14173 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
14174 * config/mn10300/mn10300.c (print_operand): Handle unspec.
14175 (expand_prologue): Set PIC register.
14176 (call_address_operand): Don't match SYMBOL_REFs in PIC.
14177 (legitimize_address): Call legitimize_pic_address.
14178 (legitimize_pic_address): New fn.
14179 (legitimate_pic_operand_p): New fn.
14180 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
14181 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
14182 UNSPEC_PLT): New constants.
14183 (pop_pic_reg): New insn.
14184 (movsi): Adjust non-PIC addresses.
14185 (builtin_setjmp_receiver): Restore the PIC register.
14186 (casesi): New insn.
14187 (call): Adjust non-PIC addresses.
14188 (int_label, GOTaddr2picreg): New expands.
14189 (am33_loadPC): New insn.
14190 (mn10300_loadPC): New expand.
14191 (call_next_insn): New insn.
14192 (add_GOT_to_pic_reg): New expand.
14193 (symGOT2reg, symGOT2reg_i): New expands.
14194 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
14195 (sym2PIC, sym2PLT): New expands.
14196
14197 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
14198
14199 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
14200 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
14201 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
14202 to flag_unsafe_math_optimizations.
14203 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14204 * config/mn10300/mn10300.c (expand_prologue): Mark
14205 FP-register-saving insns as frame-related.
14206 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
14207 * config/mn10300/mn10300.c
14208 (mn10300_get_live_callee_saved_regs): Don't search past
14209 LAST_EXTENDED_REGNUM.
14210 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
14211 * config/mn10300/mn10300.md: Remove excessive line breaks from
14212 `@' output patterns that were accounted as additional
14213 alternatives.
14214 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
14215 Re-introduce changes accidentally removed in Richard Sandiford's
14216 2000-12-05's patch.
14217 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
14218 Re-instate am33-2 lost in merge from net GCC.
14219 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
14220 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
14221 floating-point registers.
14222 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
14223 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
14224 pessimizations that had gone in on 2000-05-08.
14225 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
14226 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
14227 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
14228 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
14229 operand 0.
14230 * (movhi): Likewise.
14231 * (movsi): Likewise.
14232 * (movsf): Likewise.
14233 * (movdi): Likewise.
14234 * (movdf): Likewise.
14235 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
14236 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
14237 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
14238 (expand_prologue, expand_epilogue): Save and restore FP regs.
14239 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
14240 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
14241 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
14242 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
14243 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
14244 Do not clobber cc0.
14245 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
14246 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
14247 Discourage the two-argument, longer opcodes.
14248 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
14249 ones.
14250 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
14251 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
14252 * config/mn10300/mn10300.md (cmpsf): New pattern.
14253 (branch): Test mdep.fpCC and output fbCC.
14254 * config/mn10300/mn10300.c (print_operand): Output conditions.
14255 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
14256 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
14257 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
14258 mulsf3, divsf3): Use the `F' constraint for FP values.
14259 * config/mn10300/mn10300.c (const_1f_operand): New function.
14260 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
14261 * config/mn10300/mn10300.md (sqrtsf2): New expand.
14262 (rsqrtsf2): New insn.
14263 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
14264 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
14265 previous check-in.
14266 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
14267 * config/mn10300/mn10300.md (abssf2, negdf2): On
14268 TARGET_AM33_2, expand to...
14269 (abssf2_am33_2, negdf2_am33_2): New insns.
14270 (addsf3, subsf3, mulsf3, divsf3): Likewise.
14271 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
14272 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
14273 movdi, movdf): Added FP regs.
14274 * invoke.texi (-mam33-2, -mno-am33-2): Document.
14275 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
14276 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
14277 New macros.
14278 (REGNO_AM33_2_FP_P): Renamed to...
14279 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
14280 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
14281 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
14282 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
14283 regs from GENERAL_REGS.
14284 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
14285 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
14286 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
14287 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
14288 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
14289 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
14290 as FP_REGS.
14291 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
14292 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
14293 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
14294 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
14295 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
14296 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
14297 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
14298 AM33/2.0 floating-point registers.
14299 (CONDITIONAL_REGISTER_USAGE): Adjust.
14300 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
14301 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
14302 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
14303 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
14304 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
14305 (MULTILIB_DIRNAMES): Likewise.
14306 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
14307 `__AM33_2__' when `-mam33-2' is given.
14308 (TARGET_AM33_2): Define.
14309 (TARGET_SWITCHES): Adjust.
14310 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
14311 when appropriate.
14312
14313 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
14314
14315 * doc/install.texi: Add missing @.
14316
14317 2003-07-09 Bob Wilson <bob.wilson@acm.org>
14318
14319 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
14320
14321 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
14322
14323 PR/11144
14324 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
14325
14326 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
14327
14328 PR bootstrap/11043
14329 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
14330 "x-crtfini.o" with "crtinit.o", "crtfini.o".
14331
14332 * fixinc/inclhack.def (limits_ifndefs): Add select test.
14333 * fixinc/fixincl.x: Rebuild.
14334
14335 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
14336 * fixinc/fixincl.x: Rebuild.
14337
14338 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
14339
14340 * doc/install.texi (Configuration): Document the valgrind option
14341 to --enable-checking.
14342
14343 2003-07-09 Jan Hubicka <jh@suse.cz>
14344
14345 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14346
14347 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14348
14349 * c-lex.c (cb_ident): Cast cstr.text to const char *.
14350
14351 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
14352
14353 * gcov-io.h: Update documentation.
14354 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
14355 GCOV_NOTE_MAGIC.
14356 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
14357 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
14358 (struct gcov_var): Change buffer's type. Add endian flag.
14359 (gcov_open): Remove mode in libgcov.
14360 (gcov_magic): Prototype.
14361 * gcov-io.c (from_file): New.
14362 (gcov_open): Clear endian flag.
14363 (gcov_magic): New.
14364 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
14365 pointers.
14366 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
14367 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
14368 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
14369 * gcov-iov.c (main): Correct cast.
14370 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
14371 conversion.
14372 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
14373 (coverage_init): Use GCOV_NOTE_SUFFIX.
14374 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
14375 Rename to gcov_version, and return flag.
14376 (gcov_exit): Use gcov_version.
14377 (__gcov_init): Use gcov_version.
14378 * Makefile.in (coverageexts): Update.
14379 * gcov.c (print_version): Remove endianness conversion.
14380 (create_file_names): Use GCOV_NOTE_SUFFIX.
14381 (read_graph_file): Use gcov_magic.
14382 (read_count_file): Likewise.
14383 * gcov-dump.c (dump_file): Remove endianness conversion, use
14384 gcov_magic.
14385
14386 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
14387
14388 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
14389 coverage is on.
14390 * configure: Regenerated.
14391 * Makefile.in (ALL_CFLAGS): Correct its comment.
14392
14393 2003-07-08 Mark Mitchell <mark@codesourcery.com>
14394
14395 * fold-const.c (make_range): Do not access operand 1 for a
14396 zero-operand operator.
14397
14398 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
14399
14400 * toplev.c (warn_dummy, W_options): Die.
14401 (display_help): Don't print W_options.
14402 * common.opt: Add W_options help from toplev.c.
14403
14404 2003-07-09 Andreas Jaeger <aj@suse.de>
14405
14406 * opts.c (wrap_help): Only pass int arguments as arguments to
14407 printf's '*' modifier. Change argument of function.
14408
14409 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
14410
14411 * doc/invoke.texi: Fix misspelling of "@item".
14412
14413 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
14414
14415 * config/i386/i386.md: Remove an old comment about
14416 NOTICE_UPDATE_CC.
14417
14418 2003-07-09 Jan Hubicka <jh@suse.cz>
14419
14420 * cgraph.c (cgraph_node_name): New function.
14421 (dump_cgraph): Use it.
14422 * cgraph.h (cgraph_dump_file): Declare.
14423 (cgraph_node_name): Declare.
14424 * cgraphunit.c: Include timevar.h
14425 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
14426 (cgraph_optimize_function): Use TV_INTEGRATION.
14427 (cgraph_mark_local_functions): reorganize dumps.
14428 (cgraph_mark_functions_to_inline_once): Likewise.
14429 (cgraph_optimize): Likewise; use timevar.
14430 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
14431 * toplev.c (dump_file_index): Add DFI_cgraph.
14432 (dump_file_info): Likewise.
14433 (cgraph_dump_file): New global variable.
14434 (do_compile): Open and close cgraph dump.
14435 * invoke.texi (-d): Document new flag; renumber.
14436
14437 2003-07-08 Roger Sayle <roger@eyesopen.com>
14438
14439 PR c/11370
14440 * calls.c (emit_call_1): Don't bother popping the arguments off of
14441 the stack after a noreturn function call; The adjustment is dead.
14442 (expand_call): Likewise.
14443
14444 2003-07-08 Geoffrey Keating <geoffk@apple.com>
14445
14446 * expr.c (MOVE_MAX_PIECES): Move from here...
14447 * defaults.h (MOVE_MAX_PIECES): ... to here.
14448
14449 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
14450
14451 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
14452
14453 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14454
14455 * genattr.c (internal_dfa_insn_code): Don't prototype.
14456 * genattrtab.c (attr_desc): Add `static_p' field.
14457 (expand_units): Make blockage range and ready cost functions
14458 static.
14459 (write_attr_get): Don't add extern prototypes in C file. Mark
14460 static functions as appropriate.
14461 (find_attr, make_internal_attr): Initialize static_p.
14462 * genattrtab.h (ATTR_STATIC): New macro.
14463 * genautomata.c (output_internal_reset_func): Mark output function
14464 as inline.
14465 (make_internal_dfa_insn_code_attr): Mark output function as static.
14466
14467 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14468
14469 * genattrtab.h: Add new macros for attr `special' flags.
14470 * genattrtab.c (attr_desc): Reorder/resize fields better.
14471 Use attr `special' macros in all calls to make_internal_attr.
14472 * genautomata.c: Likewise.
14473
14474 2003-07-09 Jan Hubicka <jh@suse.cz>
14475
14476 * c-common.c (c_estimate_num_insns_1): New static function.
14477 (c_estimate_num_insns): New global function.
14478 * c-common.h (DECL_NUM_STMTS): Rename to...
14479 (DECL_ESTIMATED_INSNS): ... this.
14480 (c_estimate_num_insns): Declare.
14481 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
14482 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14483 * c-semantics.c (add_stmt): Do not account statements.
14484 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
14485 New.
14486 * langhooks.h (lang_hooks_for_tree_inlining): Add
14487 estimate_num_insns
14488 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
14489 to 100.
14490 (max-inline-insns): set to 300.
14491 (min-inline-insns): set to 10.
14492 * tree-inline.c (struct inline_data): Rename inlined_stmts to
14493 inlined-insns.
14494 (INSNS_PER_STMT): Kill.
14495 (inlinable_function_p): Compute and store body size.
14496 (expand_call_inline): Likewise.
14497 (optimize_inline_calls): Likewise.
14498
14499 2003-07-08 James E Wilson <wilson@tuliptree.org>
14500
14501 PR target/10021
14502 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
14503 loop over new variable t2 instead of t.
14504
14505 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14506
14507 PR bootstrap/11455
14508 * config/i386/winnt.c: Replace use of error(), warning() with
14509 error_with_decl(), warning_with_decl(), throughout.
14510
14511 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
14512
14513 * opts.c (wrap_help): Use unsigned int, not size_t.
14514
14515 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
14516
14517 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
14518 as .file/.loc directives are incompatible with linker relaxation.
14519
14520 2003-07-08 Zack Weinberg <zack@codesourcery.com>
14521
14522 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
14523 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
14524 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
14525 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
14526 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
14527 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
14528 Escape { and } characters which are not part of range expressions.
14529 * fixinc/fixincl.x: Regenerate.
14530 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
14531
14532 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
14533
14534 PR c/1687
14535 * tree-inline.c (find_alloca_call): Use
14536 walk_tree_without_duplicates, instead of walk_tree.
14537 (find_builtin_longjmp_call): Likewise.
14538 * c-objc-common.c (c_cannot_inline_fn): Likewise.
14539 * c-semantics.c (find_reachable_label): Likewise.
14540
14541 2003-07-08 Jakub Jelinek <jakub@redhat.com>
14542
14543 PR c/11420
14544 * config/i386/i386.c (ix86_check_movabs): New function.
14545 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
14546 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
14547 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
14548
14549 2003-07-08 Chris Demetriou <cgd@broadcom.com>
14550
14551 * Makefile.in (install-po): Cope with empty CATALOGS.
14552
14553 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
14554
14555 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14556 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
14557 (SECTION_FUNCTION_TEMPLATE): Delete.
14558 * config/mips/elf.h: As for elf64.h.
14559 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
14560 * config/mips/linux.h: As for elf.h
14561 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14562 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
14563 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
14564 of in_sdata from current_section_name and current_section_flags.
14565 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14566 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
14567 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
14568 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
14569 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
14570 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
14571 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
14572 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
14573 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
14574 (override_options): Remove setting of MASK_GPOPT.
14575 (mips_output_external): Use mips_in_small_data_p to check whether a
14576 symbol needs an .extern directive. Don't emit such directives for
14577 TARGET_EXPLICIT_RELOCS.
14578 (mips_declare_object): Update accordingly.
14579 (mips_select_rtx_section): Call named_section rather than
14580 SMALL_DATA_SECTION.
14581 (mips_select_section): Use default_elf_section_section for everything
14582 except .text string constants.
14583 (mips_in_small_data_p): New function.
14584 (mips_encode_section_info): Remove small data handling.
14585 (mips_unique_section): Delete.
14586 (iris6_section_type_flags): New function.
14587 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
14588
14589 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14590
14591 PR Target/11453
14592 * pa.md: Disparage all mtsar constraints.
14593 (extzv, extv, insv): Don't fail on length of {32|64}.
14594
14595 2003-07-08 Zack Weinberg <zack@codesourcery.com>
14596
14597 * system.h: Poison MAP_CHARACTER.
14598 * config/i370/i370-protos.h (mvs_map_char): Delete.
14599 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
14600 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
14601 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
14602
14603 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14604
14605 * toplev.c (randomize): Correct call to time().
14606
14607 2003-07-08 Jakub Jelinek <jakub@redhat.com>
14608
14609 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
14610 REG_EQUIV notes as well.
14611
14612 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
14613
14614 * doc/md.texi: Fix the description of addmodecc.
14615
14616 2003-07-07 Zack Weinberg <zack@codesourcery.com>
14617
14618 * Makefile.in (top_builddir): Set to "..", not ".".
14619 (INTLLIBS, INTLDEPS): Delete.
14620 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
14621 (LIBDEPS): Add $(LIBICONV_DEP).
14622 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
14623 (INCLUDES): Replace -I../intl with @INCINTL@.
14624 ($(top_builddir)/intl/libintl.a): Delete rule.
14625 (stage2-start, stage3-start, stage4-start, stageprofile-start,
14626 stagefeedback-start): Use $$ for variable to be evaluated by
14627 shell, not make.
14628 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
14629 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
14630 * aclocal.m4: sinclude ../config/progtest.m4. Add
14631 contents of lcmessage.m4 from gettext distro.
14632 * configure.in: Check for wchar.h and setlocale. Set
14633 LIBICONV_DEP to the empty string and substitute it.
14634 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
14635 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
14636 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
14637 in $LIBINTL, to avoid linking it twice.
14638 * configure, config.in: Regenerate.
14639
14640 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
14641
14642 * fixinc/mkfixinc.sh: Remove winnt support.
14643 * fixinc/fixinc.winnt: Delete with extreme prejudice.
14644
14645 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
14646
14647 * Makefile.in: Update.
14648 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
14649 * c.opt: Update documentation.
14650 * common.opt: Add some help text.
14651 * opts.c: Include intl.h.
14652 (wrap_help, print_help): New.
14653 (find_opt, handle_option, common_handle_option): opt_text now
14654 contains the '-'. Use print_help to output help.
14655 * opts.h (struct cl_option): New member "help".
14656 * opts.sh: Update to handle help text output and to prepend
14657 options with '-'.
14658 * toplev.c (display_help): Remove some help text.
14659
14660 2003-07-07 David Edelsohn <edelsohn@gnu.org>
14661 Fariborz Jahanian <fjahanian@apple.com>
14662
14663 * configure.in: Test for PowerPC mfcr field support in assembler.
14664 * config.in, configure: Regenderated.
14665
14666 * config/rs6000/power4.md: Add mfcrf reservation.
14667 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
14668 * config/rs6000/rs6000.c (mfcr_operation): Define.
14669 (print_operand): Add 'Q' case for mfcrf.
14670 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
14671 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
14672 (movcc_internal1): Emit optional field operand for mfcr and set
14673 "type" attribute appropriately.
14674 (mfcr SCC): Likewise.
14675 (movesi_from_cr_one): New.
14676
14677 2003-07-07 Roger Sayle <roger@eyesopen.com>
14678
14679 * config/i386/i386.md: Correct check-in of incorrect version.
14680
14681 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14682
14683 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
14684 adjacent stdio calls.
14685 * c-decl.c (c_print_identifier): Likewise.
14686 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
14687 * print-rtl.c (print_rtx): Likewise.
14688 * print-tree.c (print_node_brief, print_node): Likewise.
14689 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
14690
14691 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
14692 * config.in, configure: Regenerated.
14693
14694 2003-07-07 Roger Sayle <roger@eyesopen.com>
14695
14696 PR target/10979
14697 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
14698 Changed to define_expand patterns that copy operand[1] to prevent
14699 it from being clobbered before emitting an atan2?f3_1 insn.
14700 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
14701 patterns that actually specify the behaviour of x87's FPATAN.
14702
14703 2003-07-07 Jakub Jelinek <jakub@redhat.com>
14704
14705 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
14706 clearing of SYMBOL_FLAG_LOCAL bit.
14707 If vcall_offset fits into signed 16-bit immediate, use
14708 one instruction for both addition and load.
14709
14710 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
14711
14712 * opts.c (common_handle_option): Correct handling of the
14713 -falign- switches that do and don't take an argument.
14714
14715 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14716
14717 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
14718 today.
14719 (pushhi1_h8300hs): Likewise.
14720
14721 2003-07-07 Andreas Jaeger <aj@suse.de>
14722
14723 * genextract.c: Convert remaining prototypes to ISO C90.
14724
14725 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
14726 * fold-const.c (fold_single_bit_test): Likewise.
14727 * diagnostic.c (default_diagnostic_finalizer): Likewise.
14728 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
14729
14730 * gengtype.c (write_array): Generate ISO C90 prototypes.
14731
14732 * genflags.c (gen_proto): Generate ISO C90 prototypes.
14733
14734 2003-07-07 Roger Sayle <roger@eyesopen.com>
14735
14736 PR optimization/11059
14737 * expr.c (can_store_by_pieces): Return true if length is zero.
14738 (store_by_pieces): If length is zero and endp is two, abort,
14739 othwerise, if length is zero and endp is not two, return "to".
14740 (clear_by_pieces): Do nothing if length is zero.
14741 (clear_storage): Do nothing if length is zero.
14742 (store_constructor): Simplify code when size is zero, or the
14743 target has already been cleared. This avoids emitting a
14744 blockage instruction when initializing empty structures.
14745
14746 2003-07-07 Andreas Jaeger <aj@suse.de>
14747
14748 * mips-tfile.c: Convert prototypes to ISO C90.
14749 * mips-tdump.c: Convert prototypes to ISO C90.
14750
14751 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
14752
14753 * rtl.h (emit_line_note): Take a location_t.
14754 (emit_line_note_force): Remove.
14755 (set_file_and_line_for_statement): Take a location_t.
14756 * tree.g (emit_line_note): Take a location_t.
14757 * emit-rtl.c (emit_line_note): Take a location_t.
14758 (emit_line_note_force): Remove.
14759 * function.c (init_function_start): Adjust emit_line_note call.
14760 (expand_function_end): Use force_next_line_note, not
14761 emit_line_note_force.
14762 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
14763 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
14764 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
14765 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
14766 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
14767 genrtl_continue_stmt, genrtl_switch_stmt,
14768 genrtl_asm_stmt): Likewise.
14769 * expr.c (expand_expr): Likewise.
14770 * integrate.c (expand_inline_function): Likewise.
14771 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
14772 (expand_decl_init): Adjust emit_line_note call.
14773
14774 2003-07-07 Dale Johannesen <dalej@apple.com>
14775
14776 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
14777
14778 2003-07-07 Andreas Jaeger <aj@suse.de>
14779
14780 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
14781 * config/i386/i386.c: Likewise.
14782
14783 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14784
14785 * config/h8300/h8300.md: Use gen_int_mode instead of
14786 GEN_INT (trunc_int_for_mode (...)).
14787
14788 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14789
14790 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
14791 2 bytes and then subtract 2 from the stack pointer.
14792 (pushhi1_h8300hs): Likewise.
14793
14794 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
14795
14796 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
14797 -frandom-seed.
14798 * configure: Regenerated.
14799 * Makefile.in: Remove extraneous comment.
14800 * toplev.c (randomize): Protect against potential multiple calls.
14801 * doc/invoke.texi (-frandom-seed): Document use for in coverage
14802 files.
14803
14804 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14805 Eric Botcazou <ebotcazou@libertysurf.fr>
14806
14807 PR optimization/11198
14808 * alias.c (objects_must_conflict_p): Return 1 if the types have
14809 the same alias set, not if the alias sets only conflict.
14810
14811 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
14812
14813 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
14814 (convert_cset): Change inbuf to type ICONV_CONST char.
14815 * Makefile.in (LIBS): Add LIBICONV.
14816
14817 * doc/invoke.texi (-falign-functions): Document that
14818 when n is zero then a machine-dependent default is used.
14819 (-falign-labels): Document that when n is zero then a
14820 machine-dependent default is used and that -falign-labels =1
14821 is equivalent to -fno-align-labels.
14822 (-falign-loops): Likewise.
14823 (-falign-jumps): Likewise.
14824
14825 2003-07-06 Art Haas <ahaas@airmail.net>
14826
14827 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
14828 initializer syntax.
14829
14830 2003-07-06 James E Wilson <wilson@tuliptree.org>
14831
14832 PR optimization/9812
14833 * rtl.h (mem_for_const_double): Delete prototype.
14834 * varasm.c (mem_for_const_double): Delete function.
14835 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
14836 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
14837 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
14838 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
14839 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
14840 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
14841 comment about confused support for XFmode constants.
14842
14843 2003-07-07 Jan Hubicka <jh@suse.cz>
14844
14845 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
14846
14847 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
14848
14849 * config/h8300/h8300.c: Fix comment typos.
14850 * config/h8300/h8300.md: Likewise.
14851 * config/i386/athlon.md: Likewise.
14852 * config/i386/i386.c: Likewise.
14853 * config/i386/pentium.md: Likewise.
14854 * config/ia64/ia64.c: Likewise.
14855 * config/ia64/itanium1.md: Likewise.
14856 * config/ia64/itanium2.md: Likewise.
14857 * config/m32r/m32r.md: Likewise.
14858 * config/m68hc11/m68hc11.c: Likewise.
14859 * config/mcore/mcore.c: Likewise.
14860 * config/mips/sr71k.md: Likewise.
14861 * config/mips/t-iris5-as: Likewise.
14862 * config/mmix/mmix.h: Likewise.
14863 * config/ns32k/ns32k.h: Likewise.
14864 * config/ns32k/NOTES: Fix a typo.
14865
14866 2003-07-06 Andreas Jaeger <aj@suse.de>
14867
14868 * stmt.c: Convert remaining prototypes to ISO C90.
14869 * cfglayout.c: Likewise.
14870 * dbxout.c: Likewise.
14871 * gcc.c: Likewise.
14872 * genemit.c: Likewise.
14873
14874 * basic-block.h: Convert prototypes to ISO C90.
14875 * c-parse.in: Likewise.
14876 * c-pragma.h: Likewise.
14877 * c-typeck.c: Likewise.
14878 * cfghooks.h: Likewise.
14879 * cfgloopanal.c: Likewise.
14880 * dbxout.h: Likewise.
14881 * debug.h: Likewise.
14882 * dwarf2asm.h: Likewise.
14883 * gcov.c: Likewise.
14884 * gengtype-lex.l: Likewise.
14885 * sched-int.h: Likewise.
14886 * timevar.c: Likewise.
14887
14888 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
14889
14890 * c-common.h (c_comon_handle_filename,
14891 c_common_missing_arguement): New.
14892 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14893 LANG_HOOKS_MISSING_ARGUMENT): New.
14894 * c-opts.c (missing_arg): Rename c_common_missing_argument,
14895 update to be an appropriate langhook.
14896 (c_common_handle_option): Don't handle filenames.
14897 (c_common_handle_filename): New.
14898 * hooks.c (hook_void_constcharptr,
14899 hook_bool_constcharptr_size_t_false): New.
14900 * hooks.h (hook_void_constcharptr,
14901 hook_bool_constcharptr_size_t_false): New.
14902 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
14903 LANG_HOOKS_MISSING_ARGUMENT): New.
14904 (LANG_HOOKS_INITIALIZER): Update.
14905 * langhooks.h (struct lang_hooks): Add handle_filename and
14906 missing_argument.
14907 * opts.c (handle_option): Don't handle filenames here, but ...
14908 (handle_options): ... here.
14909 (common_handle_option): Don't handle missing arguments here.
14910 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14911 LANG_HOOKS_MISSING_ARGUMENT): New.
14912
14913 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
14914
14915 * Makfile.in: Remove traces of mbchar.
14916 * c-parse.in (MULTIBYTE_CHARS): Remove.
14917 * config.in (MULTIBYTE_CHARS): Remove.
14918 * configure: Remove --enable-mbchar.
14919 * configure.in: Remove --enable-mbchar.
14920 * mbchar.c, mbchar.h: Remove.
14921 * system.h: Poison MULTIBYTE_CHARS.
14922 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
14923 * config/linux.h (MULTIBYTE_CHARS): Remove.
14924 * config/svr4.h (MULTIBYTE_CHARS): Remove.
14925 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
14926
14927 2003-07-06 Andreas Jaeger <aj@suse.de>
14928
14929 * varray.c (varray_check_failed): Fix typo.
14930
14931 * unroll.c: Convert prototypes to ISO C90.
14932 * varasm.c: Likewise.
14933 * varray.c: Likewise.
14934 * varray.h: Likewise.
14935 * vmsdbgout.c: Likewise.
14936 * xcoffout.c: Likewise.
14937 * xcoffout.h: Likewise.
14938
14939 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14940
14941 * gcov-io.h: Add a local time stamp.
14942 (struct gcov_info): Add stamp field.
14943 (gcov_truncate): New.
14944 * coverage.c (read_counts_file): Skip the stamp.
14945 (coverage_begin_output): Write the stamp.
14946 (build_gcov_info): Declare and init the stamp.
14947 (coverage_finish): Only unlink data file, if stamp is zero.
14948 * gcov-dump.c (dump_file): Dump the stamp.
14949 * gcov.c (bbg_stamp): New.
14950 (release_structures): Clear bbg_stamp.
14951 (read_graph_file): Read stamp.
14952 (read_count_file): Check stamp.
14953 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
14954
14955 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14956
14957 * tree.h (default_flag_random_seed): Remove.
14958 * toplev.h (local_tick): Declare.
14959 * tree.c (flag_random_seed, default_flag_random_seed): Move to
14960 toplev.c.
14961 (append_random_chars): Don't call default_flag_random_seed.
14962 * toplev.c (flag_random_seed): Define here. Set local_tick.
14963 (local_tick): Define.
14964 (randomize): New, moved from tree.c.
14965 (print_switch_values): Adjust.
14966 (toplev_main): Call randomize.
14967
14968 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14969
14970 * tree.h (crc32_string): Declare.
14971 * tree.c (append_random_chars): Remove.
14972 (crc32_string): New.
14973 (get_file_function_name_long): Use crc32_string here.
14974
14975 2003-07-06 Andreas Jaeger <aj@suse.de>
14976
14977 * gcc.c: Convert prototypes to ISO C90.
14978 * gcc.h: Likewise.
14979 * gcov-dump.c: Likewise.
14980 * gcov-iov.c: Likewise.
14981 * gcse.c: Likewise.
14982 * genattrtab.h: Likewise.
14983 * ggc.h: Likewise.
14984 * global.c: Likewise.
14985 * graph.c: Likewise.
14986 * graph.h: Likewise.
14987 * hosthooks.h: Likewise.
14988 * hooks.h: Likewise.
14989 * hooks.c: Likewise.
14990 * hashtable.h: Likewise.
14991 * hashtable.c: Likewise.
14992 * haifa-sched.c: Likewise.
14993 * integrate.h: Likewise.
14994 * integrate.c: Likewise.
14995 * input.h: Likewise.
14996 * ifcvt.c: Likewise.
14997 * jump.c: Likewise.
14998 * langhooks-def.h: Likewise. Add extern to prototypes.
14999 * langhooks.c: Likewise.
15000 * langhooks.h: Likewise.
15001 * lcm.c: Likewise.
15002 * local-alloc.c: Likewise.
15003 * loop-init.c: Likewise.
15004 * loop-unroll.c: Likewise.
15005 * loop-unswitch.c: Likewise.
15006 * loop.c: Likewise.
15007 * loop.h: Likewise. Add extern to prototypes.
15008 * machmode.h: Likewise.
15009 * main.c: Likewise.
15010 * mbchar.c: Likewise.
15011 * mbchar.h: Likewise.
15012 * mkdeps.c: Likewise.
15013 * mkdeps.h: Likewise.
15014 * optabs.c: Likewise.
15015 * optabs.h: Likewise.
15016 * output.h: Likewise.
15017 * gccspec.c: Likwise.
15018 * postreload.c: Likewise.
15019 * prefix.c: Likewise.
15020 * prefix.h: Likewise.
15021 * print-rtl.c: Likewise.
15022 * print-tree.c: Likewise.
15023 * profile.c: Likewise.
15024 * read-rtl.c: Likewise.
15025 * real.c: Likewise.
15026 * real.h: Likewise.
15027 * recog.c: Likewise.
15028 * recog.h: Likewise.
15029 * reg-stack.c: Likewise.
15030 * regclass.c: Likewise.
15031 * regmove.c: Likewise.
15032 * regrename.c: Likewise.
15033 * regs.h: Likewise.
15034 * reload.c: Likewise.
15035 * reload.h: Likewise.
15036 * reload1.c: Likewise.
15037 * reorg.c: Likewise.
15038 * resource.c: Likewise.
15039 * resource.h: Likewise.
15040 * rtl-error.c: Likewise.
15041 * rtl.c: Likewise.
15042 * rtl.h: Likewise.
15043 * rtlanal.c: Likewise.
15044 * sbitmap.c: Likewise.
15045 * sbitmap.h: Likewise.
15046 * scan-decls.c: Likewise.
15047 * scan.c: Likewise.
15048 * sched-deps.c: Likewise.
15049 * sched-ebb.c: Likewise.
15050 * sched-int.h: Likewise.
15051 * sched-rgn.c: Likewise.
15052 * sched-vis.c: Likewise.
15053 * sibcall.c: Likewise.
15054 * simplify-rtx.c: Likewise.
15055 * sreal.c: Likewise.
15056 * sreal.h: Likewise.
15057 * ssa-ccp.c: Likewise.
15058 * ssa-dce.c: Likewise.
15059 * ssa.c: Likewise.
15060 * ssa.h: Likewise.
15061 * stack.h: Likewise.
15062 * stmt.c: Likewise.
15063 * stor-layout.c: Likewise.
15064 * stringpool.c: Likewise.
15065 * target.h: Likewise.
15066 * timevar.c: Likewise.
15067 * timevar.h: Likewise.
15068 * tlink.c: Likewise.
15069 * tracer.c: Likewise.
15070 * tree-inline.c: Likewise.
15071 * tree-inline.h: Likewise.
15072 * tree.c: Likewise.
15073 * tree.h: Likewise.
15074
15075 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15076
15077 * combine.c (nonzero_bits1): Fix a warning.
15078
15079 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15080
15081 * config/h8300/h8300.c (compute_mov_length): Correct the
15082 length of loading CONST0_RTX (SFmode).
15083
15084 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
15085
15086 * toplev.c (output_clean_symbol_name): Remove.
15087 * toplev.h (output_clean_symbol_name): Remove.
15088 * config/alpha/alpha.c (unicosmk_output_module_name): Use
15089 lbasename & clean_symbol_name.
15090
15091 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15092
15093 * ggc.h: Follow spelling conventions.
15094 * config/i386/i386.c: Likewise.
15095 * config/i386/winnt.c: Likewise.
15096 * config/rs6000/rs6000.c: Likewise.
15097
15098 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
15099
15100 * bt-load.c: Fix comment typos.
15101 * c-incpath.c: Likewise.
15102 * cfg.c: Likewise.
15103 * cfgcleanup.c: Likewise.
15104 * cfgloop.h: Likewise.
15105 * cfgloopmanip.c: Likewise.
15106 * cfgrtl.c: Likewise.
15107 * diagnostic.h: Likewise.
15108 * dwarfout.c: Likewise.
15109 * emit-rtl.c: Likewise.
15110 * et-forest.c: Likewise.
15111 * et-forest.h: Likewise.
15112 * expr.c: Likewise.
15113 * gcse.c: Likewise.
15114 * genattr.c: Likewise.
15115 * jump.c: Likewise.
15116 * langhooks.h: Likewise.
15117 * local-alloc.c: Likewise.
15118 * loop-unroll.c: Likewise.
15119 * loop-unswitch.c: Likewise.
15120 * ra-build.c: Likewise.
15121 * regclass.c: Likewise.
15122 * regmove.c: Likewise.
15123 * rtl.def: Likewise.
15124 * rtlanal.c: Likewise.
15125 * sched-ebb.c: Likewise.
15126 * sched-rgn.c: Likewise.
15127 * simplify-rtx.c: Likewise.
15128 * ssa.c: Likewise.
15129 * tracer.c: Likewise.
15130 * tree.c: Likewise.
15131
15132 2003-07-05 Zack Weinberg <zack@codesourcery.com>
15133
15134 * cppcharset.c: Use the correct return type for the fallback iconv
15135 macro.
15136
15137 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15138
15139 Blame to Jan Hubicka <jh@suse.cz>
15140 * cfglayout.c (record_effective_endpoints): Split insns before
15141 first basic block correctly.
15142
15143 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15144
15145 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
15146 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
15147 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
15148
15149 2003-07-05 Andreas Jaeger <aj@suse.de>
15150
15151 * genattrtab.c (write_attr_get): Revert part of last patch to
15152 always write out a prototype.
15153
15154 * genemit.c (gen_split): Readd lost unused attributes in last
15155 patch.
15156
15157 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15158
15159 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
15160 different from header.
15161
15162 2003-07-05 Andreas Schwab <schwab@suse.de>
15163
15164 * config/m68k/m68k.c: Remove code protected by CRDS.
15165 * config/m68k/m68k.md: Likewise.
15166
15167 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
15168
15169 PR driver/11417
15170 * c-opts.c (permit_fortran_options): New.
15171 (c_common_init_options): Accept fortran front end options if
15172 it looks like we might be preprocessing Fortran.
15173 (c_common_handle_option): Don't reject switch if permit_fotran_options.
15174
15175 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15176
15177 * genattr.c (internal_dfa_insn_code): Output prototype.
15178 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
15179 * genautomata.c: Likewise.
15180 * genconditions.c: Likewise.
15181 * genemit.c: Likewise.
15182 * genextract.c: Likewise.
15183 * gengenrtl.c: Likewise.
15184 * gengtype.c: Likewise.
15185 * genopinit.c: Likewise.
15186 * genoutput.c: Likewise.
15187 * genpeep.c: Likewise.
15188 * genrecog.c: Likewise.
15189
15190 2003-07-04 Zack Weinberg <zack@codesourcery.com>
15191
15192 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
15193 (struct cpp_options): Add narrow_charset, wide_charset,
15194 bytes_big_endian fields. Remove EBCDIC field.
15195 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
15196
15197 * cpphash.h: Include <iconv.h> if we have it, otherwise
15198 provide a dummy definition of iconv_t.
15199 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
15200 (_cpp_valid_ucn): Update prototype.
15201 (_cpp_destroy_iconv): New prototype.
15202
15203 * doc/cpp.texi: Document character set handling.
15204 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
15205 * doc/extend.texi: Delete entire section on multiline strings.
15206 Rewrite section on __FUNCTION__ etc now that these are
15207 variables in C.
15208
15209 * cppucnid.tab, cppucnid.pl: New files.
15210 * cppucnid.h: New generated file.
15211 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
15212 (iconv_open, iconv, iconv_close): Provide dummy definitions
15213 if !HAVE_ICONV.
15214 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
15215 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
15216 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
15217 cpp_interpret_string, narrow_str_to_charconst,
15218 wide_str_to_charconst): New.
15219 (ucn_valid_in_identifier): Use a binary search through the
15220 ucnranges table defined in cppucnid.h, not a long chain of if
15221 statements.
15222 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
15223 character names are only valid in C++ and C99" to a warning.
15224 Issue the "meaning of \[uU] is different in traditional C"
15225 warning here. Take care not to let iconv see an invalid UCS
15226 value if we get a malformed UCN. Issue an error if we don't
15227 have iconv.
15228 (cpp_interpret_charconst): Moved here from cpplex.c. Use
15229 cpp_interpret_string to do the heavy lifting.
15230
15231 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
15232 narrow_charset, wide_charset fields of options structure.
15233 (cpp_destroy): Call _cpp_destroy_iconv.
15234 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
15235 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
15236 (cpp_interpret_charconst): Moved to cppcharset.c.
15237 * cpplib.c (dequote_string): Delete.
15238 (interpret_string_notranslate): New.
15239 (do_line, do_linemarker): Use interpret_string_notranslate.
15240
15241 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
15242
15243 * c-common.c (fname_string, combine_strings): Delete.
15244 * c-common.h (fname_string, combine_strings): Delete prototypes.
15245 * c-lex.c (ignore_escape_flag): Delete.
15246 (cb_ident): Use cpp_interpret_string, not lex_string.
15247 (get_nonpadding_token): New function.
15248 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
15249 Adjust calls to lex_string. Don't write *value twice.
15250 (lex_string): Now handles string constant concatenation.
15251 Most of the work handed off to cpp_interpret_string.
15252 Call fix_string_type here.
15253 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
15254 FUNC_NAME, throughout.
15255 (OBJC_STRING): New token type.
15256 (primary:STRING): No need to call fix_string_type here.
15257 (primary:objc_string): Make that OBJC_STRING.
15258 (objc_string nonterminal): Delete.
15259 (yylexname): Delete code to handle fake string constants.
15260 (yylexstring): Delete entirely.
15261 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
15262 to handle CPP_ATSIGN.
15263
15264 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
15265 * c-opts.c (missing_arg, c_common_handle_option): Handle
15266 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
15267 (c_common_init): Set cpp_opts->bytes_big_endian, not
15268 cpp_opts->EBCDIC. Call cpp_init_iconv.
15269 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
15270 (TARGET_EBCDIC): Delete default definition.
15271
15272 * objc/objc-act.c (build_objc_string_object): No need to
15273 handle string constant concatenation.
15274
15275 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
15276
15277 * doc/install.texi: Fix typos.
15278 * doc/invoke.texi: Likewise.
15279 * doc/tm.texi: Likewise.
15280
15281 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
15282
15283 * config/pa/fptr.c: Fix comment typos.
15284 * config/pa/pa-64.h: Likewise.
15285 * config/pa/pa.c: Likewise.
15286 * config/pa/pa.h: Likewise.
15287 * config/rs6000/603.md: Likewise.
15288 * config/rs6000/7xx.md: Likewise.
15289 * config/rs6000/darwin.h: Likewise.
15290 * config/rs6000/freebsd.h: Likewise.
15291 * config/rs6000/rs6000.c: Likewise.
15292 * config/rs6000/rs6000.md: Likewise.
15293 * config/rs6000/spe.h: Likewise.
15294
15295 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
15296
15297 * config/s390/2064.md: Change GNU CC to GCC.
15298 * config/s390/2084.md: Likewise.
15299 * config/s390/fixdfdi.h: Likewise.
15300 * config/s390/linux.h: Likewise.
15301 * config/s390/s390-modes.def: Likewise.
15302 * config/s390/s390-protos.h: Likewise.
15303 * config/s390/s390.c: Likewise.
15304 * config/s390/s390.h: Likewise.
15305 * config/s390/s390.md: Likewise.
15306 * config/s390/s390x.h: Likewise.
15307
15308 2003-07-04 Jeff Law <law@redhat.com>
15309
15310 PR c/11428
15311 * expr.c (do_store_flag): Pass in the correct result type
15312 when calling fold_single_bit_test.
15313 * fold-const.c (fold_single_bit_test): Use result_type for the
15314 result when folding a sign bit test.
15315
15316 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
15317
15318 * opts.c (common_handle_options): Negate sense of -falign- switches.
15319
15320 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
15321
15322 * Makefile.in: Replace PWD with PWD_COMMAND.
15323
15324 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15325
15326 * cfgloopanal.c (count_strange_loop_iterations): New static function.
15327 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
15328 Handle strange loops.
15329
15330 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
15331
15332 * install.texi: Even the g77 manpage is derived from
15333 the full g77 manual.
15334
15335 2003-07-04 Zack Weinberg <zack@codesourcery.com>
15336
15337 * ABOUT-NLS: Delete.
15338 * intl: Delete entire directory.
15339 * aclocal.m4: Include ../config/gettext.m4. Delete
15340 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
15341 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
15342 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
15343 Remove intl/Makefile from all_outputs.
15344 * configure, config.in: Regenerate.
15345 * Makefile.in: Expunge all references to intl subdirectory.
15346 Add -I../intl to INCLUDES.
15347 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
15348
15349 2003-07-04 Roger Sayle <roger@eyesopen.com>
15350
15351 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
15352 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
15353
15354 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
15355
15356 PR c++/5287, PR c++/7910, PR c++/11021
15357 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
15358 dllimport attribute if function is defined at declaration, but
15359 report error instead. Likewise for dllimport'd variable
15360 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
15361 declared within functions, Report error if dllimport or dllexport
15362 symbol is not global.
15363 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
15364 if defined after declaration or if inlined. Don't allow definition
15365 of static data members of C++ classes. Don't dllimport virtual
15366 methods.
15367 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
15368 (i386_pe_mark_dllimport): Remove unnecessary checks.
15369 (i386_pe_encode_section_info): Warn if the dllimport attribute
15370 and symbol prefix have been instantiated and then overridden.
15371
15372 * doc/extend.texi: Document dllimport and dllexport attributes.
15373
15374 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
15375
15376 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
15377
15378 * config/kaos.h (CPP_PREDEFINES): Delete.
15379 (TARGET_OS_CPP_BUILTINS): New.
15380
15381 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15382
15383 * c-aux-info.c: Include toplev.h after c-tree.h.
15384 * c-common.c: Likewise.
15385 (GCC_DIAG_STYLE): Undef.
15386 * c-semantics.c (GCC_DIAG_STYLE): Define.
15387 * c-tree.h (GCC_DIAG_STYLE): Likewise.
15388 * diagnostic.h (inform): Move prototype to toplev.h.
15389 * jump.c: Include diagnostic.h before toplev.h.
15390 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
15391 (warning, error, fatal_error, pedwarn, sorry, inform,
15392 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
15393
15394 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15395
15396 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
15397 at all if edge is not specified.
15398 (can_copy_bbs_p, copy_bbs): New.
15399 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
15400 * cfgloop.c (get_loop_body): Comment more precisely.
15401 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
15402 (scale_bbs_frequencies): Fix comment typo.
15403 (can_duplicate_loop_p): Use can_copy_bbs_p.
15404 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
15405
15406 2003-07-03 Devang Patel <dpatel@apple.com>
15407
15408 * c-opts.c (c_common_parse_file): Remove extra
15409 debug_hooks->start_source_file call.
15410
15411 2003-07-03 Roger Sayle <roger@eyesopen.com>
15412
15413 * real.c (real_trunc, real_floor, real_ceil): New functions
15414 to implement trunc, floor and ceil respectively.
15415 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
15416 * builtins.c (integer_valued_real_p): New function to test if
15417 a floating point expression has an integer valued result.
15418 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
15419 foo(x) where foo is an integer rounding function. Similarly,
15420 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
15421 (double)(int)x when both foo and bar are integer rounding
15422 functions and we don't need to honor errno.
15423 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
15424 New functions to fold trunc, floor and ceil.
15425 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
15426 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
15427 to fold BUILT_IN_CEIL*.
15428 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
15429 the remaining integer rounding functions.
15430
15431 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15432
15433 * config/sparc/sparc.c (function_arg_partial_nregs): Use
15434 SPARC_INT_ARG_MAX to determine where to split unnamed
15435 complex FP arguments.
15436
15437 2003-07-03 Jan Hubicka <jh@suse.cz>
15438
15439 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
15440 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
15441 (merge_blocks_move_predecessor_nojumps,
15442 merge_blocks_move_successor_nojumps): Use merge_blocks.
15443 (try_optimize_cfg): Use merge_blocks_move.
15444 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
15445 (merge_blocks_nomove): Rename to rtl_merge_blocks.
15446 (cfg_layout_create_basic_block): New.
15447 (rtl_can_merge_blocks): New.
15448 (cfg_layout_split_block): Do not alloc aux by hand.
15449 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
15450 merge_blocks.
15451 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
15452 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
15453 * cfgloopmanip.c (loop_split_edge_with): Likewise.
15454 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
15455
15456 * basic-block.h (basic_block_def): Add field 'rbi'.
15457 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
15458 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
15459 * cfg.c (entry_exit_blocks): Add new field.
15460 * cfglayout.c: Include alloc-pool.h;
15461 (cfg_layout_pool): New.
15462 (record_effective_endpoints, fixup_reorder_chain,
15463 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
15464 of rbi.
15465 (cfg_layout_initialize_rbi): New function.
15466 (cfg_layout_initialize): Use it.
15467 (cfg_layout_finalize): Clear rbi fields.
15468 * cfglayout.h (RBI): Kill.
15469 (cfg_layout_initialize_rbi): Declare.
15470 * cfgloopmanip.c (copy_bbs): Use rbi.
15471 (record_exit_edges): Likewise.
15472 (duplicate_loop_to_header_edge): Likewise.
15473 * cfgrtl.c (cfg_layout_create_basic_block): Use
15474 cfg_layout_initialize_rbi.
15475 (cfg_layout_split_block): Use rbi.
15476 (cfg_layout_delete_block): Likewise.
15477 * loop-init.c (loop_optimizer_finalize): Likewise.
15478 * loop-unswitch.c (unswitch_loop): Likewise.
15479 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
15480
15481 * cfgrtl.c: Update comments.
15482 (try_redirect_by_replacing_jump): New argument.
15483 (redirect_branch_edge): Break out from ...
15484 (rtl_redirect_edge_and_branch): ... this one.
15485 (update_cfg_after_block_merging): Break out from ...
15486 (rtl_merge_blocks): ... this one.
15487 (cfg_layout_split_edge): New.
15488 (cfg_layout_merge_blocks): New.
15489 (cfg_layout_can_merge_blocks_p): New.
15490 (cfg_layout_redirect_edge_and_branch): Reorganize.
15491 (cfg_layout_rtl_cfg_hooks): Fill in.
15492 (cfg_layout_delete_block): Kill barriers.
15493 * cfganal.c (can_fallthru): Deal with exit blocks
15494 * cfglayout.c (cfg_layout_function_header): New function
15495 (record_effective_endpoints): Record function header.
15496 (fixup_reorder_chain): Fixup dead jumptables; place header
15497
15498 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
15499 * bb-reorder.c (cfg_layout_initialize): Update call.
15500 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
15501 edges in cfglayout mode.
15502 * cfglayout.c (cleanup_unconditional_jumps): Kill.
15503 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
15504 * cfglayout.h (cfg_layout_initialize): Update prototype.
15505 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
15506 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
15507 * flow.c (propagate_block): Do not crash when basic block ends
15508 by first insn in the chain.
15509 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
15510 do loop discovery.
15511 * tracer.c (tracer): Update call of cfg_layout_initialize.
15512
15513 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15514
15515 * Makefile.in: Use dependency variables in lieu of explicit
15516 files throughout.
15517
15518 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
15519
15520 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
15521 * tree.h: ...to here.
15522
15523 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15524
15525 * config/s390/2064.md: Fix comment typos.
15526 * config/s390/2084.md: Likewise.
15527 * config/s390/s390.c: Likewise.
15528 * config/s390/s390.md: Likewise.
15529 * config/sh/sh.c: Likewise.
15530 * config/sh/sh.h: Likewise.
15531 * config/sh/sh.md: Likewise.
15532 * config/sparc/sparc.c: Likewise.
15533 * config/sparc/sparc.h: Likewise.
15534 * config/sparc/sparc.md: Likewise.
15535 * config/stormy16/stormy16.c: Likewise.
15536 * config/stormy16/stormy16.h: Likewise.
15537 * config/stormy16/stormy-abi: Fix a typo.
15538
15539 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
15540
15541 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
15542
15543 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15544
15545 * config/mips/mips.h (save_argv): Delete.
15546
15547 2003-07-03 Roger Sayle <roger@eyesopen.com>
15548
15549 PR target/10700
15550 * fold-const.c (extract_muldiv_1): There's nothing that can be done
15551 if the expression is a SAVE_EXPR.
15552
15553 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15554
15555 * config/m32r/m32r.c: Fix comment typos.
15556 * config/m68hc11/m68hc11.c: Likewise.
15557 * config/m68hc11/m68hc11.h: Likewise.
15558 * config/m68k/m68k.c: Likewise.
15559 * config/mcore/mcore.c: Likewise.
15560 * config/mcore/mcore.h: Likewise.
15561 * config/mcore/mcore.md: Likewise.
15562 * config/mips/mips.c: Likewise.
15563 * config/mips/mips.h: Likewise.
15564 * config/mips/mips.md: Likewise.
15565 * config/mips/netbsd.h: Likewise.
15566 * config/mn10300/mn10300.c: Likewise.
15567
15568 2003-07-03 Andreas Schwab <schwab@suse.de>
15569
15570 * dbxout.c (pending_bincls): Move decl down inside
15571 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
15572
15573 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15574
15575 * rtl.h (NOTE_DATA): Refer to whole union.
15576 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
15577
15578 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15579
15580 PR optimization/11381
15581 * simplify-rtx.c (simplify_relational_operation): Check that
15582 two equal operands have no side-effects before simplifying
15583 the comparison.
15584
15585 2003-07-02 Jeff Law <law@redhat.com>
15586
15587 * expr.c (do_store_flag): Remove special case folding for
15588 single bit tests. Instead call back into the commonized folder
15589 routine.
15590 * fold-const.c (fold_single_bit_test): New function, mostly
15591 extracted from do_store_flag, with an additional case extracted
15592 from fold.
15593 (fold): Call fold_single_bit_test appropriately.
15594 * tree.h (fold_single_bit_test): Prototype.
15595
15596 2003-07-02 Zack Weinberg <zack@codesourcery.com>
15597
15598 * system.h: Include filenames.h.
15599 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
15600 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
15601 define based on HAVE_DOS_BASED_FILE_SYSTEM.
15602 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
15603 * config/i386/xm-mingw32.h: Don't define
15604 HAVE_DOS_BASED_FILE_SYSTEM,
15605 DIR_SEPARATOR, or DIR_SEPARATOR_2.
15606 * doc/hostconfig.texi: Update to match.
15607
15608 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
15609 config/i386/cygwin.h:
15610 Use IS_ABSOLUTE_PATH throughout.
15611 * gcc.c (DIR_UP): Delete, unused.
15612 * protoize.c (IS_SAME_PATH): Define in terms of
15613 FILENAME_CMP.
15614 (is_abspath): Delete.
15615
15616 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
15617
15618 * config/i386/emmintrin.h: Fix comment typos.
15619 * config/i386/i386.c: Likewise.
15620 * config/i386/i386.h: Likewise.
15621 * config/i386/sco5.h: Likewise.
15622 * config/ia64/ia64.c: Likewise.
15623 * config/ia64/itanium2.md: Likewise.
15624
15625 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
15626
15627 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
15628 DBX_USE_BINCL.
15629 (emit_bincl_stab): Same.
15630 (emit_pending_bincls): Same.
15631
15632 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
15633
15634 * config/h8300/h8300.c (compute_mov_length): Fix the length of
15635 loading CONST0_RTX (SFmode).
15636 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
15637 'G' to CONST0_RTX (SFmode).
15638 * config/h8300/h8300.md (movsf_h8300): Change the first
15639 constraint to 'G'.
15640 (movsf_h8300h): Likewise.
15641
15642 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
15643
15644 * c-common.h (c_common_init_options): New prototype.
15645 * c-opts.c (deferred_size): Remove.
15646 (defer_opt): Array is now pre-allocated.
15647 (c_common_init_options): Pre-allocate deferred_opts. Make
15648 lang_flags unsigned.
15649 (push_command_line_options): Free deferred_opts.
15650 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
15651 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
15652 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
15653 * langhooks.h (struct lang_hooks): New prototype for init_options.
15654 * main.c (main): Cast argv.
15655 * opts.c (handle_option, handle_options): Update prototypes.
15656 (decode_options): save_argc, save_argv are not global. Constify.
15657 * opts.h (decode_options): New prototype.
15658 * toplev.c (general_init): New protoype.
15659 (save_argv): Make static.
15660 (save_argc): Remove.
15661 (print_switch_values, general_init): Constify.
15662 (toplev_main): Save argv.
15663 * toplev.h (toplev_main): Update prototype.
15664 (save_argc, save_argv): Remove.
15665
15666 2003-07-02 David Edelsohn <edelsohn@gnu.org>
15667
15668 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
15669 (emit_bincl_stab): Same.
15670 (emit_pending_bincls): Same.
15671
15672 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15673
15674 PR c++/11072
15675 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
15676
15677 2003-07-02 Andreas Schwab <schwab@suse.de>
15678
15679 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
15680
15681 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15682
15683 PR optimization/11210
15684 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
15685 about the behaviour with regard to bitfields.
15686 * fold-const (decode_field_reference): Record outermost type in
15687 case the expression is a NOP. Strip all NOPs. Set the signedness
15688 to that of the outermost type (if any) when the bitsize is equal
15689 to the size of the type.
15690
15691 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
15692
15693 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
15694 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
15695 (adddi3_internal_3, addsi3_internal_2): Likewise.
15696
15697 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
15698
15699 * config/mips/mips.c (machine_function): Add new fields:
15700 ignore_hazard_length_p and all_noreorder_p.
15701 (mips_flag_delayed_branch): New variable.
15702 (override_options): Treat '/' as an operand punctuation character.
15703 Set up mips_flag_delayed_branch.
15704 (print_operand): Handle '/'.
15705 (mips_output_function_prologue): Put the whole function in
15706 .set noreorder and .set nomacro if all_noreorder_p is true.
15707 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
15708 (mips16_optimize_gp): Remove "first insn" parameter.
15709 (mips16_lay_out_constants): New function, split out from mips_reorg.
15710 (mips_avoid_hazard, mips_avoid_hazards): New functions.
15711 (mips_reorg): For mips16 code, call mips16_lay_out_constant
15712 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
15713 do delayed-branch scheduling followed by hazard detection.
15714 (mips_adjust_insn_length): Only account for hazards if
15715 !ignore_hazard_length_p.
15716 (mips_output_load_label): Add a nop to the o32 sequence if
15717 the target suffers from load delays.
15718 (mips_output_conditional_branch): Add %/ to the end of branches.
15719 (mips_output_division): Fill the branch delay slot with %#.
15720 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
15721 instructions. End all other %* branches with %/.
15722 (ffssi2, ffsdi2): Fix lengths.
15723 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
15724 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
15725 (fix_truncsfsi2_macro): Likewise.
15726 (mov_lwl): Set hazard to "none".
15727 (ashldi3_internal): Fill the branch delay slot with %#.
15728 (ashrdi3_internal, lshrdi3_internal): Likewise.
15729 (exception_receiver): Explicitly set $28.
15730 (hazard_nop): New pattern.
15731
15732 2003-07-02 Jan Hubicka <jh@suse.cz>
15733
15734 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
15735 before calling tree_inlinable_function_p.
15736
15737 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15738
15739 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
15740 <internal/stdio_core.h> too.
15741 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
15742 <internal/wchar_core.h> too.
15743 Substitute va_list uses in inline definition.
15744 * fixinc/fixincl.x: Regenerate.
15745
15746 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15747
15748 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
15749 Undef before redefinition.
15750 (LABEL_AFTER_LOC): Likewise.
15751 (DEFAULT_SIGNED_CHAR): Likewise.
15752 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
15753 Fix IRIX spelling.
15754
15755 * config/mips/iris3.h: Remove, unused.
15756 * config/mips/iris4.h: Likewise.
15757
15758 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
15759
15760 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
15761 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
15762 target_cpu_default.
15763
15764 * config/mips/iris5.h: Move explicit includes ...
15765 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
15766
15767 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
15768 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15769 tm_defines.
15770
15771 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
15772 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15773 target_cpu_default.
15774
15775 * config/mips/iris6.h: Fix IRIX spelling.
15776 (MULTILIB_DEFAULTS): Undef before redefinition.
15777
15778 * config/mips/iris6.h: Move explicit includes ...
15779 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
15780
15781 2003-07-02 Jan Hubicka <jh@suse.cz>
15782
15783 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
15784 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
15785 Use next_needed field instead of aux to maintain the queue.
15786 * cgraph.h (cgraph_node): Add next_needed.
15787 (cgraph_varpool_node): Add next_needed; remove aux.
15788 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
15789
15790 2003-07-02 Jan Hubicka <jh@suse.cz>
15791
15792 * cgraphunit.c (cgraph_finalize_function): Set finalized.
15793 (cgraph_finalize_function): Do not examine inlinablility.
15794 (cgraph_finalize_compilation_unit): Do it here.
15795 * cgraph.h (cgraph_local_info): Add finalized field.
15796
15797 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15798
15799 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
15800 (gt_pch_restore): Likewise.
15801
15802 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15803
15804 * config/alpha/alpha.c: Fix comment typos.
15805 * config/alpha/elf.h: Likewise.
15806 * config/arm/arm.c: Likewise.
15807 * config/arm/arm.h: Likewise.
15808 * config/arm/arm.md: Likewise.
15809 * config/arm/t-arm-coff: Likewise.
15810 * config/arm/t-strongarm-pe: Likewise.
15811 * config/arm/xscale-elf.h: Likewise.
15812 * config/avr/avr.h: Likewise.
15813
15814 2003-07-01 Jeff Law <law@redhat.com>
15815
15816 * stmt.c (any_pending_cleanups): Remove another redundant test.
15817
15818 2003-07-01 David Edelsohn <edelsohn@gnu.org>
15819 J"orn Rennecke <joern.rennecke@superh.com>
15820
15821 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
15822 for MEM case.
15823
15824 2003-07-01 Devang Patel <dpatel@apple.com>
15825
15826 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
15827 (binclstatus): New.
15828 (struct dbx_file): New members - bincl_status, pending_bincl_name and
15829 prev.
15830 (pending_bincls): New.
15831 (dbxout_init): Initialize new dbx_file members.
15832 (dbxout_start_source_file): Same.
15833 (emit_bincl_stab): New function.
15834 (emit_pending_bincls): Same.
15835 (emit_pending_bincls_if_required): Same.
15836 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
15837 processed.
15838 (dbxout_begin_block): Emit pending BINCL stabs.
15839 (dbxout_end_block): Same.
15840 (dbxout_function_decl): Same.
15841 (dbxout_continue): Same.
15842 (dbxout_type): Same.
15843 (dbxout_class_name_qualifiers): Same.
15844 (dbxout_symbol): Same.
15845 (dbxout_symbol_location): Same.
15846 (dbxout_parms): Same.
15847
15848 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15849
15850 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
15851 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
15852
15853 2003-07-01 Andreas Jaeger <aj@suse.de>
15854
15855 * fold-const.c: Convert prototypes to ISO C90.
15856 * function.c: Likewise.
15857 * function.h: Likewise.
15858
15859 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15860
15861 * doc/contrib.texi: Fix typos.
15862 * doc/invoke.texi: Likewise.
15863 * doc/passes.texi: Likewise.
15864 * doc/sourcebuild.texi: Likewise.
15865 * doc/tm.texi: Likewise.
15866
15867 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15868
15869 * basic-block.h: Fix comment typos.
15870 * bb-reorder.c: Likewise.
15871 * c-format.c: Likewise.
15872 * cfgcleanup.c: Likewise.
15873 * cfghooks.h: Likewise.
15874 * cfgloop.c: Likewise.
15875 * cfgloopmanip.c: Likewise.
15876 * cfgrtl.c: Likewise.
15877 * cgraph.h: Likewise.
15878 * cgraphunit.c: Likewise.
15879 * combine.c: Likewise.
15880 * convert.c: Likewise.
15881 * dbxout.c: Likewise.
15882 * df.c: Likewise.
15883 * df.h: Likewise.
15884 * diagnostic.c: Likewise.
15885 * dwarf2out.c: Likewise.
15886 * et-forest.h: Likewise.
15887 * flow.c: Likewise.
15888 * fold-const.c: Likewise.
15889 * function.h: Likewise.
15890 * gcov-io.h: Likewise.
15891 * gcov.c: Likewise.
15892 * gcse.c: Likewise.
15893 * genautomata.c: Likewise.
15894 * ggc-common.c: Likewise.
15895 * ggc-page.c: Likewise.
15896 * loop-unroll.c: Likewise.
15897 * loop-unswitch.c: Likewise.
15898 * loop.c: Likewise.
15899 * mips-tfile.c: Likewise.
15900 * optabs.c: Likewise.
15901 * ra-build.c: Likewise.
15902 * ra-colorize.c: Likewise.
15903 * ra-rewrite.c: Likewise.
15904 * ra.h: Likewise.
15905 * regmove.c: Likewise.
15906 * reload.c: Likewise.
15907 * rtlanal.c: Likewise.
15908 * sched-ebb.c: Likewise.
15909 * sched-int.h: Likewise.
15910 * sched-vis.c: Likewise.
15911 * sreal.c: Likewise.
15912 * ssa-ccp.c: Likewise.
15913 * ssa.c: Likewise.
15914 * toplev.c: Likewise.
15915 * tree-inline.c: Likewise.
15916 * value-prof.c: Likewise.
15917 * value-prof.h: Likewise.
15918
15919 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
15920
15921 * rtl.h (emit_line_note_after): Remove.
15922 (emit_note_copy_after, emit_note_copy): New.
15923 * emit-rtl.c (reorder_insns_with_line_notes): Replace
15924 emit_line_note_after with emit_note_copy_after.
15925 (emit_insn_after_with_line_notes): Likewise.
15926 (emit_line_note_after): Kill.
15927 (emit_note_copy_after): New.
15928 (emit_note_copy): New.
15929 * function.c (emit_return_into_block): Use emit_note_copy_after.
15930 (thread_prologue_and_epilogue_insns): Likewise.
15931 * integrate.c (expand_inline_function): Use emit_note_copy.
15932 (copy_insn_list): Likewise.
15933 * unroll.c (copy_loop_body): Likewise.
15934 * cfglayout.c (duplicate_insn_chain): Likewise.
15935
15936 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
15937
15938 * c-tree.h (define_label): Replace filename and lineno arguments
15939 with a location_t.
15940 * c-decl.c (poplevel): Adjust define_label call.
15941 (pop_label_level): Likewise.
15942 (define_label): Replace filename and lineno arguments with a
15943 location_t.
15944 (store_parm_decls): Use DECL_SOURCE_LOCATION.
15945 * c-parse.in (label): Adjust define_label call.
15946
15947 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
15948
15949 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
15950 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
15951 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
15952 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
15953 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
15954
15955 2003-07-01 Andreas Jaeger <aj@suse.de>
15956
15957 * final.c: Convert prototypes to ISO C90.
15958 * flow.c: Likewise.
15959 * flags.h: Likewise.
15960 * gcov-io.c: Likewise.
15961 * gcov-io.h: Likewise.
15962
15963 See ChangeLog.9 for earlier changes.