* cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
[gcc.git] / gcc / ChangeLog
1 2003-10-30 Richard Henderson <rth@redhat.com>
2
3 * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
4
5 2003-10-30 Ulrich Weigand <uweigand@de.ibm.com>
6
7 * config/s390/s390.c (struct machine_function): Use save_return_addr_p
8 as a general flag that the return address register needs to be saved,
9 not necessarily because of __builtin_return_addr (0).
10 (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
11 remove special handling of zSeries machines.
12 (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
13 register as a regular register on zSeries machines.
14 (s390_reorg): Adjust calls to s390_split_branches and
15 s390_optimize_prolog.
16 (s390_frame_info): On zSeries machines, do not assume the return
17 register is always used. Update regs_ever_live with current data
18 for the special registers.
19 (s390_emit_epilogue): Use save_return_addr_p to determine whether
20 the return register was saved.
21 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
22 RETURN_REGNUM fixed on zSeries machines.
23 (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
24 * config/s390/s390.md ("*doloop_si"): Handle branch overflow
25 via ahi-jgne pair on zSeries machines.
26 ("*doloop_di"): Likewise.
27 ("*doloop_di_long"): Remove.
28
29 2003-10-30 Richard Earnshaw <rearnsha@arm.com>
30
31 * arm.c (arm_override_options): Revert change of arm_constant_limit
32 when optimizing for size.
33
34 2003-10-29 Richard Henderson <rth@redhat.com>
35
36 * fold-const.c (fold_single_bit_test): Convert the input to the
37 operational intermediate type.
38
39 2003-10-29 Richard Henderson <rth@redhat.com>
40
41 * builtins.c (std_build_builtin_va_list): New.
42 * expr.h (std_build_builtin_va_list): Declare.
43 * defaults.h (BUILD_VA_LIST_TYPE): New.
44 * system.h (BUILD_VA_LIST_TYPE): Poison.
45 * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
46 * target.h (struct gcc_target): Add build_builtin_va_list.
47 * tree.c (build_common_tree_nodes_2): Use it.
48
49 * config/alpha/alpha-protos.h, config/alpha/alpha.c,
50 config/alpha/alpha.h, config/alpha/unicosmk.h,
51 config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
52 config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
53 config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
54 config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
55 config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
56 config/mips/mips.h, config/rs6000/rs6000-protos.h,
57 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
58 config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
59 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
60 config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
61 config/xtensa/xtensa.h: Rename foo_build_va_list to
62 foo_build_builtin_va_list; make it static. Define
63 TARGET_BUILD_BUILTIN_VA_LIST. Remove BUILD_VA_LIST_TYPE.
64 Update protos.
65
66 * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
67 * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
68
69 2003-10-29 James E Wilson <wilson@specifixinc.com>
70
71 * recog.c (asm_operand_ok): Add missing break after case 'X'.
72 Change if statements to else if statements in default case.
73 (extract_constrain_insn_cached): Fix misspelling of constrain_operands
74 in comment.
75 (constrain_operands_cached): Likewise.
76 (constrain_operands): Change if statements to else if statements in
77 default case.
78 * reload.c (find_reloads): Likewise.
79
80 2003-10-29 Richard Henderson <rth@redhat.com>
81
82 * config/m68k/m68k.c (notice_update_cc): Clear cc status for
83 shifts and rotates.
84
85 2003-10-30 Alan Modra <amodra@bigpond.net.au>
86
87 * config/rs6000/rs6000.md: Remove duplicate pattern.
88
89 2003-10-29 Hans-Peter Nilsson <hp@axis.com>
90
91 * real.c (do_divide): Initialize result with a 0.
92
93 * configure.in <enable-checking for valgrind>: Look for
94 <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
95 if it exists.
96 * configure, config.in: Regenerate.
97 * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
98 HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use
99 #elif for other alternatives.
100 * ggc-page.c: Ditto.
101 * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
102 include structure from ggc-common.c.
103
104 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
105
106 * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
107 (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
108 * pa.c (pa_adjust_insn_length): Check for btable branches using
109 attribute TYPE_BTABLE_BRANCH.
110 (pa_reorg): Simplify.
111 * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
112 (ASM_OUTPUT_ADDR_VEC_ELT): As above.
113 (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
114 * pa.md (btable_branch): New instruction type.
115 (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
116 btable branches.
117 (define_delay): Add btable branches to insn types that may have an
118 insn in the delay position.
119 (Z2, Z3): Add btable branch to list.
120 Simplify unamed pattern set copy pic_label_operand to register. Add
121 PA 2.0 variant.
122 (short_jump): New jump for use in branch tables.
123 (casesi, casesi0): Revise for new branch table formats.
124 (casesi32, casesi32p, casesi64p): New casesi patterns.
125 (indirect_jump): Move.
126
127 2003-10-29 David Edelsohn <edelsohn@gnu.org>
128
129 * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
130 !TARGET_POWERPC64.
131 (UNITS_PER_GPR_WORD): Delete.
132 (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
133 (HARD_REGNO_MODE_OK): Same.
134 (CLASS_MAX_NREGS): Same.
135
136 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
137
138 * pa.h (ASM_COMMENT_START): Define.
139
140 2003-10-29 Zack Weinberg <zack@codesourcery.com>
141
142 * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
143 MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
144 component, not zero.
145
146 2003-10-29 Andreas Schwab <schwab@suse.de>
147
148 * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
149
150 2003-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
151
152 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
153 Never return 1 for complex integral modes whose size is lesser or
154 equal to a word.
155 (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
156 in the comment.
157 (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
158 modes.
159 (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
160 greater than 16 bytes by reference.
161
162 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
163
164 * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
165 not TARGET_ILP32.
166 (ia64_initialize_trampoline): Use globalize_label target call.
167
168 2003-10-29 Andreas Schwab <schwab@suse.de>
169
170 * doc/install.texi (Building): Add a sentence about building Ada
171 for a canadian cross.
172
173 2003-10-28 Zack Weinberg <zack@codesourcery.com>
174
175 * config/ia64/ia64.c (cmptf_libfunc): New static.
176 (ia64_expand_compare): Add logic to open-code calls to
177 _U_Qfcmp for TFmode comparisons.
178 (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
179 Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
180 never be generated anymore.
181 * config/ia64/ia64.md (cmptf): New expander.
182
183 2003-10-28 Zack Weinberg <zack@codesourcery.com>
184
185 * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
186 (*sqrt_approx): New instruction pattern for approximate square roots.
187 (*setf_exp_xf): New instruction pattern for exponentiation.
188 (*maddxf4_alts_truncsf): New instruction pattern for truncation.
189 (sqrtsf2_internal_thr): New define_and_split implementing
190 throughput-optimized inline calculation of SFmode square root.
191 (sqrtdf2_internal_thr): Likewise for DFmode.
192 (sqrtxf2_internal_thr): Likewise for XFmode.
193 (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
194 latency- and throughput-optimized square root algorithms.
195 * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
196 TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
197 New macros.
198 (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
199 -minline-sqrt-max-throughput.
200 * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
201 and -minline-sqrt-max-throughput are given, notify the user
202 that both options cannot be used simultaneously.
203 If -minline-sqrt-min-latency is given, notify the user that
204 this mode is not yet implemented.
205 (rtx_needs_barrier): Reformat initial comment to obey
206 72-character width limit. Support UNSPEC_SETF_EXP and
207 UNSPEC_FR_SQRT_RECIP_APPROX.
208
209 2003-10-29 Alan Modra <amodra@bigpond.net.au>
210
211 * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
212 moves.
213
214 2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
215
216 PR target/11598
217 PR libgcj/10610
218 * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
219
220 2003-10-28 Richard Earnshaw <rearnsha@arm.com>
221
222 * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
223 an extra stack adjustment insn if the stack pointer is already
224 pointing at the right place.
225 (use_return_insn): Allow a return insn to be used when we have a
226 frame pointer if the stack pointer is in the right place.
227 (output_return_instruction): Handle it.
228
229 2003-10-28 Andreas Jaeger <aj@suse.de>
230
231 * ggc-zone.c (check_cookies): Add missing variable.
232 Add void to prototypes.
233
234 2003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
235
236 * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
237 * crtstuff.c (__do_global_ctors_1): Move prototype.
238 * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
239 appropriate.
240 * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
241 Mark parameter with __attribute__((unused)).
242
243 2003-10-27 Zack Weinberg <zack@codesourcery.com>
244
245 * c-decl.c (pushdecl): Clarify comment.
246
247 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
248
249 * doc/install.texi: Update instructions for Ada cross builds
250
251 PR ada/5909:
252 * doc/sourcebuild.texi: Document Ada test suite.
253
254 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
255
256 * config/m68hc11/m68hc11.c: Convert to ISO C90.
257 * config/m68hc11/m68hc11-protos.h: Likewise.
258
259 2003-10-27 Jan Hubicka <jh@suse.cz>
260 Eric Botcazou <ebotcazou@libertysurf.fr>
261
262 * toplev.c (enum dump_file_index, dump_file): Fix ordering of
263 webizer pass dump.
264
265 2003-10-27 Jakub Jelinek <jakub@redhat.com>
266 Jan Hubicka <jh@suse.cz>
267
268 * reload1.c (struct elim_table): Change offset, initial_offset and
269 previous_offset fields to HOST_WIDE_INT.
270 (offsets_at): Change from int to HOST_WIDE_INT.
271 (reload): Adjust offsets_at initialization.
272 (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
273 (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
274 * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
275 to HOST_WIDE_INT. Don't save regs using mov for huge frame sizes
276 if TARGET_64BIT.
277 (pro_epilogue_adjust_stack): New function.
278 (ix86_expand_prologue, ix86_expand_epilogue): Use it.
279 * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
280 (pro_epilogue_adjust_stack_1): Remove * in front of name.
281 (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
282 (pro_epilogue_adjust_stack_rex64_2): New insn.
283
284 * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
285
286 * config/i386/i386.c (ix86_expand_call): Replace 40 with
287 FIRST_REX_INT_REG + 3 /* R11 */.
288
289 2003-10-26 Richard Henderson <rth@redhat.com>
290
291 * config/alpha/alpha.md (attr cannot_copy): New.
292 (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
293 prologue_ldgp_er_2, prologue_ldgp_1): Set it.
294 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
295
296 2003-10-26 Daniel Berlin <dberlin@dberlin.org>
297
298 * ggc-zone.c: New file, zone allocating collector.
299 * configure: Accept zone option for --with-gc
300 * configure.in: Ditto.
301 * ggc.h (ggc_pch_count_object): Pass bool indicating
302 stringiness. Update all callers.
303 (ggc_pch_alloc_object): Ditto.
304 (ggc_pch_write_object): Ditto.
305 (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
306 type.
307 (ggc_alloc_rtvec): Ditto.
308 (ggc_alloc_tree): Use zone allocation, since some things using this macro
309 aren't a single typecode.
310 * ggc-none.c (ggc_alloc_typed): New function.
311 (ggc_alloc_zone): Ditto.
312 * ggc-page.c: Ditto on both functions.
313
314 2003-10-26 Gunther Nikl <gni@gecko.de>
315
316 * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
317 frame information is always valid.
318 (m68k_output_function_prologue): Remove superfluous TARGET_68881
319 test; fix formatting.
320
321 2003-10-26 Gunther Nikl <gni@gecko.de>
322
323 * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
324 reg_rev_mask computation.
325 (m68k_output_function_prologue): Fix usage of current_frame (one typo
326 and one missing); use reg_rev_mask not reg_mask.
327 (m68k_output_function_epilogue): Fix usage of current_frame;
328 use fpu_rev_mask not fpu_mask.
329
330 2003-10-26 Bernardo Innocenti <bernie@develer.com>
331
332 * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
333 num_saved_regs, use current_frame.reg_no instead.
334
335 2003-10-26 Bernardo Innocenti <bernie@develer.com>
336 Paul Dale <pauli@snapgear.com>
337
338 * doc/extend.texi (interrupt_handler): Add m68k to the
339 list of processors implementing it.
340 * doc/invoke.texi (-msep-data): Document new m68k option.
341 (-mno-sep-data): Likewise.
342 (-mid-shared-library): Likewise.
343 (-mno-id-shared-library): Likewise.
344 (-mshared-library-id): Likewise.
345
346 2003-10-26 Andreas Jaeger <aj@suse.de>
347
348 * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
349 comparison.
350 (_Unwind_SetGR): Likewise.
351
352 2003-10-26 Ottavio Campana <ottavio@campana.vi.it>
353
354 PR target/12690
355 * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
356
357 2003-10-26 Gunther Nikl <gni@gecko.de>
358
359 * config/m68k/m68k.c (m68k_output_function_prologue): Move front
360 comment from here to...
361 (m68k_save_reg): ...here. Fix comment formatting.
362 (m68k_output_function_prologue): Fix comment formatting.
363 (m68k_output_function_epilogue): Likewise.
364 (const_method): Likewise.
365
366 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
367
368 * toplev.c (default_get_pch_validity): Guard the use of
369 target_options with #ifdef TARGET_OPTIONS.
370 (default_pch_valid_p): Likewise.
371
372 2003-10-26 Andreas Jaeger <aj@suse.de>
373 Zack Weinberg <zack@codesourcery.com>
374 Andreas Tobler <toa@pop.agri.ch>
375
376 * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
377 (output_die): Likewise.
378 (print_die): Likewise.
379
380 2003-10-26 Andreas Jaeger <aj@suse.de>
381
382 * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
383 dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
384 dwarf2out.c change.
385
386 * toplev.c (default_pch_valid_p): Fix warning.
387
388 2003-10-25 Roger Sayle <roger@eyesopen.com>
389
390 * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
391 RTL nodes. If an operator's operands are unchanged, return the
392 original argument unchanged.
393
394 2003-10-26 Graham Stott <graham.stott@btinternet.com>
395
396 Fix bootstrap failure.
397 * expmed.c (store_bit_field): Don't compare bitsize against
398 modes with zero bit-size.
399
400 (extract_bit_field): Likewise
401
402 2003-10-25 Jan Hubicka <jh@suse.cz>
403
404 * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
405 (cfa_loc): Likewise.
406 (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
407 HOST_WIDE_INT.
408 (args_size, old_args_size): change type to HOST_WIDE_INT.
409 (dwarf2out_def_cfa, dwarf2out_args_size,
410 dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
411 (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
412 (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
413 AT_offset): Use HOST_WIDE_INT.
414 (based_loc_descr): offset is HOST_WIDE_INT.
415 (add_data_member): Likewise.
416 (add_const_value_attribute): Simplify.
417
418 2003-10-25 Richard Henderson <rth@redhat.com>
419
420 * config/i386/i386.c (ix86_eax_live_at_start_p): New.
421 (ix86_expand_prologue): Save and restore eax around stack probe
422 if it's live.
423
424 2003-10-25 Jan Hubicka <jh@suse.cz>
425
426 * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
427
428 2003-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
429
430 PR target/12712
431 * reg-stack.c (convert_regs_1): Create an arbitrary input stack
432 if the block has no predecessors.
433 (convert_regs_2): Document the problem with successors whose
434 only predecessor is the block to be processed.
435 (convert_regs): Don't create the arbitrary input stack here.
436
437 2003-10-24 Zack Weinberg <zack@codesourcery.com>
438
439 * genmodes.c (struct mode_data): Add contained and next_cont
440 fields.
441 (complete_mode): Maintain linked list of modes that have a
442 given component.
443 (emit_mode_unit_size): Delete.
444 (emit_mode_nunits): New.
445 (emit_insn_modes_c): Update to match.
446 (emit_mode_adjustments): Propagate size and alignment
447 adjustments from component modes to their containers.
448 * machmode.h (mode_unit_size): Delete.
449 (mode_nunits): New.
450 (GET_MODE_NUNITS): Just return the value in the table.
451 (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
452 GET_MODE_SIZE.
453 * expmed.c (store_bit_field, extract_bit_field): Can use a
454 plain move instruction if bitsize >= GET_MODE_BITSIZE of
455 destination/source mode, respectively.
456 * varasm.c (assemble_real): Write out the full size of the
457 constant, not just its bitsize.
458 (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
459
460 * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
461 Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
462 alignment of XF and TF modes in compliance with ia64 ABIs.
463 Can now hardwire the format of both modes.
464 * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
465 (general_tfmode_operand, destination_tfmode_operand)
466 (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
467 general_xfmode_operand, destination_xfmode_operand,
468 xfreg_or_fp01_operand, spill_xfmode_operand respectively.
469 (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
470 and float80_type be 96 so they get XFmode. Use !TARGET_HPUX,
471 not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
472 __float128.
473 * config/ia64/ia64.h: Default TARGET_HPUX to 0.
474 Change TFmode to XFmode wherever appropriate. Remove all
475 references to INTEL_EXTENDED_IEEE_FORMAT.
476 (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
477 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
478 (PREDICATE_CODES): Update to match function renames.
479 * config/ia64/ia64.md: Change TF to XF throughout; rename all
480 patterns to match. Remove all references to
481 INTEL_EXTENDED_IEEE_FORMAT. Update predicate calls to match
482 function renames.
483 * config/ia64/ia64-protos.c: Update all prototypes to match
484 renamed functions.
485 * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
486 Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
487 * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
488 __divtf3; keep old name for backward compatibility.
489 (L__compat): New section providing forwarding stubs for
490 __fixtfti, __fixunstfti, __floattitf.
491 * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
492
493 2003-10-24 Geoffrey Keating <geoffk@apple.com>
494
495 PR 10757
496 * c-pch.c: Include target.h. Improve comments.
497 (struct c_pch_validity): Add target_data_length.
498 (pch_init): Add target's validity data.
499 (c_common_valid_pch): Check target's validity data.
500 * target-def.h (TARGET_GET_PCH_VALIDITY): New.
501 (TARGET_PCH_VALID_P): New.
502 (TARGET_INITIALIZER): Add new fields.
503 * target.h: Include tm.h.
504 (struct gcc_target): Add get_pch_validity, pch_valid_p.
505 * toplev.h (default_get_pch_validity): New prototype.
506 (default_pch_valid_p): New prototype.
507 * toplev.c (default_get_pch_validity): New routine.
508 (default_pch_valid_p): New routine.
509 * Makefile.in (TARGET_H): Add TM_H. Replace all users of
510 target.h with $(TARGET_H).
511 (c-pch.o): Add TARGET_H.
512 * doc/tm.texi (PCH Target): New node.
513 (TARGET_GET_PCH_VALIDITY): Document.
514 (TARGET_PCH_VALID_P): Document.
515
516 2003-10-24 Kelley Cook <kcook@gcc.gnu.org>
517
518 * Makefile.in: Define a vpath for %.texi. Remove explicit $(docdir)
519 and $(docdir)/include from any *.texi dependencies.
520 ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
521 ($(docobjdir)/%.1): Depend on .pod instead of .texi.
522 ($(docobjdir)/%.7): Likewise.
523 (%.pod): New implicit rule.
524 (cpp.pod): New dependency only rule.
525 (gcc.pod): New intermediate rule with dependencies and commands.
526 (gfdl.pod): Likewise.
527 (fsf-funding.pod): Likewise.
528
529 2003-10-24 Nathanael Nerode <neroden@gcc.gnu.org>
530
531 * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
532 related code.
533 * fixinc/fixinc.ptx: Remove.
534 * fixinc/fixinc.svr4: Remove.
535
536 2003-10-24 Ulrich Weigand <uweigand@de.ibm.com>
537
538 * config/s390/s390.c (load_multiple_operation): Allow both SImode
539 and DImode if word_mode is DImode.
540 (store_multiple_operation): Likewise.
541 * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
542 ("*load_multiple_di"): Allow only if word_mode == DImode.
543 ("movqi"): Use LLGC whenever TARGET_ZARCH.
544 ("fix_truncdfsi2"): Fix incorrect temporary size.
545 ("fix_truncsfsi2"): Likewise.
546 ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
547 string for function return value operand.
548 ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
549
550 2003-10-24 Joseph S. Myers <jsm@polyomino.org.uk>
551
552 * c-parse.in (array_declarator): Use expr_no_commas.
553 Fixes PR c/11943.
554
555 2003-10-24 Richard Sandiford <rsandifo@redhat.com>
556
557 * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
558 associated includes in #ifndef inhibit_libc.
559
560 2003-10-24 Roger Sayle <roger@eyesopen.com>
561
562 * doc/libgcc.texi: Document some more of the libgcc API.
563
564 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
565
566 * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
567 comparing a constant with small negative numbers and add costing
568 for constants in conjunction with AND.
569 (note_invalid_constants): Tidy previous change.
570 (thumb_cmp_operand): Tidy.
571 (thumb_cmpneg_operand): New function.
572 * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
573 for size.
574 (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
575 (PREDICATE_CODES): Add thumb_cmpneg_operand.
576 * arm.md (cbranchsi4): Convert to define_expand. Handle comparison
577 with a negative constant.
578 (cbranchsi4_insn): Matcher for cbranchsi4.
579 (cbranchsi4_scratch): Similar, but a scratch is available for
580 handling negative constants.
581 (movsi_cbranchsi4): New pattern.
582 (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
583 and use the TST instruction.
584 (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
585 (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
586 cannot see high regs or memory alternatives.
587 (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
588
589 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
590
591 * arm.c (note_invalid_constants): Try to extract the constant
592 pool value using avoid_constant_pool_reference; only use
593 get_pool_constant if that returns the original reference.
594
595 2003-10-24 Jan Hubicka <jh@suse.cz>
596
597 PR c++/12624
598 * varasm.c (notice_global_symbol): Disqualify global registers.
599
600 2003-10-23 Roger Sayle <roger@eyesopen.com>
601
602 PR middle-end/11414
603 * loop.c (load_mems): Use redirect_jump to forward jumps from
604 the original loop end label to the new "loop sink" block's label.
605
606 2003-10-23 Roger Sayle <roger@eyesopen.com>
607
608 PR middle-end/12705
609 * optabs.c (expand_binop): When expanding complex operations
610 inline, always calculate result into a new temporary register.
611 Minor code clean-ups.
612
613 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
614
615 * objc/lang-specs.h: Handle -print-objc-runtime-info.
616 * doc/invoke.texi (Objective-C Dialect Options): Document it.
617
618 2003-10-24 Danny Smith <dannysmith@users.sourceforge.net>
619
620 * config/i386/cygwin.asm. Add copyright notice. Add comment
621 on why this code is needed.
622
623 2003-10-23 Kazu Hirata <kazu@cs.umass.edu>
624
625 * config/h8300/clzhi2.c: Fix warnings.
626 * config/h8300/ctzhi2.c: Likewise.
627 * config/h8300/fixunssfsi.c: Likewise.
628 * config/h8300/parityhi2.c: Likewise.
629 * config/h8300/popcounthi2.c: Likewise.
630
631 2003-10-23 James E Wilson <wilson@specifixinc.com>
632
633 * gcc.c (option_map): Delete --target and --use-version.
634
635 2003-10-23 Fariborz Jahanian <fjahanian@apple.com>
636 David Edelsohn <edelsohn@gnu.org>
637
638 * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
639 TARGET_POWREPC64.
640 (UNITS_PER_GPR_WORD): Define.
641 (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
642 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
643 (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
644 (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
645 * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
646 DFmode and DImode in 32-bit ABI / 64-bit computation mode.
647 (rs6000_emit_prologue): Select reg_mode and reg_size using
648 TARGET_32BIT, not TARGET_POWERPC64.
649 (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
650 ABI / 64-bit computation mode
651
652 2003-10-22 Andrew Haley <aph@redhat.com>
653
654 * toplev.c (output_file_directive): Allow for null input_name.
655
656 2003-10-22 Waldek Hebisch <hebisch@math.uni.wroc.pl>
657
658 * config/i386/i386.c (classify_argument): Handle SET_TYPE.
659
660 2003-10-22 Chris Demetriou <cgd@broadcom.com>
661
662 * configure.in: In --enable-generated-files-in-srcdir option
663 handling, fix default case handling.
664 * configure: Regenerate.
665
666 2003-10-22 Phil Edwards <phil@codesourcery.com>
667
668 * config.gcc: Update *-*-vxworks* generic hook and comments.
669 (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
670 mips-wrs-windiss, sh-wrs-vxworks): New stanzas.
671 * genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly.
672 * config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it.
673 * config/windiss.h: New file.
674 * config/arm/t-vxworks: New file.
675 * config/arm/vxworks.h: New file.
676 * config/i386/t-vxworks: New file.
677 * config/i386/vxworks.h: New file.
678 * config/mips/t-vxworks: New file.
679 * config/mips/vxworks.h: New file.
680 * config/mips/windiss.h: New file.
681 * config/sh/t-vxworks: New file.
682 * config/sh/vxworks.h: New file.
683
684 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
685
686 * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
687 (h8300_saveall_function_p): New.
688 (h8300_insert_attributes): Insert the saveall attribute if
689 #pragma saveall is specified.
690 (h8300_attribute_table): Add saveall.
691 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
692 * doc/extend.texi: Mention the saveall attribute.
693
694 2003-10-22 Joseph S. Myers <jsm@polyomino.org.uk>
695
696 * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
697 deprecation of casts as lvalues.
698 * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
699 * fixinc/fixincl.x: Regenerate.
700 * fixinc/tests/base/obstack.h: New test.
701
702 2003-10-22 Andreas Schwab <schwab@suse.de>
703
704 PR target/12676
705 * config/m68k/m68k.c (output_addsi3): Fix range check to work on
706 LP64 platforms.
707
708 2003-10-22 Jan Hubicka <jh@suse.cz>
709
710 * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
711 presence of DW_AT_inline.
712 (gen_subprogram_die): Likewise; do not abort instead of emitting
713 DW_AT_not_inline.
714
715 2003-10-22 Jan Hubicka <jh@suse.cz>
716
717 * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
718 global info is not ready.
719
720 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
721
722 * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
723
724 2003-10-22 Ulrich Weigand <uweigand@de.ibm.com>
725
726 * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
727 ("*movstr_short"): ... into this insn pattern.
728 ("movstr_short"): New expander.
729 ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
730 ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
731 ("movstr_long"): New expander.
732 ("clrstr_short_64", "clrstr_short_31"): Merge ...
733 ("*clrstr_short"): ... into this insn pattern.
734 ("clrstr_short"): New expander.
735 ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
736 ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
737 ("clrstr_long"): New expander.
738 ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
739 ("*cmpmem_short"): ... into this insn pattern.
740 ("cmpmem_short"): New expander.
741 ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
742 ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
743 ("cmpmem_long"): New expander.
744 * config/s390/s390.c (s390_expand_movstr): Use new expanders.
745 (s390_expand_clrstr): Likewise.
746 (s390_expand_cmpmem): Likewise.
747
748 2003-10-22 Mark Mitchell <mark@codesourcery.com>
749
750 * c-pch.c (struct c_pch_validity): Add pch_init field.
751 (pch_init): Set it.
752 (c_common_valid_pch): Check it.
753
754 2003-10-22 David Taylor <dtaylor@emc.com>
755
756 PR debug/12500
757 * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
758
759 2003-10-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
760
761 * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
762 alpha_return_in_memory if no VALTYPE specified.
763
764 2003-10-22 Jan Hubicka <jh@suse.cz>
765
766 PR debug/12389
767 * Makefile.in (dwarf2out.o): Depend on cgraph.h.
768 * cgraph.c (cgraph_function_possibly_inlined_p): New function.
769 * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
770 (cgraph_global_info): Add flag inlined
771 * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
772 cgraph_function_possibly_inded_p
773 * cgraphunit.c (mark_inline): Set inlined flag.
774 * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
775 only for possibly inlined functions.
776 * c-decl.c (duplicate_decls): Never output abstract DIE representing old
777 body of function.
778
779 2003-10-22 Andrew Haley <aph@redhat.com>
780
781 * varasm.c (output_constructor): Make constructor annotation
782 conditional on ASM_COMMENT_START.
783
784 2003-10-21 Jason Merrill <jason@redhat.com>
785
786 * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
787 (get_narrower): Likewise.
788
789 * stor-layout.c (layout_decl): Do packed field alignment for
790 bit-fields, too.
791
792 2003-10-21 Eric Christopher <echristo@redhat.com>
793
794 * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
795
796 2003-10-21 Geoffrey Keating <geoffk@apple.com>
797
798 * c-pch.c: Add comments in various places.
799 (struct c_pch_validity): Add the lengths of various strings.
800 (host_machine): New static.
801 (target_machine): New static.
802 (get_ident): Bump version number.
803 (pch_init): Write out version, host, target validity data.
804 (c_common_valid_pch): Check version, host, target.
805 * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
806 TARGET_MACHINE.
807
808 2003-10-21 Jason Merrill <jason@redhat.com>
809
810 * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
811 (EXPR_P): New macro.
812
813 2003-10-21 Zack Weinberg <zack@codesourcery.com>
814
815 * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
816 * config/ia64/ia64.c (ia64_expand_fetch_and_op,
817 ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
818 DImode. Use convert_move to load ar.ccv.
819 (ia64_expand_compare_and_swap): Likewise.
820 If expand_expr doesn't put 'old' and 'new' in the proper
821 modes, run them through convert_to_mode.
822
823 2003-10-21 Eric Christopher <echristo@redhat.com>
824
825 * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
826 for too large bitfields.
827
828 2003-10-21 Mark Mitchell <mark@codesourcery.com>
829
830 * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
831
832 2003-10-21 Andrew Haley <aph@redhat.com>
833
834 * varasm.c (output_constructor): Annotate constructor.
835
836 2003-10-21 Mark Mitchell <mark@codesourcery.com>
837
838 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
839 on existence of destination file.
840
841 2003-10-21 Jan Hubicka <jh@suse.cz>
842
843 * haifa-sched.c (choose_ready): Initialize index.
844
845 2003-10-21 Jason Merrill <jason@redhat.com>
846
847 * tree.c (build1): Fix off-by-one error.
848
849 2003-10-21 Robert Millan <robertmh@gnu.org>
850
851 * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
852 * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
853 * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
854 * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
855
856 2003-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
857
858 * web.c: Fix various comments.
859
860 2003-10-20 Nicolas Pitre <nico@cam.org>
861
862 * config/arm/arm.c (arm_override_options): Set arm_constant_limit
863 to 2 instead of 1 when optimize_size is true. Gather code based on
864 optimize_size together. Add comment about XScale load latency.
865
866 2003-10-21 Gunther Nikl <gni@gecko.de>
867
868 * config/m68k/m68k.c (m68k_output_function_prologue): Remove
869 obsolete comments.
870
871 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
872
873 * Makefile.in: Get parsedir and docobjdir from configure.
874 * configure.in: Recogonize --enable-generated-files-in-srcdir.
875 Pass along parsedir and docobjdir.
876 * configure: Regenerate.
877 * doc/install.texi: Document --enable-generated-files-in-srcdir.
878
879 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
880
881 * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
882 included.
883
884 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
885
886 * c-common.c (expand_tree_builtin): Ensure creal and cimag
887 functions do not return lvalues.
888
889 2003-10-20 Jason Merrill <jason@redhat.com>
890
891 PR c/12553
892 * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
893 appropriately.
894
895 PR c/11446
896 * stor-layout.c (layout_decl): Fix alignment handling.
897
898 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
899
900 * doc/extend.texi: Deprecate casts as lvalues.
901
902 2003-10-20 Jan Hubicka <jh@suse.cz>
903
904 * toplev.c (rest_of_compilation): Fix webizer pass ordering.
905
906 * cgraphunit.c (decide_is_function_needed): Fix test dealing
907 with functions implicitly made inline.
908
909 * cgraphunit.c (cgraph_decide_inlining_incrementally): New function.
910 (cgraph_finalize_function): Use it.
911 (cgraph_mark_inline): Allow incrmental decisions
912 * invoke.texi (max-inline-slope, min-inline-insns): Kill.
913 * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
914 * tree-inline.c (limits_allow_inlining): Kill.
915 (expand_call_inline): Always use unit-at-a-time path.
916
917 2003-10-20 Zack Weinberg <zack@codesourcery.com>
918
919 * fixinc/inclhack.def (hpux11_snprintf): New edit.
920 * fixinc/fixincl.x: Regenerate.
921 * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
922
923 2003-10-20 Mark Mitchell <mark@codesourcery.com>
924
925 * Makefile.in (install-info): Simplify.
926 ($(DESTDIR)$(infodir)/%.info): New rule.
927 * configure.in (target_list): Remove install-info.
928 * doc/.cvsignore (gcc.info*): Remove.
929 (gccint.info*): Likewise.
930 (gccinstall.info*): Likewise.
931 (cpp.info*): Likewise.
932 (cppinternals.info*): Likewise.
933 (*.info*): Add it.
934 * doc/sourcebuild.texi: Update description of install-info.
935 * objc/Make-lang.in (objc.install-info): Remove.
936
937 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
938
939 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
940 Use it in _MIPS_SIM definition.
941 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
942
943 2003-10-20 Zack Weinberg <zack@codesourcery.com>
944
945 * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
946 virtual register, but only if file == asm_out_file.
947 * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
948 for ARG_POINTER_REGNUM.
949
950 2003-10-20 Zack Weinberg <zack@codesourcery.com>
951
952 * c-common.c (registered_builtin_types): New static.
953 (c_common_type_for_mode): Consult registered_builtin_types.
954 (c_register_builtin_type): Add type to registered_builtin_types.
955 * optabs.c (init_floating_libfuncs): Initialize libfuncs for
956 all MODE_FLOAT modes, not just the ones corresponding to
957 float_type_node, double_type_node, and long_double_type_node.
958
959 2003-10-20 Richard Henderson <rth@redhat.com>
960
961 * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
962 * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
963
964 2003-10-20 Dorit Naishlos <dorit@il.ibm.com>
965
966 * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
967 support new flag -minsert-sched-nops.
968 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
969 * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
970 support new flag -minsert-sched-nops.
971 (is_cracked_insn, is_microcoded_insn): New functions.
972 (rs6000_sched_finish): New function.
973 (rs6000_issue_rate): Return 5 for power4.
974 (get_next_active_insn, insn_terminates_group_p): New
975 functions.
976 (is_costly_group, force_new_group): New functions.
977 (redefine_groups, pad_groups): New functions.
978 (rs6000_variable_issue): Use new functions.
979 * doc/invoke.texi (-minsert-sched-nops): Document new
980 option.
981
982 2003-10-20 David S. Miller <davem@redhat.com>
983
984 * config/sparc/sparc.md (type attribute): Add new insn types
985 fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
986 (patterns emitting VIS insns): Use them.
987 * config/sparc/ultra1_2.md: Add VIS scheduling rules.
988 * config/sparc/ultra3.md: Likewise.
989
990 2003-10-20 Falk Hueffner <falk@debian.org>
991
992 PR target/12654
993 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
994 comparison against constant by adjusting the argument except for
995 EQ and NE.
996
997 2003-10-19 Mark Mitchell <mark@codesourcery.com>
998
999 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
1000 arm1136jfs, and armv6j.
1001 * config/arm/arm.c (FL_ARCH6J): New macro.
1002 (FL_VFPV2): Likewise.
1003 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
1004 and arm1136jfs.
1005 (all_architectures): Add entry for armv6j.
1006 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
1007 arm1136js, and arm1136jfs.
1008 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
1009 (TARGET_CPU_arm1026ej_s): Likewise.
1010 (TARGET_CPU_arm1136j_s): Likewise.
1011 (TARGET_CPU_arm1136jf_s): Likewise.
1012 * doc/invoke.texi: Document new ARM cores and architecture
1013 variants.
1014
1015 2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1016
1017 * Makefile.in (toplev.o): Add value-prof.h dependency.
1018 (value-prof.o): Add REGS_H dependency.
1019 * common.opt (fprofile-values, fvpt): New.
1020 * flags.h (flag_value_profile_transformations): Declare.
1021 * opts.c (common_handle_option): Handle -fprofile_values and
1022 -fvpt.
1023 * profile.c (branch_prob): Don't remove death notes here.
1024 * timevar.def (TV_VPT): New.
1025 * value-prof.c: Include regs.h.
1026 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
1027 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
1028 mod_subtract_transform, value_profile_transformations): New.
1029 (insn_values_to_profile): Call insn_divmod_values_to_profile.
1030 (find_values_to_profile): Add dumps.
1031 * value-prof.h (value_profile_transformations): Declare.
1032 * toplev.c: Include value-prof.h.
1033 (rest_of_handle_value_profile_transformations): New.
1034 (enum dump_file_index): Add DFI_vpt.
1035 (dump_file): Add vpt dump.
1036 (flag_value_profile_transformations): New.
1037 (lang_independent_options): Add flag_profile_values and
1038 flag_value_profile_transformations.
1039 (rest_of_compilation): Call
1040 rest_of_handle_value_profile_transformations.
1041 (process_options): Let -fvpt imply -fprofile-values.
1042 * doc/invoke.texi (-fvpt): Document.
1043
1044 2003-10-19 Jan Hubicka <jh@suse.cz>
1045
1046 * i386.c (print_reg): Do not abort on certain registers.
1047
1048 PR optimization/12612
1049 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
1050 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
1051 match_scratch; avoid bogus paralles.
1052
1053 PR target/12674
1054 * i386.c (ix86_function_regparm): Disable implicit register passing
1055 conventions when profiling.
1056
1057 2003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
1058 Richard Henderson <rth@redhat.com>
1059
1060 PR optimization/8178
1061 * config/i386/i386.md (*movsi_zero): Delete.
1062 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
1063
1064 2003-10-19 Richard Henderson <rth@redhat.com>
1065
1066 * config/alpha/alpha.c (fix_operator): New.
1067 (divmod_operator): Tidy.
1068 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
1069 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
1070 (PREDICATE_CODES): Update.
1071 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
1072 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
1073 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
1074 (fix_truncsfdi_ieee): Likewise.
1075 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
1076 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
1077 * config/alpha/alpha-protos.h: Update.
1078
1079 2003-10-19 Richard Sandiford <rsandifo@redhat.com>
1080
1081 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
1082 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
1083 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
1084 constant operands.
1085
1086 2003-10-18 Kazu Hirata <kazu@cs.umass.edu>
1087
1088 * doc/extend.texi: Fix typos.
1089 * doc/invoke.texi: Likewise.
1090
1091 2003-10-18 Nicolas Pitre <nico@cam.org>
1092
1093 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
1094 XScale optimizations not arm_arch_xscale.
1095 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
1096
1097 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
1098
1099 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
1100 * config/s390/s390.c (shift_count_operand): New function.
1101 (s390_extra_constraint): Use it to implement 'Y' constraint.
1102 (print_shift_count_operand): New function.
1103 (print_operand): Use it to implement '%Y'.
1104 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
1105 (PREDICATE_CODES): Add shift_count_operand.
1106 * config/s390/s390.md ("rotldi3"): Merge alternatives,
1107 using "shift_count_operand" predicate and "Y" constraint,
1108 and "%Y" to output the combined shift count.
1109 ("rotlsi3"): Likewise.
1110 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
1111 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
1112 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
1113 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
1114 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
1115 ("lshrsi3"): Likewise.
1116
1117 2003-10-18 Gunther Nikl <gni@gecko.de>
1118
1119 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
1120 argument to asm_fprintf statement.
1121
1122 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
1123
1124 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
1125 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
1126 a "long long" argument.
1127
1128 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
1129
1130 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
1131 as well.
1132
1133 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
1134
1135 * rtl.h (rtl_size): Declare.
1136 (rtunion): Remove rtwint.
1137 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
1138 (RTX_HDR_SIZE, RTX_SIZE): New macros.
1139 (RTL_CHECK1): Adjust for new rtx_def layout.
1140 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
1141 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
1142 (X0WINT): Remove.
1143 (X0ANY): New macro.
1144 * rtl.def: Adjust comments for new rtx_def layout.
1145 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
1146 number of slots.
1147 * rtl.c (rtx_size): New array.
1148 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
1149 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
1150 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
1151 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
1152 * emit-rtl.c (copy_most_rtx): Likewise.
1153 (copy_rtx_if_shared): Use RTX_SIZE.
1154 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
1155 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
1156 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
1157 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
1158 an array. Adjust output for new rtx_def layout.
1159 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
1160 * reload1.c (eliminate_regs): Use RTX_SIZE.
1161 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
1162 * gdbinit.in (pi): Likewise.
1163
1164 2003-10-18 Jan Hubicka <jh@suse.cz>
1165
1166 * integrate.c (copy_decl_for_inlining): Revert previous patch.
1167
1168 2003-10-18 Jan Hubicka <jh@suse.cz>
1169
1170 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
1171
1172 2003-10-18 Roger Sayle <roger@eyesopen.com>
1173
1174 * libgcc.texi: Group multi-word types, such as "long double" and
1175 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
1176 Document __unord?f2 as returning a non-zero value, not just one.
1177
1178 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
1179
1180 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
1181 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
1182
1183 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1184
1185 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
1186 match_operand.
1187
1188 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1189
1190 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
1191 parameter packed_p. Search for a DECL_PACKED field only if
1192 packed_p is false. Pass packed_p recursively.
1193 (function_arg_record_value_2): Likewise.
1194 (function_arg_record_value): Update calls to
1195 function_arg_record_value_1 and function_arg_record_value_2.
1196
1197 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1198
1199 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
1200 was successfully forced to memory before using the result.
1201
1202 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1203
1204 PR optimization/8178
1205 * config/i386/i386.md (*movsi_zero): New insn to set
1206 a register to zero on TARGET_USE_MOV0 targets.
1207
1208 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
1209
1210 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
1211 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
1212
1213 2003-10-17 David Edelsohn <edelsohn@gnu.org>
1214
1215 * doc/invoke.texi (gcse-las): Fix typo.
1216
1217 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
1218
1219 * doc/install.texi: Remove first part of the sentence for
1220 zsh not working. Change gcc to GCC.
1221
1222 PR bootstrap/12546
1223 * doc/install.texi: Document that zsh does not work when
1224 configuring gcc.
1225
1226 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
1227
1228 * config/ptx4.h: Switch to DWARF 2; update comments.
1229
1230 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
1231 Hartmut Penner <hpenner@de.ibm.com>
1232
1233 PR 10404, partial 11591, partial 11601
1234 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
1235 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
1236 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
1237 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
1238 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
1239 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
1240 (altivec_expand_stv_builtin): Adjust for the memory_operand.
1241 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
1242 (altivec_init_builtins): Use `long int' for memory offsets.
1243
1244 2003-10-17 Jan Hubicka <jh@suse.cz>
1245
1246 * opts.c (common_handle_option): Handle OPT_fweb
1247 * invoke.texi (-fweb): Add missing parts of documentation.
1248
1249 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1250
1251 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
1252 before redefinition.
1253
1254 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
1255
1256 * common.opt: Add description of the new -fgcse-las flag.
1257 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
1258 * gcse.c (hash_scan_set): Handle the case of store expression and
1259 insert the memory expression to the hash table, this way we make it
1260 possible to discover redundant loads after stores and remove them.
1261 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
1262 to pre_insert_copies, it is not the correct place to call it after
1263 adding stores to be in the available expression hash table.
1264 (pre_insert_copies): Added the call to update_ld_motion_stores when
1265 one or more copies were inserted.
1266 * opts.c (common_handle_option): Handle the -fgcse-las flag.
1267 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
1268
1269 * doc/invoke.tex: Document new -fgcse-las flag.
1270
1271 2003-10-18 Alan Modra <amodra@bigpond.net.au>
1272
1273 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
1274 for posterity, then remove it.
1275
1276 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
1277 Nathan Sidwell <nathan@codesourcery.com>
1278
1279 * config/arm/arm.c (use_return_insn): Not a single instruction, if
1280 there's a frame pointer.
1281 (arm_output_epilogue): Protect stack pointer from being corrupted
1282 on interrupt.
1283
1284 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
1285
1286 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
1287
1288 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
1289
1290 * combine.c (simplify_set): Do not clear out undobuf.other_insn
1291 already set elsewhere.
1292
1293 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
1294
1295 * config/i386/i386.c (ix86_expand_prologue): Use
1296 gen_allocate_stack_worker.
1297
1298 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1299
1300 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
1301 without gas.
1302 (mips-sgi-irix6*): Likewise.
1303
1304 * config/mips/iris6gas.h: New file.
1305 * gcc/config.gcc (mips-sgi-irix6*): Use it.
1306
1307 * config/mips/mips.h (TARGET_IRIX): Provide default.
1308 (TARGET_IRIX5): Likewise.
1309 (TARGET_SGI_O32_AS): Likewise.
1310 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
1311 (TARGET_IRIX5): Likewise.
1312 * config/mips/iris6.h (TARGET_IRIX6): Remove.
1313 (TARGET_IRIX5): Redefine as 0.
1314
1315 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
1316 linker workaround with TARGET_IRIX and mips_abi instead of
1317 ASM_OUTPUT_UNDEF_FUNCTION.
1318 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
1319 testing TARGET_IRIX and mips_abi explicitly.
1320 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
1321 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
1322
1323 * config/mips/mips.c (irix_output_external_libcall): Renamed from
1324 mips_output_external_libcall.
1325 Use new TARGET_IRIX in guard.
1326 * config/mips/mips-protos.h (irix_output_external_libcall): Match
1327 this.
1328 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
1329
1330 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
1331 Define as 0.
1332
1333 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
1334 depending on mips_abi.
1335 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
1336 * config/mips/mips.c (mips_output_function_prologue): Test
1337 FUNCTION_NAME_ALREADY_DECLARED at runtime.
1338 (mips_output_function_epilogue): Likewise.
1339 (build_mips16_function_stub): Likewise.
1340 (build_mips16_call_stub): Likewise.
1341 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
1342 default.
1343
1344 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
1345 IRIX 6 O32 assembler.
1346 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
1347 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
1348 _MIPS_SIM for O32 ABI.
1349 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
1350 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
1351 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
1352 Integrate O32 version.
1353 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
1354 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
1355 O32 ABI.
1356 (BSS_SECTION_ASM_OP_32): Define.
1357 (BSS_SECTION_ASM_OP_64): Likewise.
1358 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
1359 using them.
1360 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
1361 Move up to allow override for O32 ABI without GNU as.
1362 (EH_FRAME_SECTION_NAME): Define explicitly.
1363 (MUST_USE_SJLJ_EXCEPTIONS): Define.
1364 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
1365 DTORS_SECTION_ASM_OP): Dummy definitions.
1366 (TARGET_ASM_NAMED_SECTION): Undef statically.
1367 (EH_FRAME_SECTION_NAME): Likewise.
1368 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
1369 (LINK_SPEC): Only use default options -call_shared -no_unresolved
1370 without -r.
1371 Don't pass -init, -fini with -mabi=32.
1372 (COLLECT_PARSE_FLAG): Define.
1373
1374 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
1375 TARGET_IRIX.
1376 Renamed to use irix_ prefix.
1377 (iris6_asm_named_section): Likewise.
1378 (iris_section_align_entry_eq): Likewise.
1379 (iris_section_align_entry_hash): Likewise.
1380 (iris6_file_start): Likewise.
1381 (iris6_section_align_1): Likewise.
1382 (iris6_file_end): Likewise.
1383 (iris6_section_type_flags): Likewise.
1384 (iris_section_align_htab): Likewise.
1385 (iris_orig_asm_out_file): Likewise.
1386 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
1387 (TARGET_ASM_FILE_END): Likewise.
1388 (TARGET_SECTION_TYPE_FLAGS): Likewise.
1389
1390 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
1391 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
1392 override_options instead.
1393 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
1394 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
1395 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
1396 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
1397 assemblers.
1398 Likewise for constructor/destructor handling.
1399 (override_options): Handle IRIX O32 assembler quirks.
1400 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
1401 without gas.
1402 (mips_file_start): Use new TARGET_IRIX.
1403 (mips_declare_object_name): No special processing for IRIX O32
1404 assembler.
1405 (mips_finish_declare_object): Likewise.
1406 (irix_asm_output_align): Renamed from iris6_asm_output_align.
1407 Don't record alignment for O32 ABI.
1408 (irix_file_start): Renamed from iris6_file_start.
1409 Return early for O32 ABI.
1410 (irix_file_end): Renamed from iris6_file_end.
1411 Don't emit .section directives for O32 ABI.
1412 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
1413 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
1414
1415 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
1416 (MULTILIB_OSDIRNAMES): Likewise.
1417
1418 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1419
1420 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
1421 (main): Use it.
1422 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
1423
1424 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
1425
1426 * arm-modes.def (CC_Nmode): New condition code mode.
1427 * arm.c (thumb_condition_code): Delete.
1428 (arm_select_cc_mode): Handle single-bit test for Thumb.
1429 (arm_print_operand, cases 'd' and 'D'): Don't special case the
1430 condition code logic for Thumb.
1431 (get_arm_condition_code): Handle CC_Nmode.
1432 (thumb_cbrch_target_operand): New function.
1433 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
1434 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
1435 * arm.md: Add Thumb split patterns for zero_extract and
1436 sign_extract.
1437 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
1438 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
1439 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
1440 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
1441 (cbranchne_decr1): Re-work to use CC_Nmode.
1442
1443 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
1444 by the return instruction. Add a use of the link register if it
1445 wasn't stored.
1446
1447 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
1448
1449 * flow.c (init_propagate_block_info): Don't abort if a conditional
1450 jump is not a comparison of a register. Instead, just don't record
1451 conditional life information.
1452
1453 2003-10-16 Jan Hubicka <jh@suse.cz>
1454
1455 PR optimization/12630
1456 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
1457 for operands 7 and 8.
1458
1459 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
1460
1461 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
1462
1463 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
1464
1465 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
1466
1467 * config/i386/winnt.c (gen_stdcall_suffix): Make static
1468 (gen_fastcall_suffix): Likewise.
1469 (i386_pe_dllexport_p): Likewise.
1470 (i386_pe_dllimport_p): Likewise.
1471 (i386_pe_mark_dllexport): Likewise.
1472 (i386_pe_mark_dllimport): Likewise.
1473 (i386_pe_asm_named_section): Fix formatting.
1474
1475 2003-10-16 Zack Weinberg <zack@codesourcery.com>
1476
1477 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
1478 * system.h: Declare snprintf if necessary.
1479 * configure, config.in: Regenerate.
1480
1481 2003-10-15 David Edelsohn <edelsohn@gnu.org>
1482
1483 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
1484 arguments if TARGET_ALTIVEC_ABI.
1485
1486 2003-10-15 Roger Sayle <roger@eyesopen.com>
1487
1488 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
1489 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
1490 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
1491 New functions.
1492 (expand_builtin_memcpy): Use integer_zerop instead of testing
1493 host_integerp and tree_low_cst directly. Move misapplied hunk
1494 for optimization wher SRC and DEST point to the same location.
1495 (expand_builtin_mempcpy): From here.
1496 (expand_builtin_memmove): Use integer_zerop instead of testing
1497 host_integerp and tree_low_cst_directly.
1498 (expand_builtin_memset): Likewise.
1499 (expand_builtin_memcmp): Likewise (and for integer_onep).
1500 (expand_builtin_strncmp): Likewise.
1501 (fold_builtin): Call the appropriate fold_builtin_foo functions
1502 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
1503 strcmp and strncmp.
1504
1505 2003-10-15 Geoffrey Keating <geoffk@apple.com>
1506
1507 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
1508 prototype. Clean up some whitespace.
1509 * config/darwin.c: Use gen_rtx_FOO (...) rather than
1510 gen_rtx (FOO, ...).
1511 (machopic_non_lazy_ptr_name): Make static.
1512 (name_needs_quotes): Allow '.' and '$' unquoted.
1513 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
1514 case.
1515
1516 2003-10-15 Gábor Lóki <alga@rgai.hu>
1517
1518 * fold-const.c (tree_swap_operands_p): Disable some features
1519 when optimizing for size.
1520
1521 2003-10-15 David Daney <ddaney@avtrex.com>
1522
1523 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
1524 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
1525 from leaf functions.
1526 (DWARF_FRAME_RETURN_COLUMN): Ditto.
1527 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
1528 by MD_FALLBACK_FRAME_STATE_FOR.
1529 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
1530
1531 2003-10-15 Zack Weinberg <zack@codesourcery.com>
1532
1533 * genmodes.c: Include hashtab.h.
1534 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
1535 (adj_bytesize, adj_alignment, adj_format, new_adjust)
1536 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
1537 (print_maybe_const_decl, emit_mode_adjustments): New.
1538 (known_modes): Rename to modes.
1539 (find_mode): Kill class argument; look up in hash table.
1540 (new_mode): Insert into hash table also.
1541 (new_adjust): New.
1542 (reset_float_format, make_partial_integer_mode)
1543 (make_vector_mode): Tweak error reporting.
1544 (reset_float_format): Correct type of fourth argument.
1545 (emit_insn_modes_h): Add #defines to help make mode_size,
1546 mode_base_align, and real_format_for_mode conditionally const.
1547 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
1548 (emit_real_format_for_mode): Likewise, but temporarily disabled.
1549 (emit_insn_modes_c): Call emit_mode_adjustments.
1550 (main): Initialize modes_by_name.
1551 * Makefile.in: Update dependencies.
1552 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
1553 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
1554 declarations of mode_size and mode_base_align. Declare
1555 init_adjust_machine_modes.
1556 * toplev.c (backend_init): Call init_adjust_machine_modes.
1557
1558 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
1559
1560 * genmodes.c (calc_wider_mode): Allocate enough room for all the
1561 entries we'll possibly assign in the sort buffer.
1562
1563 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
1564
1565 * config.gcc (s390x-ibm-tpf*): New target.
1566 * doc/install.texi: Document it.
1567 * config/s390/t-tpf: New file.
1568 * config/s390/tpf.h: New file.
1569
1570 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
1571
1572 PR target/12598
1573 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
1574 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
1575 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
1576 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
1577 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
1578 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
1579 replace_equiv_address, not gen_rtx_MEM.
1580 * config/cris/cris.c (cris_mem_op): New match_operator function.
1581 (cris_notice_update_cc): Use replace_equiv_address, not
1582 gen_rtx_MEM.
1583 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
1584
1585 2003-10-15 Bernardo Innocenti <bernie@develer.com>
1586
1587 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
1588 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
1589 definitions after the other flags.
1590
1591 2003-10-14 Ziemowit Laski <zlaski@apple.com>
1592
1593 * c-parse.in (methoddef, methodproto): Call objc_add_method()
1594 instead of add_method().
1595 * objc/objc-act.c (objc_check_decl): Do not check for
1596 constant_string_type.
1597 (add_method): Rename to objc_add_method().
1598 (really_start_method): Call objc_add_method() instead of
1599 add_method().
1600 * objc/objc-act.h (add_method): Rename to objc_add_method().
1601
1602 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
1603
1604 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
1605 (s390_slb_comparison): Likewise.
1606 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
1607 New functions.
1608 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
1609 and s390_slb_comparison.
1610 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
1611 zSeries machines.
1612 ("*adddi3_31z", "*subdi3_31z"): New insns.
1613 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
1614 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
1615 New insns.
1616
1617 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
1618
1619 * configure.in: Clean up some feedback echoes.
1620 * configure: Regenerate.
1621
1622 * aclocal.m4: Properly quote names of macros being defined.
1623
1624 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
1625
1626 2003-10-14 Steve Ellcey <sje@cup.hp.com>
1627
1628 * config/ia64/ia64.c (ia64_expand_call): Force function address
1629 to DImode.
1630 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
1631
1632 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
1633
1634 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
1635 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
1636 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
1637 "*divsf3_ibm"): Likewise.
1638
1639 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
1640
1641 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
1642 target_alias with target_noncanonical.
1643
1644 2003-10-14 Geoffrey Keating <geoffk@apple.com>
1645
1646 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
1647 and add case for machines where outgoing register parameters
1648 get stack space.
1649
1650 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
1651 register when generating indirect address.
1652
1653 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
1654
1655 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
1656 * arm.md (cbranchne_decr1): Fix bootstrap warning.
1657
1658 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1659
1660 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
1661 * fixinc/fixincl.x: Regenerate.
1662 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
1663 testcase.
1664 Fixes PR bootstrap/9330.
1665
1666 2003-10-13 Eric Christopher <echristo@redhat.com>
1667
1668 * config/frv/frv.c (frv_adjust_field_align): Redo check for
1669 too wide bitfields.
1670 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
1671 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
1672 (SBSS_SECTION_ASM_OP): Remove.
1673 (EXTRA_SECTIONS): Remove in_sbss.
1674 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
1675 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
1676 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
1677 named_section.
1678
1679 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
1680
1681 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
1682 uses of ${target_alias} for directory names (and other places which
1683 won't like the empty string) with ${target_noncanonical}. Introduce
1684 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
1685 available.
1686 * configure: Regenerate.
1687
1688 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
1689
1690 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
1691 * config/arm/arm.md: For splits which rely on conditional moves,
1692 remove ! TARGET_IWMMXT condition.
1693
1694 2003-10-13 David S. Miller <davem@redhat.com>
1695
1696 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
1697 (find_cond_trap): Always increment if we emit a conditional
1698 trap insn.
1699
1700 2003-10-13 Zack Weinberg <zack@codesourcery.com>
1701
1702 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
1703 with min-insn-modes.o.
1704 (STAGESTUFF): Add min-insn-modes.c.
1705 (genobjs): Add genmodes.o.
1706 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
1707 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
1708 (min-insn-modes.c, min-insn-modes.o): New rules.
1709 (s-modes): Also generate min-insn-modes.c.
1710 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
1711 * genmodes.c (struct mode_data): Add format field.
1712 (blank_mode, validate_mode, complete_mode): Update to match.
1713 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
1714 (_SCALAR_MODE): Kill.
1715 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
1716 (emit_insn_modes_c_header): Adjust.
1717 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
1718 (emit_min_insn_modes_c): New functions.
1719 (emit_insn_modes_c): Call emit_real_format_for_mode.
1720 (main): Add -m option to generate min-insn-modes.c.
1721 * machmode.h: Update documentation. Add format argument to
1722 all uses of FLOAT_MODE.
1723 * real.c: Don't define real_format_for_mode here.
1724
1725 * dwarfout.c: Move default definition of PRINT_REG...
1726 * defaults.h: ...here.
1727 * print-rtl.c: Include tm_p.h.
1728 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
1729 Kill.
1730 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
1731 this entire block with #ifndef GENERATOR_FILE.
1732 * regclass.c: Unconditionally define reg_names.
1733 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
1734 Don't define DEBUG_REGISTER_NAMES.
1735 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
1736 redefinition of REGISTER_NAMES.
1737 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
1738
1739 * combine.c: Change all preprocessor conditionals on
1740 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
1741 for clarity.
1742 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
1743 * configure.in: Don't define EXTRA_CC_MODES.
1744 * configure, config.in: Regenerate.
1745 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
1746
1747 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
1748 May assume that GET_MODE_CLASS is accurate for extra CC modes
1749 at all times.
1750
1751 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
1752 number of arguments to aggregate_value_p.
1753
1754 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
1755 * machmode.def: Explain ARCH-modes.def. Document
1756 RESET_FLOAT_FORMAT. Improve commentary on various mode
1757 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
1758 XF, or TF modes here. Remove backward-compatibility
1759 definition of CC.
1760
1761 * config/alpha/alpha-modes.def: New file; define TF mode.
1762 * config/arc/arm-modes.def: Define XF mode.
1763 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
1764 float format for SF and DF modes.
1765 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
1766 * config/i386/i386-modes.def: Define XF and TF modes.
1767 * config/i960/i960-modes.def: Define TF mode.
1768 * config/ia64/ia64-modes.def: Define TF and OI modes.
1769 * config/m68k/m68k-modes.def: New file; define XF mode.
1770 * config/mips/mips-modes.def: New file; define TF mode, reset
1771 formats for SF and DF modes.
1772 * config/pa/pa-modes.def: Define TF mode.
1773 * config/rs6000/rs6000.c: Define TF and PSI modes.
1774 * config/s390/s390-modes.def: Define OI mode.
1775 * config/sh/sh-modes.def: New file; define PSI mode.
1776 * config/sparc/sparc-modes.def: Define TF mode.
1777 * config/vax/vax-modes.def: New file; reset formats for SF and
1778 DF modes.
1779
1780 * config/c4x/c4x.c (c4x_override_options): No need to mess
1781 with real_format_for_mode or set REAL_MODE_FORMATs.
1782 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
1783 variable.
1784 * config/i386/i386.c (override_options): No need to set
1785 REAL_MODE_FORMATs here.
1786 * config/i960/i960.c (i960_initialize): Likewise.
1787 * config/m68k/m68k.c (m68k_override_options): Likewise.
1788 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
1789 for TFmode only if not the default.
1790 * config/mips/mips.c (override_options): Likewise.
1791 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
1792 DFmode only if not the default.
1793
1794 * config/i370/i370.h (RET_REG): Don't consider TFmode.
1795 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
1796 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
1797 of modes that don't appear anywhere in the machine description.
1798
1799 * config/arc/arc-modes.def, config/arm/arm-modes.def
1800 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
1801 * config/i386/i386-modes.def, config/i960/i960-modes.def
1802 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
1803 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
1804 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
1805 * config/sparc/sparc-modes.def: Convert to new style for
1806 declaring extra CC modes.
1807
1808 2003-10-13 Zack Weinberg <zack@codesourcery.com>
1809
1810 * cpplex.c (_cpp_clean_line): In the common case of a line
1811 with no trigraphs and no \-newline, avoid writing to memory.
1812 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
1813 of the buffer member. Make c an uchar to avoid unnecessary
1814 sign extensions.
1815
1816 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
1817
1818 * configure.in: Remove unnecessary test.
1819 * configure: Regenerate.
1820
1821 * configure.in: Fix grammatical error. Move UWIN host error to...
1822 * config.host: Here.
1823 * configure: Regenerate.
1824
1825 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
1826
1827 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
1828 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
1829 of flag_unsafe_math_optimizations.
1830 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
1831 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
1832 fused-madd and no-fused-madd.
1833 * doc/invoke.texi: Documented the new options fused-madd and
1834 no-fused-madd for S/390.
1835
1836 2003-10-14 Alan Modra <amodra@bigpond.net.au>
1837
1838 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
1839 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
1840 assign DEFAULT_ABI.
1841 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
1842 * config/rs6000/rs6000.c: Formatting.
1843 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
1844 when rs6000_alignment_string given.
1845
1846 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1847
1848 PR target/12538
1849 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
1850 (sparc_flat_must_save_register_p): New function to decide whether
1851 a register must be saved/restored in the function prologue/epilogue.
1852 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
1853
1854 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
1855
1856 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
1857 ISO C90 function declarations and definitions.
1858 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
1859
1860 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
1861
1862 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
1863 config files which do the same thing.
1864 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
1865 config/freebsd6.h: Remove now unnecessary files.
1866
1867 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
1868
1869 * c-common.c (c_common_truthvalue_conversion): Warn if the
1870 address of a non-weak function is used as a truth value.
1871
1872 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
1873
1874 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
1875 a literal.
1876 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
1877 instead of a literal.
1878
1879 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
1880
1881 * doc/extend.texi (Function Attributes): Mention the exceptional
1882 path for noreturn-marked functions.
1883
1884 2003-10-12 Jan Hubicka <jh@suse.cz>
1885
1886 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
1887 warning.
1888
1889 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
1890
1891 * config/i386/i386.c (x86_this_parameter): Fix typo.
1892
1893 2003-10-11 Jan Hubicka <jh@suse.cz>
1894
1895 * Makefile.in (web.o): New.
1896 * web.c: New file.
1897 * rtl.h (web_main): Declare.
1898 * timervar.def (TV_WEB): New.
1899 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
1900 (rest_of_hanle_web): New.
1901 (flag_web): New static variable.
1902 (lang_independent_options): Add "web".
1903 (rest_of_compilation): Call rest_of_handle_web.
1904 * invoke.texi (-fweb): Document.
1905 * common.opt (fweb): New.
1906 * flags.h (flag_web): New.
1907 * opts.c (decode_options): Set flag_web at -O3.
1908
1909 * passes.texi (web construction): Document.
1910 * invoke.texi (-O3): Document that -fweb is enabled.
1911
1912 * regrename.c (regrename_optimize): Deal better with situation when
1913 replacement failed.
1914
1915 * sched-ebb.c: Include params.h and profile.h
1916 (schedule_ebbs): Use tracer parameters to discover superblocks
1917 * Makefile.in (sched-ebb.o): Add dependencies.
1918
1919 2003-10-11 Roger Sayle <roger@eyesopen.com>
1920
1921 * fold-const.c (negate_mathfn_p): New function to determine whether
1922 a built-in mathematical function is sign preserving, f(-x) == -f(x).
1923 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
1924 (tree_swap_operands_p): Change API to take an additional argument
1925 indicating that the swapped operands evaluate in reverse order.
1926 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
1927 operand side-effects or we don't care about flag_evaluation_order.
1928 (reorder_operands_p): New function to check whether its safe to
1929 evaluate the given operands in reverse order.
1930 (negate_expr_p): We can always negate integer constants unless
1931 we honor -ftrapv and the signed type would overflow. Only allow
1932 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
1933 negation of COMPLEX_CST if both real and imaginary parts can be
1934 negated. Allow negation through floating point extensions and
1935 sign-preserving built-in functions.
1936 (negate_expr): Move the code to negate integers from "fold" to
1937 here. Always negate integer constants unless we honor -ftrapv
1938 and the signed type would overflow. Always negate real constants
1939 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
1940 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
1941 Optimize negation through floating point extensions and
1942 sign-preserving built-in functions (as defined by negate_mathfn_p).
1943 (fold): Adjust calls to tree_swap_operands_p.
1944 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
1945 to negate_expr_p/negate_expr.
1946 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
1947 allowed to convert (-A) - B into (-B) - A.
1948
1949 2003-10-11 Roger Sayle <roger@eyesopen.com>
1950
1951 * builtins.c (expand_builtin_strcmp): Defend against the possibility
1952 that gen_cmpstrsi may fail: Stabilize the argument list against
1953 re-evaluation and expand the library call directly using this saved
1954 argument list if a cmpstrsi sequence can't be generated.
1955 (expand_builtin_strncmp): Likewise.
1956
1957 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
1958
1959 2003-10-11 Roger Sayle <roger@eyesopen.com>
1960
1961 PR optimization/12260
1962 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
1963 operations through CONST nodes. Optimize (neg (plus X C)) as
1964 (minus -C X) for constant values C.
1965 (simplify_binary_operation): Optimize (minus (neg X) C) as
1966 (minus -C X) for constant values C.
1967 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
1968 instead create (minus -C X).
1969
1970 2003-10-11 Roger Sayle <roger@eyesopen.com>
1971
1972 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
1973 safe_from_p for us, once it chooses an evaluation order.
1974 (expand_expr <MULT_EXPR>): Likewise.
1975 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
1976 places the second operand in "target", swap the operands.
1977 (do_store_flag): Let expand_operands call safe_from_p for us.
1978
1979 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1980
1981 PR optimization/12544
1982 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
1983 for DECL_NONLOCAL decls.
1984
1985 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
1986
1987 * expr.c: Follow spelling conventions.
1988 * final.c: Likewise.
1989 * optabs.c: Likewise.
1990 * sched-deps.c: Likewise.
1991 * sdbout.c: Likewise.
1992
1993 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
1994
1995 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
1996 re-computing of variable.
1997
1998 2003-10-11 Richard Henderson <rth@redhat.com>
1999
2000 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
2001 return_in_memory, make static, change signature to match target hook.
2002 (alpha_setup_incoming_varargs): Make static, change signature to
2003 match target hook, add code for vms and unicos.
2004 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
2005 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
2006 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
2007 TARGET_STRICT_ARGUMENT_NAMING,
2008 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
2009 * config/alpha/alpha-protos.h: Update.
2010 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
2011 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
2012 SETUP_INCOMING_VARARGS): Remove.
2013 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
2014 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
2015
2016 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
2017
2018 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
2019
2020 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
2021
2022 * config/m68k/lb1sf68.asm: Follow spelling conventions.
2023 * config/m68k/m68k.c: Likewise.
2024 * config/m68k/m68k.h: Likewise.
2025 * config/m68k/m68k.md: Likewise.
2026
2027 2003-10-11 Roger Sayle <roger@eyesopen.com>
2028
2029 * builtins.c (expand_builtin_memcpy): Optimize case when the two
2030 pointer arguments are the equal, non-volatile and side-effect free.
2031 (expand_builtin_mempcpy): Likewise.
2032 (expand_builtin_memmove): Likewise.
2033 (expand_builtin_strcpy): Likewise.
2034 (expand_builtin_memcmp): Likewise.
2035 (expand_builtin_strcmp): Likewise.
2036 (expand_builtin_strncmp): Likewise.
2037
2038 2003-10-11 Roger Sayle <roger@eyesopen.com>
2039
2040 * combine.c (apply_distributive_law): Enable "distributive" floating
2041 point optimizations with -funsafe-math-optimizations.
2042
2043 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
2044
2045 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
2046
2047 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
2048
2049 * config/m68k/m68k-protos.h: Remove the prototype for
2050 finalize_pic.
2051
2052 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
2053
2054 * config/m68k/m68k.c: Fix comment typos.
2055
2056 2003-10-11 Bernardo Innocenti <bernie@develer.com>
2057
2058 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
2059 int to bool.
2060 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
2061 (current_frame): New global var.
2062 (m68k_compute_frame_layout): Cache computations in current_frame.
2063 (m68k_initial_elimination_offset): Use values from current_frame
2064 instead of recomputing them.
2065 (use_return_insn): Likewise.
2066 (m68k_output_function_prologue): Likewise.
2067 (m68k_output_function_epilogue): Likewise.
2068 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
2069 inside the block for __pic__.
2070
2071 2003-10-11 Peter Barada <peter@baradas.org>
2072 Bernardo Innocenti <bernie@develer.com>
2073
2074 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
2075 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
2076 (m68k_interrupt_function_p): New function.
2077 (m68k_handle_fndecl_attribute): Ditto.
2078 (m68k_compute_frame_layout): Ditto.
2079 (m68k_attribute_table): Define back-end specific attributes.
2080 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
2081 functions.
2082
2083 2003-10-11 Bernardo Innocenti <bernie@develer.com>
2084
2085 * config/m68k/t-uclinux: New target Makefile fragment.
2086 * config/m68k/uclinux.h: New target macro file.
2087 * config.gcc (m68k-*-uclinux): New target definition.
2088
2089 2003-10-10 Roger Sayle <roger@eyesopen.com>
2090
2091 * builtins.c (builtin_mathfn_code): Generalize to check whether
2092 the call is to any built-in function by comparing the call's
2093 argument list against the builtin decl's function type.
2094
2095 2003-10-10 Roger Sayle <roger@eyesopen.com>
2096
2097 * cse.c (constant_pool_entries_regcost): New global variable to
2098 hold the register cost component of constant_pool_entries_cost.
2099 (fold_rtx): Calculate constant_pool_entries_regcost at the same
2100 time as constant_pool_entries_cost.
2101 (cse_insn): Set both src_folded_cost and src_folded_regcost from
2102 constant_pool_entries_cost and constant_pool_entries_regcost.
2103 (cse_main): Initialize constant_pool_entries_regcost to zero.
2104
2105 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
2106 the semantics of the sequence of bit operations used to negate
2107 a floating-point value.
2108 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
2109 the semantics of the bit operations used to abs a floating point
2110 value.
2111
2112 2003-10-11 Bernardo Innocenti <bernie@develer.com>
2113 Paul Dale <pauli@snapgear.com>
2114
2115 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
2116 support.
2117 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
2118 -fpic, -fPIC, -msep-data and -mid-shared-library.
2119 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
2120 (override_options): Add -msep-data and -mshared-library-id support.
2121 (m68k_output_function_prologue): Generate code to load A5 for
2122 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
2123 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
2124 (m68k_output_pic_call): New function.
2125 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
2126 (TARGET_ID_SHARED_LIBRARY): Ditto.
2127 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
2128 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
2129 (call_value): Likewise.
2130
2131 2003-10-10 Zack Weinberg <zack@codesourcery.com>
2132
2133 * gengenrtl.c (find_formats, genheader): Make i an unsigned
2134 int, remove cast of NUM_RTX_CODE.
2135 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
2136 entire file. Remove the #ifs on GET_MODE_MASK etc and
2137 GET_MODE_WIDER_MODE etc.
2138
2139 2003-10-10 Eric Christopher <echristo@redhat.com>
2140
2141 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
2142 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
2143 that set mode.
2144 * config/sh/sh.h (MODE_ENTRY): New macro.
2145 (MODE_EXIT): Ditto.
2146 (MODE_AFTER): Ditto.
2147 * config/sh/sh.md: Change for MODE_AFTER. Add
2148 fp_set attribute.
2149 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
2150
2151 2003-10-10 Zack Weinberg <zack@codesourcery.com>
2152
2153 * genmodes.c, mode-classes.def: New files.
2154 * machmode.def: Rewritten to genmodes.c interface.
2155 * Makefile.in (extra_modes_file): New substitution variable.
2156 (MACHMODE_H): No longer includes machmode.def or
2157 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
2158 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
2159 (OBJS-common): Add insn-modes.o.
2160 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
2161 genmodes$(build_exeext).
2162 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
2163 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
2164 (s-genrtl): Don't depend on $(RTL_BASE_H).
2165 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
2166 or $(RTL_BASE_H); just rtl.def.
2167 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
2168 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
2169 substitute definition of NUM_RTX_CODE. Add casts to avoid
2170 warnings.
2171 * machmode.h: Include insn-modes.h, not machmode.def. Include
2172 mode-classes.def to define enum mode_class. Tweak definitions
2173 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
2174 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
2175 (inner_mode_array): Renamed mode_inner.
2176 (mode_base_align): New.
2177 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
2178 mode_unit_size, mode_wider_mode, mode_mask_array,
2179 inner_mode_array, class_narrowest_mode): Delete definitions.
2180 * stor-layout.c (get_mode_alignment): Use mode_base_align.
2181 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
2182 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
2183
2184 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
2185 No need to define BITS_PER_UNIT.
2186
2187 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2188
2189 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
2190 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
2191 (ia64_initialize_trampoline): If not using GAS, declare trampoline
2192 as global.
2193 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
2194 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
2195
2196 * stor-layout.c (compute_record_mode): Don't force BLKmode if
2197 field is zero-length BLKmode.
2198 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
2199 zero-size references.
2200
2201 * combine.c (distribute_links): Properly test for REG being set.
2202
2203 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
2204 gen_lowpart and company except for REG.
2205
2206 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2207
2208 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
2209
2210 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
2211
2212 * config.gcc (mips*-*-netbsd*): Remove content-free line.
2213
2214 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
2215
2216 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
2217 gcov_position_t and gcov_type.
2218
2219 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
2220
2221 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
2222 * configure: Regenerate.
2223
2224 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
2225
2226 * config/h8300/h8300.md (define_asm_attributes): Specify
2227 the length of an asm insn more precisely.
2228
2229 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2230
2231 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
2232
2233 2003-10-09 Bob Wilson <bob.wilson@acm.org>
2234
2235 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
2236 FP register number to 48 and MAC16 accumulator to 0x210.
2237
2238 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
2239
2240 * config.gcc: Remove redundant thread_file setting clauses for
2241 various *-*-linux* targets.
2242
2243 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
2244
2245 * config/h8300/h8300.md (define_asm_attributes): New.
2246
2247 2003-10-09 Roger Sayle <roger@eyesopen.com>
2248
2249 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
2250 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
2251
2252 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
2253
2254 * haifa-sched.c (ok_for_early_schedule): New function.
2255 (early_queue_to_ready): New function.
2256 (schedule_block): Allow early removal of insns from Q.
2257 (schedule_insn): Update INSN_TICK in case of premature
2258 issue.
2259 * common.opt (sched_stalled_insns): New flag.
2260 (sched_stalled_insns_dep): New flag.
2261 * flags.h: Same above flags.
2262 * opts.c: Same as above.
2263 * toplev.c: Same as above.
2264 * target.h (targetm.sched.is_costly_dependence): New
2265 hook.
2266 * target-def.h: Same as above.
2267 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
2268 Support new flag -msched-costly-dep.
2269 (DEFAULT_SCHED_COSTLY_DEP): Define.
2270 * config/rs6000/rs6000.c:
2271 (rs6000_is_costly_dependence): New function.
2272 (is_load_insn, is_store_insn): New functions.
2273 (is_load_insn1, is_store_insn1, is_mem_ref): New
2274 functions.
2275 * doc/invoke.texi (-fsched-stalled-insns-dep)
2276 (-fsched-stalled-insns, -msched-costly-dep): Document
2277 options.
2278 * doc/tm.texi (is_costly_dependence): Define new
2279 scheduler target hook.
2280
2281 2003-10-09 Jason Merrill <jason@redhat.com>
2282
2283 PR c++/6392
2284 * c-common.c (c_build_qualified_type): Look through arrays first.
2285 (c_apply_type_quals_to_decl): Look through arrays.
2286
2287 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
2288 types with constructors.
2289
2290 * coverage.c (build_ctr_info_value): Use build_decl to make a
2291 VAR_DECL.
2292 (create_coverage): Likewise.
2293
2294 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
2295 here.
2296 (expand_asm_operands): Not here.
2297 (parse_input_constraint): No longer static.
2298 * tree.h: Declare it.
2299
2300 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
2301
2302 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
2303 libgcc_s.so.
2304 (SHLIB_INSTALL): Likewise.
2305
2306 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
2307
2308 * doc/install.texi: Remove reference to removed 'pthreads' thread
2309 option.
2310
2311 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
2312
2313 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
2314 operand 2.
2315
2316 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
2317
2318 * config.gcc: Don't accept --enable-threads=pthreads. Clean
2319 up related case statements.
2320 * configure.in: Don't accept --enable-threads=pthreads,
2321 decosf1, mach, or os2 (none of which work anyway). Alphabetize
2322 supported thread files in case clause.
2323 * configure: Regenerate.
2324
2325 2003-10-08 Geoffrey Keating <geoffk@apple.com>
2326
2327 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
2328 definition to above SPARC_STACK_BOUNDARY_HACK.
2329
2330 2003-10-08 Jason Merrill <jason@redhat.com>
2331
2332 * c-pretty-print.c (pp_c_postfix_expression)
2333 <COMPOUND_LITERAL_EXPR>: Fix thinko.
2334
2335 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2336
2337 * mklibgcc.in: Don't hide undefined or typeless symbols.
2338
2339 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2340
2341 PR optimization/12142
2342 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
2343 uses of the register in the SET_SRC. Remove unnecessary argument.
2344 * pa.c (legitimize_pic_address): Before reload, use a scratch register
2345 for the intermediate result in loading the address of a SYMBOL_REF.
2346 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
2347 which loads the SYMBOL_REF address.
2348
2349 2003-10-08 Timo Kokkonen <tjko@iki.fi>
2350 Eric Botcazou <ebotcazou@libertysurf.fr>
2351
2352 PR bootstrap/12490
2353 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
2354 to define the size of the extern_C_braces array. Set it to 200.
2355 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
2356
2357 2003-10-08 Carlo Wood <carlo@alinoe.com>
2358
2359 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
2360 a space after the -o option. flex 2.5.31 understands both, with
2361 and without the space. Removed that space.
2362
2363 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
2364
2365 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
2366 (compute_frame_size): Initialize it. Remove the .cprestore slot
2367 from args_size.
2368 (mips_output_function_prologue): Simplify accordingly.
2369 (mips_debugger_offset): Change the mips16 frame pointer offset from
2370 current_function_outgoing_args to cfun->machine->frame.args_size.
2371 (mips_initial_elimination_offset): Likewise.
2372 (mips_expand_prologue): Likewise.
2373 (mips_expand_epilogue): Likewise.
2374
2375 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
2376
2377 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
2378 (EXTRA_MEMORY_CONSTRAINT): Define.
2379 (CAN_ELIMINATE): Remove lwu workaround.
2380 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
2381 Use a 'W' constraint for the source operand.
2382
2383 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
2384
2385 * genopinit.c (main): Output code to declare undefined
2386 variables.
2387
2388 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
2389
2390 * gengtype-lex.l: Remove -Wtraditional cruft.
2391 * Makefile.in (gengtype-lex.c): Likewise.
2392
2393 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2394
2395 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
2396
2397 2003-10-07 Jason Merrill <jason@redhat.com>
2398
2399 PR c++/12519
2400 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
2401 it isn't a decl.
2402
2403 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
2404
2405 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
2406 not overridden.
2407 Fixes PR bootstrap/12173.
2408
2409 2003-10-07 Zack Weinberg <zack@codesourcery.com>
2410
2411 * errors.c: Don't include coretypes.h or tm.h.
2412 (trim_filename): Use IS_DIR_SEPARATOR.
2413 * Makefile.in: Update dependencies of errors.o and
2414 $(BUILD_PREFIX_1)errors.o.
2415
2416 2003-10-07 Geoffrey Keating <geoffk@apple.com>
2417
2418 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
2419 account when aligning arguments.
2420 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
2421 * defaults.h (STACK_POINTER_OFFSET): ... to here.
2422 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
2423 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
2424 (SPARC_STACK_BOUNDARY_HACK): Define.
2425 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
2426 arrange for vector parameters to varargs functions to be passed
2427 in both memory and GPRs when appropriate.
2428 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
2429 aligned.
2430
2431 * hooks.c (hook_bool_tree_true): New.
2432 (hook_rtx_tree_int_null): New.
2433 (hook_rtx_rtx_null): Use NULL, not 0.
2434 * hooks.h: Add 'extern' to everything.
2435 (hook_bool_tree_true): New.
2436 (hook_rtx_tree_int_null): New.
2437 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
2438 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
2439 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
2440 prototype.
2441 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
2442 (setup_incoming_varargs): Prototype.
2443 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
2444 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
2445 (TARGET_STRUCT_VALUE_RTX): Define.
2446 (TARGET_RETURN_IN_MEMORY): Define.
2447 (TARGET_SETUP_INCOMING_VARARGS): Define.
2448 (TARGET_STRICT_ARGUMENT_NAMING): Define.
2449 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
2450 (init_cumulative_args): Use rs6000_return_in_memory.
2451 (setup_incoming_varargs): Make 'static'.
2452 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
2453 (PROMOTE_FUNCTION_RETURN): Delete.
2454 (STRUCT_VALUE): Delete.
2455 (RETURN_IN_MEMORY): Delete.
2456 (SETUP_INCOMING_VARARGS): Delete.
2457
2458 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
2459
2460 * doc/invoke.texi (Warning Options): Simplify and clarify the
2461 descriptions of -Wnonnull and -Winit-self.
2462
2463 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
2464
2465 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
2466 indicees for floating-point conversersion libcalls.
2467
2468 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
2469
2470 * Makefile.in: Add more comments separating large conceptually
2471 separate sections.
2472
2473 * configure.in: Clean up thread file logic.
2474 * configure: Regenerate.
2475
2476 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2477
2478 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
2479 (switch_to_section): Handle in_readonly_data.
2480 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
2481 readonly data.
2482
2483 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
2484
2485 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
2486 it.
2487 (cbranchne_decr1): New Thumb pattern.
2488 * arm.c (arm_addimm_operand): New insn predicate.
2489 * arm-protos.h: Add a prototype for it.
2490 * arm.h (PREDICATE_CODES): Add it.
2491
2492 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
2493
2494 * sched-int.h (sched_info): New field
2495 sched_max_insns_priority.
2496 * sched-rgn.c (init_ready_list): Add invocations to
2497 targetm.sched.adjust_priority.
2498 (sched_max_insns_priority): Init new field.
2499 * sched-ebb.c (sched_max_insns_priority): Init new field.
2500 * haifa-sched.c (set_priorities): Set
2501 sched_info->sched_max_insns_priority.
2502 * config/rs6000/rs6000.h:
2503 (rs6000_sched_restricted_insns_priority_str): Support new
2504 flag -mprioritize-restricted-insns.
2505 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
2506 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
2507 function.
2508 (rs6000_adjust_priority): Change priority of restricted
2509 insns, using above new function and new flag.
2510 * doc/invoke.texi (-mprioritize-restricted-insns): Document
2511 new option.
2512
2513 2003-10-07 Zack Weinberg <zack@codesourcery.com>
2514
2515 * expr.c (cmpstr_optab, cmpmem_optab): New.
2516 * genopinit.c: Initialize them.
2517 * optabs.h: Declare them.
2518 * optabs.c (init_optabs): Clear them.
2519 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
2520 block memory compare insns, not conditional chains. Restructure
2521 the fallback generation of a call to memcmp/bcmp for better
2522 readability.
2523
2524 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
2525
2526 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
2527 (mips_save_restore_fn): New typedef.
2528 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
2529 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
2530 (save_restore_insns): Remove, replacing with...
2531 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
2532 (mips_save_reg, mips_restore_reg): New function.
2533 (mips_expand_prologue, mips_expand_epilogue): Rework.
2534 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
2535 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
2536 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
2537
2538 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
2539
2540 * config/mips/mips.c (mips_expand_prologue): Remove unused
2541 traversal of function arguments.
2542
2543 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
2544
2545 * doc/invoke.texi: Remove documentation of -mentry.
2546 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
2547 (override_options, mips_save_reg_p): Remove handling.
2548 (compute_frame_size, mips_output_function_prologue): Likewise.
2549 (mips_expand_prologue, mips_expand_epilogue): Likewise.
2550 * config/mips/mips.h (mips_entry_string): Remove declaration.
2551 (TARGET_OPTIONS): Remove -mentry.
2552 * config/mips/mips16.S: Remove mention of -mentry.
2553
2554 2003-10-06 Zack Weinberg <zack@codesourcery.com>
2555
2556 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
2557 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
2558 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
2559 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
2560 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
2561 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
2562 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
2563 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
2564 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
2565 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
2566 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
2567 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
2568 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
2569 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
2570 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
2571 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
2572 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
2573 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
2574 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
2575 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
2576 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
2577 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
2578 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
2579 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
2580 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
2581 (fixunstfti_libfunc): Delete.
2582 * optabs.h (struct optab_handlers): Break out of struct optab.
2583 (struct convert_optab, convert_optab, enum convert_optab_index,
2584 convert_optab_table, sext_optab, zext_optab, trunc_optab,
2585 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
2586 sfloat_optab, ufloat_optab): New.
2587 (set_conv_libfunc): Prototype.
2588 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
2589 (trunc_optab): Renamed btrunc_optab.
2590 * builtins.c (expand_builtin_mathfn): Update to match.
2591 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
2592 (convert_optab_table, new_convert_optab, init_convert_optab)
2593 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
2594 (set_conv_libfunc): New.
2595 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
2596 (expand_float, expand_fix): Use new conversion optabs,
2597 not old insn code tables or long chains of ifs.
2598 (init_optabs): No need to clear old insn code tables.
2599 Initialize the new optabs, not the old libfunc array entries.
2600 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
2601 * genopinit.c: Initialize conversion optabs, not the
2602 former insn code tables. Remove unnecessary casts.
2603 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
2604 * expr.c (convert_move): Remove redundant check that
2605 to_real==from_real. Use the conversion optabs instead
2606 of long chains of tests of modes. Move partial-integer-mode
2607 interconversion above all integer conversion. Do not recurse
2608 on a value forced into a register in the original mode.
2609
2610 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
2611 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
2612 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
2613 in new conversion optabs; do not reference the old libfunc
2614 array entries. No need to include libfuncs.h.
2615
2616 2003-10-06 Roger Sayle <roger@eyesopen.com>
2617
2618 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
2619 point comparison sequence with a REG_EQUAL note that describes
2620 the comparison's semantics.
2621
2622 2003-10-06 Roger Sayle <roger@eyesopen.com>
2623
2624 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
2625 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
2626
2627 2003-10-06 Roger Sayle <roger@eyesopen.com>
2628 Zack Weinberg <zack@codesourcery.com>
2629
2630 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
2631 instruction by using LCT_CONST and then calling emit_libcall_block
2632 ourselves.
2633
2634 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2635
2636 PR optimization/11974
2637 * optabs.c (expand_unop): Promote libcall outmode according to
2638 hard_libcall_value.
2639
2640 2003-10-06 Zack Weinberg <zack@codesourcery.com>
2641
2642 * real.h (REAL_MODE_FORMAT): New macro.
2643 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
2644 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
2645 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
2646 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
2647 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
2648 directly to real_format_for_mode array, wherever possible.
2649
2650 2003-10-06 Devang Patel <dpatel@apple.com>
2651
2652 * dwarf2out.c (is_main_source): Remove variable.
2653 (dwarf2out_start_source_file): Do not check is_main_source.
2654 Do not reset is_main_source.
2655 (dwarf2out_init): Do not initialize is_main_source.
2656
2657 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2658
2659 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
2660 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
2661 introduced some multi-line prototypes.
2662 * fixinc/fixincl.x: Regenerate.
2663
2664 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
2665
2666 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
2667 * config/mips/mips.c (stack_operand): New predicate.
2668 * config/mips/mips.md: Use it for the destination of mips16 insns
2669 that store $31.
2670
2671 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
2672
2673 * config/mips/mips.md (*lowsi): Renamed from lowsi.
2674 (*lowdi): Likewise lowdi.
2675 (*lowsi_mips16, *lowdi_mips16): New patterns.
2676 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
2677 mips16 CONSTANT_RELOC handling.
2678 (mips_delegitimize_address): Adjust for new sdata representation.
2679
2680 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
2681
2682 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
2683 skip any remaining register arguments.
2684
2685 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
2686
2687 * reload.c (find_reloads_subreg_address): Use correct offset for
2688 paradoxical MEM subregs on big-endian targets.
2689
2690 2003-10-06 Andrew Haley <aph@redhat.com>
2691
2692 * tree.c (get_callee_fndecl): Call
2693 lang_hooks.lang_get_callee_fndecl.
2694 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
2695 (lhd_get_callee_fndecl): New.
2696
2697 2003-10-06 Andrew Pinski <apinski@apple.com>
2698
2699 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
2700 error in calculating the length of the string.
2701 (machopic_stub_name): Likewise.
2702
2703 2003-10-06 Roger Sayle <roger@eyesopen.com>
2704
2705 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
2706 describing the return value of the comparison libcall to the
2707 REG_RETVAL instruction of the emitted sequence.
2708
2709 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2710
2711 PR optimization/12215
2712 * cse.c (cse_set_around_loop): Emit the move at the beginning
2713 of the next basic block for trapping sets.
2714
2715 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2716
2717 PR optimization/11637
2718 * combine.c (adjust_for_new_dest): New function to adjust the
2719 notes and LOG_LINKS when the dest of an insn has changed.
2720 (try_combine): Use it when deleting the first insn of a two-insn
2721 parallel or splitting a two-load parallel.
2722
2723 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
2724
2725 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
2726 if TARGET_EXPLICIT_RELOCS.
2727
2728 2003-10-06 Mark Mitchell <mark@codesourcery.com>
2729
2730 PR bootstrap/12512
2731 * Makefile.in (info): Use double-colon rules.
2732 (dvi): Likewise.
2733 (generated-manpages): Likewise.
2734 * configure.in: Do not create lang.info, lang.dvi, or
2735 lang.generated-manpages hooks.
2736 * configure: Regenerated.
2737 * objc/Make-lang.in (objc.info): Remove.
2738 (objc.dvi): Remove.
2739 (objc.generated-manpages): Remove.
2740 * doc/sourcebuild.texi: Update description of info, dvi, and
2741 generated-manpages hooks.
2742
2743 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
2744
2745 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
2746
2747 2003-10-05 Andrew Pinski <apinski@apple.com>
2748
2749 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
2750 errors in memcpy destinations.
2751 (machopic_stub_name): Likewise.
2752
2753 2003-10-05 Andrew Pinski <apinski@apple.com>
2754
2755 * config/darwin.c (machopic_non_lazy_ptr_name):
2756 Change strcat to memcpy and add length together.
2757 (machopic_stub_name): Likewise.
2758
2759 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
2760
2761 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
2762 signal trampoline codes.
2763
2764 2003-10-05 Chris Demetriou <cgd@broadcom.com>
2765
2766 * config/mips/mips.md (*divsf3): Move description of
2767 SB-1 F2 erratum from here to...
2768 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
2769 flag_unsafe_math_optimizations is not.
2770
2771 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
2772
2773 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
2774 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
2775
2776 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
2777
2778 * c-pretty-print.c: Fix comment typos.
2779 * c-pretty-print.h: Likewise.
2780 * calls.c: Likewise.
2781 * cfgloopmanip.c: Likewise.
2782 * cgraphunit.c: Likewise.
2783 * cppfiles.c: Likewise.
2784 * final.c: Likewise.
2785 * function.c: Likewise.
2786 * gcov-io.h: Likewise.
2787 * gcse.c: Likewise.
2788 * genoutput.c: Likewise.
2789 * loop.c: Likewise.
2790 * postreload.c: Likewise.
2791 * reg-stack.c: Likewise.
2792 * regmove.c: Likewise.
2793 * sched-int.h: Likewise.
2794 * sched-rgn.c: Likewise.
2795 * simplify-rtx.c: Likewise.
2796 * tree-inline.c: Likewise.
2797 * config/m68hc11/m68hc11.h: Likewise.
2798 * config/mmix/mmix.c: Likewise.
2799 * config/mn10300/mn10300.md: Likewise.
2800 * config/sh/sh.h: Likewise.
2801
2802 2003-10-05 Richard Henderson <rth@redhat.com>
2803
2804 * tree-inline.c (remap_type): New.
2805 (remap_decl): Use it. Remap DECL_SIZE*.
2806 (copy_body_r): Use it.
2807 (walk_tree): Walk TREE_TYPE too.
2808 (copy_tree_r): Don't walk subtrees of types.
2809 * tree.c (variably_modified_type_p): Restructure. Consider integer
2810 types with non-const bounds variably modified.
2811
2812 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
2813
2814 * doc/invoke.texi: Fix typos.
2815
2816 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
2817
2818 * fold-const.c: Follow spelling conventions.
2819 * function.c: Likewise.
2820 * config/c4x/c4x.h: Likewise.
2821 * config/c4x/c4x.md: Likewise.
2822 * config/frv/frv.md: Likewise.
2823 * config/rs6000/aix.h: Likewise.
2824 * config/rs6000/linux64.h: Likewise.
2825 * config/xtensa/xtensa.c: Likewise.
2826
2827 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
2828
2829 * c-pretty-print.c: Fix comment formatting.
2830 * cfglayout.c: Likewise.
2831 * cfgloopanal.c: Likewise.
2832 * cppcharset.c: Likewise.
2833 * dbxout.c: Likewise.
2834 * ggc-page.c: Likewise.
2835 * ggc.h: Likewise.
2836 * target.h: Likewise.
2837
2838 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
2839
2840 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
2841
2842 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
2843
2844 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
2845 Convert to ISO C90 function declarations and definitions.
2846
2847 2003-10-04 Zack Weinberg <zack@codesourcery.com>
2848
2849 * libfuncs.h
2850 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
2851 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
2852 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
2853 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
2854 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
2855 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
2856 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
2857 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
2858 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
2859 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
2860 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
2861 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
2862 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
2863 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
2864 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
2865 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
2866 Delete.
2867 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
2868 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
2869 (le_optab, unord_optab): New.
2870
2871 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
2872 from the code_to_optab table, not a giant switch; use
2873 swap_condition; do widening only if a comparison function that
2874 we can call exists in a wider mode, not if a cmp_optab insn or
2875 libfunc exists in a wider mode; call protect_from_queue
2876 exactly once on each operand.
2877 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
2878
2879 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
2880 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
2881 Set floating point comparison libfuncs using set_optab_libfunc
2882 on the appropriate optab.
2883
2884 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
2885 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
2886 selector conditionals.
2887
2888 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
2889
2890 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
2891 identical to m68hc12 as far as libraries are concerned.
2892
2893 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2894
2895 PR c/12446
2896 * c-typeck.c (convert_for_assignment): Issue an error for
2897 array to pointer assignment after default conversion.
2898 (digest_init): Likewise.
2899
2900 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
2901
2902 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
2903
2904 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
2905
2906 * doc/extend.texi (Function Attributes): Fix title of GNU C
2907 Preprocessor manual.
2908 (C++ Extensions): Fix reference to "Predefined Macros" in the
2909 GNU C Preprocessor manual.
2910
2911 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
2912
2913 * doc/extend.texi: Document how GCC estimates and relies on the size
2914 of an asm.
2915
2916 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
2917
2918 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
2919 arguments downward for big-endian o64.
2920
2921 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
2922
2923 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
2924 PCH generation, avoiding too-frequent flushes when writing to NFS
2925 file system.
2926
2927 2003-10-03 Ziemowit Laski <zlaski@apple.com>
2928
2929 * objc/objc-act.c (lookup_category): Mark as 'inline'.
2930
2931 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
2932 Ziemowit Laski <zlaski@apple.com>
2933
2934 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
2935 New functions.
2936 (lookup_method_in_hash_lists): New parameter indicating whether
2937 we are messaging 'Class' or 'id'.
2938 (check_duplicates): Likewise; do not assume all methods will
2939 be either class or instance methods.
2940 (generate_category, finish_class): Use lookup_category().
2941 (add_method): Use add_method_to_hash_list(); insert instance
2942 methods of root classes into the global class method hash table.
2943 (add_category): Use lookup_category(); avoid constructing
2944 duplicate categories.
2945 (really_start_method): Add method to corresponding @interface,
2946 if not already there (and if the @interface exists).
2947 (finish_message_expr, finish_objc): Adjust calls to
2948 check_duplicates().
2949
2950 2003-10-03 Roger Sayle <roger@eyesopen.com>
2951
2952 PR optimization/9325, PR java/6391
2953 * fold-const.c (fold_convert): For floating point to integer
2954 conversions, return the maximum/minimum representable integer
2955 value if the real constant overflows the destination type.
2956 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
2957 meaning don't truncate the result to a floating point mode.
2958 Simplify the logic by calling real_from_integer directly.
2959 * simplify-rtx.c (simplify_unary_operation): Implement the
2960 same semantics for folding floating point to integer conversions
2961 in RTL.
2962
2963 2003-10-03 Chris Demetriou <cgd@broadcom.com>
2964
2965 * config/mips/mips.c (mips_emit_prefetch): Restructure
2966 to avoid use of arrays, handle indexed prefetch.
2967 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
2968 (ISA_HAS_PREFETCHX): New deffine.
2969 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
2970 update comments.
2971 (prefetch_indexed_di, prefetch_indexed_si): New insns.
2972
2973 2003-10-03 Jeff Sturm <jsturm@one-point.com>
2974 Roger Sayle <roger@eyesopen.com>
2975
2976 PR optimization/12289
2977 * calls.c (emit_call_1): Pretend to have popped the arguments
2978 to noreturn and longjmp functions instead of ignoring them.
2979 (expand_call): Don't adjust stack_pointer_dela while
2980 inhibit_defer_pop is set.
2981
2982 2003-10-03 Andreas Schwab <schwab@suse.de>
2983
2984 PR bootstrap/12276
2985 * configure.in: Check for libunwind on the host only if building
2986 a native compiler.
2987 * configure: Regenerated.
2988
2989 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
2990
2991 * unwind-pe.h (read_encoded_value_with_base): Constify u and
2992 its inizialization cast.
2993
2994 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
2995
2996 PR target/12485
2997 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
2998
2999 2003-10-02 Mark Mitchell <mark@codesourcery.com>
3000
3001 PR optimization/12180
3002 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
3003 functions containing calls to __builtin_next_arg.
3004
3005 2003-10-02 Chris Demetriou <cgd@broadcom.com>
3006
3007 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
3008 in instructions being output.
3009 * config/mips/mips.md (prefetch_si_address): Change third
3010 operand's constraint letter to 'I'.
3011 (prefetch_di_address): Likewise.
3012 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
3013
3014 2003-10-02 Zack Weinberg <zack@codesourcery.com>
3015
3016 * system.h: Poison macros obsoleted by earlier patch.
3017 * config/cris/cris.c: C90-ify a function definition.
3018
3019 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
3020
3021 PR/12292
3022 * combine.c (make_field_assignment): Check whether rtx's code
3023 is CONST_INT before using INTVAL.
3024
3025 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
3026
3027 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
3028 htab_find_slot_with_hash.
3029 (cgraph_node_for_identifier): Use NO_INSERT.
3030 (cgraph_remove_node): Use NO_INSERT.
3031 (cgraph_varpool_node): Use INSERT.
3032 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
3033
3034 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
3035
3036 Waldek Hebisch <hebisch@math.uni.wroc.pl>
3037 PR/12072
3038 * varasm.c (compare_constant): Fix thinko.
3039
3040 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
3041
3042 * config/frv/frv.c (frv_issue_rate): New function.
3043 (frv_pack_insns): Use it.
3044 (TARGET_SCHED_ISSUE_RATE): Define.
3045
3046 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
3047
3048 * config/mcore/mcore.c: Convert to ISO C90 function declarations
3049 and definitions.
3050 * config/mcore/mcore.h: Likewise.
3051 * config/mcore/mcore-protos.h: Likewise.
3052
3053 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
3054
3055 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
3056 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
3057
3058 2003-10-01 Per Bothner <pbothner@apple.com>
3059
3060 * c-lex.c (src_line): Remove unneeded static variable.
3061 (cb_line_change): Set input_line directly, instead of src_line.
3062 (get_non_padding_token): We no longer need to compensate for the
3063 "horrible things" the C++ front-end does with the current line number,
3064
3065 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
3066 callback even when popping the main file.
3067 * c-lex.c (fe_file_change): Handle a NULL new_map.
3068 * fix-header.c (cb_file_change): Likewise.
3069 * c-ppoutput.c (pp_file_change): Likewise.
3070
3071 * cppinit.c (cpp_read_main_file): Split into two functions:
3072 Distribute _cpp_stack_file call over the two functions.
3073 (cpp_find_main_file): New function.
3074 Don't call _cpp_do_file_change even if working_directory flag set.
3075 (cpp_push_main_file): New function.
3076 * cppfiles.c (_cpp_find_failed): New helper function.
3077 (find_file): Made non-static and renamed to _cpp_find_file.
3078 (_cpp_stack_file): No longer needed. But note the following.
3079 (stack_file): Made non-static and renamed to _cpp_stack_file.
3080 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
3081 call with calls to cpp_find_main_file and cpp_push_main_file.
3082 (search_path_head): If there is no current buffer, use main_file.
3083 * cpphash.h: Update function declarations.
3084 * cpplib.h: Update function declarations.
3085
3086 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
3087 (c_common_parse_file): No longer need to call cpp_read_main_file
3088 when file_index > 0 (as in multi-file or server compiation).
3089 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
3090 as this now happens before cpp_push_main_file.
3091 (push_command_line_include): When done with options, pass LC_LEAVE
3092 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
3093 (fe_file_change): Handle NULL new_map, and simplify.
3094 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
3095 08-28 change, since we're never called with a NULL buffer.
3096 (_cpp_lex_direct): Likewise.
3097 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
3098 Return false if buffer is NULL at end.
3099
3100 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
3101 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
3102 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
3103 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
3104 remove the unused return_at_eof parameter.
3105 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
3106 Update callers of cpp_push_buffer.
3107
3108 2003-10-01 Zack Weinberg <zack@codesourcery.com>
3109
3110 * target.h (init_libfuncs): New hook.
3111 * target-def.h: Default TARGET_INIT_BUILTINS and
3112 TARGET_INIT_LIBFUNCS to hook_void_void. Add
3113 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
3114 * builtins.c (default_init_builtins): Delete.
3115 * expr.h (default_init_builtins): Delete prototype.
3116 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
3117 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
3118 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
3119 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
3120 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
3121 and UMODDI3_LIBCALL,
3122
3123 * Makefile.in (optabs.o): Depends on target.h.
3124 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
3125 * optabs.c: Include target.h.
3126 (prepare_float_lib_cmp): No need for #ifdef around use of
3127 FLOAT_LIB_COMPARE_RETURNS_BOOL.
3128 (set_optab_libfunc): New function.
3129 (init_optabs): Delete use of all *_LIBCALL defines.
3130 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
3131 * optabs.h: Prototype set_optab_libfunc.
3132
3133 * config.gcc: Remove all references to pa/long_double.h,
3134 ia64/hpux_longdouble.h, and gofast.h.
3135 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
3136 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
3137
3138 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
3139 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
3140 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
3141 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
3142 * config/sparc/sparc.c, config/vax/vax.c:
3143 Provide a definition for TARGET_INIT_LIBFUNCS. Where
3144 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
3145
3146 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
3147 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
3148 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
3149 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
3150 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
3151 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
3152 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
3153 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
3154 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
3155
3156 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
3157 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
3158 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
3159 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
3160 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
3161
3162 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
3163 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
3164 SUN_INTEGER_MULTIPLY_64 to 0.
3165 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
3166 SUN_INTEGER_MULTIPLY_64 to 1.
3167 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
3168 SUN_INTEGER_MULTIPLY_64 to 0.
3169 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
3170 Define US_SOFTWARE_GOFAST.
3171 * config/vax/vax.h: Default TARGET_ELF to 0.
3172 * config/vax/elf.h: Redefine TARGET_ELF to 1.
3173
3174 * config/gofast.h: Don't define any macros here. Provide one
3175 static function, gofast_maybe_init_libfuncs, which does what
3176 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
3177 is already defined. Do not clear negation libfuncs. Do
3178 not mess with HFmode, XFmode, or TFmode libfuncs.
3179
3180 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
3181
3182 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
3183
3184 PR C/12466
3185 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
3186
3187 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3188
3189 * config/mips/xm-iris5.h: Remove, unnecessary.
3190 * config.build (mips-sgi-irix5*): Remove.
3191 (mips-sgi-irix6*o32): Likewise.
3192 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
3193 (mips-sgi-irix5cross64): Likewise.
3194 (mips-sgi-irix5*): Likewise.
3195 * config.host (mips-sgi-irix5*): Remove.
3196 (mips-sgi-irix6*o32): Likewise.
3197
3198 2003-10-01 Zack Weinberg <zack@codesourcery.com>
3199
3200 * dbxout.c (dbxout_fptype_value): Delete.
3201 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
3202
3203 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
3204
3205 * output.h (compute_reloc_for_constant): Declare.
3206 * varasm.c (compute_reloc_for_constant): Extract from...
3207 (output_addressed_constants): ... here. Adjust all callers.
3208
3209 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3210
3211 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
3212 * configure: Rebuilt.
3213
3214 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3215
3216 * fold-const.c (make_range): When handling unsigned, don't reverse
3217 range if high bound is zero.
3218
3219 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3220
3221 * config/frv/frv.h (PREDICATE_CODES): Added
3222 condexec_si_media_operator, condexec_sf_add_operator and
3223 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
3224 and condexec_sf_unary_operator.
3225
3226 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3227
3228 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
3229 * configure: Rebuilt.
3230
3231 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3232
3233 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
3234 Allow override.
3235 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
3236
3237 2003-09-23 David S. Miller <davem@redhat.com>
3238
3239 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
3240 before redefining.
3241 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3242
3243 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
3244
3245 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
3246 C90 function declarations and definitions.
3247
3248 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
3249
3250 * config.gcc (cris-*-linux*): Revert mistaken commit.
3251
3252 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
3253
3254 PR optimization/11753
3255 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
3256 the length in the non-V9 case.
3257
3258 2003-09-30 Richard Henderson <rth@redhat.com>
3259
3260 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
3261 DWARF_ALT_FRAME_RETURN_COLUMN.
3262 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
3263 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
3264 (uw_frame_state_for): Return end-of-stack for null return address.
3265 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
3266
3267 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
3268 (alpha_expand_prologue): Store a zero for it.
3269 (alpha_expand_epilogue): Don't reload it.
3270 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
3271 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
3272 for the sigframe return address.
3273
3274 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
3275
3276 * sdbout.c: Convert to ISO C90 prototypes.
3277 * objc/objc-act.c: Likewise.
3278
3279 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
3280
3281 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
3282 * config/i386/winnt.c: Likewise.
3283 * config/i386/cygming.h: Likewise.
3284
3285 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
3286
3287 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
3288 (A ^ B) - B for any B.
3289
3290 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
3291
3292 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
3293 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
3294
3295 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
3296
3297 * arm/ieee754-sf.S: Tidy formatting.
3298
3299 2003-09-30 Nicolas Pitre <nico@cam.org>
3300
3301 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
3302 and ARM_MOD_BODY.
3303 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
3304 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
3305 added better divisor alignment in the other case.
3306 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
3307 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
3308 macros above, add fast exits for divisor >= dividend, etc.
3309
3310 2003-09-30 Nicolas Pitre <nico@cam.org>
3311
3312 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
3313 L_fixdfsi target.
3314 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
3315
3316 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
3317
3318 * config.gcc: Default use_fixproto to 'no'.
3319
3320 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
3321
3322 PR optimization/12345
3323 * config/mips/mips-protos.h (mips_restore_gp): Remove.
3324 (mips_gp_save_slot): Declare.
3325 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
3326 (mips_gp_save_slot): ...this new function.
3327 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
3328 and mips_output_move to generate the output template.
3329 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
3330 a gp load after a noreturn call. Load the gp using a move rather
3331 than an exception_receiver pattern.
3332 (call_value_internal, call_value_multiple_internal): Likewise.
3333 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
3334
3335 2003-09-30 Carlo Wood <carlo@alinoe.com>
3336
3337 PR debug/12319
3338 * cfglayout.c (insn_scope): Use prologue_locator and
3339 epilogue_locator; return the outer function scope for
3340 pro- and epilogue insns.
3341
3342 2003-09-29 Zack Weinberg <zack@codesourcery.com>
3343
3344 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
3345 REAL_TYPEs based on the bitsize of the type's mode, not the
3346 mode directly.
3347
3348 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3349
3350 * dwarf2out.c (default_eh_frame_section): Split into ...
3351 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
3352 functions.
3353 * output.h (named_section_eh_frame_section): Declare.
3354 (collect2_eh_frame_section): Likewise.
3355
3356 2003-09-29 Zack Weinberg <zack@codesourcery.com>
3357
3358 * real.c (real_sqrt): Use get_canonical_qnan directly.
3359
3360 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
3361
3362 * varasm.c (assemble_real): Use real_to_target directly,
3363 calculate the number of significant elements of the result
3364 array and write them out in a loop, instead of using a giant
3365 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
3366 macro.
3367
3368 2003-09-29 Jan Hubicka <jh@suse.cz>
3369
3370 PR c++/12175
3371 * varasm.c (notice_global_symbol): Discard external symbols.
3372
3373 PR optimization/12286
3374 * gcov-io.c (gcov_read_words): Fix memmove call.
3375 * profile.c (compute_branch_probabilities): Add extra sanity checks.
3376
3377 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3378
3379 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
3380 Solaris 7-9.
3381
3382 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
3383 wildcards which explicitly match micro versions.
3384 * fixinc/fixincl.x: Regenerate.
3385
3386 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
3387
3388 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
3389 (A ^ B) - B, where B is any power of 2 minus 1.
3390
3391 2003-09-29 Jan Hubicka <jh@suse.cz>
3392
3393 * libgcov.c (gcov_exit): Fix two pastos.
3394
3395 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
3396
3397 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
3398 define_split immediately below to form define_insn_and_split.
3399
3400 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
3401
3402 * config/h8300/h8300.md (*tstsi_variable_bit): New.
3403 (*tstsi_variable_bit_qi): Likewise.
3404
3405 2003-09-28 Phil Edwards <phil@codesourcery.com>
3406
3407 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
3408 reference name.
3409
3410 2003-09-28 Richard Henderson <rth@redhat.com>
3411
3412 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
3413 file and line separately.
3414
3415 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
3416
3417 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
3418 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
3419 "*subdi3_borrow_cconly"): New insns.
3420 ("*addsi3_sub", "*subsi3_sub"): Remove.
3421 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
3422 ("*subsi3_cc"): Fix op_type attribute.
3423
3424 2003-09-28 Richard Henderson <rth@redhat.com>
3425
3426 * stmt.c (expand_asm_operands): Take a location_t, instead of
3427 individual file and line.
3428 * c-typeck.c (c_expand_asm_operands): Likewise.
3429 * tree.h (expand_asm_operands): Update decl.
3430 * c-common.h (c_expand_asm_operands): Likewise.
3431 * c-semantics (genrtl_asm_stmt): Update call.
3432
3433 2003-09-28 Philip Blundell <philb@gnu.org>
3434
3435 * config/arm/arm.c (legitimize_pic_address): Check
3436 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
3437 (arm_assemble_integer): Likewise.
3438
3439 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
3440
3441 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
3442 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
3443 config/c4x/c4x.h:
3444 Convert to ISO C90 function declarations and definitions.
3445
3446 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
3447
3448 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
3449 Convert to ISO C90 function declarations and definitions.
3450
3451 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
3452
3453 * config/mips/mips.c (mips_constant_info): Add reloc field.
3454 (mips_classify_constant): Initialize it. Always set SYMBOL to the
3455 underlying symbol, not to an unspec.
3456 (mips_delegitimize_address, print_operand): Clean up accordingly.
3457
3458 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
3459
3460 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
3461 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
3462 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
3463 (mips_classify_constant): Use it.
3464 (mips_splittable_symbol_p): Add an offset argument.
3465 (mips_classify_address): Adjust call accordingly.
3466 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
3467 than a relocation unspec. Update call to mips_splittable_symbol_p.
3468 Generalize the code that copes with symbols + invalid offsets.
3469 (print_operand): Allow '%R' to be applied to small data addresses.
3470 (mips_reloc_string): Remove RELOC_GPREL16.
3471 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
3472 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
3473 relocation operators.
3474 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
3475 constants accordingly.
3476
3477 2003-09-27 Roger Sayle <roger@eyesopen.com>
3478
3479 * toplev.c (flag_evaluation_order): New global variable.
3480 * flags.h (flag_evaluation_order): Prototype here.
3481 * expr.c (expand_operands): If we need to preserve observable
3482 evaluation order, protect exp1 from clobbering exp0's result.
3483
3484 2003-09-28 Andreas Jaeger <aj@suse.de>
3485
3486 * c-decl.c (finish_function): Convert definition to ISO C90.
3487 * ifcvt.c (mark_loop_exit_edges): Likewise.
3488 * ra-rewrite.c (emit_colors): Likewise.
3489
3490 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
3491
3492 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
3493 * config.gcc (arm*-*-uclinux*): Disable fixproto.
3494 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
3495 powerpc-*-eabialtivec*): Disable fixproto.
3496
3497 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
3498
3499 PR optimization/12340
3500 * loop.h (struct induction): Document the new semantics
3501 of the 'same' field for bivs.
3502 * unroll.c (biv_total_increment): Don't count the same
3503 biv increment several times.
3504 (loop_iterations) [GENERAL_INDUCT]: Likewise.
3505
3506 2003-09-27 Graham Stott <graham.stott@btinternet.com>
3507
3508 * unroll.c (loop_interations)[GT]: Add missing break.
3509
3510 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
3511
3512 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
3513 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
3514 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
3515 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
3516 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
3517 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
3518 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
3519 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
3520 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
3521 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
3522 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
3523 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
3524 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
3525 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
3526 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
3527 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
3528 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
3529 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
3530 config/alpha/xm-vms.h, config/arc/arc-modes.def,
3531 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
3532 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
3533 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
3534 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
3535 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
3536 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
3537 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
3538 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
3539 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
3540 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
3541 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
3542 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
3543 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
3544 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
3545 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
3546 config/i960/i960-c.c, config/i960/i960-coff.h,
3547 config/i960/i960-modes.def, config/i960/i960-protos.h,
3548 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
3549 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
3550 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
3551 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
3552 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
3553 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
3554 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
3555 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
3556 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
3557 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
3558 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
3559 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
3560 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
3561 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
3562 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
3563 config/mcore/mcore-protos.h, config/mcore/mcore.c,
3564 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
3565 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
3566 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
3567 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
3568 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
3569 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
3570 config/mips/vr.h, config/mn10300/linux.h,
3571 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
3572 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
3573 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
3574 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
3575 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
3576 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
3577 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
3578 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
3579 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
3580 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
3581 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
3582 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
3583 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
3584 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
3585 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
3586 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
3587 fixinc/fixinc.svr4: GNU CC -> GCC.
3588
3589 2003-09-26 Loren James Rittle <ljrittle@acm.org>
3590
3591 * objc/objc-act.c (tm_p.h): Tweak order.
3592 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
3593
3594 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
3595
3596 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
3597 Include t-slibgcc-elf-ver and t-linux in tmake_file.
3598 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
3599 Disable fixproto.
3600 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
3601 Disable fixproto.
3602 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
3603 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
3604
3605 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
3606
3607 2003-09-26 Loren James Rittle <ljrittle@acm.org>
3608
3609 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
3610 * objc/objc-act.c (tm_p.h): Include.
3611
3612 2003-09-26 Per Bothner <pbothner@apple.com>
3613
3614 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
3615 No longer any need to reverse by recursion.
3616
3617 2003-09-26 Roger Sayle <roger@eyesopen.com>
3618 Richard Henderson <rth@redhat.com>
3619
3620 PR optimization/11741
3621 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
3622 appropriate set to match that in hash_scan_insn. Fall back to
3623 the original copy method, if we can't validate changing insn.
3624 (pre_delete): Only delete instructions that have a single_set,
3625 instead of aborting when we encounter an PARALLEL insn with more
3626 then one SET.
3627
3628 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
3629
3630 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
3631 ("builtin_longjmp"): Insn deleted.
3632 ("save_stack_nonlocal"): Save literal pool base pointer behind
3633 backchain and stack pointer.
3634 ("restore_stack_nonlocal"): Restore literal pool base pointer.
3635 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
3636 the stack save area for the nonlocal goto case.
3637
3638 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3639
3640 PR bootstrap/12358
3641 * pa.c (output_bvb): Fix typo.
3642
3643 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
3644
3645 * expmed.c (store_bit_field): Don't search for an integer mode
3646 unless we need the result.
3647
3648 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
3649
3650 * expr.c (emit_move_insn_1): If there is no move pattern for the
3651 original mode, try using a pattern for the corresponding integer mode.
3652
3653 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
3654
3655 PR middle-end/9200
3656 * combine.c (if_then_else_cond): Tighten mode check.
3657
3658 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
3659
3660 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
3661 'struct _cpp_strbuf'.
3662
3663 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3664 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
3665 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
3666 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
3667 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
3668 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
3669 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
3670 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
3671 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
3672 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
3673 * config/i386/i386-aout.h, config/i386/i386-coff.h,
3674 config/i386/i386-interix.h, config/i386/i386-interix3.h,
3675 config/i386/i386-modes.def, config/i386/i386-protos.h,
3676 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
3677 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
3678 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
3679 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
3680 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
3681 "GNU compiler" -> GCC.
3682 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
3683 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
3684 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
3685 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
3686 config/i386/freebsd-aout.h, config/i386/freebsd.h,
3687 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
3688
3689 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
3690
3691 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
3692 "local" to the callgraph dump. Output "after inlining" earlier.
3693 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
3694 callgraph dumps. Correct misspellings.
3695 (cgraph_decide_inlining): Output number of insns before inlining.
3696 Output the calling function into which a function is inlined.
3697 (cgraph_decide_small_functions): Format dump file like always_inline.
3698
3699 2003-09-25 Loren James Rittle <ljrittle@acm.org>
3700
3701 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
3702
3703 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
3704
3705 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
3706 FPR slots in the save area.
3707 (s390_emit_epilogue): Likewise.
3708
3709 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
3710
3711 * cgraph.h (cgraph_remove_edge): Declare.
3712 * cgraph.c (cgraph_remove_edge): Make extern.
3713 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
3714 instead of cgraph_remove_call.
3715
3716 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
3717
3718 * objc/objc-act.c (gen_declaration_1): Fix printf format.
3719
3720 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
3721
3722 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
3723 arm7tdmi core.
3724
3725 2003-09-25 Ziemowit Laski <zlaski@apple.com>
3726
3727 * config/darwin-protos.h (objc_image_info_section):
3728 New prototype.
3729
3730 2003-09-25 Ziemowit Laski <zlaski@apple.com>
3731
3732 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
3733
3734 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
3735
3736 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
3737 tsc701 as a --with-cpu, --with-tune setting for sparc.
3738
3739 2003-09-25 Ziemowit Laski <zlaski@apple.com>
3740
3741 * c-parse.in (objc_try_stmt): Do not specify a %type.
3742
3743 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
3744
3745 * config.gcc: New 'widely ported system' clause for rtems.
3746 Set thread file there, not in individual clauses.
3747
3748 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
3749
3750 PR target/6222
3751 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
3752 passed on the stack.
3753
3754 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
3755
3756 * config.gcc (widely ported systems section): Mostly alphabetize
3757 by system. Comment the case where we can't.
3758 * config.gcc (widely ported systems section): Reindent and clean up.
3759
3760 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
3761 Actually allow ep9312 as an arm --with-arch setting.
3762
3763 * config.gcc (*-hpux11): Disable fixproto.
3764
3765 2003-09-24 Phil Edwards <phil@codesourcery.com>
3766
3767 PR pch/12112
3768 * gcc/cppfiles.c (pch_open_file): Return based on combined
3769 result of all files.
3770 (validate_pch): Return validate flag for current file.
3771
3772 2003-09-24 Roger Sayle <roger@eyesopen.com>
3773
3774 PR bootstrap/12358
3775 * fold-const.c (tree_swap_operands_p): Only reorder operands when
3776 one of the operands is constant.
3777
3778 2003-09-24 Ziemowit Laski <zlaski@apple.com>
3779
3780 MERGE OF objc-improvements-branch into MAINLINE:
3781 * Makefile.in (C_OBJS): Add in stub-objc.o.
3782 (c-parse.y): Change sed demarcations to begin with '@@'.
3783 (stub-objc.o): New rule.
3784 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
3785 flag_replace_objc_classes): New flags.
3786 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
3787 RID_AT_SYNCHRONIZED): New keywords.
3788 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
3789 flag_replace_objc_classes): New flags.
3790 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
3791 objc_comptypes, objc_message_selector, lookup_objc_ivar,
3792 get_current_scope, objc_mark_locals_volatile): New prototypes,
3793 some moved from c-tree.h.
3794 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
3795 (finish_decl): Adjust where objc_check_decl() gets called.
3796 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
3797 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
3798 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
3799 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
3800 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
3801 '@@end_ifc', respectively.
3802 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
3803 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
3804 objc_finally_block): New rules.
3805 (component_decl_list2): Clean up semantic action for @defs construct.
3806 (component_decl, c99_block_start): Remove call to add_objc_decls().
3807 (poplevel): Add call to objc_clear_super_receiver().
3808 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
3809 constructs.
3810 (classdef, methodprotolist): Clean up/simplify.
3811 (methodprotolist2): Eliminate.
3812 (methodproto): Call add_method() instead of add_class_method() and
3813 add_instance_method().
3814 (receiver): Add TYPENAME production.
3815 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
3816 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
3817 AT_SYNCHRONIZED.
3818 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
3819 objc_comptypes, objc_message_selector)
3820 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
3821 struct and pointer types.
3822 (build_c_cast): Do not discard ObjC protocol qualifiers.
3823 (convert_for_assignment): Cache result of comp_target_types() instead
3824 of calling it more than once.
3825 * c.opt (fnext-runtime): Update description string.
3826 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
3827 New ObjC/ObjC++-specific flags.
3828 * function.h (GCC_FUNCTION_H): Header guard.
3829 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
3830 * stub-objc.c: New file, to be used to satisfy references to ObjC
3831 functions by the C and C++ front-ends.
3832 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
3833 * config/darwin.h (FUNCTION): Add in_objc_image_info.
3834 (SECTION_FUNCTION): Add objc_image_info_section.
3835 * doc/invoke.texi: Link to GCC web site for Objective-C information.
3836 (-fconstant-string-class): Update documentation.
3837 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
3838 -fzero-link): New documentation.
3839 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
3840 with '@@'.
3841 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
3842 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
3843 throughout; provide casts for return values from memory allocation
3844 functions (xmalloc, alloca, ggc_alloc, etc.).
3845 (OBJC_VOID_AT_END): New macro.
3846 (rtl.h): Do not #include any more.
3847 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
3848 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
3849 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
3850 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
3851 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
3852 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
3853 val_stack_pop): New.
3854 (objc_check_decl): Fix precondition for error message, along with
3855 the message itself.
3856 (lookup_and_install_protocols): Remove nonexistent protocols from
3857 protocol list instead of returning error_mark_node.
3858 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
3859 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
3860 (synth_module_prologue): General clean-up; construct NeXT-specific
3861 runtime API prototypes if needed.
3862 (build_string_class_template): Remove.
3863 (check_string_class_template, string_layout_checked): New.
3864 (build_objc_string_object): Generalize to work with
3865 -fconstant-string-class.
3866 (build_objc_symtab_template): Fix layout for the NeXT runtime.
3867 (build_metadata_decl): New.
3868 (forward_declare_categories): Call build_metadata_decl() instead of
3869 create_builtin_decl() et al.
3870 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
3871 void_list_node_1.
3872 (build_selector_reference_decl, build_class_reference_decl,
3873 build_objc_string_decl): Do not set TREE_READONLY.
3874 (get_proto_encoding): Do not call hack_method_prototype().
3875 (get_class_reference): Add failure mode for invalid class names;
3876 support -fzero-link; defer if in an ObjC++ template declaration.
3877 (objc_declare_alias, objc_declare_class): Fix up duplicate name
3878 lookup; check for global scope if in ObjC++.
3879 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
3880 RECORD_TYPE, IDENTIFIER_NODE, etc.)
3881 (objc_is_id): Removed.
3882 (objc_is_object_ptr): New function.
3883 (get_class_ivars_from_name): New function, used for @defs construct.
3884 (get_class_ivars): Add option to return raw ivars; create a
3885 ClASS_OWN_IVARS list for each class as needed.
3886 (objc_enter_block, objc_exit_block, objc_declare_variable,
3887 objc_build_throw_stmt, val_stack_push, val_stack_pop,
3888 objc_build_try_enter_fragment, objc_build_extract_expr,
3889 objc_build_try_exit_fragment, objc_build_extract_fragment,
3890 objc_build_try_prologue, objc_build_try_epilogue,
3891 objc_build_catch_stmt, objc_build_catch_epilogue,
3892 objc_build_finally_prologue, objc_build_finally_epilogue,
3893 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
3894 objc_build_synchronized_epilogue, build_objc_exception_stuff):
3895 New functions.
3896 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
3897 the future).
3898 (build_private_template): Fix up calls to get_class_ivars().
3899 (offset_is_register, forwarding_offset): Remove.
3900 (objc_method_parm_type, objc_encoded_type_size): New functions.
3901 (encode_method_prototype): Simplify to no longer depend on
3902 back-end information.
3903 (build_tmp_function_decl_xxx, build_tmp_function_decl,
3904 hack_method_prototype): Removed.
3905 (generate_protocol_references): Remove calls to
3906 build_tmp_function_decl().
3907 (generate_protocols): Adjust calls to encode_method_prototype().
3908 (build_class_template): Generate sel_id' and 'gc_object_type' fields
3909 for the NeXT runtime.
3910 (synth_forward_declarations): Call build_metadata_decl().
3911 (check_ivars): Check that the number of ivars matches also.
3912 (build_super_template): Modify super_type directly; disable debugging
3913 output while generating decl.
3914 (build_ivar_list_initializer): Skip list elements that are not
3915 FIELD_DECLs.
3916 (ivar_list_length): New function.
3917 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
3918 and encode_method_prototype() instead of encode_method_def().
3919 (build_shared_structure_initializer): Generate 'sel_id' field for
3920 the NeXT runtime.
3921 (generate_category): Do not set TREE_USED.
3922 (build_keyword_selector): Ditto; transform into a function argument
3923 chain.
3924 (get_arg_type_list): If there are no user-specified arguments, use
3925 '...'; use OBJC_VOID_AT_END.
3926 (check_duplicates): Add a parameter indicating whether methods or
3927 selectors are being checked.
3928 (receiver_is_class_object): Add parameters indicating whether
3929 receiver is 'self' or 'super'; robustify.
3930 (build_message_expr): Defer call to finish_message_expr() if
3931 inside an ObjC++ template.
3932 (lookup_method_in_hash_lists): New function.
3933 (finish_message_expr): Complete rewrite/fix.
3934 (build_objc_method_call): Ditto; factor out commonalities between
3935 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
3936 messenger variants on the NeXT.
3937 (lookup_instance_method_static, lookup_class_method_static):
3938 Fold into a single lookup_method_static() function with an
3939 additional parameter.
3940 (add_class_method, add_instance_method): Fold into a single
3941 add_method() function with an additional parameter.
3942 (add_category): Make duplicate categories a hard error in ObjC++.
3943 (add_instance_variable): Properly handle unnamed ivars, arrays of
3944 zero or no size and bitfields. In ObjC++, check for nontrivial
3945 C++ class instances.
3946 (is_public): Allow C functions to access non-@public ivars, with
3947 a warning.
3948 (start_class): Move common initializations to
3949 synth_module_prologue(); check for global scope if in ObjC++.
3950 (continue_class): Fix calls to finish_struct().
3951 (objc_declare_protocols, start_protocol): Check for global scope
3952 if in ObjC++.
3953 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
3954 (encode_aggregate_within): Rewrite to properly distinguish
3955 struct tags from typedefs in both ObjC and ObjC++.
3956 (encode_bitfield, encode_complete_bitfield): Remove.
3957 (encode_next_bitfield, encode_gnu_bitfield): New functions.
3958 (encode_field_decl): Call encode_next_bitfield() or
3959 encode_gnu_bitfield() as needed.
3960 (synth_self_and_ucmd_args): New function.
3961 (start_method_def): Use it.
3962 (objc_types_are_equivalent): New function.
3963 (comp_proto_with_proto): Use it instead of comptypes(), since
3964 we need symmetry.
3965 (really_start_method): Use lookup_method_static() instead of
3966 lookup_class_method_static() and lookup_instance_method_static();
3967 Emit 'extern "C"' if in ObjC++ mode.
3968 (add_objc_decls): Removed.
3969 (UOBJC_SUPER_scope): New variable.
3970 (get_super_receiver): Move construction of 'super' from
3971 add_objc_decls(); remove dependency on struct objc_class.
3972 (encode_method_def): Removed; encode_method_prototype() is
3973 used instead.
3974 (objc_clear_super_receiver): New function.
3975 (objc_expand_function_end): Do not do anything for ordinary
3976 C functions.
3977 (finish_method_def): Mark ObjC methods as un-inlinable.
3978 (gen_declaration_1): Emit widths of bitfields.
3979 (finish_objc): Call generate_objc_image_info() if needed;
3980 use check_duplicates() when checking for selector duplicates.
3981 (generate_objc_image_info): New function.
3982 * objc/objc-act.h (add_instance_method, add_class_method,
3983 get_class_ivars): Remove prototypes.
3984 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
3985 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
3986 objc_build_catch_stmt, objc_build_catch_epilogue,
3987 objc_build_finally_prologue, objc_build_finally_epilogue,
3988 add_method, get_class_ivars_from_name): New prototypes.
3989 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
3990 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
3991 TRANSLATION_UNIT_DECLs.
3992 (OBJC_TYPE_NAME): New.
3993 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
3994 got included.
3995 (IS_SUPER): Robustify.
3996 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
3997 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
3998 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
3999 objc_exception_match_decl, objc_exception_throw_decl,
4000 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
4001 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
4002 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
4003 objc_catch_type): New ObjC/ObjC++ roots.
4004 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
4005 ObjC/ObjC++ tree node codes.
4006
4007 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
4008
4009 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
4010 code path that calls a handler.
4011
4012 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
4013
4014 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
4015 Disable fixproto.
4016
4017 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
4018 the section giving $with_cpu defaults by target.
4019
4020 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
4021 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
4022 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
4023 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
4024 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
4025 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
4026
4027 2003-09-24 David Edelsohn <edelsohn@gnu.org>
4028
4029 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
4030 together. Protect load string instruction with TARGET_STRING.
4031 (movti_string): Collapse case 1 and 2 together.
4032
4033 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
4034
4035 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
4036
4037 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
4038
4039 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
4040 do...while(0)
4041
4042 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
4043
4044 * config.gcc: Move use_fixproto=no from generic vxworks clause to
4045 specific one.
4046
4047 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
4048 (accidentally missed in last pass).
4049
4050 2003-09-23 Andrew Pinski <apinski@apple.com>
4051
4052 PR bootstrap/12383
4053 * configure: Regenerate.
4054
4055 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
4056
4057 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
4058 missed in last pass).
4059
4060 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
4061
4062 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
4063 constant.
4064
4065 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
4066
4067 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
4068
4069 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
4070 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
4071 powerpcle-*-eabi*): Disable fixproto.
4072
4073 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
4074 specific FreeBSD clauses.
4075 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
4076 specific NetBSD clauses.
4077 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
4078 to specific OpenBSD clauses.
4079
4080 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4081
4082 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
4083 without adding a frame note.
4084 * pa.md (allocate_stack): Save pic register in new frame marker when
4085 generating pic code.
4086
4087 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
4088
4089 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
4090 cgraph_expand_functions.
4091
4092 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4093
4094 * Makefile.in (gnucompare*): Merge into ...
4095 (slowcompare*): ... here.
4096 (fastcompare*): New targets.
4097 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
4098 other "fast" cmp programs.
4099 * configure: Regenerate.
4100
4101 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4102
4103 * targhooks.c: Include output.h.
4104 * Makefile.in (targhooks.o): Add output.h to dependency list.
4105
4106 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4107
4108 * config.host: Removed superfluous newline.
4109
4110 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
4111
4112 * config.gcc: Use ${target}, not $machine.
4113 * configure.in: Don't set $machine.
4114 * configure: Regenerate.
4115
4116 2003-09-23 Geoffrey Keating <geoffk@apple.com>
4117
4118 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
4119
4120 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
4121 pass zero-size arrays by reference.
4122 (rs6000_va_arg): Likewise.
4123
4124 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
4125
4126 * config.gcc: Set use_fixproto=no in each specific *-gnu*
4127 configuration, rather than the generic one.
4128
4129 2003-09-23 Richard Henderson <rth@redhat.com>
4130
4131 * tree-inline.c (remap_save_expr): Map new save_expr to identity
4132 rather than to error_mark_node.
4133
4134 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4135
4136 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
4137 Update description.
4138 * configure: Regenerate.
4139 * config.in: Likewise.
4140 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
4141 HAVE_GAS_SHF_MERGE value.
4142 * varasm.c (mergeable_string_section): Likewise.
4143 (mergeable_constant_section): Likewise.
4144
4145 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4146
4147 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
4148 value.
4149
4150 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4151
4152 * target.h (struct gcc_target): New member external_libcall.
4153 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
4154 (TARGET_ASM_OUT): Use it.
4155 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
4156 * targhooks.c: Convert to ISO C 90.
4157 (default_external_libcall): New function.
4158 * targhooks.h (default_external_libcall): Declare.
4159 * varasm.c (assemble_external_libcall): Use
4160 targetm.asm_out.external_libcall instead of
4161 ASM_OUTPUT_EXTERNAL_LIBCALL.
4162 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
4163 (mips_output_external_libcall): Declare.
4164 * config/mips/mips.c (mips_output_external_libcall): Change
4165 definition guard.
4166 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
4167 Only operate for O32 ABI.
4168 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
4169 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
4170 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
4171 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
4172
4173 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
4174
4175 * config.gcc: Do per-target disabling of fixproto here in clauses,
4176 not in t- fragments.
4177 * configure.in: Adjust to set STMP_FIXPROTO correctly.
4178 * configure: Regenerate.
4179 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
4180 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
4181 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
4182 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
4183 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
4184 t-interix, t-linux-aout: Delete files consisting only of
4185 setting of STMP_FIXPROTO.
4186
4187 * config.host: Allow unknown hosts (not targets). Allow
4188 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
4189 empty clauses. Remove useless obsolete-configuration clause.
4190 Prune unsupported configuration list. Collapse identical
4191 clauses for closely related systems. Rewrite comment for
4192 unsupported hosts list. Reorganize a little.
4193
4194 2003-09-22 Richard Henderson <rth@redhat.com>
4195
4196 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
4197 not precision.
4198
4199 2003-09-22 David Edelsohn <edelsohn@gnu.org>
4200 Hartmut Penner <hpenner@de.ibm.com>
4201 Segher Boessenkool <boessen@de.ibm.com>
4202
4203 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
4204 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
4205 (rs6000_split_altivec_in_gprs): Rename to ...
4206 (rs6000_split_multireg_move): Add support for update addressing.
4207 * config/rs6000/rs6000-protos.h: Same.
4208 * config/rs6000/altivec.md: Same.
4209 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
4210 multiple GPRs.
4211 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
4212 (movti_power): Use new splitter for multiple GPRs.
4213 (movti_string): Same.
4214 (movti_ppc64): Same.
4215
4216 2003-09-22 Bob Wilson <bob.wilson@acm.org>
4217
4218 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
4219 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
4220
4221 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
4222
4223 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
4224 (andsi3): Set attr cc to set_zn when using shifts or adds.
4225
4226 2003-09-22 Bernardo Innocenti <bernie@develer.com>
4227
4228 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
4229
4230 2003-09-22 Bernardo Innocenti <bernie@develer.com>
4231
4232 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
4233 Resurrect -mrtd option.
4234
4235 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
4236
4237 PR target/12281
4238 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
4239 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
4240
4241 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
4242
4243 PR target/9786
4244 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
4245 after potential deletion of trapping insn. Avoids later ICE
4246 from call to fixup_abnormal_edges.
4247 (convert_regs_2): Stack the current block successors before
4248 processing this block, that is, before the potential deletion of
4249 dead edges by convert_regs_1, because these edges have been used
4250 to initialize the predecessors count.
4251
4252 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
4253
4254 * real.c: Fix several nits in the head comment.
4255
4256 2003-09-21 Richard Henderson <rth@redhat.com>
4257
4258 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
4259 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
4260 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
4261 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
4262 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
4263
4264 2003-09-21 Richard Henderson <rth@redhat.com>
4265
4266 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
4267 (TREE_FILENAME, TREE_LINENO): Likewise.
4268 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
4269 (TREE_LOCUS_SET_P): New.
4270 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
4271 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
4272 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
4273 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
4274 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
4275
4276 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
4277
4278 * config/vax/vax-protos.h: Convert to ISO C90.
4279 * config/vax/vax.c: Convert to ISO C90.
4280
4281 2003-09-21 Graham Stott <grahams@btinternet.com>
4282
4283 PR target/12353
4284 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
4285
4286 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
4287
4288 PR target/12301
4289 * reorg.c (stop_search_p): Return 1 for insns that can
4290 throw internally.
4291
4292 2003-09-20 Richard Henderson <rth@redhat.com>
4293
4294 * c-format.c (gcc_diag_char_table): Add %J.
4295 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
4296 (check_format_types): Fix wanted_type name lookup.
4297 (init_dynamic_diag_info): Setup %J.
4298 * diagnostic.c (text_specifies_location): Implement %J.
4299 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
4300 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
4301 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
4302 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
4303 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
4304
4305 * tree-inline.c: Include intl.h
4306 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
4307 * Makefile.in (tree-inline.o): Update.
4308
4309 2003-09-20 Roger Sayle <roger@eyesopen.com>
4310
4311 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
4312 transformation of a>=0 into (unsigned)a<0x80000000.
4313
4314 2003-09-20 Andrew Pinski <apinski@apple.com>
4315
4316 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
4317
4318 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
4319
4320 * Makefile.in: Don't set (unused) DLLTOOL.
4321
4322 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
4323 Remove obsolete references to ENQUIRE.
4324
4325 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
4326
4327 * configure.in: Remove --with-elf, which doesn't work.
4328 * configure: Regenerate.
4329 * config.gcc: Remove references to $elf, which does nothing.
4330
4331 * config/i386/xm-vsta.h: Remove xm-file believed useless.
4332 * config.build (i386-vsta): Remove reference to it.
4333 * config.host (i386-vsta): Remove reference to it.
4334
4335 2003-09-19 Phil Edwards <phil@codesourcery.com>
4336
4337 * doc/install.texi: Document the multiple testsuite options.
4338
4339 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
4340
4341 * doc/install.texi (Specific): Add the specific versions of GCC
4342 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
4343 version 3 and older was discontinued.
4344
4345 2003-09-19 Joel Sherrill <joel@oarcorp.com>
4346
4347 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
4348 68881.
4349
4350 2003-09-19 Bernardo Innocenti <bernie@develer.com>
4351
4352 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
4353 for -m68030, -m68020-60 and -m68020-40.
4354 * config/m68k/m68k.h (TARGET_68030): New target flag.
4355 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
4356 TARGET_REGPARM): Remove.
4357 * config/m68k/m68k.h: Regroup and renumber target flags.
4358 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
4359 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
4360 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
4361 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
4362 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
4363
4364 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4365
4366 * config/m68k/t-rtems (m68k-*-rtems*): New.
4367 * config.gcc: Use config/m68k/t-rtems.
4368
4369 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4370
4371 * config/mips/t-rtems: New.
4372 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
4373
4374 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
4375
4376 * cgraph.c: Fix typo in debugging output.
4377
4378 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4379 Eric Botcazou <ebotcazou@libertysurf.fr>
4380
4381 PR target/12166
4382 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
4383
4384 2003-09-18 Mike Stump <mrs@apple.com>
4385
4386 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
4387 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
4388 cb_ident, cb_def_pragma): Use fileline typedef.
4389 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
4390
4391 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
4392
4393 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
4394 total parm size if a parm has incomplete type.
4395 (gen_fastcall_suffix): Likewise.
4396
4397 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4398
4399 * except.c (output_function_exception_table): Adjust last change
4400 to handle TYPE of INTEGER_CST.
4401
4402 2003-09-18 Mark Mitchell <mark@codesourcery.com>
4403
4404 PR target/11184
4405 * builtins.c (expand_builtin_apply): Use convert_memory_address
4406 before returning the value.
4407
4408 * alias.c (find_base_value): Simplify use of
4409 convert_memory_address.
4410 (find_base_term): Likewise.
4411 * builtins.c (expand_builtin_stejmp_setup): Likewise.
4412 (expand_builtin_longjmp): Likewise.
4413 (expand_builtin_prefetch): Likewise.
4414 (get_memory_rtx): Likewise.
4415 (expand_builtin_return): Likewise.
4416 (expand_builtin_memcpy): Likewise.
4417 (expand_builtin_strncpy): Likewise.
4418 (expand_builtin_memset): Likewise.
4419 (expand_builtin_va_arg): Likewise.
4420 (expand_builtin_va_copy): Likewise.
4421 (expand_builtin_alloca): Likewise.
4422 * calls.c (expand_call): Likewise.
4423 * except.c (expand_builtin_extract_return_addr): Likewise.
4424 (expand_builtin_eh_return): Likewise.
4425 * explow.c (convert_memory_address): Define even when
4426 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
4427 is already in the right mode.
4428 * explow.c (memory_address): Simplify use of convert_memory_address.
4429 (probe_stack_range): Likewise.
4430 * expmed.c (make_tree): Likewise.
4431 * expr.c (emit_block_move_in_libcall): Likewise.
4432 (expand_assignment): Likewise.
4433 (expand_expr): Likewise.
4434 * function.c (assign_parms): Likewise.
4435 (expand_function_end): Likewise.
4436 * integrate.c (copy_rtx_and_substitute): Likewise.
4437 * stmt.c (expand_computed_goto): Likewise.
4438
4439 2003-09-18 Roger Sayle <roger@eyesopen.com>
4440
4441 * simplify-rtx.c (simplify_unary_operation): Only transform
4442 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
4443 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
4444
4445 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4446
4447 PR target/11674
4448 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
4449
4450 2003-09-18 Roger Sayle <roger@eyesopen.com>
4451
4452 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
4453 PARITY_EXPR): Delete unused tree codes.
4454 * c-common.c (c_common_truthvalue_conversion): Delete references
4455 to FFS_EXPR and POPCOUNT_EXPR.
4456 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
4457 (pp_c_expression): Likewise.
4458 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
4459 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
4460 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
4461 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
4462 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
4463 and long long variants.
4464
4465 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
4466
4467 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
4468 * c-pretty-print.c: Fix formatting.
4469 (pp_c_integer_constant): Append type annotation to literals. Tidy.
4470 (pp_c_type_specifier): Tidy.
4471 (pp_c_compound_literal): New function.
4472 (pp_c_initializer): Simplify..
4473 (pp_c_initializer_list): Likewise.
4474 (pp_c_brace_enclosed_initializer_list): New function.
4475 (pp_c_postfix_expression): Simplify.
4476
4477 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
4478
4479 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
4480 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
4481
4482 2003-09-17 Richard Henderson <rth@redhat.com>
4483
4484 * tree-optimize.c (tree_rest_of_compilation): Save and restore
4485 input_location.
4486
4487 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
4488
4489 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
4490
4491 2003-09-17 Richard Henderson <rth@redhat.com>
4492
4493 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
4494
4495 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4496
4497 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
4498 * configure: Regenerate.
4499
4500 2003-09-17 Mark Mitchell <mark@codesourcery.com>
4501
4502 PR debug/12066
4503 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
4504 * langhooks-def.h (lhd_return_null_tree_v): New function.
4505 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
4506 (LANG_HOOKS_DECLS): Add it to the intializer.
4507 * langhooks.c (lhd_return_null_tree_v): New function.
4508 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
4509
4510 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
4511
4512 * configure.in: Quote gcc_config_arguments for configargs.h.
4513 * configure: Regenerated.
4514 * gccbug.in: Don't shell-expand gcc_config_arguments.
4515
4516 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
4517
4518 PR c++/11357
4519 * c-pretty-print.c (pp_c_floating_constant): Append
4520 type-annotation to floating constants.
4521
4522 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4523
4524 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
4525 Define _ABIO32.
4526 Use it for _MIPS_SIM.
4527 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
4528
4529 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
4530 Moved ...
4531 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
4532 updating comment.
4533 Fixes PR target/10190.
4534
4535 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
4536
4537 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
4538 to shared libraries.
4539
4540 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
4541
4542 PR optimization/11646
4543 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
4544 EDGE_ABNORMAL flag for EH edges.
4545 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
4546 if dead edges were purged.
4547
4548 2003-09-16 Bernardo Innocenti <bernie@develer.com>
4549
4550 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
4551 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
4552 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
4553 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
4554
4555 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
4556
4557 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
4558 returned by tablejump_p.
4559
4560 2003-09-16 Joel Brobecker <brobecker@gnat.com>
4561
4562 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
4563
4564 2003-09-16 Roger Sayle <roger@eyesopen.com>
4565
4566 PR bootstrap/12269
4567 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
4568 argument to be VOIDmode, taking the mode of the comparison from
4569 the operands. Only call simplify_relational_operation if we
4570 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
4571 if comparison has a floating point result. Ensure that the
4572 result is always of the specified mode.
4573 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
4574 (simplify_unary_operation): Ensure the correct mode and cmp_mode
4575 are always passed to simplify_gen_relational. Simplify NOT of
4576 comparison operator in any mode, not just BImode.
4577 (simplify_ternary_operation): Correct tests on the return value
4578 of simplify_relational_operation to use const_true_rtx, not
4579 const1_rtx. Abort if it ever returns a non-constant result.
4580
4581 * cfgloopanal.c (count_strange_loop_iterations): Use the function
4582 simplify_relational_operation, not simplify_gen_relational, if
4583 we're only interested in constant comparisons and will ignore
4584 non-constant results.
4585
4586 2003-09-16 Roger Sayle <roger@eyesopen.com>
4587
4588 * fold-const.c (tree_swap_operands_p): New function to determine
4589 the prefered ordering of operands.
4590 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
4591 operands to commutative, comparison or ternary operators. Replace
4592 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
4593 transformation of A ? B : C into !A ? C : B.
4594
4595 2003-09-16 Jakub Jelinek <jakub@redhat.com>
4596
4597 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4598 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4599 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4600 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4601 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4602 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4603 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4604 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4605
4606 2003-09-16 Jason Merrill <jason@redhat.com>
4607 Jakub Jelinek <jakub@redhat.com>
4608
4609 * c-common.c (handle_warn_unused_result_attribute): New function.
4610 (c_common_attribute_table): Add warn_unused_result.
4611 (c_expand_expr): Issue warning when result of inlined function
4612 with warn_unused_result attribute is ignored.
4613 * calls.c (expand_call): Issue warning when result of function
4614 with warn_unused_result attribute is ignored.
4615 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
4616 * expr.c (expr_wfl_stack): Define.
4617 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
4618 pass const0_rtx as target. Chain locations into expr_wfl_stack.
4619 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
4620 bit if inlined function has warn_unused_result attribute.
4621 * input.h (expr_wfl_stack): Declare.
4622 * doc/extend.texi: Document warn_unused_result attribute.
4623
4624 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
4625
4626 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
4627
4628 2003-09-15 Bob Wilson <bob.wilson@acm.org>
4629
4630 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
4631 ATTRIBUTE_UNUSED.
4632 (call_insn_operand): For PIC, don't allow a direct call to a
4633 function in a different section than the current one.
4634
4635 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4636
4637 * doc/invoke.texi (Warning Options): Add missing hyphen before
4638 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
4639 Move "-Wold-style-definition" to the C-only section.
4640 Fix the ordering of the warning options.
4641
4642 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4643 Jeff Law <law@redhat.com>
4644
4645 * gcse.c (remove_reachable_equiv_notes): New.
4646 replace_store_insn): Call it. Update antic list.
4647 (store_killed_in_insn): Take REG_EQUAL notes into account.
4648 (build_store_vectors, delete_store): Add parameter to
4649 replace_store_insn call.
4650
4651 2003-09-15 Bob Wilson <bob.wilson@acm.org>
4652
4653 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
4654 SYMBOL_REF_LOCAL_P.
4655
4656 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
4657
4658 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
4659 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
4660 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
4661 Likewise.
4662 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
4663 Likewise.
4664 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
4665 * config/sparc/sparc.c (function_arg_padding): Likewise.
4666
4667 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
4668
4669 * haifa-sched.c (schedule_block): Use ready_remove_first instead
4670 of choose_ready for non-dfa insn scheduling.
4671
4672 2003-09-15 Andreas Jaeger <aj@suse.de>
4673 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4674
4675 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
4676 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
4677 * c-parse.in: Warn about old-style parameter definition.
4678 * c-common.c: Define warn_old_style_defintion.
4679 * c-common.h: Declare it.
4680 * c.opt: Add Wold-style-defintion.
4681
4682 2003-09-15 Andreas Jaeger <aj@suse.de>
4683
4684 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
4685 * config/rs6000/rs6000.c: Likewise.
4686
4687 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4688
4689 PR optimization/10914
4690 * expr.h (get_condition, canonicalize_condition): Declaration changed.
4691 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
4692 and canonicalize_condition calls.
4693 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
4694 delete_null_pointer_checks): Ditto.
4695 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
4696 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
4697 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
4698 (canonicalize_condition, get_condition): Allow to return comparisons
4699 of cc mode registers.
4700 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
4701 cc mode registers comparison in condition.
4702
4703 2003-09-12 Mark Mitchell <mark@codesourcery.com>
4704
4705 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
4706 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
4707 function.
4708 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
4709
4710 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
4711
4712 * combine.c (simplify_comparison): Convert
4713 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
4714 (eq (and (lshiftrt X Y) 1) 0).
4715
4716 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
4717
4718 * alias.c: Follow spelling conventions.
4719 * cpphash.h: Likewise.
4720 * fold-const.c: Likewise.
4721
4722 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
4723
4724 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
4725 * c-lex.c (cb_line_change): Skip line changing whenever
4726 c-ppoutput.c would.
4727
4728 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
4729
4730 * ra.c: Convert to ISO C90 prototypes.
4731 * ra-build.c: Likewise.
4732 * ra-colorize.c: Likewise.
4733 * ra-debug.c: Likewise.
4734 * ra-rewrite.c: Likewise.
4735
4736 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
4737
4738 * Makefile.in (%.dvi): Remove excess $(docdir).
4739
4740 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
4741
4742 * function.c (STACK_BYTES): Move definition to head of file.
4743 (assign_parms): Don't pass current_function_pretend_args_size
4744 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
4745 round current_function_pretend_args_size up to STACK_BYTES. Skip any
4746 excess before laying out the argument.
4747
4748 2003-09-14 Andreas Jaeger <aj@suse.de>
4749
4750 * objc/objc-act.c: Convert to ISO C90 prototypes.
4751 * objc/objc-act.h: Likewise.
4752
4753 2003-09-14 Olaf Hering <olh@suse.de>
4754
4755 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
4756
4757 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
4758
4759 PR target/12021
4760 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
4761 as they already are done in config/m68k/m68k.h.
4762 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
4763
4764 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
4765 (machopic_output_stub): Only generate pic base symbols when using pic
4766 and generate them in the form L00000000$spb.
4767
4768 2003-09-13 Richard Henderson <rth@redhat.com>
4769
4770 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
4771 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
4772 * cgraph.h: Update.
4773
4774 2003-09-12 Dale Johannesen <dalej@apple.com>
4775
4776 * config/rs6000/rs6000.c: Fix typos in previous.
4777
4778 2003-09-12 Ziemowit Laski <zlaski@apple.com>
4779
4780 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
4781 when allocating pp->buffer.
4782
4783 2003-09-12 Geoffrey Keating <geoffk@apple.com>
4784
4785 * config/darwin.c (machopic_select_rtx_section): Use
4786 const_data_section for things that might require relocation.
4787
4788 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
4789
4790 PR bootstrap/12264
4791 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
4792
4793 2003-09-12 Bob Wilson <bob.wilson@acm.org>
4794
4795 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
4796 * config/xtensa/linux.h (ASM_SPEC): Likewise.
4797 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
4798 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
4799 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
4800 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
4801 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
4802 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
4803 and redefine corresponding TARGET_* macros with constants from the
4804 xtensa-config.h header.
4805 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
4806 for the options listed above.
4807
4808 2003-09-12 Dale Johannesen <dalej@apple.com>
4809
4810 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
4811 * config/rs6000/rs6000-c.c: Ditto.
4812 * config/rs6000/rs6000.c: Ditto.
4813 * config/rs6000/ sysv4.h: Ditto.
4814
4815 2003-09-12 Chris Lattner <sabre@nondot.org>
4816
4817 * loop.c: Move comments describing BIV's and GIV's to top of file
4818
4819 2003-09-12 Roger Sayle <roger@eyesopen.com>
4820
4821 PR optimization/8967
4822 * alias.c (write_dependence_p): Modify to take an additional constp
4823 argument that controls whether the UNCHANGING_RTX_P flags are used.
4824 (anti_dependence, output_dependence): Adjust write_dependence_p
4825 callers to pass this additional argument, to return the same result.
4826 (unchanging_anti_dependence): New variant of anti_dependence that
4827 ignores the UNCHANGING_RTX_P property on memory references.
4828 * rtl.h (unchaning_anti_dependence): Prototype here.
4829 * flow.c (init_propagate_block): Place fake constant mem writes on
4830 the mem_set_list so that dead writes to const variables are deleted.
4831 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
4832 (mark_used_regs): Likewise.
4833
4834 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
4835
4836 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
4837 (mcore_secondary_reload_class): Declare.
4838 (mcore_output_inline_const_forced): Remove.
4839 * config/mcore/mcore.md (movsi): Remove the code that forced
4840 non-inlineable constants into a register if the target was r15
4841 or the stack pointer. Remove constant restrictions from the main
4842 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
4843 of an r <- P alternative. Remove fallback define_insn for reload.
4844 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
4845 define_insn. Use mcore_output_move in the remaining define_insn.
4846 Adjust condition and constraints in the way as for movsi.
4847 (movdi): Always split unacceptable constants into two. Use
4848 simplify_gen_subreg instead of operand_subword{,_force}.
4849 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
4850 (mcore_output_move): Support HImode and QImode moves as well.
4851 (mcore_m15_operand_p): New function.
4852 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
4853 (mcore_secondary_reload_class): New function.
4854 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
4855 terms of mcore_secondary_reload_class.
4856
4857 2003-09-11 Mike Stump <mrs@apple.com>
4858
4859 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
4860
4861 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4862
4863 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
4864 MODE exactly, then only convert logN(N) -> 1.0 if
4865 flag_unsafe_math_optimizations is set.
4866
4867 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
4868 init_builtin_dconsts): Delete.
4869 * emit-rtl.c (dconstpi, dconste): Define.
4870 (init_emit_once): Initialize dconstpi & dconste.
4871 * real.h (dconstpi, dconste): Declare.
4872
4873 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
4874
4875 PR fortran/11522
4876 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
4877 for ultimate origin even if block is abstract.
4878
4879 2003-09-11 Roger Sayle <roger@eyesopen.com>
4880
4881 * combine.c (combine_simplify_rtx): Move several NOT and NEG
4882 optimizations from here...
4883 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
4884 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
4885
4886 2003-09-11 Richard Henderson <rth@redhat.com>
4887
4888 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
4889 Tweek tests for function already generated.
4890 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
4891 * cgraph.h (cgraph_finalize_function): Update for extra arg.
4892 * c-decl.c (finish_function): Likewise.
4893
4894 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
4895
4896 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
4897
4898 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
4899
4900 * real.c: Update URL to VAX floating point docs.
4901 (decode_vax_d): Extract 8 exponent bits instead of 7.
4902
4903 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
4904
4905 * combine.c (force_to_mode): Set fuller_mask based only on mask,
4906 not op_mode.
4907
4908 2003-09-11 Jan Hubicka <jh@suse.cz>
4909
4910 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
4911 on why function is not inlinable; do not check
4912 the body.
4913 (inline_forbidden_p): Move to...
4914 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
4915 deal with alloca, longjmp.
4916 (inline_forbidden_p): New static function.
4917 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
4918 find_builtin_longjmp_call): Kill.
4919
4920 2003-09-10 Richard Henderson <rth@redhat.com>
4921
4922 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
4923 * cgraphunit.c: Update to match.
4924 (record_call_1): Rearrange. Call lang hook for language nodes.
4925 (cgraph_analyze_function): Don't call lower_function.
4926 * langhooks.h (struct lang_hooks_for_callgraph): Replace
4927 lower_function with analyze_expr.
4928 * langhooks-def.h: Update to match.
4929 * langhooks.c (lhd_callgraph_analyze_expr): New.
4930
4931 2003-09-10 Martin Husemann <martin@duskware.de>
4932
4933 PR target/11965
4934 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
4935 constants greater than 63.
4936 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
4937 against constants greater than 31.
4938 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
4939 constants greater than 63.
4940
4941 2003-09-09 Richard Henderson <rth@redhat.com>
4942
4943 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
4944 * cgraph.h (cgraph_finalize_function): Update.
4945 * c-decl.c (finish_function): Update.
4946
4947 2003-09-09 Devang Patel <dpatel@apple.com>
4948
4949 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
4950 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
4951
4952 2003-09-09 Eric Christopher <echristo@redhat.com>
4953
4954 * configure.in: Change usage of 'head' to 'sed 1q'.
4955 * configure: Regenerate.
4956
4957 2003-09-09 Richard Henderson <rth@redhat.com>
4958
4959 * except.c: Include cgraph.h.
4960 (output_function_exception_table): Invoke
4961 cgraph_varpool_mark_needed_node.
4962 * Makefile.in (except.o): Update.
4963
4964 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
4965
4966 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
4967 and use it throughout.
4968
4969 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4970
4971 * builtins.c (real_dconstp, fold_builtin_logarithm,
4972 fold_builtin_exponent): New, split out from fold_builtin. Also
4973 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
4974 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
4975 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
4976 of hardcoded array size.
4977 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
4978 (tree_expr_nonnegative_p): Likewise.
4979 * real.h (dconst3, dconst10, dconstthird): New.
4980
4981 2003-09-09 Jan Hubicka <jh@suse.cz>
4982
4983 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
4984 inline functions.
4985 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
4986 DECL_SAVED_TREE.
4987
4988 2003-09-09 Roger Sayle <roger@eyesopen.com>
4989
4990 * builtins.c (fold_builtin_cabs): Protect the complex argument
4991 against multiple evaluation when optimizing cabs* into sqrt*.
4992
4993 2003-09-09 Jan Hubicka <jh@suse.cz>
4994
4995 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
4996
4997 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
4998
4999 * Makefile.in: Revert yesterday's change.
5000
5001 2003-09-08 Bernardo Innocenti <bernie@develer.com>
5002 Peter Barada <peter@baradas.org>
5003
5004 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
5005 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
5006 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
5007 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
5008 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
5009 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
5010 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
5011 (m68k_compute_frame_layout): New function.
5012 (m68k_initial_elimination_offset): New function.
5013 (m68k_output_function_prologue): ColdFire-specific movem handling.
5014 (m68k_output_function_epilogue): Likewise.
5015 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
5016 (ARG_POINTER_REGNUM): Add new definition.
5017 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
5018 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
5019 (CAN_ELIMINATE): Likewise.
5020 (INITIAL_ELIMINATION_OFFSET): Likewise.
5021
5022 2003-09-08 Bernardo Innocenti <bernie@develer.com>
5023
5024 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
5025 by removing redundant variable cfa_store_offset.
5026
5027 2003-09-08 Mark Mitchell <mark@codesourcery.com>
5028
5029 * langhooks-def.h (lhd_register_builtin_type): New function.
5030 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
5031 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5032 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
5033 * langhooks.c (lhd_register_builtin_type): New function.
5034 * c-common.h (c_register_builtin_type): Declare.
5035 * c-common.c (c_register_builtin_type): New function.
5036 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
5037 c_register_builtin_type.
5038 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
5039 __float80, and __float128 macros.
5040 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
5041 __float80, and __float128 types.
5042
5043 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5044
5045 * builtin-types.def
5046 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
5047 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
5048 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
5049 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
5050 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
5051 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
5052 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
5053 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
5054 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
5055 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
5056 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
5057 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
5058 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
5059 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
5060 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
5061 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
5062 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
5063 New.
5064 * doc/extend.texi: Document new builtins.
5065
5066 2003-09-09 Jan Hubicka <jh@suse.cz>
5067
5068 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
5069 finalization.
5070 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
5071 functions, check for COMDAT.
5072 (cgraph_assemble_pending_functions): Break out from...
5073 (cgraph_finalize_function): ... here; allow redefinig of extern inline
5074 functions.
5075 (record_call_1): Record function references only in non-unit-at-a-time
5076 mode.
5077 (cgraph_analyze_function): Reset current_function_decl.
5078 (cgraph_finalize_compilation_unit): Assemble pending functions.
5079
5080 2003-09-08 Mark Mitchell <mark@codesourcery.com>
5081
5082 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
5083 (libgov.a): Likewise.
5084 (libgcc_eh.a): Likewise.
5085
5086 2003-09-08 Roger Sayle <roger@eyesopen.com>
5087
5088 * fold-const.c (operand_equal_p): Clarify documentation.
5089
5090 2003-09-08 Richard Henderson <rth@redhat.com>
5091
5092 * c-decl.c (c_expand_body_1): Push and pop function context here.
5093 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
5094 nested argument instead of computing nesting ourselves.
5095
5096 2003-09-08 Jakub Jelinek <jakub@redhat.com>
5097
5098 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
5099 regstack if optimizing but not scheduling after reload.
5100
5101 2003-09-08 Jakub Jelinek <jakub@redhat.com>
5102
5103 * config/sparc/sparc.c (struct machine_function): New type.
5104 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
5105 (sparc_override_options): Initialize init_machine_status.
5106 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
5107 tie_symbolic_operand, tle_symbolic_operand): New functions.
5108 (symbolic_operand): Disallow tls_symbolic_operand.
5109 (symbolic_memory_operand): Likewise.
5110 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
5111 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
5112 New functions.
5113 (sparc_tls_symbol): New variable.
5114 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
5115 legitimize_address): New functions.
5116 (print_operand): Handle %&.
5117 (sparc_init_machine_status, get_some_local_dynamic_name,
5118 get_some_local_dynamic_name_1): New functions.
5119 (sparc_output_dwarf_dtprel): New function.
5120 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
5121 constant_address_p.
5122 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
5123 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
5124 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
5125 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
5126 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5127 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
5128 (ASM_OUTPUT_DWARF_DTPREL): Define.
5129 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
5130 tie_symbolic_operand, tle_symbolic_operand.
5131 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
5132 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
5133 (tls_call_delay): New attribute.
5134 (in_call_delay): Use it.
5135 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
5136 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
5137 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
5138 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
5139 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
5140 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
5141 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
5142 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
5143 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
5144 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
5145 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
5146 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
5147 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
5148 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
5149 insns.
5150 * config/sparc/sparc-protos.h (legitimate_constant_p,
5151 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
5152 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
5153 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
5154 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5155 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
5156 * configure.in (sparc*-*-*): Add TLS check.
5157 * configure: Rebuilt.
5158
5159 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5160
5161 PR target/11689
5162 * config/i386/i386.c (memory_address_length): Fix computation when
5163 the base is esp or ebp.
5164
5165 2003-09-07 Mark Mitchell <mark@codesourcery.com>
5166
5167 PR c++/11852
5168 * varasm.c (initializer_constant_valid_p): Correct logic for
5169 CONSTRUCTORs.
5170
5171 2003-09-07 Roger Sayle <roger@eyesopen.com>
5172
5173 * expr.c (expand_operands): New function to expand an operand pair.
5174 (expand_expr): Call expand_operands whenever we need to expand both
5175 operands of a binary operator.
5176 (do_store_flag): Likewise for operands of comparison operations.
5177
5178 2003-09-07 Roger Sayle <roger@eyesopen.com>
5179
5180 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
5181 (-A)*B if we care about sign-dependent rounding.
5182
5183 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
5184
5185 * c-pretty-print.h (pp_c_left_brace): Declare.
5186 (pp_c_right_brace): Likewise.
5187 * c-pretty-print.c (pp_c_left_brace): Now a function
5188 (pp_c_right_brace): Likewise.
5189
5190 2003-09-07 Jan Hubicka <jh@suse.cz>
5191
5192 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
5193
5194 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
5195
5196 * diagnostic.c (warn_deprecated_use): Move to toplev.c
5197
5198 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
5199
5200 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
5201 * Makefile.in (langhooks.o): Depend on diagnostic.h
5202
5203 2003-09-06 James E Wilson <wilson@tuliptree.org>
5204
5205 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
5206 simplify.
5207
5208 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
5209
5210 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
5211 and use it throughout.
5212
5213 2003-09-07 Jan Hubicka <jh@suse.cz>
5214
5215 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
5216
5217 * toplev.c (rest_of_decl_compilation): Do not finalize external
5218 virables.
5219
5220 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
5221 functions.
5222 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
5223
5224 2003-09-06 Jan Hubicka <jh@suse.cz>
5225
5226 PR target/12070
5227 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
5228
5229 PR opt/12082
5230 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
5231
5232 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
5233
5234 * diagnostic.c (announce_function): Move to toplev.c.
5235
5236 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5237
5238 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
5239 volatile mem.
5240
5241 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5242
5243 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
5244 when gc checking is enabled.
5245
5246 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
5247
5248 PR c/9862
5249 * c-decl.c (c_expand_body_1): Move return warning from here...
5250 (finish_function): ...to here.
5251
5252 2003-09-05 Geoffrey Keating <geoffk@apple.com>
5253
5254 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
5255 a subset of the input class.
5256
5257 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
5258
5259 * config/i860/i860.c: Follow spelling conventions.
5260 * config/i860/i860.h: Likewise.
5261 * config/sh/sh.h: Likewise.
5262
5263 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
5264
5265 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
5266 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
5267 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
5268
5269 2003-09-05 Roger Sayle <roger@eyesopen.com>
5270 Richard Henderson <rth@redhat.com>
5271
5272 PR optimization/1823
5273 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
5274 multiplication to implement division by constant integer.
5275
5276 2003-09-05 Jan Hubicka <jh@suse.cz>
5277
5278 * opts.c (decode_options): Enable unit-at-a-time at -O2.
5279 * params.def (max-inline-insns-single): Set to 500
5280 (max-inline-insns-auto): Set to 150
5281 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
5282
5283 2003-09-04 Richard Henderson <rth@redhat.com>
5284
5285 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
5286 (cgraph_mark_needed_node): Remove needed argument.
5287 * cgraph.h: Update to match.
5288 * cgraphunit.c (decide_is_function_needed): Split out from ...
5289 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
5290 if we generated the function.
5291 (record_call_1): Update for cgraph_mark_reachable_node.
5292 * varasm.c (mark_referenced): Likewise.
5293 * objc/objc-act.c (mark_referenced_methods): Likewise.
5294
5295 2003-09-04 DJ Delorie <dj@redhat.com>
5296
5297 * targhooks.c: Add comment explaining the migration process.
5298
5299 2003-09-04 Eric Christopher <echristo@redhat.com>
5300
5301 * config/frv/t-frv: Fix path for frv-abi.h.
5302 * config/frv/frv-asm.h: Fix string concatenation.
5303
5304 2003-09-04 DJ Delorie <dj@redhat.com>
5305
5306 * builtins.c (apply_args_size): Guard against a NULL cfun.
5307 (expand_builtin_apply_args_1): Likewise.
5308 (expand_builtin_apply): Likewise.
5309 Fixes PR bootstrap/12172.
5310
5311 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5312
5313 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
5314 assembler supports Sun syntax for cmov.
5315 * configure: Regenerate.
5316 * config.in: Likewise.
5317 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
5318 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
5319 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
5320 Fixes PR target/12101.
5321
5322 2003-09-04 Matt Austern <austern@apple.com>
5323
5324 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
5325 with verbosity 0, instead of DECL_NAME, for human-readable string.
5326
5327 2003-09-04 Eric Christopher <echristo@redhat.com>
5328
5329 * targhooks.c (default_return_in_memory): Allow
5330 unconverted ports.
5331
5332 2003-09-04 Eric Christopher <echristo@redhat.com>
5333
5334 * targhooks.c (default_return_in_memory): Fix typo
5335 in last checkin.
5336
5337 2003-09-04 Eric Christopher <echristo@redhat.com>
5338
5339 * targhooks.c (default_return_in_memory): Fix default
5340 definition.
5341
5342 2003-09-04 Bernardo Innocenti <bernie@develer.com>
5343
5344 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
5345 deleted function.
5346 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
5347 enable coff-only code in m68k.c.
5348
5349 2003-09-04 Nick Clifton <nickc@redhat.com>
5350
5351 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
5352 v850e1.
5353 * config/v850/v850.h: Accept v850e1 as a default CPU.
5354 Accept -mv850e1 as a command line option.
5355 * doc/invoke.texi: Document new -mv850e1 command line switch.
5356 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
5357 -mv850e.
5358
5359 2003-09-04 Nick Clifton <nickc@redhat.com>
5360
5361 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
5362 * config/v850/t-v850: Only produce one extra multilib - for
5363 the v850e.
5364 * config/v850/t-v850e: New file: Only produce one extra
5365 multilib - for the v850.
5366
5367 2003-09-04 Jakub Jelinek <jakub@redhat.com>
5368
5369 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
5370 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
5371 * unwind.h (_Unwind_GetBSP): New prototype.
5372 * libgcc-std.ver: Add empty GCC_3.3.2 version.
5373 * mkmap-symver.awk: For symbol versions with no exported symbols,
5374 don't put anything into version script, just change all symbol
5375 versions which inherit from it to inherit from its ancestor.
5376
5377 2003-09-04 Eric Christopher <echristo@redhat.com>
5378
5379 * config/mips/mips.c (mips_expand_prologue): Convert to
5380 calls.struct_value_rtx hook.
5381 (reg_or_const_float_1_operand): New.
5382 * config/mips/mips.h: Update Comments.
5383 (mips_arg): Add reg_or_const_float_1_operand.
5384 * config/mips/mips.md (divdf3); Convert to expander.
5385 (divsf3): Ditto.
5386 (*divdf3): New pattern.
5387 (*divsf3): Ditto.
5388
5389 2003-09-04 Jan Hubicka <jh@suse.cz>
5390
5391 * toplev.c (wrapup_global_declarations): Fix final pass in
5392 unit-at-atime mode.
5393
5394 2003-09-04 Mark Mitchell <mark@codesourcery.com>
5395
5396 * doc/extend.texi: Document removal of cast-as-lvalue extension in
5397 C++.
5398
5399 2003-09-04 Nicolas Roche <roche@act-europe.fr>
5400
5401 * gcc.c (process_command): Fix typo.
5402
5403 2003-09-03 David O'Brien <obrien@FreeBSD.org>
5404
5405 optimization/11980
5406 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
5407 (PTRDIFF_TYPE): Likewise.
5408 (WCHAR_TYPE_SIZE): Likewise.
5409
5410 2003-09-03 DJ Delorie <dj@redhat.com>
5411
5412 * targhooks.c: New file.
5413 * targhooks.h: New file.
5414 * Makefile.in: Add targhooks.o support.
5415 (function.o): Depend on$(TARGET_H).
5416 (stmt.o): Likewise.
5417 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
5418 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
5419 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
5420 (expand_builtin_saveregs): Convert to
5421 calls.expand_builtin_saveregs hook.
5422 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
5423 here, instead of ...
5424 (get_parm_info) ... here.
5425 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
5426 hook.
5427 (finish_function): Handle calls.promote_prototypes hook here too.
5428 * c-typeck.c (convert_arguments): Convert to
5429 calls.promote_prototypes hook.
5430 (c_convert_parm_for_inlining): Likewise.
5431 * calls.c (initialize_argument_information): Convert to
5432 calls.promote_function_args hook.
5433 (expand_call): Convert to calls.struct_value_rtx,
5434 calls.strict_argument_naming,
5435 calls.pretend_outgoing_varargs_named, and
5436 calls.promote_function_return hooks. Pass fndecl to
5437 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
5438 hooks, so they can use that.
5439 (emit_library_call_value_1): Likewise.
5440 * combine.c (setup_incoming_promotions): Convert to
5441 calls.promote_function_args hook.
5442 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
5443 * expr.c (expand_assignment): Pass call to aggregate_value_p.
5444 (expand_expr): Likewise.
5445 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
5446 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
5447 RETURN_IN_MEMORY macro defaults.
5448 * final.c (profile_function): Convert to calls.struct_value_rtx
5449 hook.
5450 * function.c (aggregate_value_p): Accept function type tree as
5451 second parameter; try to deduce fntype from it. Convert to
5452 calls.return_in_memory hook.
5453 (assign_parms): Convert to calls.setup_incoming_varargs,
5454 calls.strict_argument_naming, calls.promote_function_args,
5455 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
5456 aggregate_value_p.
5457 (expand_function_start): Likewise. Convert to
5458 calls.struct_value_rtx hook.
5459 (expand_function_end): Convert to calls.promote_function_return hook.
5460 (allocate_struct_function): Pass fndecl to aggregate_value_p.
5461 * hard-reg-set.h: Update comments to new hook names.
5462 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
5463 * reg-stack.c (stack_result): Likewise.
5464 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
5465 * stmt.c (expand_value_return): Convert to
5466 calls.promote_function_return hook.
5467 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
5468 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
5469 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
5470 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
5471 TARGET_STRICT_ARGUMENT_NAMING,
5472 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
5473 * target.h: Likewise.
5474 * tree.h (aggregate_value_p): Also takes a tree to deduce function
5475 attributes from (for target hooks).
5476 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
5477 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
5478 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
5479 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
5480 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
5481 to hooks.
5482
5483 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
5484 to aggregate_value_p.
5485 * config/arm/arm.c (arm_init_cumulative_args,
5486 arm_output_mi_thunk): Likewise.
5487 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
5488 Likewise.
5489 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
5490 mips_can_use_return_insn): Likewise.
5491 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5492 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
5493 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
5494 aggregate_value_p.
5495 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
5496 function to aggregate_value_p.
5497 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
5498 aggregate_value_p.
5499
5500 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
5501 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
5502 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
5503 (sh_handle_renesas_attribute, sh_promote_prototypes,
5504 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
5505 sh_setup_incoming_varargs, sh_strict_argument_naming,
5506 sh_pretend_outgoing_varargs_named): New decls.
5507 (targetm): Add new hooks.
5508 (calc_live_regs): Save MACL and MACH if the function has the
5509 renesas attribute.
5510 (sh_expand_prologue): Support renesas attribute.
5511 (sh_builtin_saveregs): Make static.
5512 (sh_build_va_list): Support renesas attribute.
5513 (sh_va_start): Likewise.
5514 (sh_va_arg): Likewise.
5515 (sh_promote_prototypes): New.
5516 (sh_function_arg): New, moved from sh.h. Support renesas
5517 attribute.
5518 (sh_function_arg_advance): Likewise.
5519 (sh_return_in_memory): Likewise.
5520 (sh_strict_argument_naming): Likewise.
5521 (sh_pretend_outgoing_varargs_named): Likewise.
5522 (sh_struct_value_rtx): New.
5523 (sh_attribute): Add renesas attribute.
5524 (sh_handle_renesas_attribute): New.
5525 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
5526 (sh_ms_bitfield_layout_p): Support renesas attribute also.
5527 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
5528 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
5529 -mhitachi.
5530 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
5531 target hooks.
5532 (sh_args): Add renesas_abi flag.
5533 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
5534 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
5535 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
5536 stack for the renesas abi.
5537 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
5538 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
5539 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
5540 call cookie to indicate renesas calls.
5541
5542 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
5543
5544 * gcse.c (replace_one_set): New function.
5545 (pre_insert_copy_insn): Change the order of copying
5546 to make copy propagation discover additional PRE opportunities.
5547
5548 2003-09-03 Roger Sayle <roger@eyesopen.com>
5549
5550 PR optimization/11700.
5551 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
5552 of a hard register is representable before trying to simplify it
5553 using subreg_hard_regno.
5554
5555 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5556
5557 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
5558 * configure: Regenerate.
5559
5560 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5561
5562 * intl.h (N_): Remove parentheses.
5563
5564 2003-09-03 Bernardo Innocenti <bernie@develer.com>
5565
5566 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
5567 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
5568 definition and code blocks compiled when not defined.
5569 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
5570 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
5571 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
5572 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
5573
5574 2003-09-03 Jeff Sturm <jsturm@one-point.com>
5575
5576 * cgraphunit.c (visited_nodes): New static variable.
5577 (record_call_1): Use walk_tree with visited_nodes.
5578 (cgraph_create_edges): Use walk_tree with visited_nodes.
5579 Setup/teardown visited_nodes hashtable.
5580
5581 2003-09-03 Roger Sayle <roger@eyesopen.com>
5582
5583 * toplev.c (flag_rounding_math): New global variable.
5584 (f_options): Add to the list of language independent options.
5585 * flags.h (flag_rounding_math): Prototype here.
5586 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
5587 * common.opt (frounding-math): New common command line option.
5588 * opts.c (common_handle_option): Handle OPT_frounding_math.
5589 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
5590
5591 * doc/invoke.texi: Document this new command line option.
5592
5593 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5594
5595 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
5596
5597 2003-09-03 Jan Hubicka <jh@suse.cz>
5598
5599 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
5600 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
5601 * c-objc-common.c: Kill include of gt-c-objc-common.h
5602 (expand_deferred_fns, deffer_fn): Kill function.
5603 (deferred_fns): Kill variable.
5604 (finish_cdtor): Update finish_function call.
5605 (c_objc_common_finish_file): Always call cgraph code.
5606 * c-parse.c: Regenerate.
5607 * c-parse.y: Regenerate.
5608 * c-tree.h (finish_function): Update prototype.
5609 * objc-acct.c (build_module_descriptor, finish_method_def):
5610 Update call of finish_function.
5611 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
5612 forward prototype.
5613 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
5614 function and assemble it if needed.
5615 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
5616 mode.
5617 (cgraph_optimize): Likewise.
5618 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
5619 even when it has no inline callees.
5620 * c-parse.in: Update calls to finish_function.
5621
5622 2003-09-03 Nick Clifton <nickc@redhat.com>
5623
5624 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
5625 Use #error to generate the message if TARGET_DEFAULT is not
5626 recognised.
5627
5628 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
5629
5630 * config/mips/mips.h (MASK_UNUSED1): Remove.
5631 (MASK_XGOT, TARGET_XGOT): Define.
5632 (TARGET_SWITCHES): Add an entry for -mxgot.
5633 (ASM_SPEC): Map -mxgot to -xgot.
5634 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
5635 whether we're using a big-GOT sequences.
5636 (mips_legitimize_const_move, mips_expand_call): Likewise.
5637 (override_options): Revert 2003-01-09 change.
5638 * doc/invoke.texi: Document -mxgot.
5639
5640 2003-09-02 Jason Merrill <jason@redhat.com>
5641
5642 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
5643 * config/sparc/sol2.h: Not here.
5644
5645 2003-09-02 Roger Sayle <roger@eyesopen.com>
5646
5647 * expr.c (expand_expr): The code following both_summands performs
5648 the same task as simplify_gen_binary. Replace all gotos to
5649 both_summands with a call to simplify_gen_binary and delete the
5650 now unused label.
5651
5652 2003-09-02 Jason Merrill <jason@redhat.com>
5653
5654 PR c++/7327
5655 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
5656
5657 2003-09-02 Jeff Sturm <jsturm@one-point.com>
5658
5659 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
5660 (cgraph_optimize_function): Set current_function_decl to the
5661 fndecl we're integrating from.
5662
5663 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5664
5665 * builtins.def: Break out _Complex math functions into their
5666 own category.
5667
5668 2003-09-02 Andreas Jaeger <aj@suse.de>
5669
5670 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
5671
5672 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
5673
5674 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
5675 finding the note again.
5676
5677 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
5678
5679 * config.gcc: Remove host-specific rewrites of target_alias.
5680
5681 2003-09-01 Mark Mitchell <mark@codesourcery.com>
5682
5683 * Makefile.in (genprogs): Fix typo.
5684
5685 * Makefile.in (gencheck.o): Remove build commands.
5686 (dummy-conditions.o): Likewise.
5687 (read-rtl.o): Likewise.
5688 (gensupport.o): Likewise.
5689 (genconfig$(build_exeext)): Remove rule.
5690 (genconfig.o): Remove build commands.
5691 (genflags$(build_exeext)): Remove rule.
5692 (genflags.o): Remove build commands.
5693 (gencodes$(build_exeext)): Remove rule.
5694 (gencodes.o): Remove build commands.
5695 (genconstants.o): Remove build commands.
5696 (genemit$(build_exeext)): Remove rule.
5697 (genemit.o): Remove build commands.
5698 (genrecog$(build_exeext)): Remove rule.
5699 (genrecog.o): Remove build commands.
5700 (genextract$(build_exeext)): Remove rule.
5701 (genextract.o): Remove build commands.
5702 (genpeep$(build_exeext)): Remove rule.
5703 (genpeep.o): Remove build commands.
5704 (genattr$(build_exeext)): Remove rule.
5705 (genattr.o): Remove build commands.
5706 (genprognames): New variable.
5707 (genprogs): Likewise.
5708 (genobjs): Likewise.
5709 (genprogs): New rule.
5710 (genobjs): Likewise.
5711 (genattrtab.o): Remove build commands.
5712 (genautomata.o): Likewise.
5713 (genoutput$(build_exeext)): Remove rule.
5714 (genoutput.o): Remove build commands.
5715 (gengenrtl.o): Likewise.
5716 (genpreds.o): Likewise.
5717 (gengtype.o): Likewise.
5718 (genconditions.o): Likewise.
5719 (gen-protos.o): Likewise.
5720 (scan.o): Likewise.
5721 (fix-header.o): Likewise.
5722 (scan-decls.o): Likewise.
5723 (check-g++): Combine with other check targets.
5724 (check-gcc): Likewise.
5725 (check-g77): Likewise.
5726 (check-objc): Likewise.
5727
5728 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
5729
5730 * config.gcc: Remove host-specific stuff which is unused here
5731 since the introduction of config.host.
5732
5733 * doc/fragments.texi: Mention config.host.
5734 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
5735 of config.build, config.host, and config.gcc.
5736
5737 2003-09-01 Zack Weinberg <zack@codesourcery.com>
5738
5739 * c-decl.c (pushdecl): Don't put variables on
5740 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
5741 incomplete.
5742
5743 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
5744
5745 * config.host: New file.
5746 * config.gcc: Remove some host-specific stuff and some
5747 logic needed only for repeated invocation.
5748 * configure.in: Use config.host.
5749 * configure: Regenerate.
5750
5751 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
5752
5753 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
5754 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
5755 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
5756 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
5757 * tree.def (BIT_ANDTC_EXPR): Kill.
5758
5759 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
5760
5761 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
5762 * configure: Regenerate.
5763
5764 * config.gcc: Remove references to install_headers_dir, now unused
5765 since introduction of config.build.
5766 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
5767
5768 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
5769 config.build.
5770
5771 * config.build: New file.
5772 * config.gcc: Remove some build-specific stuff.
5773 * configure.in: Use config.build.
5774 * configure: Regnerate.
5775
5776 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
5777 Roger Sayle <roger@eyesopen.com>
5778
5779 PR middle-end/11823
5780 * stmt.c (expand_end_case_type): Only use jump tables for dense
5781 switch statements when optimizing for size.
5782
5783 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
5784
5785 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
5786 the != 0 case, which ensures pending stack adjustments are flushed.
5787
5788 2003-08-30 Zack Weinberg <zack@codesourcery.com>
5789
5790 * configure.frag: Delete file.
5791 * configure.in: Rename the substitution variables
5792 dep_host_xmake_file and dep_tmake_file to xmake_file and
5793 tmake_file respectively. Do not expand $srcdir in the
5794 value of these; leave that for Make. Introduce a new
5795 substitution varaible, all_lang_makefrags, which lists
5796 subdirectory Make-lang.in files; exclude these from
5797 all_lang_makefiles, which is now only for subdirectory
5798 outputs. Do not invoke configure.frag. Do not set nor
5799 AC_SUBST_FILE target_overrides, host_overrides, or
5800 language_fragments. Create build subdirectories in
5801 config.status extra commands.
5802 * configure: Regenerate.
5803 * Makefile.in: Update substitutions to match changes to
5804 configure. Use include directives instead of @-insertions
5805 to read in host, target, and language fragments.
5806 (Makefile rule): Do not invoke configure.frag. Do not copy
5807 config.status to config.run before executing it. Set
5808 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
5809 regenerated.
5810 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
5811
5812 2003-08-30 Zack Weinberg <zack@codesourcery.com>
5813
5814 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
5815 * c-typeck.c (same_translation_unit_p): New function.
5816 (comptypes): Use it instead of flags parameter to identify
5817 structure types from different translation units.
5818 * c-decl.c (duplicate_decls): Always call comptypes with
5819 COMPTYPE_STRICT flags argument.
5820 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
5821 to file_scope_decl.
5822
5823 2003-08-30 Zack Weinberg <zack@codesourcery.com>
5824
5825 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
5826 * c-decl.c (struct c_scope): Remove "incomplete" field.
5827 (pushdecl): Attach variables with incomplete types to
5828 the TYPE_MAIN_VARIANT of the incomplete type in question.
5829 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
5830 to complete, not at current_scope->incomplete. All such
5831 variables do need completion.
5832
5833 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
5834 Nicolas Pitre <nico@cam.org>
5835
5836 * arm/lib1funcs.asm (RETCOND): Delete.
5837 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
5838 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
5839 (__ARM_ARCH__): Move here from ieee754-?f.S.
5840 (RET, RETc): Clean up definitions.
5841 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
5842 (FUNC_END): New macro that marks the end of any function.
5843 (ARM_FUNC_START): New macro that allows an assembler routine to be
5844 implemented in ARM code even if a Thumb-only build.
5845 Unconditionally include ieee754-?f.S.
5846 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
5847 Mark ends of functions.
5848 Split into separate conditionally-compiled units.
5849 Use RETLDM to return from routines.
5850 * arm/ieee754-sf.S: Similarly.
5851 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
5852 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
5853 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
5854 _fixsfsi and _fixunssfsi.
5855
5856 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
5857 multiplication underflows to zero.
5858 (__adddf3): Fix bug when using VFP ordering on little-endian
5859 processors.
5860 (__fixdfsi): Use rrx to extract the carry into a register instead of
5861 MRS instruction. Optimize later use of result.
5862 * arm/ieee754-sf.S (__fixsfsi): Likewise.
5863 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
5864
5865 2003-08-29 Richard Henderson <rth@redhat.com>
5866
5867 * tree-optimize.c: New file.
5868 * Makefile.in (OBJS-archive): Add tree-optimize.o.
5869 (tree-optimize.o): New.
5870 * c-decl.c (store_parm_decls): Use allocate_struct_function.
5871 (finish_function): Don't free_after_parsing or free_after_compilation.
5872 (set_save_expr_context): Move to tree-optimize.c.
5873 (c_expand_body_1): Use tree_rest_of_compilation.
5874 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
5875 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
5876 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
5877 iterate until closure.
5878 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
5879 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
5880 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
5881 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
5882 * toplev.h (tree_rest_of_compilation): Declare it.
5883
5884 2003-08-29 Richard Henderson <rth@redhat.com>
5885
5886 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
5887 * integrate.c (save_for_inline): Set saved_for_inline.
5888 * c-semantics.c (genrtl_scope_stmt): Check it.
5889 * toplev.c (wrapup_global_declarations): Check it.
5890 (rest_of_handle_inlining): Set and check rtl_inline_init.
5891 (rest_of_compilation): Remove out of date comment.
5892
5893 2003-08-29 Richard Henderson <rth@redhat.com>
5894
5895 * function.c (allocate_struct_function): New, split out of ...
5896 (prepare_function_start, init_function_start): ... here.
5897 * expr.c (init_expr): Use ggc_alloc_cleared.
5898 * stmt.c (init_stmt_for_function): Likewise.
5899 * tree.h (allocate_struct_function): Declare.
5900
5901 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
5902
5903 * config.gcc: Don't use negated character class in shell case
5904 clause.
5905
5906 2003-08-29 Richard Henderson <rth@redhat.com>
5907
5908 * function.h (struct function): Move function_frequency and
5909 max_jumptable_ents before start of bit field members.
5910
5911 2003-08-29 Richard Henderson <rth@redhat.com>
5912
5913 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
5914 (fold_builtin_constant_p) ... not here.
5915
5916 2003-08-29 Richard Henderson <rth@redhat.com>
5917
5918 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
5919 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
5920 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
5921
5922 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5923
5924 * builtins.def: Fix typos.
5925 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
5926 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
5927 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
5928 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
5929 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
5930
5931 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
5932 Use ATTR_MATHFN_FPROUNDING_ERRNO.
5933
5934 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
5935
5936 * config.gcc (i386-*-vsta): Fix obvious bogosity.
5937
5938 * fixinc/inclhack.def: Remove special cases for unsupported
5939 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
5940 * fixinc/fixincl.x: Regenerate.
5941
5942 2003-08-29 Mark Mitchell <mark@codesourcery.com>
5943
5944 * Makefile.in (cpp.info): Just state dependencies.
5945 (gcc.info): Likewise.
5946 (gccint.info): Likewise.
5947 (gccinstall.info): Likewise.
5948 (cppinternals.info): Likewise.
5949 (cpp.dvi): Likewise.
5950 (gcc.dvi): Likewise.
5951 (gccint.dvi): Likewise.
5952 (gccinstall.dvi): Likewise.
5953 (cppinternals.dvi): Likewise.
5954 (gcov.1): Likewise.
5955 (cpp.1): Likewise.
5956 (gcc.1): Likewise.
5957 (gfdl.7): Likewise.
5958 (gpl.7): Likewise.
5959 (fsf-funding.7): Likewise.
5960 ($(objdir)/%.info): New pattern rule.
5961 (%.dvi): Likewise.
5962
5963 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
5964
5965 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
5966 (restage2): Likewise.
5967 (restage3): Likewise.
5968 (restage4): Likewise.
5969 (restageprofile): Likewise.
5970 (restagefeedback): Likewise.
5971 (bubblestrap): Likewise.
5972
5973 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
5974
5975 * config.gcc: Narrow unsupported target match to avoid clobbering
5976 i?86-sequent-sysv4*.
5977
5978 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5979
5980 * builtins.c (mathfn_built_in): Handle new math builtins.
5981
5982 2003-08-28 Per Bothner <per@bothner.com>
5983
5984 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
5985 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
5986 (_cpp_lex_buffer): Likewise.
5987 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
5988
5989 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
5990
5991 * config/s390/s390.md ("*mulsi3_sign"): New insn.
5992 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
5993 ("mulsidi3"): ... this new insn.
5994 ("umulsidi3"): New insn.
5995 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
5996 mixed-mode matching constraints.
5997 ("udivmodsi4", "udivmoddisi3"): New insns.
5998 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
5999
6000 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6001
6002 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
6003 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
6004 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
6005 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
6006 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
6007 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
6008 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
6009 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
6010 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
6011 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
6012 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
6013 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
6014 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
6015 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
6016 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
6017 * tree.c: Assign new type_nodes.
6018 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
6019 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
6020 (float_ptr_type_node, double_ptr_type_node,
6021 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
6022
6023 * doc/extend.texi: Document new builtins.
6024
6025 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6026
6027 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
6028 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
6029
6030 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
6031 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
6032 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
6033 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
6034 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
6035 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
6036 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
6037 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
6038 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
6039 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
6040
6041 * doc/extend.texi: Document new builtins.
6042
6043 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
6044
6045 * fixinc/mkfixinc.sh: Remove special case code for unsupported
6046 variants of i?86, powerpcle, and thumb.
6047 * fixinc/mkfixinc.sh: Remove special case code for unsupported
6048 arm and hppa variants.
6049
6050 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6051
6052 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
6053 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
6054 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
6055 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
6056 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
6057 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
6058 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
6059 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
6060 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
6061 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
6062
6063 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
6064 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
6065 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
6066 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
6067 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
6068 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
6069 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
6070 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
6071 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
6072 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
6073 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
6074 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
6075 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
6076 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
6077 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
6078 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
6079 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
6080 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
6081 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
6082 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
6083 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
6084 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
6085 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
6086 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
6087 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
6088 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
6089 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
6090 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
6091 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
6092 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
6093 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
6094
6095 * doc/extend.texi: Document new builtins.
6096
6097 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
6098
6099 * config/s390/s390.c (legitmate_constant_p): Use LARL on
6100 zSeries machines even in 31-bit addressing mode.
6101 (legitimate_reload_constant_p): Likewise.
6102 (legitimize_pic_address): Likewise.
6103 (legitimize_tls_address): Likewise.
6104 (s390_split_branches): Likewise.
6105 (s390_dump_pool): Likewise.
6106 (s390_mainpool_finish): Likewise.
6107 (s390_chunkify_start): Likewise.
6108 (s390_select_rtx_section): Likewise.
6109 * config/s390/s390.md ("doloop_si"): Likewise.
6110 ("pool_start_31", "pool_end_31"): Likewise.
6111 ("pool_start_64", "pool_end_64"): Likewise.
6112 ("main_base_31_small", "main_base_31_large"): Likewise.
6113 ("main_base_64"): Likewise.
6114 ("reload_base_31", "reload_base_64"): Likewise.
6115 ("*movsi_larl"): New insn.
6116 ("cjump", "icjump"): Use long branches on zSeries machines.
6117 ("jump"): Likewise.
6118 ("call"): Use BRASL on zSeries machines.
6119 ("call_value", "call_value_tls"): Likewise.
6120 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
6121 and replace by ...
6122 ("*bras", "*brasl", "*basr") ... these new insns.
6123 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
6124 "bas_31_r"): Remove and replace by ...
6125 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
6126 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
6127 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
6128 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
6129 ("*return_si", "*return_di"): Remove and replace by ...
6130 ("*return"): ... this new insn.
6131 ("rotlsi3"): Allow on zSeries machines.
6132
6133 * config/s390/s390.c (legitimize_reload_constant_p): Use
6134 LL/LH type instructions in z/Architecture mode.
6135 * config/s390/s390.md ("*movsi_lli"): Likewise.
6136 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
6137 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
6138 ("*extendqisi2"): Use LB in z/Architecture mode.
6139 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
6140 z/Architecture mode.
6141 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
6142 Likewise.
6143
6144 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
6145 and 31-bit mode.
6146 ("ptr_extend"): Allow only in 64-bit mode.
6147
6148 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
6149
6150 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
6151 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
6152 definitions.
6153 (main): Only use standard_startfile_prefix if native.
6154 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
6155
6156 2003-08-27 Per Bothner <pbothner@apple.com>
6157
6158 * cpperror.c (print_location): Don't check for !pfile->buffer. That
6159 test fails following my 08-21 change, and it seems unnecessary anyway.
6160 (cpp_error): Likewise.
6161
6162 2003-08-27 Jason Merrill <jason@redhat.com>
6163
6164 * real.c (do_multiply): Initialize with memset.
6165
6166 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6167
6168 * gcov.c (typedef struct arc_info): New field cs_count.
6169 (accumulate_line_counts): Find cycles correctly.
6170
6171 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
6172
6173 * config/s390/s390.c (struct machine_function): Remove member
6174 literal_pool_label.
6175 (s390_optimize_prolog): Replace TEMP_REG argument with
6176 TEMP_USED and BASE_USED. Do not check get_pool_size ().
6177 (general_s_operand): Accept all immediates before reload if
6178 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
6179 references.
6180 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
6181 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
6182 (s390_alloc_pool): New function.
6183 (s390_new_pool): Call it.
6184 (s390_dump_pool): Add REMOTE_LABEL argument.
6185 (s390_chunkify_start): Add BASE_REG argument. Do not check
6186 get_pool_size ().
6187 (s390_chunkify_finish): Add BASE_REG argument. Adapt
6188 s390_dump_pool call.
6189 (s390_pool_count, s390_nr_constants): Remove.
6190 (s390_output_constant_pool): Remove.
6191 (s390_mainpool_start): New function.
6192 (s390_mainpool_finish): New function.
6193 (s390_mainpool_cancel): New function.
6194 (s390_reorg): Implement main literal pool handling.
6195 (s390_emit_prologue): Emit main_pool placeholder instead of
6196 literal_pool_31 / literal_pool_64 insns.
6197 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
6198 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
6199 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
6200 ("main_base_31_small", "main_base_31_large"): New insns.
6201 ("main_base_64", "main_pool"): New insns.
6202 ("literal_pool_31", "literal_pool_64"): Remove.
6203
6204 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
6205
6206 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
6207 fixinc.ptx.
6208 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
6209 Prettify a little.
6210 * fixinc/fixincl.x: Regenerate.
6211
6212 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
6213
6214 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
6215 (L_ieee754_dp): New. Include ieee754-df.S.
6216 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
6217 and compilation in apcs-26 mode.
6218 * arm/ieee754-df.S: Likewise.
6219 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
6220 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
6221
6222 2003-08-27 Nicolas Pitre <nico@cam.org>
6223
6224 * arm/ieee754-sf.S: New.
6225 * arm/ieee754-df.S: New.
6226
6227 2003-08-27 Jakub Jelinek <jakub@redhat.com>
6228
6229 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
6230 and restore it if returning NULL.
6231
6232 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
6233
6234 * calls.c (initialize_argument_information): If an argument has no
6235 stack space associated with it, and BLOCK_REG_PADDING is defined,
6236 use it to decide at which end the argument should be padded.
6237 * function.c (assign_parms): Allocate BLKmode stack slots.
6238 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
6239 (mips_pad_reg_upward): Declare.
6240 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
6241 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
6242 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
6243 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
6244 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
6245 (mips_expand_call): Remove code for generating structure shifts.
6246 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
6247 types unless using the EABI.
6248 (function_arg_advance): Don't generate shift instructions.
6249 (function_arg): Don't return them. Don't short-circuit the
6250 check for double structure chunks for DFmode arguments.
6251 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
6252 (mips_expand_prologue): Remove code to emit structure shifts.
6253 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
6254 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
6255 comments to say that only structure returns are a problem.
6256
6257 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
6258
6259 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
6260 Fix to match produced versions.
6261 * fixinc/inclhack.def (longlong_t): New disabled test, ported
6262 from fixinc.svr4.
6263 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
6264 from fixinc.ptx.
6265 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
6266 ported from fixinc.ptx.
6267
6268 2003-08-26 Per Bothner <pbothner@apple.com>
6269
6270 * cpplib.h (struct cpp_token): Change type of field line to fileline.
6271 (cpp_error_with_line): Use fileline for appropriate parameter.
6272 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
6273 (struct cpp_reader): Likewise for fields line and directive_line.
6274 (_cpp_begin_message): Use fileline for appropriate parameter.
6275 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
6276 cpp_error): Use fileline for appropriate parameters and variables.
6277 (print_location): New local lin, since it is not a fileline.
6278
6279 2003-08-26 Roger Sayle <roger@eyesopen.com>
6280
6281 PR middle-end/12002
6282 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
6283 (FLOAT_TYPE_P): Define in terms of these two new macros.
6284 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
6285 for complex floating point types.
6286
6287 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
6288
6289 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
6290 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
6291 s390_output_pool_entry.
6292
6293 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
6294
6295 * fixinc/inclhack.def (svr4_preproc_lint_on,
6296 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
6297 fixes, ported from fixinc.svr4.
6298
6299 2003-08-26 Mark Mitchell <mark@codesourcery.com>
6300
6301 * doc/install.texi (Prerequisites): Mention GNU make requirement.
6302
6303 * Makefile.in (AR_FOR_TARGET): Export it.
6304 (AR_CREATE_FOR_TARGET): Likewise.
6305 (AR_FLAGS_FOR_TARGET): Likewise.
6306 (AR_EXTRACT_FOR_TARGET): Likewise.
6307 (AWK): Likewise.
6308 (BUILD_PREFIX): Likewise.
6309 (BUILD_PREFIX_1): Likewise.
6310 (DESTDIR): Likewise.
6311 (GCC_FOR_TARGET): Likewise.
6312 (INCLUDES): Likewise.
6313 (INSTALL_DATA): Likewise.
6314 (LIB1ASMSRC): Likewise.
6315 (LIBGCC2_CFLAGS): Likewise.
6316 (MACHMODE_H): Likewise.
6317 (NM_FOR_TARGET): Likewise.
6318 (RANLIB_FOR_TARGET): Likewise.
6319 (libsubdir): Likewise.
6320 (slibdir): Likewise.
6321 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
6322 exporting.
6323 (libgcc.a): Don't pass them here.
6324 (stmp-multilib): Or here.
6325 (install-libgcc): Or here.
6326 (install-multilib): Or here.
6327 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
6328 (stage1_build): Or here.
6329
6330 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
6331
6332 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
6333 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
6334
6335 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
6336
6337 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
6338 "*fmaddsf", "*fmsubsf"): New insns.
6339
6340 2003-08-26 Roger Sayle <roger@eyesopen.com>
6341
6342 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
6343 (C1*C2)/X when unsafe math optimizations are allowed.
6344 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
6345 math optimizations. Minor code clean-ups. Recursively call
6346 fold when constructing sub-expressions.
6347
6348 2003-08-26 Roger Sayle <roger@eyesopen.com>
6349
6350 * builtins.c (fold_builtin_bitop): New function to perform constant
6351 folding of ffs, clz, ctz, popcount and parity builtin functions
6352 and their long and long long variants (such as ffsl and ffsll).
6353 (fold_builtin): fold_builtin_bitop when appropriate.
6354 * simplify-rtx.c (simplify_unary_operation): Honor both
6355 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
6356 evaluating clz and ctz at compile-time, for operands wider
6357 than HOST_WIDE_INT.
6358
6359 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
6360
6361 * builtins.c (build_function_call_expr): Don't set
6362 TREE_SIDE_EFFECTS here.
6363 * expr.c (emit_block_move_via_libcall): Likewise.
6364 (clear_storage_via_libcall): Likewise.
6365 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
6366 CALL_EXPRs.
6367
6368 * gcse.c (is_too_expensive): New function.
6369 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
6370
6371 2003-08-25 Zack Weinberg <zack@codesourcery.com>
6372
6373 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
6374 commented-out logic to use DCE threads (if present), add
6375 support for POSIX threads.
6376 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
6377 #defines for -pthread. Add -lpthread to LIB_SPEC when
6378 -pthread. In both cases take -mt as a synonym for -pthread
6379 for acc compatibility.
6380 Define GTHREAD_USE_WEAK to 0.
6381 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
6382 Remove old logic for DCE threads from LIB_SPEC.
6383 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
6384
6385 2003-08-25 Roger Sayle <roger@eyesopen.com>
6386
6387 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
6388 return 0 for invalid argument types. Instead drop through to a
6389 call of expand_call at the bottom of function. If op is SQRT,
6390 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
6391
6392 2003-08-25 Richard Henderson <rth@redhat.com>
6393
6394 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
6395 result when op0 is SImode.
6396
6397 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
6398
6399 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
6400 from fixinc.svr4.
6401 * fixinc/fixincl.x: Regenerate.
6402 * fixinc/tests/base/sys/signal.h: Regenerate.
6403
6404 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
6405
6406 * combine.c (simplify_comparison): Re-enable widening of comparisons
6407 with non-paradoxical subregs of non-REG expressions.
6408
6409 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
6410
6411 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
6412
6413 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
6414
6415 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
6416
6417 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6418
6419 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
6420 * c-pretty-print.h (c_pretty_printer): Now typedef to the
6421 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
6422 (struct c_pretty_print_info): Document. Add new fields.
6423 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
6424 (pp_direct_abstract_declarator): New macro.
6425 (pp_ptr_operator): Likewise.
6426 (pp_simple_type_specifier): Likewise.
6427 (pp_expression): Likewise.
6428 (pp_parameter_list): Rename from pp_parameter_declaration.
6429 * c-pretty-print.c (pp_c_whitespace): Now a function.
6430 (pp_c_left_paren): Likewise.
6431 (pp_c_right_paren): Likewise.
6432 (pp_c_dot): Likewise.
6433 (pp_c_ampersand): Likewise.
6434 (pp_c_arrow): Likewise.
6435 (pp_c_semicolon): Likewise.
6436 (pp_c_type_cast): New function.
6437 (pp_c_space_for_pointer_operator): Likewise.
6438 (pp_c_call_argument_list): Likewise.
6439 (pp_c_cv_qualifier): Adjust prototype.
6440 (pp_c_type_qualifier_list): Likewise.
6441 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
6442 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
6443 Adjust to follow standard grammar.
6444 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
6445 REFERENCE_TYPE. Tidy.
6446 (pp_c_parameter_type_list): Adjust prototype. Tidy.
6447 (pp_c_parameter_declaration): Remove.
6448 (pp_c_abstract_declarator): Adjust prototype.
6449 (pp_c_direct_abstract_declarator): Likewise.
6450 (pp_c_type_id): Likewise.
6451 (pp_c_storage_class_specifier): Likewise.
6452 (pp_c_function_specifier): Likewise.
6453 (pp_c_declaration_specifiers): Likewise.
6454 (pp_c_direct_declarator): Likewise.
6455 (pp_c_declarator): Likewise.
6456 (pp_c_declarator): Likewise.
6457 (pp_c_declaration): Likewise.
6458 (pp_c_attributes): Likewise. Tidy.
6459 (pp_c_function_definition): Adjust prototype.
6460 (pp_c_char): Likewise.
6461 (pp_c_string_literal): Likewise.
6462 (pp_c_integer_constant): Likewise.
6463 (pp_c_character_constant): Likewise.
6464 (pp_c_bool_constant): Likewise.
6465 (pp_c_enumeration_constant): Likewise.
6466 (pp_c_floating_constant): Likewise.
6467 (pp_c_constant): Likewise.
6468 (pp_c_identifier): Likewise.
6469 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
6470 (pp_c_initializer): Adjust prototype.
6471 (pp_c_init_declarator): Likewise.
6472 (pp_c_initializer_list): Likewise.
6473 (pp_c_id_expression): Likewise.
6474 (pp_c_postfix_expression): Likewise.
6475 (pp_c_expression_list): Likewise.
6476 (pp_c_unary_expression): Likewise.
6477 (pp_c_cast_expression): Likewise.
6478 (pp_c_multiplicative_expression): Likewise.
6479 (pp_c_additive_expression): Likewise.
6480 (pp_c_shift_expression): Likewise.
6481 (pp_c_relational_expression): Likewise.
6482 (pp_c_equality_expression): Likewise.
6483 (pp_c_and_expression): Likewise.
6484 (pp_c_exclusive_or_expression): Likewise.
6485 (pp_c_inclusive_or_expression): Likewise.
6486 (pp_c_logical_and_expression): Likewise.
6487 (pp_c_logical_or_expression): Likewise.
6488 (pp_c_conditional_expression): Likewise.
6489 (pp_c_assignment_expression): Likewise.
6490 (pp_c_expression): Likewise. Tidy.
6491 (pp_c_statement): Likewise. Document.
6492 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
6493
6494 * c-lang.c (c_initialize_diagnostics): Update.
6495 * c-common.h (strip_pointer_operator): Declare.
6496 * c-common.c (strip_pointer_operator): Define.
6497
6498 2003-08-25 Mark Mitchell <mark@codesourcery.com>
6499
6500 PR c++/8795
6501 * tree.h (build_method_type_directly): Declare.
6502 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
6503 (vector_size_helper): Likewise.
6504 * tree.c (build_method_type_directly): New function.
6505 (build_method_type): Use it.
6506
6507 2003-08-24 Richard Henderson <rth@redhat.com>
6508
6509 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
6510 for 16-byte vector modes if sse not enabled; warn for abi change.
6511 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
6512
6513 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
6514
6515 * rtlanal.c (may_trap_p): Simplify an integer comparison.
6516
6517 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
6518
6519 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
6520 comment. Enable for DYNIX/ptx systems (when they switch to
6521 regular fixincludes).
6522 * fixinc/fixincl.x: Regenerate.
6523
6524 2003-08-23 Jason Eckhardt <jle@rice.edu>
6525
6526 * config/i860/t-i860: New.
6527 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
6528
6529 2003-08-23 Jakub Jelinek <jakub@redhat.com>
6530
6531 * c-decl.c (pushdecl): Only put decls which finish_struct will do
6532 something about onto incomplete chain.
6533 (finish_struct): If not removing type from incomplete
6534 list, update prev.
6535
6536 2003-08-20 Jan Hubicka <jh@suse.cz>
6537
6538 PR target/11369
6539 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
6540
6541 PR target/11031
6542 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
6543 const_0_to_15_operand, const_0_to_255_operand): New predicates.
6544 * i386.h (PREDICATE_CODES): Add these.
6545 * i386.c (pinsrw and pextrw patterns): Use them.
6546
6547 PR target/10984
6548 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
6549
6550 PR target/8869
6551 * expr.c (convert_modes): Deal properly with integer to vector
6552 constant conversion.
6553
6554 PR target/8871
6555 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
6556
6557 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
6558
6559 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
6560 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
6561 ("*movhi"): ... this.
6562 ("movqi", "*movqi"): Likewise.
6563 ("movqi_64"): Remove.
6564 ("*zero_extendhisi2_31"): Change predicate to s_operand.
6565
6566 2003-08-23 Dale Johannesen <dalej@apple.com>
6567 * calls.c (emit_library_call_value_1): Fix obvious errors in
6568 arguments to emit_group_store.
6569
6570 2003-08-23 Jason Eckhardt <jle@rice.edu>
6571
6572 * calls.c (emit_library_call_value_1): Remove code related
6573 to LIBGCC_NEEDS_DOUBLE.
6574 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
6575 * doc/tm.texi: Likewise.
6576 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
6577
6578 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
6579
6580 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
6581
6582 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
6583
6584 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
6585 as well. Put memory references in the varargs alias set.
6586 (mips_expand_prologue): Remove varargs handling from here.
6587
6588 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
6589
6590 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
6591 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
6592 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
6593 for function pointer calls.
6594 * config/s390/s390.md ("*negdi2_31"): Likewise.
6595
6596 2003-08-23 Roger Sayle <roger@eyesopen.com>
6597
6598 * combine.c (apply_distributive_law): Correct comment.
6599
6600 2003-08-23 Jason Eckhardt <jle@rice.edu>
6601
6602 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
6603
6604 2003-08-22 Jason Eckhardt <jle@rice.edu>
6605
6606 * config/i860/i860.c (i860_build_va_list): Create the va_decl
6607 declaration. Document the va_list structure.
6608 (i860_va_start): Initialize the va_list structure.
6609 (i860_va_arg): Rewrite completely.
6610 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
6611 * config/i860/varargs.asm: Do not allocate or initialize
6612 a va_list. Return the address of the register save area.
6613
6614 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
6615
6616 * config/iq2000/iq2000.c: Fix comment typos.
6617 * config/iq2000/iq2000.md: Likewise.
6618
6619 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
6620
6621 * config/iq2000/iq2000.c: Follow spelling conventions.
6622 * config/iq2000/iq2000.h: Likewise.
6623 * config/mn10300/mn10300.c: Likewise.
6624
6625 2003-08-22 Jason Eckhardt <jle@rice.edu>
6626
6627 * config/i860/i860.c (output_move_double): Don't set latehalf
6628 to zero for CONST_INT (since it could be, e.g., -1).
6629
6630 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
6631 (MODSI3_LIBCALL): ...with this one.
6632 (UREMSI3_LIBCALL): Replace this macro...
6633 (UMODSI3_LIBCALL): ...with this one.
6634
6635 2003-08-22 Jason Eckhardt <jle@rice.edu>
6636
6637 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
6638 (output_delayed_branch): Remove prototype.
6639 (single_insn_src_p): Remove prototype.
6640 * config/i860/i860.c (single_insn_src_p): Remove function.
6641 (output_delayed_branch): Remove function.
6642 (output_delay_insn): Remove function.
6643 (va_start): Remove unconditional test and dead code, re-format.
6644 Fix coding style and spelling problems in various comments.
6645 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
6646 (blockage pattern): ...and use it here.
6647 (all define_peephole patterns related to delayed branches): Remove.
6648 Fix coding style and spelling problems in various comments.
6649
6650 2003-08-22 Jason Eckhardt <jle@rice.edu>
6651
6652 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
6653 Remove all uses of the PARAMS macro. Remove superflous prototypes.
6654 Convert all function definitions from traditional to ISO C90 syntax.
6655 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
6656 with 'GCC'. Remove all uses of the PARAMS macro.
6657 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
6658 * config/i860/i860.md: Likewise.
6659 * config/i860/sysv4.h: Likewise.
6660 * config/i860/varargs.asm: Likewise.
6661
6662 2003-08-22 Jason Eckhardt <jle@rice.edu>
6663
6664 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
6665 argument.
6666 (tdesc_section): Add prototype.
6667 Update copyright dates.
6668 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
6669 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
6670 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
6671 (targetm): Likewise.
6672 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
6673 for '%d' where necessary.
6674 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
6675 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
6676 by UNITS_PER_WORD when referencing (likewise for .floats).
6677 (I860_SVR4_VARARGS): Rename...
6678 (I860_SVR4_VA_LIST): ...to this.
6679 Call build() with 't' rather than 'field'.
6680 (i860_rtx_costs): New function.
6681 (TARGET_RTX_COSTS): Define.
6682 (i860_internal_label): New function.
6683 (TARGET_ASM_INTERNAL_LABEL): Define.
6684 (i860_file_start): New function.
6685 Update copyright dates.
6686 * config/i860/i860.h (CPP_PREDEFINES): Remove.
6687 (TARGET_CPU_CPP_BUILTINS): Define.
6688 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
6689 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
6690 (ASM_FILE_START): Remove.
6691 (ASM_FILE_START_1): Remove.
6692 (ASM_GLOBALIZE_LABEL): Remove.
6693 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
6694 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
6695 with targetm.asm_out.internal_label.
6696 Update copyright dates.
6697 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
6698 (CPP_PREDEFINES): Remove.
6699 (TARGET_OS_CPP_BUILTINS): Define.
6700 (GLOBAL_ASM_OP): Define.
6701 (ASM_FILE_START): Remove.
6702 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
6703 (TARGET_ASM_FILE_START): Define.
6704 Update copyright dates.
6705
6706 2003-08-22 Jason Eckhardt <jle@rice.edu>
6707
6708 * gcc/config.gcc (i860-*-sysv4*): Add target.
6709 * config/i860/i860-protos.h: New.
6710 * config/i860/i860.c: New.
6711 * config/i860/i860.h: New.
6712 * config/i860/i860.md: New.
6713 * config/i860/sysv4.h: New.
6714 * config/i860/varargs.asm: New.
6715 * config/i860/x-sysv4: New.
6716
6717 2003-08-22 Jason Eckhardt <jle@rice.edu>
6718
6719 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
6720 Remove all uses of PARAMS macro.
6721 Convert all function definitions to ISO C90 syntax.
6722 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
6723 * config/pa/fptr.c: Likewise.
6724 * config/pa/lib2funcs.asm: Likewise.
6725 * config/pa/long_double.h: Likewise.
6726 * config/pa/milli64.S: Likewise.
6727 * config/pa/pa-64.h: Likewise.
6728 * config/pa/pa-hpux.h: Likewise.
6729 * config/pa/pa-hpux10.h: Likewise.
6730 * config/pa/pa-hpux11.h: Likewise.
6731 * config/pa/pa-linux.h: Likewise.
6732 * config/pa/pa-modes.def: Likewise.
6733 * config/pa/pa-osf.h: Likewise.
6734 * config/pa/pa-pro-end.h: Likewise.
6735 * config/pa/pa.md: Likewise.
6736 * config/pa/pa32-linux.h: Likewise.
6737 * config/pa/pa64-linux.h: Likewise.
6738 * config/pa/pa64-hpux.h: Likewise.
6739 * config/pa/pa64-regs.h: Likewise.
6740 * config/pa/quadlib.c: Likewise.
6741 * config/pa/rtems.h: Likewise.
6742 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
6743 all uses of the PARAMS macro.
6744 * config/pa/pa.h: Likewise.
6745 * config/pa/som.h: Likewise.
6746
6747 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
6748 Remove all uses of PARAMS macro.
6749 Convert all function definitions to ISO C90 syntax.
6750 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
6751 Remove all uses of PARAMS macro.
6752 * config/iq2000.h: Remove all uses of PARAMS macro.
6753 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
6754
6755 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
6756
6757 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
6758 * config/s390/s390.c (gen_consttable): Remove.
6759 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
6760 (s390_output_pool_entry): New function.
6761 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
6762 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
6763 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
6764 (UNSPECV_POOL_ENTRY): ... this new constant.
6765 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
6766 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
6767 ("*pool_entry"): ... and replace by this new insn.
6768 ("literal_pool_31"): Do not emit anchor label if pool empty.
6769
6770 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
6771 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
6772 (s390_fixup_clobbered_return_reg): Remove.
6773 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
6774 (s390_return_addr_rtx): Always retrieve return address from save area
6775 slot. Use save_return_addr_p to force slot to be filled.
6776 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
6777
6778 2003-08-22 Chris Demetriou <cgd@broadcom.com>
6779
6780 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
6781 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
6782 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
6783 around SB-1 errata if TARGET_FIX_SB1 is set.
6784 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
6785 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
6786
6787 2003-08-22 Roger Sayle <roger@eyesopen.com>
6788
6789 * hashtable.c (ht_expand): Avoid calculating rehash for the common
6790 case that the first probe hits an empty hash table slot.
6791
6792 2003-08-22 Mark Mitchell <mark@codesourcery.com>
6793
6794 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
6795
6796 2003-08-22 Mark Mitchell <mark@codesourcery.com>
6797
6798 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
6799 (ptr_extend_plus_imm): ... this.
6800 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
6801 optimization in C++.
6802 (ia64_output_mi_thunk): Support ILP32 mode.
6803
6804 2003-08-22 Bernardo Innocenti <bernie@develer.com>
6805
6806 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
6807 function.
6808 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
6809
6810 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
6811
6812 * config/i386/i386.c (const_int_1_operand): Simplify an
6813 integer comparison.
6814
6815 2003-08-22 Alan Modra <amodra@bigpond.net.au>
6816
6817 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
6818 * config/rs6000/ppc64-fp.c: Likewise.
6819
6820 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
6821
6822 * cfgcleanup.c: Fix comment typos.
6823 * emit-rtl.c: Likewise.
6824 * optabs.c: Likewise.
6825 * ra-build.c: Likewise.
6826 * rtlanal.c: Likewise.
6827 * tree.h: Likewise.
6828
6829 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
6830
6831 * c-decl.c: Fix comment formatting.
6832 * cfgrtl.c: Likewise.
6833 * combine.c: Likewise.
6834 * convert.c: Likewise.
6835 * dominance.c: Likewise.
6836 * dwarf2out.c: Likewise.
6837 * dwarfout.c: Likewise.
6838 * expmed.c: Likewise.
6839 * fold-const.c: Likewise.
6840 * gcov.c: Likewise.
6841 * genattrtab.c: Likewise.
6842 * ggc-common.c: Likewise.
6843 * mips-tfile.c: Likewise.
6844 * regmove.c: Likewise.
6845
6846 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
6847
6848 * builtin-attrs.def: Fix comment formatting.
6849 * c-pretty-print.c: Likewise.
6850 * diagnostic.h: Likewise.
6851 * langhooks.h: Likewise.
6852 * recog.c: Likewise.
6853 * simplify-rtx.c: Likewise.
6854 * tree.def: Likewise.
6855
6856 2003-08-22 Bernardo Innocenti <bernie@develer.com>
6857
6858 * config/m68k/m68k-protos.h: Convert to ISO C90.
6859 * config/m68k/m68k.c: Likewise.
6860
6861 2003-08-21 Bernardo Innocenti <bernie@develer.com>
6862 Paul Dale <pauli@snapgear.com>
6863 Peter Barada <peter@baradas.org>
6864
6865 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
6866 ColdFire cores.
6867
6868 2003-08-21 Zack Weinberg <zack@codesourcery.com>
6869
6870 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
6871 * config.gcc (*-*-openbsd): Don't set tm_file.
6872 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
6873 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
6874 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
6875 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
6876 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
6877 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
6878 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
6879 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
6880 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
6881 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
6882 xscale-*-coff): Use explicit and complete lists of target headers
6883 to include. Move definitions to tm_defines where appropriate.
6884 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
6885 not-yet-contributed configuration.
6886
6887 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
6888 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
6889 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
6890 * config/i386/nto.h, config/iq2000/iq2000.h,
6891 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
6892 * config/m68k/linux.h, config/m68k/m68k-aout.h
6893 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
6894 * config/m68k/netbsd.h, config/m68k/openbsd.h
6895 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
6896 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
6897 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
6898 Remove includes of other target config headers, and
6899 definitions of macros moved to tm_defines lists. Add #undefs
6900 where now necessary to prevent redefinition warnings.
6901
6902 * config/h8300/coff.h: New file split out of...
6903 * config/h8300/elf.h: ...here.
6904 * config/m68k/hp320base.h: New file split out of...
6905 * config/m68k/hp320.h: ...here.
6906 * config/rs6000/lynxbase.h: New file split out of...
6907 * config/rs6000/lynx.h: ...here.
6908
6909 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
6910 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
6911
6912 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
6913 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
6914 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
6915 Remove unnecessary #ifndef.
6916 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
6917 [under IN_LIBGCC2] with config/.
6918
6919 2003-08-21 Per Bothner <pbothner@apple.com>
6920
6921 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
6922 to cpp_push_buffer.
6923 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
6924 by return_at_eof check. Always call _cpp_pop_buffer at end.
6925
6926 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
6927
6928 PR target/11805
6929 * config/h8300/h8300.md (two anonymous patterns): Remove.
6930
6931 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
6932
6933 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
6934 * config/mips/mips.c (function_arg_pass_by_reference): Never return
6935 true for n32 & n64.
6936
6937 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
6938
6939 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
6940 and similarly in (A | C) == D where C & ~D != 0.
6941
6942 2003-08-20 Geoffrey Keating <geoffk@apple.com>
6943
6944 PR 8180
6945 * configure.in: When testing with_libs and with_headers, treat
6946 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
6947 * configure: Regenerate.
6948
6949 2003-08-20 Peter Barada <peter@baradas.org>
6950
6951 * longlong.h (umul_ppmm): Add ColdFire support.
6952
6953 2003-08-20 Peter Barada <peter@baradas.org>
6954 Bernardo Innocenti <bernie@develer.com>
6955
6956 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
6957 * config/m68k/m68k.h: Likewise.
6958 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
6959 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
6960 * config/m68k/linux.h: Likewise.
6961 * config/m68k/m68k.c: Likewise.
6962 * config/m68k/m68k.md: Likewise.
6963 * config/m68k/m68kelf.h: Likewise.
6964 * config/m68k/netbsd-elf.h: Likewise.
6965 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
6966
6967 2003-08-20 Bernardo Innocenti <bernie@develer.com>
6968
6969 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
6970 * config/m68k/m68k.md: Likewise.
6971
6972 2003-08-20 Mark Mitchell <mark@codesourcery.com>
6973
6974 PR java/11996
6975 Revert this change:
6976 2003-08-19 Mark Mitchell <mark@codesourcery.com>
6977 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
6978 types with precisions other than those given by native machine
6979 modes.
6980
6981 2003-08-20 Gunther Nikl <gni@gecko.de>
6982
6983 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
6984 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
6985 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
6986 * config/m68k/m68k.md (anonymous define_insn): Likewise
6987 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
6988 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
6989 code selected by NO_ASM_FMOVECR
6990
6991 2003-08-20 Gunther Nikl <gni@gecko.de>
6992
6993 * config/m68k/m68k.c (output_move_const_into_data_reg,
6994 output_move_himode): unify MOTOROLA/MIT handling of moveq
6995 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
6996 Likewise
6997
6998 2003-08-20 Gunther Nikl <gni@gecko.de>
6999
7000 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
7001 label name
7002 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
7003 HOST_WIDE_INT_PRINT_DEC with %wd
7004
7005 2003-08-20 Loren James Rittle <ljrittle@acm.org>
7006
7007 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
7008 redefine warning.
7009
7010 2003-08-20 Roger Sayle <roger@eyesopen.com>
7011
7012 PR middle-end/11984
7013 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
7014 operands before calling tree_int_cst_lt when performing associative
7015 transformations.
7016
7017 2003-08-20 Jason Merrill <jason@redhat.com>
7018
7019 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
7020 (EXPR_CHECK): Don't check for 'r' or 's' if we're
7021 checking IS_EXPR_CODE_CLASS.
7022 * calls.c (calls_function_1): Likewise.
7023 * fold-const.c (fold): Likewise.
7024 * tree.c (iterative_hash_expr): Likewise.
7025 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
7026
7027 2003-08-20 Gunther Nikl <gni@gecko.de>
7028
7029 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
7030 depending on MOTOROLA_BSR
7031 * config/m68k/m68k.md (anonymous define_insn): Likewise
7032
7033 2003-08-20 Jason Merrill <jason@redhat.com>
7034
7035 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
7036 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
7037 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
7038 * dojump.c (do_jump): Likewise.
7039 * fold-const.c (operand_equal_p, fold): Likewise.
7040 (tree_expr_nonnegative_p): Likewise.
7041
7042 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
7043 TYPE_USER_ALIGN for FIELD_DECLs.
7044
7045 * attribs.c (decl_attributes): Rebuild the function pointer type after
7046 changing the target type.
7047 * tree.c (get_qualified_type): Also check that the attributes match.
7048
7049 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
7050
7051 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
7052 * objc/config-lang.in (stagestuff): ... to here.
7053
7054 2003-08-19 Mark Mitchell <mark@codesourcery.com>
7055
7056 PR c++/11946
7057 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
7058 NOP_EXPR) when necessary.
7059 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
7060 types with precisions other than those given by native machine
7061 modes.
7062
7063 2003-08-19 Geoffrey Keating <geoffk@apple.com>
7064
7065 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
7066 because some macro is defined.
7067
7068 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
7069 options.
7070 * config/i386/darwin.h (ASM_SPEC): New.
7071 (SUBTARGET_EXTRA_SPECS): New.
7072 * config/rs6000/darwin.h (ASM_SPEC): New.
7073 (SUBTARGET_EXTRA_SPECS): New.
7074 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
7075 a cross-compiler between two different processors on Darwin.
7076 * configure: Regenerate.
7077
7078 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
7079
7080 * builtins.c: Fix comment typos.
7081 * c-common.c: Likewise.
7082 * c-decl.c: Likewise.
7083 * c-pretty-print.c: Likewise.
7084 * cfgbuild.c: Likewise.
7085 * cfglayout.c: Likewise.
7086 * cfgloopanal.c: Likewise.
7087 * cgraphunit.c: Likewise.
7088 * cppfiles.c: Likewise.
7089 * dwarfout.c: Likewise.
7090 * expr.c: Likewise.
7091 * fold-const.c: Likewise.
7092 * gcse.c: Likewise.
7093 * ggc-page.c: Likewise.
7094 * haifa-sched.c: Likewise.
7095 * pretty-print.c: Likewise.
7096 * tree.c: Likewise.
7097 * tree.h: Likewise.
7098 * value-prof.c: Likewise.
7099
7100 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
7101
7102 * c-decl.c: Follow spelling conventions.
7103 * cppfiles.c: Likewise.
7104
7105 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
7106
7107 * c-common.c: Fix comment formatting.
7108 * c-common.h: Likewise.
7109 * c-decl.c: Likewise.
7110 * cppinit.c: Likewise.
7111 * cpplib.h: Likewise.
7112 * emit-rtl.c: Likewise.
7113 * input.h: Likewise.
7114 * line-map.h: Likewise.
7115 * opts.c: Likewise.
7116 * opts.h: Likewise.
7117 * simplify-rtx.c: Likewise.
7118
7119 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
7120
7121 * unwind-c.c: Add libgcc-style exception.
7122 * unwind-dw2.c: Likewise.
7123 * unwind-pe.h: Likewise.
7124 * unwind-sjlj.c: Likewise.
7125 * unwind.inc: Likewise.
7126
7127 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
7128
7129 PR c/5582 PR c++/10538
7130 * langhooks-def.h (lhd_decl_uninit): Declare.
7131 (LANG_HOOKS_DECL_UNINIT): New macro.
7132 (LANG_HOOKS_INITIALIZER): Adjust.
7133 * langhooks.h (struct lang_hooks): Add new field
7134 decl_uninit.
7135 * langhooks.c (lhd_decl_uninit): Define.
7136 * c-common.c (c_decl_uninit_1): New function.
7137 (c_decl_uninit): New function.
7138 (warn_init_self): Define.
7139 * c-common.h (c_decl_uninit): Declare.
7140 (warn_init_self): Declare.
7141 * c.opt: Introduce -Winit-self.
7142 * c-opts.c (c_common_handle_options): Set warn_init_self.
7143 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
7144 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
7145 * function.c (uninitialized_vars_warning): Call the language hook.
7146 * doc/invoke.texi: Document -Winit-self.
7147
7148 2003-08-19 Chris Demetriou <cgd@broadcom.com>
7149
7150 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
7151 to use better predicates and constraints. Define new
7152 instruction to handle "trap_if" with DI-mode arguments.
7153 (conditional_trap): FAIL if trap code is not 0.
7154
7155 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
7156
7157 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
7158 strstr with $pb to a strcompare with "<pic base>"
7159 (ix86_output_addr_diff_elt): Output the real pic base.
7160
7161 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
7162
7163 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
7164 (LANG_HOOKS_INITIALIZER): Correct.
7165 * c-lang.c: Likewise.
7166
7167 2003-08-19 Jan Hubicka <jh@suse.cz>
7168
7169 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
7170 (cgraph_varpool_mark_needed_node): Likewise.
7171 * cgraph.h (notice_global_symbol): Declare
7172 * varasm.c (notice_global_symbol): Break out from ...
7173 (assemble_start_function): ... here; update for variables.
7174 (assemble_variable): Use notice_global_symbol.
7175
7176 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
7177
7178 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
7179 expect SFmode and DFmode arguments to be passed in FPRs,
7180 regardless of the underlying type.
7181
7182 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
7183
7184 PR target/11924
7185 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
7186 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
7187
7188 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
7189
7190 PR c/11207
7191 * c-typeck.c (set_init_index): Check for negative index.
7192
7193 2003-08-18 Bob Wilson <bob.wilson@acm.org>
7194
7195 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
7196 call0 ABI.
7197 * config/xtensa/crtn.asm (_init, _fini): Likewise.
7198 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
7199 __umodsi3, __modsi3): Likewise.
7200 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
7201 $(INCLUDES).
7202
7203 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
7204
7205 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
7206
7207 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
7208
7209 * config/mips/mips.md: Quote C code in braces. Remove use of
7210 fake const0_rtx operands. Remove double backslashes. Use \;.
7211 Remove workarounds for bogus warnings.
7212
7213 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
7214
7215 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
7216 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
7217 rather than TARGET_MIPS4300.
7218 (mulsf3_internal, mulsf3_r4300): Likewise.
7219
7220 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
7221
7222 * config/mips/mips.md: Renumber unspecs. Clean up comments.
7223
7224 2003-08-17 Roger Sayle <roger@eyesopen.com>
7225
7226 * simplify-rtx.c (associative_constant_p): New function to test
7227 whether an RTX expression is an immediate constant.
7228 (simplify_associative_operation): New function to perform some
7229 reassociation optimizations of associative binary expressions.
7230 (simplify_binary_operation): Use simplify_associative_operation
7231 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
7232 Floating point expressions are only reassociated when unsafe
7233 math optimizations are permitted.
7234
7235 2003-08-17 Andreas Jaeger <aj@suse.de>
7236
7237 * config/alpha/alpha.md: Remove usage of PARAMS.
7238
7239 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
7240 * config/i386/i386-interix.h: Likewise.
7241 * config/i386/winnt.c: Likewise.
7242 * config/i386/cygming.h: Likewise.
7243 * config/i386/cygwin2.c: Likewise.
7244 * config/darwin.c: Likewise.
7245 * config/darwin-c.c: Likewise.
7246 * config/darwin-protos.h: Likewise.
7247 * config/darwin.h: Likewise.
7248 * config/s390/s390-protos.h: Likewise.
7249 * config/s390/s390.c: Likewise.
7250 * config/ia64/ia64.c: Likewse
7251 * config/ia64/ia64-protos.h: Likewise.
7252 * config/ia64/ia64-c.c: Likewise.
7253
7254 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7255
7256 * config/sparc/sparc.c: Convert to ISO C.
7257
7258 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
7259 * config/sparc/sparc.c: Likewise.
7260
7261 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
7262
7263 PR c++/11512
7264 * stmt.c (expand_expr_stmt_value): Don't warn about any void
7265 typed expression.
7266
7267 2003-08-16 Jan Hubicka <jh@suse.cz>
7268
7269 * i386.c (ix86_fntype_regparm): Rename from ...
7270 (ix86_function_regparm): ... this one; add fastcall and local
7271 functions.
7272 (ix86_function_ok_for_sibcall): Update.
7273 (ix86_return_pops_args): Likewise.
7274 (init_cumulative_args): Likewise.
7275 (x86_can_output_mi_thunk): Likewise.
7276 (function_arg): Fix formating.
7277 (x86_this_parameter): Fix fastcall.
7278 (x86_output_mi_thunk): Likewise.
7279
7280 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
7281 body as reachable; mark nested functions as needed too.
7282 (dump_cgraph): Do not output global.calls.
7283 * cgraph.h (cgraph_global_info): Kill.
7284 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
7285 (record_call_1): Speedup.
7286 (cgraph_analyze_function): Break out from ...; compute inlining
7287 parameters.
7288 (cgraph_finalize_compilation_unit): ... here.
7289 (cgraph_mark_inline): Kill computation of calls.
7290 (cgraph_decide_inlining): Do not compute most of initial values.
7291
7292 2003-08-14 Roger Sayle <roger@eyesopen.com>
7293
7294 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
7295 to negate if either operand is easy to negate, if we don't care
7296 about sign-dependent rounding.
7297 (negate_expr): Make the logic to negate a REAL_CST explicit.
7298 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
7299 that's easy to negate, if we don't honor sign-dependent rounding.
7300 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
7301 negate, and the symmetric A * -B as -A * B if A is easy to negate.
7302 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
7303 -C/D if B and C are cheap to negate. Add an explicit rule to
7304 optimize X/-1.0 as -X when we don't care about signaling NaNs.
7305
7306 2003-08-14 Zack Weinberg <zack@codesourcery.com>
7307
7308 * Makefile.in (tm_file): Rename tm_include_list.
7309 (tm_p_file): Rename tm_p_include_list.
7310 (build_xm_file): Rename build_xm_include_list.
7311 (host_xm_file): Rename host_xm_include_list.
7312 (xm_file): Rename xm_include_list.
7313 (xm_file_list): Add to be substituted.
7314 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
7315 Update to match.
7316 (bt-load.o): Add missing dependency on $(TM_H).
7317 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
7318 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
7319 build_xm_file, generate both *_file_list and *_include_list
7320 values from it. (xm_file_list was formerly not being generated.)
7321 In *_include_list, prefix the names of all headers found in
7322 $(srcdir)/config with config/. In each loop, consider only
7323 the special case files that can actually appear in that list.
7324 AC_SUBST all *_file_list and all *_include_list variables; do
7325 not AC_SUBST the plain *_file variables.
7326 * configure: Regenerate.
7327
7328 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7329
7330 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
7331
7332 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7333
7334 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
7335 direct calls.
7336 (attr_length_call): Include it here. Improve length estimate for
7337 local calls.
7338 (output_call): Use targetm.binds_local_p.
7339
7340 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7341
7342 * builtins.c (CASE_MATHFN): New helper macro.
7343 (mathfn_built_in): Simplify and sort.
7344
7345 * protoize.c (substr): Delete, callers changed to `strstr'.
7346
7347 2003-08-13 Zack Weinberg <zack@codesourcery.com>
7348
7349 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
7350 * config/iq2000/xm-iq2000.h: Delete file.
7351
7352 2003-08-13 Geoffrey Keating <geoffk@apple.com>
7353
7354 * gengtype.c (walk_type): Process a subobject before processing
7355 the pointer that points to the subobject.
7356
7357 2003-08-13 Per Bothner <pbothner@apple.com>
7358
7359 * regclass.c (init_reg_modes): Make non-static.
7360 Rename to init_reg_modes_once per new naming convention.
7361 (init_regs): Don't call init_reg_modes here.
7362 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
7363 * rtl.h (init_reg_modes_once): New declaration.
7364 * toplev.c (backend_init): Call init_regs after init_emit_once.
7365
7366 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
7367
7368 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
7369 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
7370
7371 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
7372
7373 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
7374 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
7375
7376 2003-08-13 Dale Johannesen <dalej@apple.com>
7377
7378 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
7379 handling of decrement-and-branch farther than 32 bits.
7380
7381 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
7382
7383 * configure.in (make_compare_target): Move test to ...
7384 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
7385 * configure: Regenerate.
7386
7387 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
7388
7389 * config/mips/iris6.h: Convert to C90 prototypes.
7390 * config/mips/irix6-libc-compat.c: Likewise.
7391 * config/mips/mips-protos.h: Likewise.
7392 * config/mips/mips.c: Likewise.
7393
7394 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
7395
7396 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
7397 for selected machines. Comment heavily.
7398 fixinc/fixincl.x: Rebuild.
7399 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
7400
7401 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
7402
7403 * config/mips/mips.h: Tweak various comments.
7404 * config/mips/mips.c: Likewise.
7405
7406 2003-08-11 James E Wilson <wilson@tuliptree.org>
7407
7408 PR optimization/11319
7409 PR target/10021
7410 * alias.c (find_base_value, case REG): Return 0 not src if no base
7411 found.
7412
7413 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7414
7415 * gcse.c (gmalloc): Fix last change.
7416
7417 2003-08-11 Roger Sayle <roger@eyesopen.com>
7418
7419 * simplify-rtx.c (simplify_binary_operation): Replace calls to
7420 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
7421 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
7422 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
7423
7424 2003-08-11 Roger Sayle <roger@eyesopen.com>
7425
7426 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
7427 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
7428 typecode for an ABS_EXPR.
7429
7430 * doc/c-tree.texi: Document ABS_EXPR.
7431
7432 2003-08-11 Roger Sayle <roger@eyesopen.com>
7433
7434 * fold-const.c (fold): Optimize any associative floating point
7435 operator with -funsafe-math-optimizations, not just MULT_EXPR.
7436
7437 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
7438
7439 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
7440 information in SHmedia case too.
7441 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
7442 Likewise.
7443 (__set_fpscr): Use an access via GOT for PIC case.
7444
7445 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
7446
7447 * configure.in (intermodule): Make switch test more portable.
7448 * configure: Regenerate.
7449
7450 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
7451
7452 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
7453 (restrap): Likewise.
7454
7455 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7456
7457 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
7458 (grealloc): Size argument is a size_t.
7459 (gcalloc): New function. Use throughout in lieu of
7460 gmalloc/memset.
7461
7462 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
7463 xmalloc/memset.
7464 * config/ia64/ia64.c (ia64_reorg): Likewise.
7465 * conflict.c (conflict_graph_new): Likewise.
7466 * fixinc/fixincl.c (run_compiles): Likewise.
7467 * genattrtab.c (optimize_attrs): Likewise.
7468 * genrecog.c (new_decision): Likewise.
7469 * haifa-sched.c (schedule_block): Likewise.
7470 * hashtable.c (ht_create): Likewise.
7471
7472 2003-08-11 Bob Wilson <bob.wilson@acm.org>
7473
7474 * config/xtensa/lib2funcs.S: Fix whitespace.
7475 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
7476 syntax where appropriate. Remove unnecessary backslash escapes.
7477 Reformat comments and fix some code formatting.
7478 (extendqisi2): Rearrange conditional.
7479 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
7480 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
7481 of fatal_insn.
7482
7483 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
7484
7485 * config/mips/mips.c: Various formatting fixes.
7486 (override_options): Resync -mtune handling with gas.
7487 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
7488 * config/mips/mips.h: More formatting fixes.
7489 (mips_abi): Move declaration.
7490 * config/mips/mips.md (exception_receiver): Add mode to
7491 unspec_volatile.
7492
7493 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
7494
7495 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
7496 evsplatfi here.
7497 (bdesc_1arg): Remove evsplati and evsplatfi.
7498
7499 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
7500
7501 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
7502 into account.
7503
7504 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7505
7506 * builtins.c (expand_builtin_strcat): Optimize constant strings.
7507
7508 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
7509
7510 * pretty-print.c (pp_base_indent): Rename from pp_indent.
7511 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
7512 (struct c_pretty_print_info): Add more fields.
7513 (pp_c_left_paren): Move to c-pretty-print.c.
7514 (pp_c_right_paren): Likewise.
7515 (pp_c_left_brace): Likewise.
7516 (pp_c_right_brace): Likewise.
7517 (pp_c_left_bracket): Likewise.
7518 (pp_c_right_bracket): Likewise.
7519 (pp_c_declarator): Declare.
7520 (pp_c_direct_declarator): Likewise.
7521 (pp_c_specifier_qualifier_list): Likewise.
7522 (pp_c_type_id): Likewise.
7523 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
7524 (pp_c_type_qualifier_list): New.
7525 (pp_c_pointer): Likewise.
7526 (pp_c_parameter_type_list): Likewise.
7527 (pp_c_function_definition): Likewise.
7528 (pp_c_id_expression): Likewise.
7529 (pp_c_simple_type_specifier): Tidy.
7530 (pp_c_unary_expression): Likewise.
7531 (pp_c_expression): Likewise.
7532 (pp_c_pretty_printer_init): Likewise.
7533 (pp_c_specifier_qualifier_list): Rework..
7534 (pp_c_abstract_declarator): Likewise.
7535 (pp_c_postfix_expression): Likewise.
7536 (pp_c_primary_expression): Likewise.
7537 (pp_c_cast_expression): Likewise.
7538 (pp_c_direct_abstract_declarator): Likewise.
7539 (pp_c_storage_class_specifier): Likewise.
7540 (pp_c_function_specifier): Likewise.
7541 (pp_c_declaration_specifiers): Likewise.
7542 (pp_c_direct_declarator): Likewise.
7543 (pp_c_declarator): Likewise.
7544 (pp_c_declaration): Likewise.
7545 (pp_c_statement): Likewise.
7546 (pp_c_integer_constant): Rename from pp_c_integer_literal.
7547 (pp_c_character_constant): Rename from pp_c_character_literal.
7548 (pp_c_bool_constant): Rename from pp_c_bool_literal.
7549 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
7550 (pp_c_floating_constant): Rename from pp_c_real_literal.
7551 (pp_c_constant): Rename from pp_c_literal.
7552 * c-lang.c: Include diagnostic.h and c-pretty-print.h
7553 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
7554 (c_initialize_diagnostics): New.
7555 * Makefile.in (c-lang.o): Update dependency.
7556
7557 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
7558
7559 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
7560
7561 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
7562
7563 * config/mips/mips.c (mips_no_mips16_string): Remove.
7564 (override_options): Don't handle -mips16 as part of -mipsN.
7565 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
7566 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
7567 (TARGET_OPTIONS): Remove -mno-mips16.
7568
7569 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
7570
7571 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
7572 (coprocessor2_operand): Likewise.
7573 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
7574 (lookup_name): Remove declaration.
7575 (abort_with_insn): Remove. Replace all uses with fatal_insn.
7576 (mips16, mips_abicalls): Remove.
7577 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
7578 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
7579 (coprocessor_operand, coprocessor2_operand): Remove.
7580 (override_options): Don't set mips16 or mips_abicalls.
7581 (print_operand): Don't expect SIGN_EXTEND operands.
7582 (mips_secondary_reload_class): Likewise.
7583 (mips_output_conditional_branch): Remove disabled long-branch code.
7584 * config/mips/mips.h (call_used_regs): Remove declaration.
7585 (may_call_alloca): Likewise.
7586 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
7587 (mips_abicalls, mips16): Remove declarations.
7588 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
7589 (CC1_SPEC): Remove outdated comment.
7590 (MIPS_VERSION, MACHINE_TYPE): Remove.
7591 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7592 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
7593 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
7594 (PUSH_ROUNDING): Likewise.
7595 (ASSEMBLER_SCRATCH_REGNUM): Remove.
7596 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
7597 and mips16 with TARGET_MIPS16.
7598
7599 2003-08-09 Per Bothner <pbothner@apple.com>
7600
7601 * cppinit.c (cpp_read_main_file): Split out source-independent
7602 initialization to separate function ...
7603 (cpp_post_options): New function.
7604 * cppfiles.c (cpp_stack_file): Rename public name to ...
7605 (_cpp_stack_file): New internal function name.
7606 * cpplib.h: Update accordingly.
7607 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
7608 (cpp_read_main_file): Don't initialize line here.
7609 * c-opts.c (c_common_post_options): Call cpp_post_options.
7610 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
7611 * fix-header.c (read_scan_file): Call cpp_post_options.
7612
7613 2003-08-09 Per Bothner <per@bothner.com>
7614
7615 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
7616
7617 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7618
7619 * pa.c (pa_asm_output_mi_thunk): Fix typo.
7620
7621 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
7622
7623 PR preprocessor/11839
7624 * cppfiles.c (open_file): Handle ENOTDIR.
7625
7626 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
7627
7628 PR target/11699
7629 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
7630
7631 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7632
7633 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
7634 source/destination is not a register operand.
7635
7636 2003-08-08 Richard Henderson <rth@redhat.com>
7637
7638 PR target/11535
7639 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
7640 RETURN_ADDRESS_POINTER_REGNUM.
7641 (ia64_expand_prologue): Don't frob it.
7642 (ia64_output_function_epilogue): Likewise.
7643 (ia64_return_addr_rtx): New.
7644 (ia64_split_return_addr_rtx): New.
7645 * config/ia64/ia64-protos.h: Update.
7646 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
7647 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
7648 (GENERAL_REGNO_P): Don't check it.
7649 (AR_*_REGNUM): Renumber.
7650 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
7651 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
7652 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
7653 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
7654 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
7655 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
7656 (movdi_ret_addr): New.
7657
7658 2003-08-08 Geoffrey Keating <geoffk@apple.com>
7659
7660 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
7661
7662 2003-08-08 Roger Sayle <roger@eyesopen.com>
7663
7664 * tree.h (get_identifier) Define a macro form of get_identifier
7665 that calls get_identifier_with_length when the string is constant.
7666 (get_identifier_with_length): Change type of second argument to
7667 size_t in prototype.
7668 * stringpool.c (get_identifier): Undefine the macro before giving
7669 the function definition.
7670 (get_identifier_with_length): Change type of second argument to
7671 size_t in function definition.
7672 * hashtable.c (calc_hash): Change type of second argument to size_t.
7673 (ht_lookup): Change type of third argument to size_t. Reorganize
7674 to speed-up the cases where the hash table slot is empty, or the
7675 first probe matches (i.e. there isn't a collision).
7676 * hashtable.h (ht_lookup): Adjust function prototype.
7677
7678 2003-08-08 Bernardo Innocenti <bernie@develer.com>
7679
7680 PR target/9697
7681 PR target/11777
7682 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
7683
7684 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
7685
7686 * common.opt: Add debug switches.
7687 * flags.h (use_gnu_debug_info_extensions): Boolify.
7688 * opts.c (write_symbols, debug_info_level,
7689 use_gnu_debug_info_extensions): Move from toplev.c.
7690 (set_debug_level): New.
7691 (common_handle_options): Handle debug switches.
7692 (print_help): Display target options directly.
7693 * toplev.c (debug_hooks): Don't initialize.
7694 (write_symbols, debug_info_level,
7695 use_gnu_debug_info_extensions): Move to opts.c.
7696 (debug_args, display_help, decode_g_option): Remove.
7697 (process_options): Set no debug if level zero here,
7698 and no-debug-hooks. Error here if impossible debug format selected.
7699 * toplev.h (display_help, decode_g_option): Remove.
7700
7701 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
7702
7703 * tree.c (get_file_function_name_long): Fix size of alloca() area.
7704
7705 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
7706
7707 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
7708 and gcc_cv_prog_cmp_skip.
7709 * configure: Regenerate.
7710
7711 2003-08-08 Stan Cox <scox@redhat.com>
7712
7713 * config/iq2000: New port.
7714 * config.gcc (iq2000-*-elf): Added.
7715 * doc/install.texi (Specific): Add iq2000 description.
7716
7717 2003-08-08 Andreas Schwab <schwab@suse.de>
7718
7719 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
7720 and insert missing empty argument.
7721 * configure: Regenerate.
7722
7723 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7724
7725 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
7726 (attr_length_millicode_call): Likewise.
7727 (attr_length_call): Likewise. Revise some maximum insn lengths.
7728 (attr_length_indirect_call): Likewise.
7729 (output_call): Fix thinko that added extra nop.
7730 * pa.h (IN_NAMED_SECTION_P): Define.
7731
7732 PR c++/11712
7733 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
7734 __STDC_EXT__ when using C++ dialect.
7735
7736 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
7737
7738 * sh.c (calc_live_regs): If the return address pointer is live,
7739 force pr live.
7740 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
7741 for saves / restores.
7742 (sh_expand_epilogue): If sh_media_register_for_return returns a
7743 register number, flag the instructions that restores PR_MEDIA_REG
7744 as possibly dead.
7745 Remove dead update of offset.
7746 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
7747 we can use the result of get_hard_reg_initial_val.
7748 * sh.md (UNSPEC_RA): New constant.
7749 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
7750 (load_ra). Handle UNSPEC_RA.
7751 (sibcall_media): Use PR_MEDIA_REG.
7752
7753 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
7754 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
7755 needs saving on SHmedia.
7756
7757 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
7758
7759 * config/s390/s390.md: Replace all occurrences of \\t with \t.
7760
7761 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
7762
7763 * local-alloc.c (combine_regs): Fix comment typo.
7764
7765 2003-08-06 Zack Weinberg <zack@codesourcery.com>
7766
7767 * c-decl.c (builtin_decls): Replace with first_builtin_decl
7768 and last_builtin_decl.
7769 (c_init_decl_processing): Initialize both.
7770 (c_reset_state): Iterate from first_builtin_decl to
7771 last_builtin_decl inclusive to reintroduce builtins.
7772
7773 2003-08-06 David Mosberger <davidm@hpl.hp.com>
7774
7775 * doc/extend.texi (Function Attributes): Document the IA-64 version
7776 of the "model" attribute.
7777
7778 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
7779 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
7780 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
7781
7782 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
7783 (ia64_encode_section_info): Likewise.
7784 (ia64_attribute_table): Add "model" attribute.
7785 (TARGET_ENCODE_SECTION_INFO): Define.
7786 (small_addr_symbolic_operand): New function.
7787 (got_symbolic_operand): Return 0 for a symbolref to an object
7788 in the small address area.
7789 (enum ia64_addr_area): New type.
7790 (small_ident1): New variable.
7791 (small_ident2): Likewise.
7792 (init_idents): New function.
7793 (ia64_get_addr_area): Likewise.
7794 (ia64_encode_addr_area): Likewise.
7795 (ia64_encode_section_info): Likewise.
7796 (ia64_expand_load_address): For symbolic references to objects in
7797 the small-address-area, load the address via gen_rtx_SET() (which,
7798 eventually, will expand into "addl").
7799
7800 2003-08-06 Per Bothner <pbothner@apple.com>
7801
7802 * line-map.h (fileline): New typedef.
7803 (struct line_map, linemap_add, linemap_lookup): Use it.
7804 * input.h (struct location_s): Comment notes that long-term we want
7805 to replace it by fileline.
7806
7807 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
7808
7809 Fix SHcompact exception handling:
7810 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
7811 by the prologue, return a MEM with return_address_pointer_rtx
7812 as address.
7813 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
7814 (RETURN_ADDR_OFFSET): Don't define.
7815 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
7816 registers that are visible in compact mode. Show that SHmedia
7817 registers still exist in compact mode, even if there are not
7818 readily accessible.
7819 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
7820 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
7821 and DW_EH_PE_pcrel for pic data.
7822 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
7823 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
7824 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
7825 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
7826 * sh.md (movsi_media-1): New splitter.
7827
7828 2003-08-06 Graeme Peterson <gp@qnx.com>
7829
7830 * config/i386/nto.h: New.
7831 * config/i386/t-nto: New.
7832 * config.gcc (i[34567]86-*-nto-qnx*): New.
7833
7834 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
7835
7836 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
7837
7838 2003-08-06 Alan Modra <amodra@bigpond.net.au>
7839
7840 * calls.c (load_register_parameters): Arrange for call_fusage to
7841 report the whole register as used when shifting to the msb.
7842
7843 2003-08-05 Roger Sayle <roger@eyesopen.com>
7844
7845 * builtins.c (expand_builtin): When not optimizing, call the library
7846 function for all builtins that have library functions (except alloca).
7847
7848 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
7849
7850 * c.opt: Introduce -fworking-directory.
7851 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
7852 * c-common.h (flag_working_directory): Declare.
7853 * c-common.c (flag_working_directory): Define.
7854 * c-opts.c (c_common_handle_options): Set it.
7855 (sanitize_cpp_opts): Set...
7856 * cpplib.h (struct cpp_options): ... working_directory option.
7857 (struct cpp_callbacks): Add dir_change.
7858 * cppinit.c (read_original_filename): Call...
7859 (read_original_directory): New. Look for # 1 "directory//"
7860 and process it.
7861 (cpp_read_main_file): Call dir_change callback if working_directory
7862 option is set.
7863 * gcc.c (cpp_unique_options): Pass -g*.
7864 * c-lex.c (cb_dir_change): New.
7865 (init_c_lex): Set dir_change callback.
7866 * toplev.c (src_pwd): New static variable.
7867 (set_src_pwd, get_src_pwd): New functions.
7868 * toplev.h (get_src_pwd, set_src_pwd): Declare.
7869 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
7870 * dwarf2out.c (gen_compile_unit_die): Likewise.
7871 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
7872
7873 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
7874
7875 * pretty-print.h (pp_set_line_maximum_length): Make macro.
7876 (pp_set_prefix): Likewise.
7877 (pp_destroy_prefix): Likewise.
7878 (pp_remaining_character_count_for_line): Likewise.
7879 (pp_clear_output_area): Likewise.
7880 (pp_formatted_text): Likewise.
7881 (pp_last_position_in_text): Likewise.
7882 (pp_emit_prefix): Likewise.
7883 (pp_append_text): Likewise.
7884 (pp_flush): Likewise.
7885 (pp_format_text): Likewise.
7886 (pp_format_verbatim): Likewise.
7887 (pp_tree_identifier): Tidy.
7888 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
7889 (pp_base_format_verbatim): Rename from pp_format_verbatim.
7890 (pp_base_flush): Rename from pp_flush.
7891 (pp_base_set_line_maximum_length): Rename from
7892 pp_set_line_maximum_length.
7893 (pp_base_clear_output_area): Rename from pp_clear_output_area.
7894 (pp_base_set_prefix): Rename from pp_set_prefix.
7895 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
7896 (pp_base_emit_prefix): Rename from pp_emit_prefix.
7897 (pp_base_append_text): Rename from pp_append_text.
7898 (pp_base_formatted_text): Rename from pp_formatted_text.
7899 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
7900 (pp_base_remaining_character_count_for_line): Rename from
7901 pp_remaining_character_count_for_line.
7902 * diagnostic.h (diagnostic_format_decoder): Tidy.
7903 (diagnostic_flush_buffer): Likewise.
7904 * c-pretty-print.h: (pp_c_string_literal): Declare.
7905 (pp_c_real_literal): Likewise.
7906 (pp_c_integer_literal): Likewise.
7907 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
7908 pp_identifier.
7909 (pp_c_character_literal): Tidy.
7910 (pp_c_string_literal): Make public.
7911 (pp_c_bool_literal): Likewise.
7912 (pp_c_integer_literal): Likewise.
7913 (pp_c_real_literal): Likewise.
7914
7915 * Makefile.in (C_PRETTY_PRINT_H): New variable.
7916 (c-pretty-print.o): Update dependence.
7917
7918 2003-08-05 Chris Demetriou <cgd@broadcom.com>
7919
7920 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
7921 ".set nomacro" state.
7922 (fix_truncsfsi2_macro): Likewise.
7923
7924 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
7925
7926 * tree.h (DID_INLINE_FUNC): Remove macro.
7927 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
7928 add tree check for FUNCTION_DECL.
7929 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
7930 (struct tree_decl): Rename inlined_function_flag to
7931 declared_inline_flag.
7932 * c-common.h (c_lang_decl): Remove.
7933 (DECL_ESTIMATED_INSNS): Remove.
7934 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
7935 (DECL_DECLARED_INLINE_P): Remove.
7936 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
7937 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
7938 (finish_function): Make uninlinable a bool. Fixup call to
7939 tree_inlinable_function_p() and fix some code style issues.
7940 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
7941 * cgraph.c (dump_cgraph): Likewise.
7942 * cgraphunit.c (cgraph_decide_inlining): Likewise
7943 (cgraph_finalize_compilation_unit): Likewise.
7944 Also update call to tree_inlinable_function_p().
7945 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
7946 look at DECL_DECLARED_INLINE and reverse logic.
7947 * print-tree.c (print_node): Likewise.
7948 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
7949 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
7950 prototype.
7951 * tree-inline.c (inlinable_function_p): Split up in this function to
7952 check for basic inlining inhibiting conditions, and new
7953 limits_allow_inlining() function. Warn if inlining is impossible
7954 because the inline candidate calls alloca or uses sjlj exceptions.
7955 (limits_allow_inlining): this new function to check if the inlining
7956 limits are satisfied. Throttle from currfn_max_inline_insns, not from
7957 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
7958 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
7959 Update prototypes.
7960 (tree_inlinable_function_p): Make a bool. Update call to
7961 inlinable_function_p
7962 (expand_call_inline): Use limits_allow_inlining() when not in
7963 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
7964 instead see if the function was declared `inline'.
7965
7966 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
7967
7968 * gcse.c (try_replace_reg): Fix updating of note.
7969
7970 2003-08-04 Roger Sayle <roger@eyesopen.com>
7971
7972 PR middle-end/11771
7973 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
7974 logic in negate_expr, i.e. we don't invert (A-B) for floating
7975 point types unless flag_unsafe_math_optimizations.
7976
7977 2003-08-04 Roger Sayle <roger@eyesopen.com>
7978
7979 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
7980 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
7981 for floating point expressions with -ffast-math.
7982 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
7983 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
7984
7985 2003-08-04 Roger Sayle <roger@eyesopen.com>
7986
7987 * c-common.c (flag_noniso_default_format_attributes): Delete.
7988 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
7989 (c_attrs_initialized): Delete.
7990 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
7991 always call c_init_attributes.
7992 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
7993 set c_attrs_initialized when done.
7994 (c_common_insert_default_attributes): Delete.
7995 * c-common.h (flag_noniso_default_format_attributes): Delete.
7996 (c_coomon_insert_default_attributes): Delete prototype.
7997 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
7998 flag_noniso_default_format_attributes.
7999
8000 * c-decl.c (c_insert_default_attributes): Delete.
8001 * c-tree.h (c_insert_default_attributes): Delete prototype.
8002
8003 * attribs.c (decl_attributes): Don't call insert_default_attributes
8004 langhook. Update function description comment.
8005 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
8006 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
8007 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
8008 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
8009
8010 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
8011 define.
8012
8013 2003-08-04 Richard Sandiford <rsandif@redhat.com>
8014
8015 * config/mips/mips.c (override_options): Disable -G on targets that
8016 have no .section support.
8017 (mips_select_section): Use default_select_section for such targets.
8018
8019 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
8020
8021 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
8022 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
8023 * fixinc/fixincl.x: Rebuild.
8024 * fixinc/tests/base/regexp.h: New test.
8025
8026 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
8027
8028 * c-ppoutput.c (cb_line_change): Don't skip line changing while
8029 parsing macro arguments in the top-level context.
8030
8031 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
8032
8033 * config.in: Remove HAVE_LSTAT.
8034 * configure, configure.in: Don't test for lstat.
8035
8036 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8037
8038 * opts.c (decode_options): Do language-specific initialization for
8039 the global diagnostic context.
8040 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
8041 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
8042 (LANG_HOOKS_INITIALIZER): Adjust.
8043 * langhooks.h (struct lang_hooks): Add new field
8044 initialize_diagnostics.
8045 * langhooks.c (lhd_initialize_diagnostics): Define.
8046
8047 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8048
8049 * pretty-print.h: Adjust macro definitions.
8050 * pretty-print.c (pp_newline): Rename to pp_base_newline.
8051 (pp_character): Rename to pp_base_character.
8052 (pp_string): Rename to pp_base_string.
8053 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
8054 (pp_newline): Likewise. Adjust.
8055 (pp_c_char): Adjust.
8056
8057 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8058
8059 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
8060 BUILT_IN_LLABS): Move to miscellaneous section.
8061
8062 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
8063
8064 PR preprocessor/11534
8065 * cppexp.c (parse_defined): Warn only if -pedantic.
8066
8067 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
8068
8069 * cppfiles.c (stack_file): Use file path.
8070
8071 2003-08-02 Roger Sayle <roger@eyesopen.com>
8072
8073 * builtin-types.def (BT_SSIZE): New primitive type.
8074 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
8075 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
8076 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
8077 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
8078 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
8079 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
8080 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
8081 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
8082 few functions that define default attributes using it.
8083 * c-common.c (c_common_insert_default_attributes): Do nothing.
8084
8085 * doc/extend.texi: Document these "new" builtins.
8086
8087 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
8088
8089 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
8090 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
8091 when -mieee-fp set and -shared not set.
8092 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
8093
8094 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
8095
8096 * cppfiles.c (struct _cpp_file): Rename once_only_next to
8097 next_file. Remove import and pragma_once, add once_only.
8098 (find_file): Add new file structures to the all_files list.
8099 (should_stack_file): Mark #import-ed files once-only, and
8100 don't stack them if the file has already been stacked.
8101 (_cp_mark_file_once_only): Simplify.
8102 * cpphash.h (struct cpp_reader): Rename once_only_files
8103 to all_files. Rename saw_pragma_once to seen_once_only.
8104 (_cpp_mark_file_once_only): Update prototype.
8105 * cpplib.c (do_pragma_once): Update.
8106
8107 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
8108
8109 * cppfiles.c (ENOTDIR): Remove.
8110 (open_file_in_dir): Rename find_file_in_dir. Handle errors
8111 other than ENOENT here.
8112 (once_only_file_p): Rename should_stack_file.
8113 (find_file, open_file_failed, read_file_guts): Report errors
8114 with full path name.
8115 (read_file): Move pch handling to should_stack_file.
8116 (should_stack_file): Handle PCH and once-only issues, and
8117 reading the file.
8118 (stack_file): Don't do file reads.
8119
8120 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8121
8122 * libgcov.c (gcov_exit): Cleanup and fix.
8123 * profile.c (compute_value_histograms): Don't try to read profiles
8124 that are not present.
8125
8126 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8127
8128 * builtins.def: Categorize.
8129
8130 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
8131 Mind fp rounding.
8132 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
8133
8134 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
8135
8136 * config.gcc: Enable posix threads by default on darwin.
8137
8138 2003-08-01 Jakub Jelinek <jakub@redhat.com>
8139
8140 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
8141 even if nehedges1 is 0.
8142
8143 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
8144
8145 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
8146 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
8147 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
8148 and defintions.
8149
8150 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
8151 * fixinc/fixincl.x: Regenerate.
8152 * fixinc/tests/base/math.h: Regenerate to match test_text change.
8153
8154 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8155
8156 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
8157
8158 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8159
8160 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
8161 for accesses to exc_ptr.
8162
8163 2003-08-01 Geoffrey Keating <geoffk@apple.com>
8164
8165 * doc/sourcebuild.texi (Front End Directory): Don't make references
8166 to libsubdir, it's not part of the interface to frontends.
8167 * doc/install.texi (Configuration): Help users read faster by saying
8168 that GCC's configure options are the standard autoconf ones.
8169 Mention --libdir. Update the default rules for finding the
8170 assembler. Don't use libsubdir since we haven't said what it means.
8171 (Specific): In the Solaris 7 notes, update the place to put the
8172 assembler.
8173 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
8174 * doc/cpp.texi (Search Path): Actually, the search path
8175 depends on libdir, which can relocate with cpp.
8176 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
8177 now a private interface between the Makefile and the driver.
8178
8179 2003-08-01 Richard Henderson <rth@redhat.com>
8180
8181 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
8182
8183 * varasm.c (lookup_constant_def): New function.
8184 * rtl.h (lookup_constant_def): Declare it.
8185 * dwarf2out.c (loc_descriptor_from_tree): Use it.
8186 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
8187
8188 2003-08-01 Zack Weinberg <zack@codesourcery.com>
8189
8190 * c-decl.c (gettags, pushdecl_function_level): Delete.
8191 (last_function_parm_vars): Rename last_function_parm_others.
8192 (current_function_parm_vars): Rename current_function_parm_others.
8193 (struct c_scope): Rewrite comment explaining this data structure.
8194 Add names_last, blocks_last, parms_last fields. Rename
8195 incomplete_list to incomplete.
8196 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
8197 (poplevel): Ignore second argument. No need to nreverse
8198 anything. Restructure such that each list is processed
8199 exactly once. Use 'const location_t *locus' syntactic sugar
8200 variable where useful. Issue unused variable warnings
8201 ourselves, do not rely on function.c.
8202 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
8203 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
8204 (implicitly_declare): decl cannot be error_mark_node.
8205 (undeclared_variable): Manipulate scope structure directly.
8206 (c_make_fname_decl): Likewise.
8207 (getdecls, c_init_decl_processing): Fix comment.
8208 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
8209 for 'last' variable.
8210 (grokparms): No need to nreverse parms list.
8211 (store_parm_decls_newstyle): Set up the parms_last and
8212 names_last fields of the new scope too.
8213 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
8214 on parms to begin with; check this under ENABLE_CHECKING. Set
8215 up parms_last.
8216 (check_for_loop_decls): Refer directly to current_scope->tags.
8217 Use consistent quote style in diagnostics.
8218 (c_write_global_declarations): The names list is not backward.
8219
8220 * c-common.h: Don't prototype gettags.
8221 * c-parse.in: Call poplevel with second argument 0 always.
8222
8223 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8224
8225 * builtins.def: Resort builtins.
8226
8227 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8228
8229 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
8230 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
8231 Prepend "__builtin_" onto NAME with string concatenation. Remove
8232 explicit "__builtin_" from each macro call.
8233
8234 Reformat entire file.
8235
8236 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8237
8238 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
8239 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
8240
8241 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
8242
8243 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
8244 CCL1, or CCL2 modes with floating point operations.
8245
8246 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
8247 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
8248 "*subdf3_cconly"): New insns.
8249 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
8250
8251 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
8252
8253 * Makefile.in: Refine dependencies.
8254 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
8255 * c.opt: Update help for -Wimport.
8256 * cppfiles.c: Include hashtab.h. Update comments.
8257 (stack_file): Read the file before updating dependencies.
8258 (once_only_file_p): Be smarter about marking once-only files.
8259 (_cpp_mark_file_once_only): Correct the check for existence on
8260 the list.
8261 (open_file_failed): Use name not path, which is NULL.
8262 * cpphash.h: Don't include hashtab.h.
8263 (struct _cpp_file): Remove.
8264 (struct cpp_reader): Update.
8265 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
8266 * cpplib.h (struct cpp_options): Remove warn_import.
8267 (cpp_simplify_path): Remove.
8268
8269 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
8270
8271 PR c++/11295
8272 * doc/extend.texi (Statement Expressions): Document C++ semantics.
8273
8274 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
8275
8276 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
8277
8278 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8279
8280 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
8281 throughout.
8282 * builtins.def: Likewise.
8283
8284 2003-07-31 Jason Merrill <jason@redhat.com>
8285
8286 * Makefile.in (bubblestrap): Don't require a previous full
8287 bootstrap.
8288
8289 * expr.c (mostly_zeros_p): No longer static.
8290 * tree.h: Declare it.
8291 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
8292 unless we need to do substitutions.
8293
8294 2003-07-31 Roger Sayle <roger@eyesopen.com>
8295
8296 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
8297 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
8298 as pow(x,2.0) when the latter will be expanded back into x*x.
8299 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
8300 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
8301 pow can never set errno when used with an integer exponent.
8302 Always use expand_powi when exponent is -1, 0, 1 or 2.
8303 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
8304 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
8305 the pow forms of these expressions.
8306
8307 2003-07-31 Geoffrey Keating <geoffk@apple.com>
8308
8309 * Makefile.in (libexecdir): New.
8310 (libsubdir): Use gcc instead of gcc-lib.
8311 (libexecsubdir): New.
8312 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
8313 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
8314 gcc-lib.
8315 (installdirs): Make libexecsubdir.
8316 (install-common): Put executables in libexecsubdir.
8317 (itoolsdir): Use libexecsubdir.
8318 (itoolsdatadir): New.
8319 (install-mkheaders): Separate data files and executables.
8320 (install-collect2): Put executables in libexecsubdir.
8321 (uninstall): Remove libexecsubdir.
8322 * mkheaders.in: Update for new arrangement of files.
8323 (libexecdir): New.
8324 (libexecsubdir): New.
8325 (itoolsdir): Use libexecsubdir.
8326 (itoolsdatadir): New.
8327 * gcc.c (gcc_libexec_prefix): New.
8328 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
8329 (standard_exec_prefix_1): Use libexec.
8330 (standard_exec_prefix_2): New.
8331 (standard_libexec_prefix): New.
8332 (process_command): Update for new arrangement of files. Compute
8333 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
8334
8335 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
8336
8337 * inclhack.def (stdio_va_list): Avoid bogus replacement which
8338 triggers on Interix.
8339 * fixincl.x: Regenerate.
8340
8341 2003-07-31 Jakub Jelinek <jakub@redhat.com>
8342
8343 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
8344 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
8345
8346 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8347
8348 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
8349
8350 2003-07-31 Per Bothner <pbothner@apple.com>
8351
8352 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
8353 (add_input_filename): New function.
8354 (handle_options): Call add_input_filename directly instead of
8355 with a lang hook.
8356 * opts.h (in_fnames, num_in_fnames): Moved here.
8357 (add_input_filename): Declare.
8358 * c-decl.c: Need to #include opts.h.
8359 * Makefile.in (c-decl.o): Also depends on opts.h.
8360 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
8361 (c_common_handle_filename): Replaced by add_input_filename.
8362 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
8363 Remove.
8364 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
8365 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
8366 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
8367 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
8368
8369 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8370
8371 * combine.c (try_combine): Set JUMP_LABEL for newly created
8372 unconditional jump.
8373
8374 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8375
8376 * fold-const.c (fold): Fold some comparisons of bit operations.
8377
8378 2003-07-31 Jan Hubicka <jh@suse.cz>
8379
8380 * cgraph.c (create_edge): Fix typo.
8381 * i386.c (pic_symbolic_operand): Reorder tests.
8382
8383 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
8384
8385 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
8386 more fully.
8387 (Gcov Data Files): Update.
8388
8389 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8390
8391 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
8392 default.
8393
8394 * gthr-posix.c: New file.
8395 * gthr-posix.h: Define _REENTRANT if missing.
8396 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
8397
8398 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
8399 by gthr-posix.o.
8400 * config/alpha/t-osf-pthread: New file.
8401
8402 * fixinc/inclhack.def (alpha_pthread): New fix.
8403 * fixinc/fixincl.x: Regenerate.
8404 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
8405
8406 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
8407 warning.
8408 Fixes PR bootstrap/9330.
8409
8410 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8411
8412 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
8413 without GNU ld.
8414 Update comment.
8415 * configure: Regenerate.
8416
8417 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
8418
8419 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
8420 setter.
8421
8422 2003-07-30 Roger Sayle <roger@eyesopen.com>
8423
8424 * builtins.def: Alphabetize.
8425
8426 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
8427
8428 * doc/c-tree.texi: Normalize spellings of "lowercase" and
8429 "uppercase".
8430 * doc/cpp.texi: Likewise.
8431 * doc/md.texi: Likewise.
8432 * doc/rtl.texi: Likewise.
8433 * doc/tm.texi: Likewise.
8434
8435 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
8436
8437 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
8438 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
8439 of cc1obj.
8440
8441 2003-07-30 Chris Demetriou <cgd@broadcom.com>
8442
8443 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
8444 macros before defining them.
8445
8446 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
8447
8448 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
8449 UNSPECV_BLOCKAGE): New constants.
8450 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
8451 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
8452 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
8453 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
8454
8455 (all insns and expanders): Write output control string as brace block
8456 where appropriate. Remove \-escapes for doublequote characters.
8457
8458 2003-07-31 Jan Hubicka <jh@suse.cz>
8459
8460 * gcse.c (insert_store): Fix typo in previous patch.
8461
8462 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
8463
8464 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
8465
8466 2003-07-30 Andi Kleen <ak@muc.de>
8467
8468 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
8469
8470 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8471
8472 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
8473 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
8474 GCOV_N_VALUE_COUNTERS): New.
8475 * profile.c (compute_value_histograms): New static function.
8476 (branch_prob): Read back the value histograms.
8477 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
8478 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
8479 * value-prof.c: Add comment on reading the profile.
8480 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
8481 * doc/invoke.texi (-fprofile-values): Document behavior with
8482 -fbranch-probabilities.
8483
8484 2003-07-30 David Edelsohn <edelsohn@gnu.org>
8485
8486 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
8487
8488 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
8489
8490 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
8491 symbolically.
8492
8493 2003-07-30 Jan Hubicka <jh@suse.cz>
8494
8495 * gcse.c (insert_store): Ignore fake edges.
8496
8497 * c-common.c (flag_vtable_gc): Kill.
8498 * c-common.g (flag_vtable_gc): Kill.
8499 * c-opts (c_common_handle_option): Kill.
8500 * c.opt (fvtable-gc): Kill.
8501 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
8502 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
8503 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
8504
8505 * invoke.texi (-ftable-gc): Kill documentation.
8506
8507 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
8508 just because function body is missing.
8509
8510 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
8511
8512 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
8513
8514 * unwind-sjlj.c: Fix typo in file description.
8515
8516 2003-07-30 Alan Modra <amodra@bigpond.net.au>
8517
8518 * calls.c (load_register_parameters): When shifting reg sized values
8519 to the msb, move the value to a reg first.
8520
8521 2003-07-29 Geoffrey Keating <geoffk@apple.com>
8522
8523 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
8524 * line-map.h (linemap_add): Update comments.
8525 * line-map.c (linemap_add): Update comments, interpret zero-length
8526 filename as "<stdin>".
8527
8528 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
8529
8530 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
8531
8532 2003-07-29 Zack Weinberg <zack@codesourcery.com>
8533
8534 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
8535 New static variables.
8536 (struct c_scope): Add parms and warned_forward_parm_decls
8537 fields; remove parm_order.
8538 (storedecls, storetags): Delete.
8539 (poplevel): Also clear bindings on the parms chain.
8540 (pushdecl): Handle forward declarations of parameters, and
8541 chain PARM_DECLs on the parms list, not the names list.
8542 (lookup_name_current_level): Check for PARM_DECLs on the parms
8543 list too.
8544 (push_parm_decl): Don't update parm_order.
8545 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
8546 warning, only once per parameter list, and set TREE_ASM_WRITTEN
8547 on the decls here. Then move the forward decls to the names list.
8548 (grokparms): Set last_function_parm_vars.
8549 (get_parm_info): Don't use gettags or getdecls. No need to
8550 extract non-parms from the parms list, or reorganize the parms
8551 list. Feed nonparms back in the TREE_TYPE of the list node
8552 returned. Issue only one error per parameter list for "void"
8553 appearing more than once in said parameter list. Collapse
8554 parmlist_tags_warning into this function to avoid double scan
8555 of tags list.
8556 (start_function): Set current_function_parm_vars.
8557 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
8558 directly. Get non-parms from current_function_parm_vars; no
8559 need to extract them from the parms chain. Properly bind tags
8560 in the new scope.
8561 (store_parm_decls_oldstyle): No need to extract non-parameters
8562 from the parms chain, nor to store them back afterward. Move
8563 declaration to top of function, restructure code reordering
8564 DECL_ARGUMENTS.
8565 (store_parm_decls): No need to save and restore warn_shadow.
8566 * c-parse.in: Don't call parmlist_tags_warning nor
8567 clear_parm_order. Call mark_forward_parm_decls when forward
8568 parm decls are encountered.
8569 * c-tree.h: Prototype mark_forward_parm_decls; not
8570 clear_parm_order or parmlist_tags_warning.
8571
8572 2003-07-29 Geoffrey Keating <geoffk@apple.com>
8573
8574 * c-common.c (allow_pch): Remove.
8575 * c-common.h (allow_pch): Remove.
8576 (c_common_no_more_pch): Declare.
8577 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
8578 * c-pch.c: Include hosthooks.h.
8579 (c_common_valid_pch): Don't check allow_pch.
8580 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
8581 (c_common_no_more_pch): New.
8582 * ggc-common.c: Include hosthooks.h.
8583 (gt_pch_save): Call gt_pch_get_address.
8584 (gt_pch_restore): Call gt_pch_use_address.
8585 * hooks.c (hook_voidp_size_t_null): New.
8586 (hook_bool_voidp_size_t_false): New.
8587 * hooks.h (hook_voidp_size_t_null): New.
8588 (hook_bool_voidp_size_t_false): New.
8589 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
8590 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
8591 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
8592 HOST_HOOKS_GT_PCH_USE_ADDRESS.
8593 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
8594 gt_pch_use_address.
8595 * doc/hostconfig.texi (Host Common): Document
8596 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
8597 * Makefile.in (c-pch.o): Depend on hosthooks.h.
8598 (ggc-common.o): Likewise.
8599
8600 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
8601 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
8602 (pch_address_space): New.
8603 (darwin_rs6000_gt_pch_get_address): New.
8604 (darwin_rs6000_gt_pch_use_address): New.
8605
8606 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
8607
8608 PR preprocessor/11569
8609 PR preprocessor/11649
8610 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
8611 * cppfiles.c: Completely rewritten.
8612 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
8613 struct cpp_path is now struct cpp_dir.
8614 (remove_duplicates): Don't simplify path names.
8615 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
8616 cpp_stack_file.
8617 * cpphash.h: Include hashtab.h.
8618 (_cpp_file): Declare.
8619 (struct cpp_buffer): struct include_file is now struct _cpp_file,
8620 and struct cpp_path is now struct cpp_dir. Rename members.
8621 (struct cpp_reader): Similarly. New members once_only_files,
8622 file_hash, file_hash_entries, quote_ignores_source_dir,
8623 no_search_path, saw_pragma_once. Remove all_include_files and
8624 max_include_len. Make some members bool.
8625 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
8626 (_cpp_stack_file): Renamed from _cpp_read_file.
8627 (_cpp_stack_include): Renamed from _cpp_execute_include.
8628 (_cpp_init_files): Renamed from _cpp_init_includes.
8629 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
8630 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
8631 (cpp_read_next_file): Rename and move to cppfiles.c.
8632 (cpp_read_main_file): Update.
8633 * cpplib.c (run_directive): Update for renamed members.
8634 (do_include_common, _cpp_pop_buffer): Update.
8635 (do_import): Undeprecate #import.
8636 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
8637 * cpplib.h: Remove file_name_map_list.
8638 (cpp_options): Remove map_list.
8639 (cpp_dir): Rename from cpp_path. New datatype for name_map.
8640 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
8641
8642 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
8643
8644 * Makefile.in: Make stamp-objdir safe for parallel builds.
8645
8646 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
8647
8648 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
8649 (info): Depend on stmp-docobjdir.
8650
8651 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8652
8653 * configure: Regenerate.
8654
8655 2003-07-29 Jan Hubicka <jh@suse.cz>
8656
8657 PR C++/11131
8658 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
8659 in !unit-at-a-time mode.
8660
8661 2003-07-28 Geoffrey Keating <geoffk@apple.com>
8662
8663 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
8664 main function.
8665
8666 2003-07-28 Mark Mitchell <mark@codesourcery.com>
8667
8668 PR c++/11667
8669 * c-common.c (shorten_compare): Take into account differences
8670 between C and C++ representation for enumeration types.
8671 * tree.h (set_min_and_max_values_for_integral_type): Declare.
8672 * stor-layout.c (set_min_and_max_values_for_integral_type): New
8673 function, broken out from ...
8674 (fixup_signed_type): ... here and ...
8675 (fixup_unsigned_type): ... here.
8676
8677 2003-07-28 Zack Weinberg <zack@codesourcery.com>
8678
8679 * c-decl.c: Update commentary, adjust blank lines throughout.
8680 (struct c_scope): Fix indentation. Reorder members so
8681 outer-context pointers come first, booleans last.
8682 (duplicate_decls, define_label): Use a 'locus' variable for
8683 diagnostic locations in a few more places.
8684 (warn_if_shadowing): Un-split a conditional that fits on one line.
8685 (c_init_decl_processing): No need to clear current_scope and
8686 current_function_scope.
8687 (start_decl): Merge if/else if statements with same action.
8688 (push_parm_decl): Rename old_immediate_size_expand to use
8689 save_foo convention; save/restore around entire function.
8690 (grokdeclarator): Remove unnecessary braces.
8691
8692 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
8693 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
8694
8695 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
8696 when warn_declaration_after_statement. Call pedwarn_c90, not
8697 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
8698 * c-common.c (warn_declaration_after_statement): Define.
8699 * c-common.h (warn_declaration_after_statement): Declare.
8700 * c.opt (Wdeclaration-after-statement): New.
8701 * c-errors.c (pedwarn_c90): New function.
8702 * c-opts.c (c_common_handle_option) <case
8703 OPT_Wdeclaration_after_statement>: New.
8704 * c-tree.h (pedwarn_c90): Declare.
8705 * doc/invoke.texi (Option Summary): Document
8706 -Wdeclaration-after-statement.
8707 (Warning Options): Ditto.
8708
8709 2003-07-28 Jan Hubicka <jh@suse.cz>
8710
8711 * i386.md (memory attribute) Avoid accessing uninitialized memory
8712 for ishift1 type instructions.
8713
8714 2003-07-28 Jakub Jelinek <jakub@redhat.com>
8715
8716 * configure.in (--enable-checking): Add fold category.
8717 (ENABLE_FOLD_CHECKING): Define if requested.
8718 * configure: Rebuilt.
8719 * config.in: Rebuilt.
8720 * doc/install.texi: Document it.
8721 * fold-const.c: Include md5.h.
8722 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
8723 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
8724 print_fold_checksum): New functions.
8725
8726 * fold-const.c (fold): Never modify argument passed to fold, instead
8727 change a copy and return it.
8728 * convert.c (convert_to_integer): Likewise.
8729
8730 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
8731
8732 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
8733 cleanup of junk after #else and #endif directives. Collapse repeated
8734 clauses into for statment.
8735
8736 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
8737
8738 2003-07-27 Zack Weinberg <zack@codesourcery.com>
8739
8740 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
8741 (keep_next_if_subblocks): Rename next_is_function_body.
8742 (pushlevel): Adjust commentary. Always set ->keep on the
8743 outermost level of a function. Don't set ->keep_if_subblocks.
8744 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
8745 (store_parm_decls): Adjust to match.
8746 (finish_function): Adjust to match.
8747 Call poplevel with all three arguments zero.
8748
8749 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
8750 New functions split out of store_parm_decls.
8751 Avoid unnecessary work. Use local variables consistently.
8752 (store_parm_decls): Likewise.
8753
8754 (finish_function): No need to set functionbody flag on call to
8755 poplevel.
8756 (struct language_function): Remove scope field.
8757 (c_push_function_context, c_pop_function_context): No need to
8758 save and restore current_scope.
8759
8760 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
8761
8762 * doc/extend.texi (Deprecated Features): Implicit typename is
8763 gone. Default args on types is going.
8764
8765 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
8766
8767 * Makefile.in (ifcvt.o): Depend on target.h
8768 * ifcvt.c (target.h): Include.
8769 (if_convert): Don't call mark_loop_exit_edges if we can't
8770 modify jumps.
8771
8772 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8773
8774 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
8775
8776 2003-07-26 Richard Henderson <rth@redhat.com>
8777
8778 PR inline-asm/11676
8779 * cse.c (count_reg_usage): Handle asm_operands properly.
8780
8781 2003-07-26 Roger Sayle <roger@eyesopen.com>
8782
8783 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
8784 (DEF_EXT_FALLBACK_BUILTIN): Delete.
8785 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
8786 the regular DEF_EXT_LIB_BUILTIN macro.
8787 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
8788 the regular DEF_LIB_BUILTIN macro.
8789 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
8790 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
8791 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
8792 DEF_EXT_LIB_BUILTIN macro.
8793
8794 * c-decl.c (duplicate_decls): Remove code to handle builtin
8795 functions prototyped without an argument list.
8796
8797 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
8798
8799 * config/i386/winnt.c: Revert 2003-07-08 change.
8800 (i386_pe_section_type_flags): Remove error_with_decl here too.
8801
8802 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
8803
8804 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
8805 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
8806 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
8807 (v850_handle_data_area_attribute): Likewise.
8808
8809 2003-07-26 Geoffrey Keating <geoffk@apple.com>
8810
8811 * varasm.c (output_constant_def_contents): Use
8812 ASM_DECLARE_CONSTANT_NAME if defined.
8813 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
8814 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
8815 objects get at least one byte to prevent assembler problems.
8816 (ASM_DECLARE_CONSTANT_NAME): New.
8817
8818 * Makefile.in (libbackend.o): Remove options_.h.
8819 (mostlyclean): Likewise.
8820
8821 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
8822 insert a label at the end of an function under Mach-O.
8823
8824 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
8825
8826 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
8827
8828 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
8829 equality.
8830 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
8831
8832 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
8833
8834 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
8835
8836 * doc/passes.texi (Passes): Mention pretty-printing and
8837 diagnostic files.
8838
8839 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
8840
8841 * doc/extend.texi (Function Attributes): GNU C++ does now allow
8842 unused parameter decls.
8843 (Attribute Syntax): GNU C++ does not allow label attributes to be
8844 after the ':'.
8845
8846 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
8847
8848 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
8849 (objc_declare_class): Likewise.
8850 (error_with_ivar): Likewise.
8851 (start_class): Likewise.
8852 (warn_with_method): Likewise.
8853
8854 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
8855
8856 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
8857 from GCC.
8858 * calls.c (try_to_integrate): Don't use xxx_with_decl.
8859 (expand_call): Likewise.
8860 * dwarfout.c (output_reg_number): Likewise.
8861 * expr.c (expand_expr): Likewise.
8862 * function.c (assign_temp): Likewise.
8863 (uninitialized_vars_warning): Likewise.
8864 (setjmp_args_warning): Likewise.
8865 (expand_function_end): Likewise.
8866 * stmt.c (fixup_gotos): Likewise.
8867 (warn_about_unused_variables): Likewise.
8868 (expand_end_bindings): Likewise.
8869 * stor-layout.c (layout_decl): Likewise.
8870 (place_field): Likewise.
8871 * toplev.c (check_global_declarations): Likewise.
8872 (rest_of_handle_inlining): Likewise.
8873 (default_tree_printer): New function.
8874 (general_init): Initialize diagnostic machinery before routing
8875 signals to the ICE machinery. Set default tree printer.
8876 * toplev.h (pedwarn_with_decl): Remove declaration.
8877 (warning_with_decl): Likewise.
8878 (error_with_decl): Likewise.
8879 (pedwarn): Remove attribute for the time being.
8880 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
8881 * varasm.c (named_section): Likewise.
8882 (make_decl_rtl): Likewise.
8883 (assemble_variable): Likewise.
8884 (merge_weak): Likewise.
8885 (declare_weak): Likewise.
8886
8887 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
8888 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
8889 (format_with_decl): Remove.
8890 (diagnostic_for_decl): Likewise.
8891 (pedwarn_with_decl): Likewise.
8892 (warning_with_decl): Likewise.
8893 (error_with_decl): Likewise.
8894 (diagnostic_initialize): Adjust.
8895 (diagnostic_count_diagnostic): Likewise.
8896 (announce_function): Likewise.
8897 (lhd_print_error_function): Likewise.
8898 (diagnostic_report_current_module): Likewise.
8899 (default_diagnostic_starter): Likewise.
8900 (diagnostic_report_diagnostic): Likewise.
8901 (default_diagnostic_finalizer): Likewise.
8902 (verbatim): Likewise.
8903 (error): Likewise.
8904 (warning): Likewise.
8905 * opts.c (common_handle_option): Likewise.
8906 * pretty-print.c: New file.
8907 * c-pretty-print.h (pp_base): Override.
8908 * c-pretty-print.c: Adjust use of macros throughout.
8909 (pp_buffer): New macro.
8910 (pp_newline): Likewise.
8911 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
8912 * Makefile.in (DIAGNOSTIC_H): New variable.
8913 (c-errors.o): Use it.
8914 (c-objc-common.o): Likewise.
8915 (c-common.o): Likewise.
8916 (c-opts.o): Likewise.
8917 (c-format.o): Likewise.
8918 (diagnostic.o): Likewise.
8919 (opts.o): Likewise.
8920 (toplev.o): Likewise.
8921 (rtl-error.o): Likewise.
8922 (dwarf2out.o): Likewise.
8923 (jump.o): Likewise.
8924 (pretty-print.o): New rule.
8925
8926 2003-07-24 Roger Sayle <roger@eyesopen.com>
8927
8928 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
8929 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
8930 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
8931 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
8932 (DEF_FRONT_END_LIB_BUILTIN): Delete.
8933 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
8934 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
8935
8936 * builtins.c (build_string_literal): New function to construct
8937 a char* pointer to a string literal.
8938 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
8939 "rtx target" to be consistent with other expand_builtin_* functions.
8940 Change 3rd argument from "int unlocked" to "bool unlocked".
8941 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
8942 c-common.c to avoid front-end dependencies. Optimize printf("")
8943 as a no-op when the result isn't required. Handle embedded NULs
8944 in format string.
8945 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
8946 from c-common.c to avoid front-end dependencies. Likewise, optimize
8947 fprintf(fp,"") as a no-op when the result isn't required, evaluating
8948 fp for side-effects. Handle embedded NULs in format string.
8949 (expand_builtin_sprintf): Fix typo.
8950 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
8951 optimizing. Adjust calls of expand_builtin_fputs to match the API
8952 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
8953 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
8954 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
8955
8956 * c-common.c (is_valid_printf_arglist): Delete.
8957 (c_expand_builtin): Delete.
8958 (c_expand_builtin_printf): Moved to builtins.c. Delete.
8959 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
8960 (c_expand_expr): No longer treat CALL_EXPRs specially.
8961 (CALLED_AS_BUILT_IN): Delete.
8962
8963 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8964
8965 PR optimization/11631
8966 * gcse.c (store_motion): Connect infinite loops to exit.
8967
8968 2003-07-24 Jason Merrill <jason@redhat.com>
8969
8970 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
8971 (boolean_true_node, boolean_false_node): Likewise.
8972 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
8973 * tree.c (build_common_tree_nodes): Init boolean_type_node.
8974 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
8975 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
8976 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
8977 (truthvalue_true_node): Renamed from boolean_true_node.
8978 (truthvalue_false_node): Renamed from boolean_false_node.
8979 * c-decl.c: Just set truthvalue_* to integer_*.
8980 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
8981
8982 2003-07-24 Roger Sayle <roger@eyesopen.com>
8983
8984 * c-decl.c (match_builtin_function_types): New subroutine of
8985 duplicate_decls to test whether a redeclaration of a builtin
8986 function is suitably close, i.e. the return type and all of
8987 the argument types have the same modes as the builtin expects.
8988 (duplicate_decls): Fuzzy type matching for builtin functions
8989 moved to match_builtin_function_types.
8990
8991 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8992
8993 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
8994 flag correctly.
8995
8996 2003-07-24 Zack Weinberg <zack@codesourcery.com>
8997
8998 * c-decl.c: Search-and-replace change 'binding level' to
8999 'scope' in commentary.
9000 (struct binding_level): Now struct c_scope.
9001 (current_binding_level): Now current_scope.
9002 (free_binding_level): Now scope_freelist.
9003 (current_function_level): Now current_function_scope.
9004 (global_binding_level): Now global_scope.
9005 (make_binding_level): Now make_scope.
9006 (pop_binding_level): Now pop_scope.
9007
9008 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9009
9010 * configure.in (libgcc_visibility): Add missing whitespace.
9011
9012 2003-07-24 Richard Henderson <rth@redhat.com>
9013
9014 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
9015 __gcc_personality_v0.
9016
9017 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9018
9019 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
9020
9021 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
9022
9023 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
9024 documentation missed from my 2003-07-09 patch.
9025
9026 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
9027
9028 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
9029 it's not provided.
9030 * configure: Rebuild.
9031
9032 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
9033
9034 PR c/10602
9035 * c-typeck.c (type_lists_compatible_p): Do not compare
9036 arguments if one of them is an error_mark_node
9037
9038 2003-07-24 Alan Modra <amodra@bigpond.net.au>
9039
9040 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
9041 if current_function_calls_eh_return.
9042
9043 2003-07-23 Mark Mitchell <mark@codesourcery.com>
9044
9045 * doc/c-tree.texi (OFFSET_TYPE): Update description.
9046
9047 2003-07-23 Bob Wilson <bob.wilson@acm.org>
9048
9049 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
9050 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
9051 __umodsi3, __modsi3): Increase frame size to 32.
9052
9053 2003-07-23 Geoffrey Keating <geoffk@apple.com>
9054
9055 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
9056 prototype.
9057
9058 2003-07-23 Mark Mitchell <mark@codesourcery.com>
9059
9060 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
9061
9062 PR optimization/10679
9063 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
9064
9065 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9066
9067 PR target/11607 and PR target/11516
9068 * pa.md (extzv, extv, insv): Revert latter half of last patch.
9069
9070 2003-07-22 Mark Mitchell <mark@codesourcery.com>
9071
9072 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
9073 * varasam.c (output_constant): Likewise.
9074
9075 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
9076
9077 * alias.c: Fix comment formatting.
9078 * c-common.c: Likewise.
9079 * c-decl.c: Likewise.
9080 * c-opts.c: Likewise.
9081 * combine.c: Likewise.
9082 * cpplib.c: Likewise.
9083 * diagnostic.c: Likewise.
9084 * dojump.c: Likewise.
9085 * final.c: Likewise.
9086 * fold-const.c: Likewise.
9087 * gcc.c: Likewise.
9088 * gcse.c: Likewise.
9089 * ggc-page.c: Likewise.
9090 * jump.c: Likewise.
9091 * loop.c: Likewise.
9092 * mips-tfile.c: Likewise.
9093 * recog.c: Likewise.
9094 * regclass.c: Likewise.
9095 * regmove.c: Likewise.
9096 * tree.c: Likewise.
9097 * tree.h: Likewise.
9098
9099 2003-07-22 Per Bothner <pbothner@apple.com>
9100
9101 * line-map.c (add_line_map): Handle invalid LEAVE request.
9102 Fixes PR preprocessor/11361.
9103
9104 2003-07-22 Per Bothner <pbothner@apple.com>
9105
9106 * diagnostic.c.(diagnostic_report_current_module): Update to match
9107 2003-06-05 changes to push_srcloc and pop_srcloc.
9108
9109 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
9110
9111 * doc/trouble.texi: Better document two-stage name lookup.
9112
9113 2003-07-22 Eric Christopher <echristo@redhat.com>
9114
9115 * config/s390.c (s390_valid_pointer_mode): New.
9116 (TARGET_VALID_POINTER_MODE): Use.
9117 (s390_emit_prologue): Add tpf profiling hooks.
9118 (s390_emit_epilogue): Ditto.
9119 * config/s390.h (MASK_TPF): New.
9120 (TARGET_TPF): Use.
9121 (POINTERS_EXTEND_UNSIGNED): Define.
9122 * config/s390.md (ptr_extend): New pattern.
9123
9124 2003-07-22 Zack Weinberg <zack@codesourcery.com>
9125
9126 * hashtable.c (approx_sqrt): Make static.
9127 * hashtable.h: Don't prototype approx_sqrt.
9128 * line-map.c (init_line_maps): Rename linemap_init.
9129 (free_line_maps): Rename linemap_free.
9130 (add_line_map): Rename linemap_add.
9131 (lookup_line): Rename linemap_lookup.
9132 (print_containing_files): Rename linemap_print_containing_files.
9133 * linemap.h: Update to match.
9134
9135 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
9136 linemap routines to use new names.
9137
9138 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
9139
9140 * c-common.c (handle_packed_attribute): Don't pack a struct via a
9141 typedef. Propagate packedness from a main variant.
9142
9143 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
9144
9145 * Makefile.in (install-common): Add dependency on installdirs.
9146
9147 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
9148
9149 * c-common.c (c_common_type_for_mode): Return integer types for
9150 pointer modes.
9151
9152 2003-07-22 Geoffrey Keating <geoffk@apple.com>
9153
9154 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
9155 (finish_decl): Call maybe_apply_pragma_weak here.
9156 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
9157 TREE_PUBLIC and TREE_STATIC are decided.
9158 (start_function): Move call to maybe_apply_pragma_weak. Check that
9159 DECL_ASSEMBLER_NAME isn't set too early.
9160
9161 * cpplex.c (_cpp_process_line_notes): Mention option name in
9162 trigraphs warning.
9163
9164 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
9165
9166 * combine.c (if_then_else_cond): Simplify the comparison of
9167 rtx against -1, 0, and 1.
9168 * loop.c (check_dbra_loop): Likewise.
9169 * optabs.c (emit_conditional_move): Likewise.
9170 (emit_conditional_add): Likewise.
9171 * config/i386/i386.md (*movsi_or): Likewise.
9172 (*movdi_or_rex6): Likewise.
9173
9174 2003-07-22 Jan Hubicka <jh@suse.cz>
9175
9176 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
9177
9178 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
9179
9180 * cppfiles.c (open_file_pch): Don't put unused entries in the
9181 splay tree. Remove dead code.
9182
9183 2003-07-21 Geoffrey Keating <geoffk@apple.com>
9184
9185 * c-common.h (num_in_fnames): Declare.
9186 (c_static_assembler_name): Move from here...
9187 * c-tree.h (c_static_assembler_name): ... to here.
9188 * c-opts.c: Don't include langhooks-def.h.
9189 (c_static_assembler_name): Move to c-decl.c.
9190 (num_in_fnames): Make externally visible.
9191 * c-decl.c: Include langhooks-def.h.
9192 (c_static_assembler_name): Move from c-opts.c.
9193 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
9194 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
9195
9196 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
9197 when it's not needed.
9198
9199 2003-07-21 Jakub Jelinek <jakub@redhat.com>
9200
9201 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
9202 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
9203 (rs6000_emit_prologue): Save FPRs inline if set.
9204
9205 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
9206
9207 * config/ia64/ia64.md (prefetch): Support predicate.
9208
9209 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
9210
9211 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
9212 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
9213 table.
9214
9215 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
9216
9217 PR optimization/11536
9218 * unroll.c (loop_iterations): Do not replace a register holding
9219 the final value by its equivalent before the loop if it is not
9220 invariant.
9221
9222 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
9223
9224 * doc/extend.texi: Fixes to spelling, grammar, and diction.
9225
9226 2003-07-21 Ben Elliston <bje@wasabisystems.com>
9227
9228 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
9229 (V850 Options): Spelling fixes.
9230
9231 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
9232
9233 * doc/invoke.texi: Fixes to style, grammar and diction.
9234
9235 2003-07-20 Roger Sayle <roger@eyesopen.com>
9236
9237 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
9238 * system.h (SMALL_STACK): Poison obsolete target macro.
9239 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
9240
9241 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
9242
9243 * configure.in: Cache the results of testing for cmp's capabilities.
9244 * configure: Regenerate.
9245
9246 2003-07-20 Mark Mitchell <mark@codesourcery.com>
9247
9248 PR debug/11279
9249 * dwarf2out.c (gen_enumeration_type_die): Remember that
9250 enumerators can be unsigned.
9251
9252 2003-07-19 Zack Weinberg <zack@codesourcery.com>
9253
9254 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
9255 (push_label_level, pop_label_level): Kill.
9256 (struct binding_level): Rename level_chain to outer.
9257 Add outer_function field. Change parm_flag, function_body,
9258 keep, keep_if_subblocks to 1-bit bitfields of type bool.
9259 (current_function_level): New variable.
9260 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
9261 (keep_next_level, declare_parm_level, warn_if_shadowing):
9262 Update to match.
9263 (struct language_function): Kill named_labels, shadowed_labels fields.
9264 (c_init_decl_processing, start_function, c_push__function_context)
9265 (c_pop_function_context): No need to muck with named_labels nor
9266 shadowed_labels.
9267
9268 (make_binding_level): No need to clear the structure here.
9269 (pop_binding_level): Always operate on current_binding_level.
9270 Update current_function_level if necessary.
9271 (pushlevel): Don't clear named_labels. Update current_function_level
9272 if necessary. Use "true" and "false" where appropriate.
9273 (poplevel): Diagnose labels defined but not used, or vice
9274 versa, and clear out label-meanings leaving scope, while
9275 walking down the decls list, for all binding levels.
9276 Handle LABEL_DECLs appearing in the shadowed list.
9277 pop_binding_level takes no arguments.
9278 (pushdecl_function_level): Use current_function_level.
9279
9280 (make_label, bind_label): New static functions.
9281 (declare_label): New exported function.
9282 (lookup_label, define_label): Rewritten for new data structure.
9283 (shadow_label): Kill.
9284
9285 * c-tree.h: Prototype declare_label; don't prototype
9286 push_label_level, pop_label_level, nor shadow_label.
9287 * c-parse.in: Remove all calls to push_label_level and
9288 pop_label_level. Use declare_label for __label__ decls.
9289
9290 * doc/extend.texi: Clarify that __label__ can be used to
9291 declare labels with local scope in any nested block, not
9292 just statement expressions. Cross-reference nested functions
9293 section from local labels section.
9294
9295 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9296
9297 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
9298
9299 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
9300
9301 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
9302
9303 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9304
9305 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
9306 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
9307
9308 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
9309
9310 * config/s390/s390.c (legitimize_pic_address): Access local symbols
9311 relative to the GOT instead of relative to the literal pool base.
9312 (s390_output_symbolic_const): Handle new GOT-relative accesses.
9313 * config/s390/s390.md ("call"): Access local functions and PLT stubs
9314 relative to the GOT instead of relative to the literal pool base.
9315 ("call_value"): Likewise.
9316 ("call_value_tls"): Likewise.
9317
9318 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
9319 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
9320 (s390_chunkify_finish): Likewise.
9321 (s390_chunkify_cancel): Likewise.
9322 (s390_reorg): Adapt caller.
9323 (find_base_register_in_addr,
9324 find_base_register_ref, replace_base_register_ref): Delete.
9325 (find_ltrel_base, replace_ltrel_base): New functions.
9326 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
9327 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
9328 base vs. index register usage.
9329 (struct constant_pool): Remove 'anchor'.
9330 (s390_add_anchor): Delete.
9331 (s390_dump_pool): Remove anchor handling.
9332 * config/s390/s390.md ("reload_anchor"): Remove.
9333
9334 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
9335 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
9336 (s390_emit_prologue): Use it.
9337 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
9338 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
9339 hard-code register 14.
9340 * config/s390/s390-protos.h (s390_load_got): Declare.
9341
9342 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
9343 Support TImode constants.
9344 * config/s390/s390.md ("consttable_ti"): New.
9345 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
9346
9347 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
9348 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
9349 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
9350 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
9351 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
9352 New symbolic constants.
9353 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
9354 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
9355 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
9356 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
9357 symbolic UNSPEC values.
9358 * config/s390/s390.c (larl_operand, s390_short_displacement,
9359 bras_sym_operand, s390_cannot_force_const_mem,
9360 s390_delegitimize_address, s390_decompose_address,
9361 legitimize_pic_address, s390_output_symbolic_const,
9362 s390_function_profiler): Use symbolic UNSPEC values.
9363
9364 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9365
9366 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
9367 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
9368 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
9369 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
9370 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
9371 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
9372 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
9373 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
9374 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
9375 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
9376 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
9377 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
9378 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
9379 postreload.c prefix.c print-tree.c protoize.c ra-build.c
9380 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
9381 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
9382 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
9383 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
9384 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
9385 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
9386 casts.
9387
9388 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
9389
9390 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
9391 * toplev.h (warning): Remove attribute.
9392
9393 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
9394
9395 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
9396 (pop_label_level): Likewise.
9397 (duplicate_decls): Likewise.
9398 (implicitly_declare): Likewise.
9399 (shadow_label): Likewise.
9400 (start_decl): Likewise.
9401 (finish_decl): Likewise.
9402 (grokdeclarator): Likewise.
9403 (get_parm_info): Likewise.
9404 (detect_field_duplicates): Likewise.
9405 (finish_struct): Likewise.
9406 (start_function): Likewise.
9407 (store_parm_decls): Likewise.
9408 (finish_function): Likewise.
9409 (c_expand_body_1): Likewise.
9410 (check_for_loop_decls): Likewise.
9411 (merge_translation_unit_decls): Likewise.
9412
9413 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
9414
9415 * common.opt: Document --param.
9416 * opts.c (columns, undocumented_msg): New.
9417 (print_help): Get number of columns from environment. Print
9418 --param help. Tweak newline handling.
9419 (print_param_help): New.
9420 (print_filtered_help): Better handling of duplicates. Complain
9421 about undocumented switches.
9422 (print_switch): New.
9423 (wrap_help): Improve wrapping, use COLUMNS.
9424 * opts.sh: Ignore comments in records.
9425 * params.def: Fix typos and remove trailing periods.
9426 * toplev.c (display_help): Don't dump --param help.
9427 * doc/sourcebuild.texi: Update.
9428
9429 2003-07-18 Richard Henderson <rth@redhat.com>
9430
9431 PR target/11556
9432 * optabs.c (prepare_operand): Fail gracefully instead of abort
9433 if the predicate doesn't satisfy.
9434 (gen_cond_trap): Allow prepare_operand to fail.
9435
9436 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
9437
9438 * c-common.c: Don't undefine GCC_DIAG_STYLE.
9439 (fname_decl): Don't use xxx_with_decl.
9440 (c_add_case_label): Likewise.
9441 (handle_section_attribute): Likewise.
9442 (handle_alias_attribute): Likewise.
9443 (handle_no_instrument_function_attribute): Likewise.
9444 (handle_no_limit_stack_attribute): Likewise.
9445 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
9446 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
9447
9448 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9449
9450 * Makefile.in (ifcvt.o): Add cfgloop.h.
9451 * basic-block.h (EDGE_LOOP_EXIT): New flag.
9452 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
9453 * ifcvt.c: Include cfgloop.h.
9454 (mark_loop_exit_edges): New static function.
9455 (if_convert): Call it.
9456 (find_if_header): Ignore branches out of loops.
9457
9458 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
9459
9460 * combine.c (simplify_comparison): Don't share rtx when converting
9461 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
9462
9463 2003-07-18 David Edelsohn <edelsohn@gnu.org>
9464
9465 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
9466 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
9467 (MUST_PASS_IN_STACK): Define.
9468 (BLOCK_REG_PADDING): Define.
9469
9470 2003-07-18 Richard Henderson <rth@redhat.com>
9471
9472 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
9473 to skip the addr_vec.
9474
9475 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
9476
9477 * combine.c (combinable_i3pat): Don't forbid occurrences of
9478 i2dest or i1dest in inner_dest if inner_dest is a mem.
9479
9480 2003-07-18 Jan Hubicka <jh@suse.cz>
9481
9482 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
9483
9484 2003-07-17 Jakub Jelinek <jakub@redhat.com>
9485
9486 PR target/11087
9487 * loop.c (basic_induction_var): Check if convert_modes emitted any
9488 instructions. Remove them and return 0 if so.
9489
9490 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
9491
9492 PR optimization/11083
9493 * toplev.c (rest_of_handle_addresof): Rename into
9494 rest_of_handle_addressof. Delete unreachable blocks
9495 if dead edges were purged after the addressof pass.
9496
9497 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
9498
9499 * Makefile.in, configure, configure.in: Remove handling of
9500 lang-options.h and options_.h.
9501 * toplev.c (struct lang_opt, documented_lang_options): Remove.
9502 (display_help): Don't use documented_lang_options.
9503
9504 2003-07-17 Zack Weinberg <zack@codesourcery.com>
9505
9506 * c-decl.c (pushdecl_function_level): Make static, return nothing.
9507 (kept_level_p): Fold into poplevel.
9508 (undeclared_variable): Moved here from c-typeck.c. Export.
9509 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
9510 (undeclared_variable): Prototype here. Don't prototype
9511 kept_level_p nor pushdecl_function_level.
9512 * c-parse.in: Change first argument to poplevel from
9513 "kept_level_p()" to "KEEP_MAYBE".
9514 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
9515
9516 2003-07-17 Roger Sayle <roger@eyesopen.com>
9517
9518 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
9519 commutative operands instead of modifying the RTL in-place.
9520
9521 2003-07-17 Mark Mitchell <mark@codesourcery.com>
9522
9523 PR optimization/11557
9524 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
9525 unless we know which function is being called.
9526
9527 2003-07-17 Roger Sayle <roger@eyesopen.com>
9528
9529 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
9530 whether to reorder the operands of a commutative binary operator.
9531
9532 2003-07-17 Roger Sayle <roger@eyesopen.com>
9533
9534 * fold-const.c (const_binop): Avoid performing the FP operation at
9535 compile-time, if either operand is NaN and we honor signaling NaNs,
9536 or if we're dividing by zero and either flag_trapping_math is set
9537 or the desired mode doesn't support infinities.
9538 (fold_initializer): New function to fold an expression ignoring any
9539 potential run-time exceptions or traps.
9540 * tree.h (fold_initializer): Prototype here.
9541 * c-typeck.c (build_binary_op): Move to the end of the file so
9542 that intializer_stack is in scope. If constructing an initializer,
9543 i.e. when initializer_stack is not NULL, use fold_initializer to
9544 fold expressions.
9545 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
9546 performing FP operations at compile-time, if they would raise an
9547 exception at run-time.
9548
9549 2003-07-17 Geoffrey Keating <geoffk@apple.com>
9550
9551 PR 11498
9552 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
9553 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
9554 (GTFILES): Add langhooks.c.
9555 (gt-langhooks.h): New.
9556 * c-common.h (c_static_assembler_name): Prototype.
9557 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
9558 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
9559 * c-opts.c: Include langhooks-def.h.
9560 (c_static_assembler_name): New.
9561 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
9562 (var_labelno): New.
9563 (lhd_set_decl_assembler_name): Give static objects with context
9564 unique names.
9565 * varasm.c (var_labelno): Delete.
9566 (make_decl_rtl): Don't change the assembler name once it's set.
9567
9568 * c-opts.c (this_input_filename): New.
9569 (finish_options): Take new parameter, name of file being compiled.
9570 Update callers. Set this_input_filename.
9571 (push_command_line_include): Use this_input_filename not
9572 main_input_filename.
9573
9574 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
9575
9576 * Makefile.in: Depend .pot generation on options.c.
9577 * po/exgettext: Add an extra_files variable containing additional
9578 files to scan.
9579
9580 2003-07-17 Zack Weinberg <zack@codesourcery.com>
9581
9582 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
9583 c_write_global_declarations.
9584
9585 * c-decl.c: Fix typos in several comments. Remove all
9586 #if 0 blocks; reindent as needed. Remove unused argument
9587 to declare_parm_level; all callers changed.
9588 * c-parse.in: Update calls to declare_parm_level. Avoid
9589 issuing a double warning in some circumstances.
9590 * c-typeck.c: Update calls to declare_parm_level.
9591 * c-tree.h: Update prototype of declare_parm_level.
9592
9593 * c-pragma.c (apply_pragma_weak): Don't complain about a
9594 redundant #pragma weak.
9595
9596 * objc/objc-act.c (forward_declare_categories,
9597 build_selector_reference_decl, build_class_reference_decl,
9598 build_objc_string_decl, synth_forward_declarations,
9599 build_protocol_reference): Set TREE_PUBLIC on synthetic
9600 forward decl to 0, consistent with eventual definition.
9601 Correct comments to match.
9602
9603 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
9604 in regexp that don't form a range expression.
9605 * fixinc/fixincl.def: Regenerate.
9606
9607 2003-07-17 Richard Henderson <rth@redhat.com>
9608
9609 PR target/10907
9610 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
9611 even with !TARGET_CONST_GP.
9612 (ia64_function_ok_for_sibcall): Reject non-local functions.
9613
9614 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
9615
9616 * c-common.c (c_estimate_num_insns_1): Don't handle
9617 METHOD_CALL_EXPR.
9618 * expr.c (safe_from_p): Likewise.
9619 * gengtype.c (adjust_field_tree_exp): Likewise.
9620 * stmt.c (warn_if_unused_value): Likewise
9621 * tree.c (first_rtl_op): Likewise.
9622 * tree.def: Don't define METHOD_CALL_EXPR.
9623 * java/lang.c (java_estimate_num_insns_1): Don't handle
9624 METHOD_CALL_EXPR.
9625
9626 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
9627
9628 PR other/11466
9629 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
9630 and its restrictions for the SPARC64 port.
9631 Move the entry of "-mimpure-text" before that of "-mv8".
9632
9633 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
9634 Phil Edwards <phil@jaj.com>
9635
9636 * doc/install.texi (*-*-solaris2*): Document the step-by-step
9637 procedure to bootstrap and install.
9638 Document the preference for the legacy Sun tools in /usr/bin
9639 over the POSIX tools in /usr/xpg4/bin for the build process.
9640
9641 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
9642
9643 * c.opt: Document Uncodumented; use it. Document ObjC options.
9644 * opts.c (print_filtered_help): Skip undocumented switches.
9645 * opts.h (CL_UNDOCUMENTED): New.
9646 * opts.sh: Handle Undocumented.
9647 * toplev.c (documented_lang_options): Prevent its becoming empty.
9648 objc:
9649 * lang-options.h: Remove.
9650
9651 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
9652
9653 * loop.c (check_ext_dependent_givs): Pass const struct loop *
9654 instead of struct loop_info * as argument. Accept BIVs with
9655 increment +/- 1 provided there is a friendly exit test against
9656 a loop-invariant value.
9657 (strength_reduce): Adapt call to check_ext_dependent_givs.
9658
9659 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
9660 Con Bradley <con.bradley@superh.com>
9661
9662 * sh-protos.h (sh_get_pr_initial_val): Declare.
9663 * sh.c (regno_reg_class): Make its elements type enum reg_class.
9664 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
9665 and live_regs_mask arguments. Changed all callers.
9666 (save_schedule_s): New structure.
9667 (save_schedule): New typedef.
9668 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
9669 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
9670 In interrupts handlers, also save registers that are usually
9671 partially saved, and make sure there is at least one general purpose
9672 register saved if a target register needs saving.
9673 Add casts in comparisons to avoid warnings.
9674 (sh_media_register_for_return): return -1 for interrupt handlers.
9675 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
9676 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
9677 registers used are available.
9678 Set RTX_FRAME_RELATED_P where appropriate.
9679 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
9680 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
9681 (initial_elimination_offset): Likewise.
9682 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
9683 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
9684 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
9685 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
9686 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
9687 and for target registers.
9688 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
9689 (regno_reg_class): Make its elements type enum reg_class.
9690 (CONSTRAINT_LEN): Don't use isdigit.
9691 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
9692 (FUNCTION_ARG): Add parentheses to avoid warnings.
9693 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
9694 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
9695 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
9696 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
9697 * sh.md (xordi3+1): Remove unused variable regno.
9698 (return_media): Check that tr0 is available before using it.
9699
9700 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
9701
9702 * c.opt: Document more options.
9703
9704 2003-07-16 Roger Sayle <roger@eyesopen.com>
9705
9706 * combine.c (subst): Also handle (subreg (const_double ...)) case
9707 if created by a substitution, by using the original inner mode.
9708
9709 2003-07-16 Roger Sayle <roger@eyesopen.com>
9710
9711 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
9712 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
9713 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
9714
9715 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
9716
9717 * doc/install.texi (--without-headers): New.
9718
9719 Partial Fix PR/10129
9720 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
9721 (machopic_output_function_base_name): New; print the true pic label.
9722 (machopic_classify_ident): Pic Base is always a defined data.
9723 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
9724 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
9725
9726 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
9727 if they are not floating point registers.
9728
9729 PR c/10962
9730 * ggc.h: Add header guards.
9731 * c-decl.c (finish_struct): Sort fields if
9732 number greater than 15 and there are no
9733 anonymous structs/unions.
9734 * c-common.h: Include ggc.h.
9735 (sorted_fields_type): New struct.
9736 (field_decl_cmp): New prototype.
9737 (resort_sorted_fields): New prototype.
9738 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
9739 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
9740 as s, removing other fields.
9741 * c-typeck.c (lookup_field): Use s in lang_type.
9742 These were mostly moved from cp/class.c:
9743 * c-common.c (field_decl_cmp): New static function.
9744 (field_decl_cmp): New function.
9745 (resort_sorted_fields): New function.
9746
9747 2003-07-16 Geoffrey Keating <geoffk@apple.com>
9748
9749 * config/darwin.c (machopic_select_section): Use decl_readonly_section
9750 to do most of the work.
9751
9752 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
9753
9754 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
9755 * config/mmix/mmix.c: Convert functions to ISO C90.
9756 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
9757 formatting.
9758 (mmix_get_hard_reg_initial_val): Tweak section head comment.
9759
9760 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
9761
9762 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
9763
9764 2003-07-16 Jakub Jelinek <jakub@redhat.com>
9765
9766 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
9767 (uw_update_context_1): Use it.
9768 * config/rs6000/rs6000.c (insn_after_throw): Remove.
9769 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
9770 in parent frame if _Unwind_* called directly instead of through
9771 .plt.
9772 (rs6000_emit_eh_toc_restore): Remove.
9773 (rs6000_emit_prologue): Update stack pointer before doing any saving
9774 if current_function_calls_eh_return. Generate unwind info for $r2.
9775 (rs6000_emit_epilogue): Restore stack pointer after doing all
9776 restoring if current_function_calls_eh_return. Restore $r2.
9777 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
9778 * config/rs6000/rs6000.md (eh_return): Remove call to
9779 rs6000_emit_eh_toc_restore.
9780 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
9781 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
9782
9783 2003-07-15 Jakub Jelinek <jakub@redhat.com>
9784
9785 * expr.c (emit_block_move): Don't move anything if size is const 0.
9786 (clear_storage): Test against const0_rtx instead of comparing INTVAL
9787 against 0.
9788
9789 2003-07-15 David S. Miller <davem@redhat.com>
9790
9791 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
9792 emit nop if the last real insn is CALL_INSN.
9793
9794 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
9795
9796 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
9797 as "nul".
9798 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
9799
9800 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
9801
9802 * config/i386/winnt.c (associated_type): Artificial methods are not
9803 affected by the import/export status of their class unless they are
9804 COMDAT.
9805 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
9806
9807 * config/i386/winnt.c: Fix GCC copyright comment.
9808
9809 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
9810
9811 PR c++/11531
9812 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
9813 not recursing on hard error.
9814 (diagnostic_for_decl): Likewise.
9815 * diagnostic.def: Rearrange.
9816
9817 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
9818
9819 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
9820 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
9821
9822 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
9823 Richard Henderson <rth@redhat.com>
9824
9825 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
9826 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
9827 (_Unwind_SetGR): Likewise.
9828 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
9829 (Unwind_SpTmp): New typedef.
9830 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
9831 (uw_update_context): Use _Unwind_GetPtr.
9832 (init_dwarf_reg_size_table): Move above uw_init_context_1.
9833 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
9834 Use _Unwind_SetSpColumn.
9835 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
9836 Use _Unwind_GetPtr.
9837
9838 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
9839
9840 * c.opt: Document more options.
9841 * toplev.c (documented_lang_options): Remove all local help strings.
9842
9843 2003-07-15 Mark Mitchell <mark@codesourcery.com>
9844
9845 PR debug/11473
9846 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
9847 base classes.
9848
9849 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
9850
9851 PR target/10795
9852 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
9853 swap comparison operands if doing so would generate an
9854 unrecognizable insn.
9855
9856 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
9857
9858 PR optimization/11320
9859 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
9860 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
9861 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
9862 current_sched_info->compute_jump_reg_dependencies. Record which
9863 registers are used and which registers are set by the jump.
9864 Clear deps->reg_conditional_sets after a barrier.
9865 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
9866 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
9867 (init_deps): Initialize reg_conditional_sets.
9868 (free_deps): Clear reg_conditional_sets.
9869 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
9870 Mark registers live on entry of the fallthrough block and conditionally
9871 set as set by the jump. Mark registers live on entry of non-fallthrough
9872 blocks as used by the jump.
9873 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
9874 Mark new parameters as unused.
9875
9876 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
9877
9878 * doc/invoke.texi: Resync MIPS -march documentation.
9879
9880 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
9881
9882 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
9883 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
9884 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
9885 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
9886 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
9887 (mips_issue_rate): Handle PROCESSOR_R9000.
9888 (mips_use_dfa_pipeline_interface): Likewise.
9889 * config/mips/9000.md: New file.
9890 * config/mips/mips.md: Include it.
9891 (define_attr cpu): Add r9000.
9892 (mulsi3_mult3): Use "mul" for rm9000 code.
9893
9894 2003-07-15 Stan Cox <scox@redhat.com>
9895
9896 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
9897 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
9898 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
9899 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
9900 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
9901 (mips_issue_rate): Handle PROCESSOR_R7000.
9902 (mips_use_dfa_pipeline_interface): Likewise.
9903 * config/mips/7000.md: New file.
9904 * config/mips/mips.md: Include it.
9905 (define_attr cpu): Add r7000.
9906 (mulsi3_mult3): Use "mul" for rm7000 code.
9907
9908 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
9909
9910 * config/mips/mips.md (define_attr type): Add condmove. Use it for
9911 the conditional move patterns.
9912 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
9913 Check for condmove type.
9914 (ir_vr54_arith): Add move type.
9915 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
9916 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
9917
9918 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
9919
9920 * c-opts.c (print_help): Remove.
9921 (c_common_handle_option): Don't handle --help.
9922 * c.opt: Document some options.
9923 (--help): Remove.
9924 * opts.c (print_filtered_help): New.
9925 (print_help): Use it.
9926
9927 2003-07-14 Geoffrey Keating <geoffk@apple.com>
9928
9929 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
9930 * tree.c: (build_common_tree_nodes_2): Likewise.
9931 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
9932 (V4DF_type_node): New.
9933
9934 * c-opts.c (push_command_line_include): Don't free deferred_opts,
9935 we'll need it.
9936 (finish_options): Reset init_cursor.
9937
9938 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
9939
9940 * expr.c (expand_assignment): Remove an unused argument
9941 SUGGEST_REG.
9942 * expr.h: Update the prototype.
9943 * function.c: Update the callers.
9944 * stmt.c: Likewise.
9945
9946 2003-07-14 Mark Mitchell <mark@codesourcery.com>
9947
9948 PR debug/11098
9949 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
9950 as DECL_ABSTRACT.
9951
9952 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
9953
9954 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
9955 with __cplusplus, not "we must use the C++ compiler's type"
9956 * fixinc/inclhack.def (void_null): Note that Interix needs this.
9957 * fixinc/fixincl.x: Regenerate.
9958
9959 2003-07-14 Geoffrey Keating <geoffk@apple.com>
9960
9961 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
9962 and unseen_objects from the global data before calling
9963 __deregister_frame_info_bases.
9964 (examine_objects): Insert objects into the seen_objects list,
9965 not unseen_objects.
9966 (_Unwind_Find_FDE): Always unlock the global object lists, even if
9967 we couldn't allocate a data structure to put in it.
9968
9969 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
9970 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
9971 (SET_TYPE_PROTOCOL_LIST): New.
9972 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
9973 (get_object_reference): Likewise.
9974
9975 2003-07-14 Jan Hubicka <jh@suse.cz>
9976
9977 * cfglayout.c (locator_file): Break out from ....
9978 (insn_file): ... here.
9979 (locator_line): Break out from ....
9980 (insn_line): ... here.
9981 * rtl.h (locator_file, locator_line): Declare.
9982 (final_start_function): Set proper line/file info.
9983
9984 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
9985
9986 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
9987 handled by pp_c_cast_expression.
9988
9989 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
9990
9991 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
9992 allocate 32768 bytes of stack. Use addition rather than subtraction
9993 when a single insn is enough.
9994 * config/mips/mips.md: Remove insns and splitters for subtracting
9995 constants.
9996 (subsi3): Only accept register operands.
9997 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
9998 (subdi3_internal_3, subsi3_internal_2): Likewise.
9999 (casesi): Use expand_binop to subtract the lower bound.
10000
10001 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
10002
10003 * config/mips/mips.c (mips_in_small_data_p): Don't handle
10004 TARGET_MIPS16 specially.
10005
10006 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
10007
10008 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
10009 mips_output_aligned_bss.
10010 * config/mips/linux.h: Likewise.
10011 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
10012 * config/mips/mips.c (mips_output_aligned_bss): New function.
10013
10014 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
10015 * config/mips/elf64.h: Likewise.
10016
10017 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
10018 mips_declare_object_name.
10019 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
10020 * config/mips/elf64.h: As for elf.h.
10021 * config/mips/iris6.h: Likewise.
10022 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
10023 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
10024 do...while (0) block.
10025 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
10026 (mips_finish_declare_object): Declare.
10027 * config/mips/mips.c (mips_declare_object_name): New function.
10028 (mips_finish_declare_object): New function.
10029
10030 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
10031 * config/mips/linux.h: Likewise.
10032
10033 * config/mips/mips.c (inside_function): Delete.
10034 (file_in_function_warning, ignore_line_number): Delete.
10035 (mips_output_filename): Don't warn about changing filenames within
10036 a function.
10037 (mips_output_lineno): Update accordingly.
10038 (mips_output_function_prologue): Don't reset the deleted variables.
10039 * config/mips/mips.h (inside_function): Delete.
10040 (file_in_function_warning, ignore_line_number): Delete.
10041
10042 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
10043 * config/mips/elf64.h: Likewise.
10044 * config/mips/openbsd.h: Likewise.
10045 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
10046 * config/mips/linux.h: Likewise.
10047 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
10048 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
10049
10050 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
10051 to the list of include files when using gas.
10052 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
10053 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
10054 * config/mips/elf64.h: Likewise.
10055 * config/mips/iris5.h: Likewise.
10056 * config/mips/linux.h: Likewise.
10057 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
10058 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
10059 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
10060 * config/mips/sdb.h: ...this new file.
10061
10062 2003-07-14 Douglas Rupp <rupp@gnat.com>
10063
10064 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
10065 argument to getcwd; use fixed buffer instead.
10066
10067 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
10068
10069 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
10070 * fixinc/fixinc.wrap: Delete.
10071
10072 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
10073
10074 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
10075 don't have 2.
10076
10077 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
10078
10079 * ggc-page.c (struct globals): Add new fields to keep track of the
10080 total allocated memory and overhead.
10081 (ggc_print_statistics): Print them.
10082 (ggc_alloc): Keep track of the total allocated memory and the
10083 overhead.
10084
10085 * tree.c (dump_tree_statistics): Increase spacing.
10086 (enum tree_node_kind): Move to ...
10087 * tree.h (enum tree_node_kind): ... here.
10088 (tree_node_counts, tree_node_sizes): Declare.
10089
10090 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
10091
10092 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
10093
10094 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10095
10096 PR optimization/11440
10097 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
10098 SIGN_EXTRACT SETs.
10099
10100 2003-07-14 Alan Modra <amodra@bigpond.net.au>
10101
10102 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
10103 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
10104 (emit_group_load, emit_group_store): Adjust declarations.
10105 Remove most occurrences of #ifdef TREE_CODE.
10106 * expr.c (emit_group_load): Add "type" param, and use
10107 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
10108 aligned accesses if !SLOW_UNALIGNED_ACCESS.
10109 (emit_group_store): Likewise.
10110 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
10111 emit_group_load and emit_group_store calls.
10112 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
10113 BLOCK_REG_PADDING to determine whether we need endian_correction.
10114 (load_register_parameters): Localize vars. Handle shifting of
10115 small values to the correct end of regs. Adjust emit_group_load
10116 call.
10117 (expand_call, emit_library_call_value_1): Adjust emit_group_load
10118 and emit_group_store calls.
10119 * function.c (assign_parms): Set mem alignment for stack slots.
10120 Adjust emit_group_store call. Store values at the "wrong" end
10121 of regs to the stack. Use BLOCK_REG_PADDING.
10122 (locate_and_pad_parm): Save where_pad.
10123 (expand_function_end): Adjust emit_group_load call.
10124 * stmt.c (expand_value_return): Adjust emit_group_load call.
10125 * Makefile.in (calls.o): Depend on $(OPTABS_H).
10126 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
10127 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
10128 (MUST_PASS_IN_STACK): Define.
10129 (BLOCK_REG_PADDING): Define.
10130 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
10131 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
10132 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
10133 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
10134 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
10135
10136 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
10137
10138 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
10139
10140 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10141
10142 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
10143 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
10144
10145 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
10146
10147 PR other/11123
10148 * toplev.c: Don't cut off option names.
10149
10150 2003-07-13 Andreas Jaeger <aj@suse.de>
10151
10152 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
10153 to integer of different size.
10154
10155 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
10156
10157 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
10158 to (eq (and X 1) 0).
10159
10160 2003-07-13 Andreas Jaeger <aj@suse.de>
10161
10162 * config.gcc: Add pmmintrin.h for x86_64-*-*.
10163
10164 2003-07-13 Zack Weinberg <zack@codesourcery.com>
10165
10166 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
10167 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
10168 list. Move these all together down by cpplib.
10169
10170 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
10171 definition of CPPCHAR_SIGNED_T.
10172
10173 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
10174 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
10175 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
10176
10177 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
10178 * cppinit.c (cpp_create_reader): Likewise.
10179
10180 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
10181 * cpptrad.c: Likewise. All callers changed.
10182 * cpplib.c: All callers changed.
10183 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
10184 * hashtable.h: Define GTY(x) to nothing here too.
10185
10186 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10187
10188 * stor-layout.c (compute_record_mode): Remove very obsolete test
10189 that forces BLKmode for records with fields crossing word boundary.
10190
10191 2003-07-13 Zack Weinberg <zack@codesourcery.com>
10192
10193 * Makefile.in: Remove orphan reference to acconfig.h.
10194
10195 2003-07-13 Andreas Jaeger <aj@suse.de>
10196
10197 * cgraphunit.c: Convert prototypes to ISO C90.
10198
10199 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
10200
10201 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
10202 (for OpenBSD).
10203 * fixinc/fixincl.x: Rebuild.
10204
10205 2003-07-12 Zack Weinberg <zack@codesourcery.com>
10206
10207 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
10208 i?86-*-*. Use correct name of cache variable.
10209 * configure: Regenerate.
10210
10211 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
10212
10213 * config/alpha/alpha.c: Fix comment typos.
10214 * config/alpha/alpha.md: Likewise.
10215 * config/arm/arm.c: Likewise.
10216 * config/arm/arm.md: Likewise.
10217 * config/arm/lib1funcs.asm: Likewise.
10218 * config/avr/avr.md: Likewise.
10219 * config/arm/README-interworking: Fix typos.
10220
10221 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
10222
10223 * c-format.c: Fix comment formatting.
10224 * c-typeck.c: Likewise.
10225 * coverage.c: Likewise.
10226 * cppcharset.c: Likewise.
10227 * cpplib.c: Likewise.
10228 * dbxout.c: Likewise.
10229 * gcov-io.h: Likewise.
10230 * toplev.c: Likewise.
10231
10232 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
10233
10234 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
10235 fix.
10236
10237 2003-07-12 Zack Weinberg <zack@codesourcery.com>
10238
10239 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
10240 uses three-argument AC_DEFINE so no acconfig.h entries are
10241 needed.
10242 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
10243 which contains the GAS version number as a scaled integer.
10244 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
10245 ability to check for ELF assembler.
10246 (gcc_GAS_CHECK_FEATURE): New macro.
10247 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
10248 assembler feature checks using gcc_GAS_CHECK_FEATURE.
10249 Use three-argument AC_DEFINE everywhere.
10250 * acconfig.h: Deleted.
10251 * config.in, configure: Regenerate.
10252
10253 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
10254
10255 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
10256 (on OpenBSD).
10257 * fixinc/fixincl.x: Regenerate.
10258
10259 * fixinc/inclhack.def (gnu_types): Improve comment.
10260
10261 2003-07-12 Andreas Jaeger <aj@suse.de>
10262
10263 * fp-test.c (main): Use ISO C90 prototype.
10264
10265 * version.c: Remove unneded include of ansidecl.h.
10266
10267 * cgraph.h: Convert prototypes to ISO C90.
10268 * cgraph.c: Likewise.
10269 * fix-header.c: Likewise.
10270 * ra.h: Likewise.
10271 * protoize.c: Likewise.
10272
10273 2003-07-12 Jan Hubicka <jh@suse.cz>
10274
10275 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
10276 warning.
10277
10278 2003-07-12 Jan Hubicka <jh@suse.cz>
10279 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10280
10281 * cgraph.c (cgraph_max_uid): New global variable.
10282 (cgraph_node): Set uid field.
10283 (create_edge): Keep inline flags consistent.
10284 (dump_cgraph): Dump more info.
10285 * cgraph.h (struct cgraph_local_info): Remove inline_many and
10286 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
10287 (struct cgraph_global_info): Add insns, calls, cloned_times,
10288 will_be_output.
10289 (struct cgraph_node): Add uid.
10290 (struct cgraph_edge): Add inline_call.
10291 (cgraph_max_uid, cgraph_inline_p): Declare.
10292 * cgraph.c: Include params.h and fibheap.h
10293 (cgraph_mark_functions_to_inline_once): Kill.
10294 (INSNS_PER_CALL): New constant.
10295 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
10296 static variables.
10297 (cgraph_finalize_function): Do not analyze inlining.
10298 (cgraph_finalize_compilation_unit): Set inlining attributes.
10299 (cgraph_mark_functions_to_output): More consistency checks.
10300 (cgraph_optimize_function): Set current_function_decl to NULL.
10301 (cgraph_expand_function): Use new inline flags.
10302 (cgraph_postorder): Expand from cgraph_expand_functions.
10303 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
10304 (cgraph_inlined_into, cgraph_inlined_callees,
10305 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
10306 cgraph_mark_inline, cgraph_check_inline_limits,
10307 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
10308 cgraph_decide_inlining, cgraph_inline_p): New functions.
10309 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
10310 PARAM_INLINE_UNIT_GROWTH): New parameters.
10311 * tree-inline.c (struct inline_data): New field current_decl.
10312 (expand_call_inline): Avoid forward declarations; use
10313 inlinable_function_p.
10314 (optimize_inline_calls): Set id.current_decl.
10315
10316 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
10317
10318 * configure.in: Remove wrongly added definition of
10319 local_prefix.
10320 * configure: Regenerate.
10321
10322 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10323
10324 * rtl.def (NOTE): Do not use padding.
10325
10326 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
10327
10328 * doc/install.tex: Update required binutils for i?86-*-linux*
10329
10330 2003-07-11 Richard Henderson <rth@redhat.com>
10331
10332 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
10333
10334 2003-07-11 Mark Mitchell <mark@codesourcery.com>
10335
10336 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
10337 TRANSLATION_UNIT_DECL as top_level.
10338
10339 2003-07-11 Jakub Jelinek <jakub@redhat.com>
10340
10341 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
10342 then fall back to cmpstrM.
10343 * builtins.c (expand_builtin_memcmp): Likewise.
10344 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
10345 (s390_expand_cmpmem): ... this.
10346 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
10347 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
10348 from cmpstr* patterns. Rename call to s390_expand_cmpstr
10349 to s390_expand_cmpmem.
10350 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
10351 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
10352 to cmpmem*.
10353 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
10354 cmpstr* patterns.
10355 * doc/md.texi (cmpstrM): Describe as String compare insn, not
10356 Block compare insn.
10357 (cmpmemM): Add.
10358
10359 2003-07-11 Loren James Rittle <ljrittle@acm.org>
10360
10361 * config/i386/freebsd.h (SET_ASM_OP): Remove.
10362 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
10363 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
10364 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
10365
10366 2003-07-11 Richard Henderson <rth@redhat.com>
10367
10368 * function.c (assign_parms): Don't recombine complex args if
10369 fnargs is unchanged from orig_fnargs.
10370 (split_complex_args): Return args without complex before copying.
10371 Re-layout the modified parameters.
10372
10373 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
10374
10375 * regclass.c (choose_hard_reg_mode): Add third argument.
10376 Changed all callers.
10377 * rtl.h (choose_hard_reg_mode): Update declaration.
10378 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
10379 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
10380
10381 2003-07-11 Geoffrey Keating <geoffk@apple.com>
10382
10383 * c-decl.c (finish_decl): Handle 'used' here...
10384 * cgraphunit.c (cgraph_finalize_function): ... and here ...
10385 * c-common.c: (handle_used_attribute): ... not here.
10386
10387 * configure.in (onstep): Support --enable-intermodule.
10388 * Makefile.in (OBJS-common): New.
10389 (OBJS-md): New.
10390 (OBJS-archive): New.
10391 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
10392 (OBJS-onestep): New.
10393 (libbackend.a): Support @onestep@.
10394 (libbackend.o): New.
10395 * configure: Regenerate.
10396
10397 * c-common.h (c_reset_state): New prototype.
10398 (c_parse_file): New prototype.
10399 (finish_file): Move prototype from c-tree.h.
10400 * c-decl.c: Include <hashtab.h>.
10401 (builtin_decls): New.
10402 (current_file_decl): New.
10403 (duplicate_decls): Add extra parameter. Change all callers. Don't
10404 output duplicate common symbols.
10405 (link_hash_hash): New.
10406 (link_hash_eq): New.
10407 (poplevel): Handle popping of the top level.
10408 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
10409 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
10410 (pushdecl_top_level): Likewise.
10411 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
10412 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
10413 (finish_decl): Handle TRANSLATION_UNIT_DECL.
10414 (merge_translation_unit_decls): New.
10415 (c_write_global_declarations): New.
10416 (c_reset_state): New.
10417 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
10418 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
10419 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
10420 TRANSLATION_UNIT_DECL.
10421 (c_objc_common_finish_file): Call merge_translation_unit_decls.
10422 * c-opts.c (in_fnames): Rename from in_fname.
10423 (c_common_decode_option): Handle multiple input filenames.
10424 (c_common_post_options): Likewise.
10425 (c_common_parse_file): Likewise; also, call c_parse_file rather than
10426 yyparse.
10427 * c-parse.in: Move cleanup code to c_parse_file.
10428 (free_parser_stacks): Move contents to c_parse_file.
10429 (c_parse_file): New.
10430 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
10431 for integer types.
10432 (C_DECL_FILE_SCOPE): New.
10433 (finish_file): Move prototype to c-common.h.
10434 (merge_translation_unit_decls): New prototype.
10435 (comptypes): Add extra parameter to prototype.
10436 (c_write_global_declarations): New prototype.
10437 * c-typeck.c (tagged_types_tu_compatible_p): New.
10438 (function_types_compatible_p): Add extra parameter, change all callers.
10439 (type_lists_compatible_p): Likewise.
10440 (comptypes): Likewise.
10441 (struct tagged_tu_seen): New.
10442 (tagged_tu_seen_base): New.
10443 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
10444 (c_mark_addressable): Remove #if 0 code.
10445 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
10446 comment explaining why it shouldn't have to.
10447 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
10448 options.
10449 * cppinit.c (cpp_read_next_file): New.
10450 (cpp_read_main_file): Use it.
10451 * cpplib.c (undefine_macros): New.
10452 (cpp_undef_all): New.
10453 * cpplib.h (cpp_read_next_file): Prototype.
10454 (cpp_undef_all): Prototype.
10455 * langhooks-def.h (write_global_declarations): Remove prototype.
10456 * toplev.h (write_global_declarations): Add prototype.
10457 * tree.c (decl_type_context): Use switch statement, handle
10458 TRANSLATION_UNIT_DECL.
10459 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
10460 (TRANSLATION_UNIT_DECL): New kind of tree.
10461 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
10462 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
10463 * doc/invoke.texi: Make attempt to document new functionality.
10464
10465 2003-05-19 Per Bothner <bothner@apple.com>
10466
10467 * gcc.c (combine_inputs): New.
10468 (process_command): Set combine_inputs.
10469 (do_spec_1): Handle combine_inputs.
10470 (main): Likewise.
10471
10472 2003-07-10 James E Wilson <wilson@tuliptree.org>
10473
10474 PR optimization/9745
10475 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
10476 loop_insn_emit_before.
10477 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
10478
10479 2003-07-10 Zack Weinberg <zack@codesourcery.com>
10480
10481 * cppcharset.c: Fix comment.
10482 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
10483 (EILSEQ): #define to EINVAL if not already defined.
10484 (convert_using_iconv): #if out when !HAVE_ICONV.
10485 (init_iconv_desc): Handle !HAVE_ICONV here...
10486 (cpp_init_iconv): ...not here.
10487
10488 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
10489
10490 * common.opt: More --help messages.
10491 * opts.c (print_help): Use puts().
10492 * toplev.c (f_options): Remove help text.
10493 (display_help): Don't dump f_options.
10494
10495 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
10496
10497 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
10498 Move i?86-*-interix* to the don't-fix list.
10499 * fixinc/fixinc.interix: Delete with extreme prejudice.
10500
10501 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
10502
10503 PR bootstrap/10758
10504 * doc/install.texi: Document requirements for ia64-*-hpux* target.
10505
10506 2003-07-10 Roger Sayle <roger@eyesopen.com>
10507
10508 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
10509
10510 2003-07-10 Zack Weinberg <zack@codesourcery.com>
10511
10512 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
10513 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
10514 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
10515 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
10516 convert_no_conversion, convert_using_iconv): New functions.
10517 (APPLY_CONVERSION): New macro.
10518 (struct conversion, conversion_tab): New data structure.
10519 (init_iconv_desc): Check conversion_tab for a custom conversion
10520 primitive before trying to use iconv.
10521 (convert_cset): Deleted.
10522 (cpp_init_iconv): Use UTF- terminology, not UCS-.
10523 (_cpp_destroy_iconv): Update to match.
10524 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
10525 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
10526 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
10527 (_cpp_interpret_string_notranslate): New function, moved here
10528 from cpplib.c.
10529
10530 * cpphash.h (convert_f, struct cset_converter): New types.
10531 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
10532 are now struct cset_converter, not bare iconv_t.
10533 Update prototypes.
10534 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
10535 all callers changed.
10536
10537 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
10538
10539 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
10540 to opts.sh command line.
10541 * opts.sh: Write to temporary files with a move-if-change at the end.
10542
10543 2003-07-10 Denis Chertykov <denisc@overta.ru>
10544 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10545
10546 * combine.c (gen_binary): Handle the CLOBBER rtx and
10547 don't build a binary operation with it.
10548
10549 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10550
10551 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
10552 store_killed_after, store_killed_before): Keep track of the correct
10553 dependency function to use.
10554
10555 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
10556 * toplev.c (do_compile): Don't try to open dump files before
10557 lang_dependent_init initializes dump_base_name.
10558
10559 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10560
10561 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
10562 Use ARRAY_SIZE.
10563 * config/frv/frv.c (frv_expand_builtin): Likewise.
10564 * config/sh/sh.c (sh_media_init_builtins): Likewise.
10565
10566 2003-07-09 Mark Mitchell <mark@codesourcery.com>
10567
10568 PR c++/10032
10569 * doc/invoke.texi (C++ Dialect Options): Change documentation of
10570 -fpermissive.
10571
10572 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
10573
10574 * tm.texi (RETURN_ADDR_OFFSET): Document.
10575
10576 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
10577
10578 * gcov-io.h: Update documentation.
10579 (GCOV_UNSIGNED2STRING): New.
10580 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
10581 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
10582 GCOV_TAG_SUMMARY_LENGTH): Adjust.
10583 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
10584 GCOV_TAG_COUNTER_NUM): New.
10585 (GCOV_BLOCK_SIZE): Number of words.
10586 (gcov_var): Adjust buffer type.
10587 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
10588 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
10589 count, not byte count.
10590 (gcov_open): Adjust overread init.
10591 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
10592 gcov_write_string, gcov_write_tag, gcov_write_length,
10593 gcov_write_tag_length): Adjust.
10594 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
10595 (gcov_sync, gcov_seek): Adjust.
10596 * gcov-dump.c (print_usage): Show gcc version only.
10597 (dump_file): Use GCOV_UNSIGNED2STRING.
10598 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
10599 * gcov.c (print_version): Show gcc version only.
10600 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
10601 GCOV_TAG_*_NUM macros.
10602 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
10603 GCOV_TAG_COUNTER_LENGTH.
10604 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
10605 Use GCOV_TAG_COUNTER_NUM.
10606 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
10607 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
10608
10609 2003-07-10 Andreas Schwab <schwab@suse.de>
10610
10611 * gcov-dump.c (dump_file): Fix missing address operator.
10612
10613 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
10614
10615 PR c/11449
10616 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
10617 of HOST_WIDE_INT.
10618 (fold_single_bit_test): If sign_bit_p() fails, assume that the
10619 bit being tested is not a sign bit.
10620
10621 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
10622
10623 * config/h8300/h8300.md (a peephole2): New.
10624
10625 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
10626
10627 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
10628 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
10629 from ld-linux.so.2 to ld.so.1.
10630 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
10631 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
10632 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
10633 nor -Wl,-rpath-link.
10634 (LIB_SPEC): Add -rpath-link if !static.
10635 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
10636 * config/mn10300/mn10300.c (mn10300_protect_label): New
10637 variable.
10638 * config/mn10300/linux.h (PRINT_OPERAND,
10639 PRINT_OPERAND_ADDRESS): Set it during their execution.
10640 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
10641 mn10300_protect_label is set.
10642 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
10643 -Wl,-rpath-link.
10644 (LIB_SPEC, STARTFILE_SPEC): Define.
10645 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
10646 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
10647 FLOAT_BIT_ORDER_MISMATCH.
10648 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
10649 * config.gcc (am33_2.0-*-linux*): Added.
10650 * config/mn10300/linux.h: New.
10651 * config/mn10300/t-linux: New.
10652
10653 2003-07-10 Andreas Jaeger <aj@suse.de>
10654
10655 * fold-const.c: Properly wrap prototypes.
10656
10657 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
10658
10659 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
10660 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
10661 Moved from...
10662 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
10663 * config/mn10300/mn10300.h: GTY-declare it.
10664 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
10665 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
10666 prototype. Use incoming RTL argument.
10667 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
10668 * config/mn10300/mn10300.md (int_label): Move C statements...
10669 (GOTaddr2picreg): ... here.
10670 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
10671 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
10672 * config/mn10300/mn10300.c (mn10300_encode_section_info):
10673 ... here. New function.
10674 (TARGET_ENCODE_SECTION_INFO): Define to it.
10675 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
10676 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
10677 pattern name.
10678 (mn10300_loadPC): Define as insn splittable after reload.
10679 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
10680 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
10681 be defined in .rodata even in PIC, now that the assembler
10682 supports that.
10683 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
10684 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
10685 symbol take an underscore prefix.
10686 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
10687 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
10688 legitimize_pic_address): Declare.
10689 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
10690 the PIC register as fixed.
10691 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
10692 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
10693 PIC.
10694 (LEGITIMATE_PIC_OPERAND_P): Define.
10695 (PIC_OFFSET_TABLE_REGNUM): Define.
10696 (GOT_SYMBOL_NAME): Define.
10697 (SYMBOLIC_CONST_P): Define.
10698 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
10699 symbols.
10700 (MN10300_GLOBAL_P): Test it.
10701 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
10702 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
10703 * config/mn10300/mn10300.c (print_operand): Handle unspec.
10704 (expand_prologue): Set PIC register.
10705 (call_address_operand): Don't match SYMBOL_REFs in PIC.
10706 (legitimize_address): Call legitimize_pic_address.
10707 (legitimize_pic_address): New fn.
10708 (legitimate_pic_operand_p): New fn.
10709 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
10710 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
10711 UNSPEC_PLT): New constants.
10712 (pop_pic_reg): New insn.
10713 (movsi): Adjust non-PIC addresses.
10714 (builtin_setjmp_receiver): Restore the PIC register.
10715 (casesi): New insn.
10716 (call): Adjust non-PIC addresses.
10717 (int_label, GOTaddr2picreg): New expands.
10718 (am33_loadPC): New insn.
10719 (mn10300_loadPC): New expand.
10720 (call_next_insn): New insn.
10721 (add_GOT_to_pic_reg): New expand.
10722 (symGOT2reg, symGOT2reg_i): New expands.
10723 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
10724 (sym2PIC, sym2PLT): New expands.
10725
10726 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
10727
10728 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
10729 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
10730 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
10731 to flag_unsafe_math_optimizations.
10732 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
10733 * config/mn10300/mn10300.c (expand_prologue): Mark
10734 FP-register-saving insns as frame-related.
10735 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
10736 * config/mn10300/mn10300.c
10737 (mn10300_get_live_callee_saved_regs): Don't search past
10738 LAST_EXTENDED_REGNUM.
10739 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
10740 * config/mn10300/mn10300.md: Remove excessive line breaks from
10741 `@' output patterns that were accounted as additional
10742 alternatives.
10743 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
10744 Re-introduce changes accidentally removed in Richard Sandiford's
10745 2000-12-05's patch.
10746 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
10747 Re-instate am33-2 lost in merge from net GCC.
10748 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
10749 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
10750 floating-point registers.
10751 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
10752 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
10753 pessimizations that had gone in on 2000-05-08.
10754 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
10755 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
10756 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
10757 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
10758 operand 0.
10759 * (movhi): Likewise.
10760 * (movsi): Likewise.
10761 * (movsf): Likewise.
10762 * (movdi): Likewise.
10763 * (movdf): Likewise.
10764 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
10765 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
10766 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
10767 (expand_prologue, expand_epilogue): Save and restore FP regs.
10768 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
10769 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
10770 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
10771 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
10772 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
10773 Do not clobber cc0.
10774 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
10775 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
10776 Discourage the two-argument, longer opcodes.
10777 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
10778 ones.
10779 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
10780 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
10781 * config/mn10300/mn10300.md (cmpsf): New pattern.
10782 (branch): Test mdep.fpCC and output fbCC.
10783 * config/mn10300/mn10300.c (print_operand): Output conditions.
10784 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
10785 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
10786 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
10787 mulsf3, divsf3): Use the `F' constraint for FP values.
10788 * config/mn10300/mn10300.c (const_1f_operand): New function.
10789 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
10790 * config/mn10300/mn10300.md (sqrtsf2): New expand.
10791 (rsqrtsf2): New insn.
10792 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
10793 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
10794 previous check-in.
10795 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
10796 * config/mn10300/mn10300.md (abssf2, negdf2): On
10797 TARGET_AM33_2, expand to...
10798 (abssf2_am33_2, negdf2_am33_2): New insns.
10799 (addsf3, subsf3, mulsf3, divsf3): Likewise.
10800 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
10801 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
10802 movdi, movdf): Added FP regs.
10803 * invoke.texi (-mam33-2, -mno-am33-2): Document.
10804 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
10805 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
10806 New macros.
10807 (REGNO_AM33_2_FP_P): Renamed to...
10808 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
10809 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
10810 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
10811 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
10812 regs from GENERAL_REGS.
10813 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
10814 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
10815 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
10816 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
10817 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
10818 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
10819 as FP_REGS.
10820 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
10821 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
10822 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
10823 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
10824 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
10825 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
10826 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
10827 AM33/2.0 floating-point registers.
10828 (CONDITIONAL_REGISTER_USAGE): Adjust.
10829 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
10830 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
10831 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
10832 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
10833 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
10834 (MULTILIB_DIRNAMES): Likewise.
10835 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
10836 `__AM33_2__' when `-mam33-2' is given.
10837 (TARGET_AM33_2): Define.
10838 (TARGET_SWITCHES): Adjust.
10839 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
10840 when appropriate.
10841
10842 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
10843
10844 * doc/install.texi: Add missing @.
10845
10846 2003-07-09 Bob Wilson <bob.wilson@acm.org>
10847
10848 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
10849
10850 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
10851
10852 PR/11144
10853 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
10854
10855 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
10856
10857 PR bootstrap/11043
10858 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
10859 "x-crtfini.o" with "crtinit.o", "crtfini.o".
10860
10861 * fixinc/inclhack.def (limits_ifndefs): Add select test.
10862 * fixinc/fixincl.x: Rebuild.
10863
10864 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
10865 * fixinc/fixincl.x: Rebuild.
10866
10867 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
10868
10869 * doc/install.texi (Configuration): Document the valgrind option
10870 to --enable-checking.
10871
10872 2003-07-09 Jan Hubicka <jh@suse.cz>
10873
10874 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
10875
10876 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10877
10878 * c-lex.c (cb_ident): Cast cstr.text to const char *.
10879
10880 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
10881
10882 * gcov-io.h: Update documentation.
10883 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
10884 GCOV_NOTE_MAGIC.
10885 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
10886 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
10887 (struct gcov_var): Change buffer's type. Add endian flag.
10888 (gcov_open): Remove mode in libgcov.
10889 (gcov_magic): Prototype.
10890 * gcov-io.c (from_file): New.
10891 (gcov_open): Clear endian flag.
10892 (gcov_magic): New.
10893 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
10894 pointers.
10895 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
10896 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
10897 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
10898 * gcov-iov.c (main): Correct cast.
10899 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
10900 conversion.
10901 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
10902 (coverage_init): Use GCOV_NOTE_SUFFIX.
10903 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
10904 Rename to gcov_version, and return flag.
10905 (gcov_exit): Use gcov_version.
10906 (__gcov_init): Use gcov_version.
10907 * Makefile.in (coverageexts): Update.
10908 * gcov.c (print_version): Remove endianness conversion.
10909 (create_file_names): Use GCOV_NOTE_SUFFIX.
10910 (read_graph_file): Use gcov_magic.
10911 (read_count_file): Likewise.
10912 * gcov-dump.c (dump_file): Remove endianness conversion, use
10913 gcov_magic.
10914
10915 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
10916
10917 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
10918 coverage is on.
10919 * configure: Regenerated.
10920 * Makefile.in (ALL_CFLAGS): Correct its comment.
10921
10922 2003-07-08 Mark Mitchell <mark@codesourcery.com>
10923
10924 * fold-const.c (make_range): Do not access operand 1 for a
10925 zero-operand operator.
10926
10927 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
10928
10929 * toplev.c (warn_dummy, W_options): Die.
10930 (display_help): Don't print W_options.
10931 * common.opt: Add W_options help from toplev.c.
10932
10933 2003-07-09 Andreas Jaeger <aj@suse.de>
10934
10935 * opts.c (wrap_help): Only pass int arguments as arguments to
10936 printf's '*' modifier. Change argument of function.
10937
10938 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
10939
10940 * doc/invoke.texi: Fix misspelling of "@item".
10941
10942 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
10943
10944 * config/i386/i386.md: Remove an old comment about
10945 NOTICE_UPDATE_CC.
10946
10947 2003-07-09 Jan Hubicka <jh@suse.cz>
10948
10949 * cgraph.c (cgraph_node_name): New function.
10950 (dump_cgraph): Use it.
10951 * cgraph.h (cgraph_dump_file): Declare.
10952 (cgraph_node_name): Declare.
10953 * cgraphunit.c: Include timevar.h
10954 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
10955 (cgraph_optimize_function): Use TV_INTEGRATION.
10956 (cgraph_mark_local_functions): reorganize dumps.
10957 (cgraph_mark_functions_to_inline_once): Likewise.
10958 (cgraph_optimize): Likewise; use timevar.
10959 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
10960 * toplev.c (dump_file_index): Add DFI_cgraph.
10961 (dump_file_info): Likewise.
10962 (cgraph_dump_file): New global variable.
10963 (do_compile): Open and close cgraph dump.
10964 * invoke.texi (-d): Document new flag; renumber.
10965
10966 2003-07-08 Roger Sayle <roger@eyesopen.com>
10967
10968 PR c/11370
10969 * calls.c (emit_call_1): Don't bother popping the arguments off of
10970 the stack after a noreturn function call; The adjustment is dead.
10971 (expand_call): Likewise.
10972
10973 2003-07-08 Geoffrey Keating <geoffk@apple.com>
10974
10975 * expr.c (MOVE_MAX_PIECES): Move from here...
10976 * defaults.h (MOVE_MAX_PIECES): ... to here.
10977
10978 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
10979
10980 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
10981
10982 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10983
10984 * genattr.c (internal_dfa_insn_code): Don't prototype.
10985 * genattrtab.c (attr_desc): Add `static_p' field.
10986 (expand_units): Make blockage range and ready cost functions
10987 static.
10988 (write_attr_get): Don't add extern prototypes in C file. Mark
10989 static functions as appropriate.
10990 (find_attr, make_internal_attr): Initialize static_p.
10991 * genattrtab.h (ATTR_STATIC): New macro.
10992 * genautomata.c (output_internal_reset_func): Mark output function
10993 as inline.
10994 (make_internal_dfa_insn_code_attr): Mark output function as static.
10995
10996 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10997
10998 * genattrtab.h: Add new macros for attr `special' flags.
10999 * genattrtab.c (attr_desc): Reorder/resize fields better.
11000 Use attr `special' macros in all calls to make_internal_attr.
11001 * genautomata.c: Likewise.
11002
11003 2003-07-09 Jan Hubicka <jh@suse.cz>
11004
11005 * c-common.c (c_estimate_num_insns_1): New static function.
11006 (c_estimate_num_insns): New global function.
11007 * c-common.h (DECL_NUM_STMTS): Rename to...
11008 (DECL_ESTIMATED_INSNS): ... this.
11009 (c_estimate_num_insns): Declare.
11010 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
11011 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
11012 * c-semantics.c (add_stmt): Do not account statements.
11013 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
11014 New.
11015 * langhooks.h (lang_hooks_for_tree_inlining): Add
11016 estimate_num_insns
11017 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
11018 to 100.
11019 (max-inline-insns): set to 300.
11020 (min-inline-insns): set to 10.
11021 * tree-inline.c (struct inline_data): Rename inlined_stmts to
11022 inlined-insns.
11023 (INSNS_PER_STMT): Kill.
11024 (inlinable_function_p): Compute and store body size.
11025 (expand_call_inline): Likewise.
11026 (optimize_inline_calls): Likewise.
11027
11028 2003-07-08 James E Wilson <wilson@tuliptree.org>
11029
11030 PR target/10021
11031 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
11032 loop over new variable t2 instead of t.
11033
11034 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
11035
11036 PR bootstrap/11455
11037 * config/i386/winnt.c: Replace use of error(), warning() with
11038 error_with_decl(), warning_with_decl(), throughout.
11039
11040 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
11041
11042 * opts.c (wrap_help): Use unsigned int, not size_t.
11043
11044 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
11045
11046 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
11047 as .file/.loc directives are incompatible with linker relaxation.
11048
11049 2003-07-08 Zack Weinberg <zack@codesourcery.com>
11050
11051 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
11052 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
11053 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
11054 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
11055 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
11056 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
11057 Escape { and } characters which are not part of range expressions.
11058 * fixinc/fixincl.x: Regenerate.
11059 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
11060
11061 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
11062
11063 PR c/1687
11064 * tree-inline.c (find_alloca_call): Use
11065 walk_tree_without_duplicates, instead of walk_tree.
11066 (find_builtin_longjmp_call): Likewise.
11067 * c-objc-common.c (c_cannot_inline_fn): Likewise.
11068 * c-semantics.c (find_reachable_label): Likewise.
11069
11070 2003-07-08 Jakub Jelinek <jakub@redhat.com>
11071
11072 PR c/11420
11073 * config/i386/i386.c (ix86_check_movabs): New function.
11074 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
11075 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
11076 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
11077
11078 2003-07-08 Chris Demetriou <cgd@broadcom.com>
11079
11080 * Makefile.in (install-po): Cope with empty CATALOGS.
11081
11082 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
11083
11084 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
11085 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
11086 (SECTION_FUNCTION_TEMPLATE): Delete.
11087 * config/mips/elf.h: As for elf64.h.
11088 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
11089 * config/mips/linux.h: As for elf.h
11090 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
11091 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
11092 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
11093 of in_sdata from current_section_name and current_section_flags.
11094 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
11095 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
11096 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
11097 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
11098 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
11099 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
11100 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
11101 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
11102 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
11103 (override_options): Remove setting of MASK_GPOPT.
11104 (mips_output_external): Use mips_in_small_data_p to check whether a
11105 symbol needs an .extern directive. Don't emit such directives for
11106 TARGET_EXPLICIT_RELOCS.
11107 (mips_declare_object): Update accordingly.
11108 (mips_select_rtx_section): Call named_section rather than
11109 SMALL_DATA_SECTION.
11110 (mips_select_section): Use default_elf_section_section for everything
11111 except .text string constants.
11112 (mips_in_small_data_p): New function.
11113 (mips_encode_section_info): Remove small data handling.
11114 (mips_unique_section): Delete.
11115 (iris6_section_type_flags): New function.
11116 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
11117
11118 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11119
11120 PR Target/11453
11121 * pa.md: Disparage all mtsar constraints.
11122 (extzv, extv, insv): Don't fail on length of {32|64}.
11123
11124 2003-07-08 Zack Weinberg <zack@codesourcery.com>
11125
11126 * system.h: Poison MAP_CHARACTER.
11127 * config/i370/i370-protos.h (mvs_map_char): Delete.
11128 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
11129 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
11130 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
11131
11132 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
11133
11134 * toplev.c (randomize): Correct call to time().
11135
11136 2003-07-08 Jakub Jelinek <jakub@redhat.com>
11137
11138 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
11139 REG_EQUIV notes as well.
11140
11141 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
11142
11143 * doc/md.texi: Fix the description of addmodecc.
11144
11145 2003-07-07 Zack Weinberg <zack@codesourcery.com>
11146
11147 * Makefile.in (top_builddir): Set to "..", not ".".
11148 (INTLLIBS, INTLDEPS): Delete.
11149 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
11150 (LIBDEPS): Add $(LIBICONV_DEP).
11151 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
11152 (INCLUDES): Replace -I../intl with @INCINTL@.
11153 ($(top_builddir)/intl/libintl.a): Delete rule.
11154 (stage2-start, stage3-start, stage4-start, stageprofile-start,
11155 stagefeedback-start): Use $$ for variable to be evaluated by
11156 shell, not make.
11157 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
11158 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
11159 * aclocal.m4: sinclude ../config/progtest.m4. Add
11160 contents of lcmessage.m4 from gettext distro.
11161 * configure.in: Check for wchar.h and setlocale. Set
11162 LIBICONV_DEP to the empty string and substitute it.
11163 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
11164 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
11165 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
11166 in $LIBINTL, to avoid linking it twice.
11167 * configure, config.in: Regenerate.
11168
11169 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
11170
11171 * fixinc/mkfixinc.sh: Remove winnt support.
11172 * fixinc/fixinc.winnt: Delete with extreme prejudice.
11173
11174 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
11175
11176 * Makefile.in: Update.
11177 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
11178 * c.opt: Update documentation.
11179 * common.opt: Add some help text.
11180 * opts.c: Include intl.h.
11181 (wrap_help, print_help): New.
11182 (find_opt, handle_option, common_handle_option): opt_text now
11183 contains the '-'. Use print_help to output help.
11184 * opts.h (struct cl_option): New member "help".
11185 * opts.sh: Update to handle help text output and to prepend
11186 options with '-'.
11187 * toplev.c (display_help): Remove some help text.
11188
11189 2003-07-07 David Edelsohn <edelsohn@gnu.org>
11190 Fariborz Jahanian <fjahanian@apple.com>
11191
11192 * configure.in: Test for PowerPC mfcr field support in assembler.
11193 * config.in, configure: Regenderated.
11194
11195 * config/rs6000/power4.md: Add mfcrf reservation.
11196 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
11197 * config/rs6000/rs6000.c (mfcr_operation): Define.
11198 (print_operand): Add 'Q' case for mfcrf.
11199 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
11200 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
11201 (movcc_internal1): Emit optional field operand for mfcr and set
11202 "type" attribute appropriately.
11203 (mfcr SCC): Likewise.
11204 (movesi_from_cr_one): New.
11205
11206 2003-07-07 Roger Sayle <roger@eyesopen.com>
11207
11208 * config/i386/i386.md: Correct check-in of incorrect version.
11209
11210 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11211
11212 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
11213 adjacent stdio calls.
11214 * c-decl.c (c_print_identifier): Likewise.
11215 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
11216 * print-rtl.c (print_rtx): Likewise.
11217 * print-tree.c (print_node_brief, print_node): Likewise.
11218 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
11219
11220 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
11221 * config.in, configure: Regenerated.
11222
11223 2003-07-07 Roger Sayle <roger@eyesopen.com>
11224
11225 PR target/10979
11226 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
11227 Changed to define_expand patterns that copy operand[1] to prevent
11228 it from being clobbered before emitting an atan2?f3_1 insn.
11229 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
11230 patterns that actually specify the behaviour of x87's FPATAN.
11231
11232 2003-07-07 Jakub Jelinek <jakub@redhat.com>
11233
11234 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
11235 clearing of SYMBOL_FLAG_LOCAL bit.
11236 If vcall_offset fits into signed 16-bit immediate, use
11237 one instruction for both addition and load.
11238
11239 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
11240
11241 * opts.c (common_handle_option): Correct handling of the
11242 -falign- switches that do and don't take an argument.
11243
11244 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
11245
11246 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
11247 today.
11248 (pushhi1_h8300hs): Likewise.
11249
11250 2003-07-07 Andreas Jaeger <aj@suse.de>
11251
11252 * genextract.c: Convert remaining prototypes to ISO C90.
11253
11254 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
11255 * fold-const.c (fold_single_bit_test): Likewise.
11256 * diagnostic.c (default_diagnostic_finalizer): Likewise.
11257 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
11258
11259 * gengtype.c (write_array): Generate ISO C90 prototypes.
11260
11261 * genflags.c (gen_proto): Generate ISO C90 prototypes.
11262
11263 2003-07-07 Roger Sayle <roger@eyesopen.com>
11264
11265 PR optimization/11059
11266 * expr.c (can_store_by_pieces): Return true if length is zero.
11267 (store_by_pieces): If length is zero and endp is two, abort,
11268 othwerise, if length is zero and endp is not two, return "to".
11269 (clear_by_pieces): Do nothing if length is zero.
11270 (clear_storage): Do nothing if length is zero.
11271 (store_constructor): Simplify code when size is zero, or the
11272 target has already been cleared. This avoids emitting a
11273 blockage instruction when initializing empty structures.
11274
11275 2003-07-07 Andreas Jaeger <aj@suse.de>
11276
11277 * mips-tfile.c: Convert prototypes to ISO C90.
11278 * mips-tdump.c: Convert prototypes to ISO C90.
11279
11280 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
11281
11282 * rtl.h (emit_line_note): Take a location_t.
11283 (emit_line_note_force): Remove.
11284 (set_file_and_line_for_statement): Take a location_t.
11285 * tree.g (emit_line_note): Take a location_t.
11286 * emit-rtl.c (emit_line_note): Take a location_t.
11287 (emit_line_note_force): Remove.
11288 * function.c (init_function_start): Adjust emit_line_note call.
11289 (expand_function_end): Use force_next_line_note, not
11290 emit_line_note_force.
11291 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
11292 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
11293 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
11294 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
11295 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
11296 genrtl_continue_stmt, genrtl_switch_stmt,
11297 genrtl_asm_stmt): Likewise.
11298 * expr.c (expand_expr): Likewise.
11299 * integrate.c (expand_inline_function): Likewise.
11300 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
11301 (expand_decl_init): Adjust emit_line_note call.
11302
11303 2003-07-07 Dale Johannesen <dalej@apple.com>
11304
11305 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
11306
11307 2003-07-07 Andreas Jaeger <aj@suse.de>
11308
11309 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
11310 * config/i386/i386.c: Likewise.
11311
11312 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
11313
11314 * config/h8300/h8300.md: Use gen_int_mode instead of
11315 GEN_INT (trunc_int_for_mode (...)).
11316
11317 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
11318
11319 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
11320 2 bytes and then subtract 2 from the stack pointer.
11321 (pushhi1_h8300hs): Likewise.
11322
11323 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
11324
11325 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
11326 -frandom-seed.
11327 * configure: Regenerated.
11328 * Makefile.in: Remove extraneous comment.
11329 * toplev.c (randomize): Protect against potential multiple calls.
11330 * doc/invoke.texi (-frandom-seed): Document use for in coverage
11331 files.
11332
11333 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11334 Eric Botcazou <ebotcazou@libertysurf.fr>
11335
11336 PR optimization/11198
11337 * alias.c (objects_must_conflict_p): Return 1 if the types have
11338 the same alias set, not if the alias sets only conflict.
11339
11340 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
11341
11342 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
11343 (convert_cset): Change inbuf to type ICONV_CONST char.
11344 * Makefile.in (LIBS): Add LIBICONV.
11345
11346 * doc/invoke.texi (-falign-functions): Document that
11347 when n is zero then a machine-dependent default is used.
11348 (-falign-labels): Document that when n is zero then a
11349 machine-dependent default is used and that -falign-labels =1
11350 is equivalent to -fno-align-labels.
11351 (-falign-loops): Likewise.
11352 (-falign-jumps): Likewise.
11353
11354 2003-07-06 Art Haas <ahaas@airmail.net>
11355
11356 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
11357 initializer syntax.
11358
11359 2003-07-06 James E Wilson <wilson@tuliptree.org>
11360
11361 PR optimization/9812
11362 * rtl.h (mem_for_const_double): Delete prototype.
11363 * varasm.c (mem_for_const_double): Delete function.
11364 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
11365 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
11366 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
11367 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
11368 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
11369 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
11370 comment about confused support for XFmode constants.
11371
11372 2003-07-07 Jan Hubicka <jh@suse.cz>
11373
11374 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
11375
11376 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
11377
11378 * config/h8300/h8300.c: Fix comment typos.
11379 * config/h8300/h8300.md: Likewise.
11380 * config/i386/athlon.md: Likewise.
11381 * config/i386/i386.c: Likewise.
11382 * config/i386/pentium.md: Likewise.
11383 * config/ia64/ia64.c: Likewise.
11384 * config/ia64/itanium1.md: Likewise.
11385 * config/ia64/itanium2.md: Likewise.
11386 * config/m32r/m32r.md: Likewise.
11387 * config/m68hc11/m68hc11.c: Likewise.
11388 * config/mcore/mcore.c: Likewise.
11389 * config/mips/sr71k.md: Likewise.
11390 * config/mips/t-iris5-as: Likewise.
11391 * config/mmix/mmix.h: Likewise.
11392 * config/ns32k/ns32k.h: Likewise.
11393 * config/ns32k/NOTES: Fix a typo.
11394
11395 2003-07-06 Andreas Jaeger <aj@suse.de>
11396
11397 * stmt.c: Convert remaining prototypes to ISO C90.
11398 * cfglayout.c: Likewise.
11399 * dbxout.c: Likewise.
11400 * gcc.c: Likewise.
11401 * genemit.c: Likewise.
11402
11403 * basic-block.h: Convert prototypes to ISO C90.
11404 * c-parse.in: Likewise.
11405 * c-pragma.h: Likewise.
11406 * c-typeck.c: Likewise.
11407 * cfghooks.h: Likewise.
11408 * cfgloopanal.c: Likewise.
11409 * dbxout.h: Likewise.
11410 * debug.h: Likewise.
11411 * dwarf2asm.h: Likewise.
11412 * gcov.c: Likewise.
11413 * gengtype-lex.l: Likewise.
11414 * sched-int.h: Likewise.
11415 * timevar.c: Likewise.
11416
11417 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
11418
11419 * c-common.h (c_comon_handle_filename,
11420 c_common_missing_arguement): New.
11421 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
11422 LANG_HOOKS_MISSING_ARGUMENT): New.
11423 * c-opts.c (missing_arg): Rename c_common_missing_argument,
11424 update to be an appropriate langhook.
11425 (c_common_handle_option): Don't handle filenames.
11426 (c_common_handle_filename): New.
11427 * hooks.c (hook_void_constcharptr,
11428 hook_bool_constcharptr_size_t_false): New.
11429 * hooks.h (hook_void_constcharptr,
11430 hook_bool_constcharptr_size_t_false): New.
11431 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
11432 LANG_HOOKS_MISSING_ARGUMENT): New.
11433 (LANG_HOOKS_INITIALIZER): Update.
11434 * langhooks.h (struct lang_hooks): Add handle_filename and
11435 missing_argument.
11436 * opts.c (handle_option): Don't handle filenames here, but ...
11437 (handle_options): ... here.
11438 (common_handle_option): Don't handle missing arguments here.
11439 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
11440 LANG_HOOKS_MISSING_ARGUMENT): New.
11441
11442 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
11443
11444 * Makfile.in: Remove traces of mbchar.
11445 * c-parse.in (MULTIBYTE_CHARS): Remove.
11446 * config.in (MULTIBYTE_CHARS): Remove.
11447 * configure: Remove --enable-mbchar.
11448 * configure.in: Remove --enable-mbchar.
11449 * mbchar.c, mbchar.h: Remove.
11450 * system.h: Poison MULTIBYTE_CHARS.
11451 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
11452 * config/linux.h (MULTIBYTE_CHARS): Remove.
11453 * config/svr4.h (MULTIBYTE_CHARS): Remove.
11454 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
11455
11456 2003-07-06 Andreas Jaeger <aj@suse.de>
11457
11458 * varray.c (varray_check_failed): Fix typo.
11459
11460 * unroll.c: Convert prototypes to ISO C90.
11461 * varasm.c: Likewise.
11462 * varray.c: Likewise.
11463 * varray.h: Likewise.
11464 * vmsdbgout.c: Likewise.
11465 * xcoffout.c: Likewise.
11466 * xcoffout.h: Likewise.
11467
11468 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
11469
11470 * gcov-io.h: Add a local time stamp.
11471 (struct gcov_info): Add stamp field.
11472 (gcov_truncate): New.
11473 * coverage.c (read_counts_file): Skip the stamp.
11474 (coverage_begin_output): Write the stamp.
11475 (build_gcov_info): Declare and init the stamp.
11476 (coverage_finish): Only unlink data file, if stamp is zero.
11477 * gcov-dump.c (dump_file): Dump the stamp.
11478 * gcov.c (bbg_stamp): New.
11479 (release_structures): Clear bbg_stamp.
11480 (read_graph_file): Read stamp.
11481 (read_count_file): Check stamp.
11482 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
11483
11484 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
11485
11486 * tree.h (default_flag_random_seed): Remove.
11487 * toplev.h (local_tick): Declare.
11488 * tree.c (flag_random_seed, default_flag_random_seed): Move to
11489 toplev.c.
11490 (append_random_chars): Don't call default_flag_random_seed.
11491 * toplev.c (flag_random_seed): Define here. Set local_tick.
11492 (local_tick): Define.
11493 (randomize): New, moved from tree.c.
11494 (print_switch_values): Adjust.
11495 (toplev_main): Call randomize.
11496
11497 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
11498
11499 * tree.h (crc32_string): Declare.
11500 * tree.c (append_random_chars): Remove.
11501 (crc32_string): New.
11502 (get_file_function_name_long): Use crc32_string here.
11503
11504 2003-07-06 Andreas Jaeger <aj@suse.de>
11505
11506 * gcc.c: Convert prototypes to ISO C90.
11507 * gcc.h: Likewise.
11508 * gcov-dump.c: Likewise.
11509 * gcov-iov.c: Likewise.
11510 * gcse.c: Likewise.
11511 * genattrtab.h: Likewise.
11512 * ggc.h: Likewise.
11513 * global.c: Likewise.
11514 * graph.c: Likewise.
11515 * graph.h: Likewise.
11516 * hosthooks.h: Likewise.
11517 * hooks.h: Likewise.
11518 * hooks.c: Likewise.
11519 * hashtable.h: Likewise.
11520 * hashtable.c: Likewise.
11521 * haifa-sched.c: Likewise.
11522 * integrate.h: Likewise.
11523 * integrate.c: Likewise.
11524 * input.h: Likewise.
11525 * ifcvt.c: Likewise.
11526 * jump.c: Likewise.
11527 * langhooks-def.h: Likewise. Add extern to prototypes.
11528 * langhooks.c: Likewise.
11529 * langhooks.h: Likewise.
11530 * lcm.c: Likewise.
11531 * local-alloc.c: Likewise.
11532 * loop-init.c: Likewise.
11533 * loop-unroll.c: Likewise.
11534 * loop-unswitch.c: Likewise.
11535 * loop.c: Likewise.
11536 * loop.h: Likewise. Add extern to prototypes.
11537 * machmode.h: Likewise.
11538 * main.c: Likewise.
11539 * mbchar.c: Likewise.
11540 * mbchar.h: Likewise.
11541 * mkdeps.c: Likewise.
11542 * mkdeps.h: Likewise.
11543 * optabs.c: Likewise.
11544 * optabs.h: Likewise.
11545 * output.h: Likewise.
11546 * gccspec.c: Likwise.
11547 * postreload.c: Likewise.
11548 * prefix.c: Likewise.
11549 * prefix.h: Likewise.
11550 * print-rtl.c: Likewise.
11551 * print-tree.c: Likewise.
11552 * profile.c: Likewise.
11553 * read-rtl.c: Likewise.
11554 * real.c: Likewise.
11555 * real.h: Likewise.
11556 * recog.c: Likewise.
11557 * recog.h: Likewise.
11558 * reg-stack.c: Likewise.
11559 * regclass.c: Likewise.
11560 * regmove.c: Likewise.
11561 * regrename.c: Likewise.
11562 * regs.h: Likewise.
11563 * reload.c: Likewise.
11564 * reload.h: Likewise.
11565 * reload1.c: Likewise.
11566 * reorg.c: Likewise.
11567 * resource.c: Likewise.
11568 * resource.h: Likewise.
11569 * rtl-error.c: Likewise.
11570 * rtl.c: Likewise.
11571 * rtl.h: Likewise.
11572 * rtlanal.c: Likewise.
11573 * sbitmap.c: Likewise.
11574 * sbitmap.h: Likewise.
11575 * scan-decls.c: Likewise.
11576 * scan.c: Likewise.
11577 * sched-deps.c: Likewise.
11578 * sched-ebb.c: Likewise.
11579 * sched-int.h: Likewise.
11580 * sched-rgn.c: Likewise.
11581 * sched-vis.c: Likewise.
11582 * sibcall.c: Likewise.
11583 * simplify-rtx.c: Likewise.
11584 * sreal.c: Likewise.
11585 * sreal.h: Likewise.
11586 * ssa-ccp.c: Likewise.
11587 * ssa-dce.c: Likewise.
11588 * ssa.c: Likewise.
11589 * ssa.h: Likewise.
11590 * stack.h: Likewise.
11591 * stmt.c: Likewise.
11592 * stor-layout.c: Likewise.
11593 * stringpool.c: Likewise.
11594 * target.h: Likewise.
11595 * timevar.c: Likewise.
11596 * timevar.h: Likewise.
11597 * tlink.c: Likewise.
11598 * tracer.c: Likewise.
11599 * tree-inline.c: Likewise.
11600 * tree-inline.h: Likewise.
11601 * tree.c: Likewise.
11602 * tree.h: Likewise.
11603
11604 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
11605
11606 * combine.c (nonzero_bits1): Fix a warning.
11607
11608 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
11609
11610 * config/h8300/h8300.c (compute_mov_length): Correct the
11611 length of loading CONST0_RTX (SFmode).
11612
11613 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
11614
11615 * toplev.c (output_clean_symbol_name): Remove.
11616 * toplev.h (output_clean_symbol_name): Remove.
11617 * config/alpha/alpha.c (unicosmk_output_module_name): Use
11618 lbasename & clean_symbol_name.
11619
11620 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
11621
11622 * ggc.h: Follow spelling conventions.
11623 * config/i386/i386.c: Likewise.
11624 * config/i386/winnt.c: Likewise.
11625 * config/rs6000/rs6000.c: Likewise.
11626
11627 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
11628
11629 * bt-load.c: Fix comment typos.
11630 * c-incpath.c: Likewise.
11631 * cfg.c: Likewise.
11632 * cfgcleanup.c: Likewise.
11633 * cfgloop.h: Likewise.
11634 * cfgloopmanip.c: Likewise.
11635 * cfgrtl.c: Likewise.
11636 * diagnostic.h: Likewise.
11637 * dwarfout.c: Likewise.
11638 * emit-rtl.c: Likewise.
11639 * et-forest.c: Likewise.
11640 * et-forest.h: Likewise.
11641 * expr.c: Likewise.
11642 * gcse.c: Likewise.
11643 * genattr.c: Likewise.
11644 * jump.c: Likewise.
11645 * langhooks.h: Likewise.
11646 * local-alloc.c: Likewise.
11647 * loop-unroll.c: Likewise.
11648 * loop-unswitch.c: Likewise.
11649 * ra-build.c: Likewise.
11650 * regclass.c: Likewise.
11651 * regmove.c: Likewise.
11652 * rtl.def: Likewise.
11653 * rtlanal.c: Likewise.
11654 * sched-ebb.c: Likewise.
11655 * sched-rgn.c: Likewise.
11656 * simplify-rtx.c: Likewise.
11657 * ssa.c: Likewise.
11658 * tracer.c: Likewise.
11659 * tree.c: Likewise.
11660
11661 2003-07-05 Zack Weinberg <zack@codesourcery.com>
11662
11663 * cppcharset.c: Use the correct return type for the fallback iconv
11664 macro.
11665
11666 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11667
11668 Blame to Jan Hubicka <jh@suse.cz>
11669 * cfglayout.c (record_effective_endpoints): Split insns before
11670 first basic block correctly.
11671
11672 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11673
11674 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
11675 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
11676 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
11677
11678 2003-07-05 Andreas Jaeger <aj@suse.de>
11679
11680 * genattrtab.c (write_attr_get): Revert part of last patch to
11681 always write out a prototype.
11682
11683 * genemit.c (gen_split): Readd lost unused attributes in last
11684 patch.
11685
11686 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11687
11688 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
11689 different from header.
11690
11691 2003-07-05 Andreas Schwab <schwab@suse.de>
11692
11693 * config/m68k/m68k.c: Remove code protected by CRDS.
11694 * config/m68k/m68k.md: Likewise.
11695
11696 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
11697
11698 PR driver/11417
11699 * c-opts.c (permit_fortran_options): New.
11700 (c_common_init_options): Accept fortran front end options if
11701 it looks like we might be preprocessing Fortran.
11702 (c_common_handle_option): Don't reject switch if permit_fotran_options.
11703
11704 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11705
11706 * genattr.c (internal_dfa_insn_code): Output prototype.
11707 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
11708 * genautomata.c: Likewise.
11709 * genconditions.c: Likewise.
11710 * genemit.c: Likewise.
11711 * genextract.c: Likewise.
11712 * gengenrtl.c: Likewise.
11713 * gengtype.c: Likewise.
11714 * genopinit.c: Likewise.
11715 * genoutput.c: Likewise.
11716 * genpeep.c: Likewise.
11717 * genrecog.c: Likewise.
11718
11719 2003-07-04 Zack Weinberg <zack@codesourcery.com>
11720
11721 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
11722 (struct cpp_options): Add narrow_charset, wide_charset,
11723 bytes_big_endian fields. Remove EBCDIC field.
11724 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
11725
11726 * cpphash.h: Include <iconv.h> if we have it, otherwise
11727 provide a dummy definition of iconv_t.
11728 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
11729 (_cpp_valid_ucn): Update prototype.
11730 (_cpp_destroy_iconv): New prototype.
11731
11732 * doc/cpp.texi: Document character set handling.
11733 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
11734 * doc/extend.texi: Delete entire section on multiline strings.
11735 Rewrite section on __FUNCTION__ etc now that these are
11736 variables in C.
11737
11738 * cppucnid.tab, cppucnid.pl: New files.
11739 * cppucnid.h: New generated file.
11740 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
11741 (iconv_open, iconv, iconv_close): Provide dummy definitions
11742 if !HAVE_ICONV.
11743 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
11744 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
11745 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
11746 cpp_interpret_string, narrow_str_to_charconst,
11747 wide_str_to_charconst): New.
11748 (ucn_valid_in_identifier): Use a binary search through the
11749 ucnranges table defined in cppucnid.h, not a long chain of if
11750 statements.
11751 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
11752 character names are only valid in C++ and C99" to a warning.
11753 Issue the "meaning of \[uU] is different in traditional C"
11754 warning here. Take care not to let iconv see an invalid UCS
11755 value if we get a malformed UCN. Issue an error if we don't
11756 have iconv.
11757 (cpp_interpret_charconst): Moved here from cpplex.c. Use
11758 cpp_interpret_string to do the heavy lifting.
11759
11760 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
11761 narrow_charset, wide_charset fields of options structure.
11762 (cpp_destroy): Call _cpp_destroy_iconv.
11763 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
11764 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
11765 (cpp_interpret_charconst): Moved to cppcharset.c.
11766 * cpplib.c (dequote_string): Delete.
11767 (interpret_string_notranslate): New.
11768 (do_line, do_linemarker): Use interpret_string_notranslate.
11769
11770 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
11771
11772 * c-common.c (fname_string, combine_strings): Delete.
11773 * c-common.h (fname_string, combine_strings): Delete prototypes.
11774 * c-lex.c (ignore_escape_flag): Delete.
11775 (cb_ident): Use cpp_interpret_string, not lex_string.
11776 (get_nonpadding_token): New function.
11777 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
11778 Adjust calls to lex_string. Don't write *value twice.
11779 (lex_string): Now handles string constant concatenation.
11780 Most of the work handed off to cpp_interpret_string.
11781 Call fix_string_type here.
11782 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
11783 FUNC_NAME, throughout.
11784 (OBJC_STRING): New token type.
11785 (primary:STRING): No need to call fix_string_type here.
11786 (primary:objc_string): Make that OBJC_STRING.
11787 (objc_string nonterminal): Delete.
11788 (yylexname): Delete code to handle fake string constants.
11789 (yylexstring): Delete entirely.
11790 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
11791 to handle CPP_ATSIGN.
11792
11793 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
11794 * c-opts.c (missing_arg, c_common_handle_option): Handle
11795 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
11796 (c_common_init): Set cpp_opts->bytes_big_endian, not
11797 cpp_opts->EBCDIC. Call cpp_init_iconv.
11798 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
11799 (TARGET_EBCDIC): Delete default definition.
11800
11801 * objc/objc-act.c (build_objc_string_object): No need to
11802 handle string constant concatenation.
11803
11804 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
11805
11806 * doc/install.texi: Fix typos.
11807 * doc/invoke.texi: Likewise.
11808 * doc/tm.texi: Likewise.
11809
11810 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
11811
11812 * config/pa/fptr.c: Fix comment typos.
11813 * config/pa/pa-64.h: Likewise.
11814 * config/pa/pa.c: Likewise.
11815 * config/pa/pa.h: Likewise.
11816 * config/rs6000/603.md: Likewise.
11817 * config/rs6000/7xx.md: Likewise.
11818 * config/rs6000/darwin.h: Likewise.
11819 * config/rs6000/freebsd.h: Likewise.
11820 * config/rs6000/rs6000.c: Likewise.
11821 * config/rs6000/rs6000.md: Likewise.
11822 * config/rs6000/spe.h: Likewise.
11823
11824 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
11825
11826 * config/s390/2064.md: Change GNU CC to GCC.
11827 * config/s390/2084.md: Likewise.
11828 * config/s390/fixdfdi.h: Likewise.
11829 * config/s390/linux.h: Likewise.
11830 * config/s390/s390-modes.def: Likewise.
11831 * config/s390/s390-protos.h: Likewise.
11832 * config/s390/s390.c: Likewise.
11833 * config/s390/s390.h: Likewise.
11834 * config/s390/s390.md: Likewise.
11835 * config/s390/s390x.h: Likewise.
11836
11837 2003-07-04 Jeff Law <law@redhat.com>
11838
11839 PR c/11428
11840 * expr.c (do_store_flag): Pass in the correct result type
11841 when calling fold_single_bit_test.
11842 * fold-const.c (fold_single_bit_test): Use result_type for the
11843 result when folding a sign bit test.
11844
11845 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
11846
11847 * opts.c (common_handle_options): Negate sense of -falign- switches.
11848
11849 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
11850
11851 * Makefile.in: Replace PWD with PWD_COMMAND.
11852
11853 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11854
11855 * cfgloopanal.c (count_strange_loop_iterations): New static function.
11856 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
11857 Handle strange loops.
11858
11859 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
11860
11861 * install.texi: Even the g77 manpage is derived from
11862 the full g77 manual.
11863
11864 2003-07-04 Zack Weinberg <zack@codesourcery.com>
11865
11866 * ABOUT-NLS: Delete.
11867 * intl: Delete entire directory.
11868 * aclocal.m4: Include ../config/gettext.m4. Delete
11869 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
11870 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
11871 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
11872 Remove intl/Makefile from all_outputs.
11873 * configure, config.in: Regenerate.
11874 * Makefile.in: Expunge all references to intl subdirectory.
11875 Add -I../intl to INCLUDES.
11876 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
11877
11878 2003-07-04 Roger Sayle <roger@eyesopen.com>
11879
11880 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
11881 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
11882
11883 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
11884
11885 PR c++/5287, PR c++/7910, PR c++/11021
11886 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
11887 dllimport attribute if function is defined at declaration, but
11888 report error instead. Likewise for dllimport'd variable
11889 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
11890 declared within functions, Report error if dllimport or dllexport
11891 symbol is not global.
11892 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
11893 if defined after declaration or if inlined. Don't allow definition
11894 of static data members of C++ classes. Don't dllimport virtual
11895 methods.
11896 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
11897 (i386_pe_mark_dllimport): Remove unnecessary checks.
11898 (i386_pe_encode_section_info): Warn if the dllimport attribute
11899 and symbol prefix have been instantiated and then overridden.
11900
11901 * doc/extend.texi: Document dllimport and dllexport attributes.
11902
11903 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
11904
11905 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
11906
11907 * config/kaos.h (CPP_PREDEFINES): Delete.
11908 (TARGET_OS_CPP_BUILTINS): New.
11909
11910 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11911
11912 * c-aux-info.c: Include toplev.h after c-tree.h.
11913 * c-common.c: Likewise.
11914 (GCC_DIAG_STYLE): Undef.
11915 * c-semantics.c (GCC_DIAG_STYLE): Define.
11916 * c-tree.h (GCC_DIAG_STYLE): Likewise.
11917 * diagnostic.h (inform): Move prototype to toplev.h.
11918 * jump.c: Include diagnostic.h before toplev.h.
11919 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
11920 (warning, error, fatal_error, pedwarn, sorry, inform,
11921 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
11922
11923 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11924
11925 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
11926 at all if edge is not specified.
11927 (can_copy_bbs_p, copy_bbs): New.
11928 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
11929 * cfgloop.c (get_loop_body): Comment more precisely.
11930 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
11931 (scale_bbs_frequencies): Fix comment typo.
11932 (can_duplicate_loop_p): Use can_copy_bbs_p.
11933 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
11934
11935 2003-07-03 Devang Patel <dpatel@apple.com>
11936
11937 * c-opts.c (c_common_parse_file): Remove extra
11938 debug_hooks->start_source_file call.
11939
11940 2003-07-03 Roger Sayle <roger@eyesopen.com>
11941
11942 * real.c (real_trunc, real_floor, real_ceil): New functions
11943 to implement trunc, floor and ceil respectively.
11944 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
11945 * builtins.c (integer_valued_real_p): New function to test if
11946 a floating point expression has an integer valued result.
11947 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
11948 foo(x) where foo is an integer rounding function. Similarly,
11949 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
11950 (double)(int)x when both foo and bar are integer rounding
11951 functions and we don't need to honor errno.
11952 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
11953 New functions to fold trunc, floor and ceil.
11954 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
11955 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
11956 to fold BUILT_IN_CEIL*.
11957 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
11958 the remaining integer rounding functions.
11959
11960 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11961
11962 * config/sparc/sparc.c (function_arg_partial_nregs): Use
11963 SPARC_INT_ARG_MAX to determine where to split unnamed
11964 complex FP arguments.
11965
11966 2003-07-03 Jan Hubicka <jh@suse.cz>
11967
11968 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
11969 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
11970 (merge_blocks_move_predecessor_nojumps,
11971 merge_blocks_move_successor_nojumps): Use merge_blocks.
11972 (try_optimize_cfg): Use merge_blocks_move.
11973 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
11974 (merge_blocks_nomove): Rename to rtl_merge_blocks.
11975 (cfg_layout_create_basic_block): New.
11976 (rtl_can_merge_blocks): New.
11977 (cfg_layout_split_block): Do not alloc aux by hand.
11978 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
11979 merge_blocks.
11980 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
11981 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
11982 * cfgloopmanip.c (loop_split_edge_with): Likewise.
11983 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
11984
11985 * basic-block.h (basic_block_def): Add field 'rbi'.
11986 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
11987 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
11988 * cfg.c (entry_exit_blocks): Add new field.
11989 * cfglayout.c: Include alloc-pool.h;
11990 (cfg_layout_pool): New.
11991 (record_effective_endpoints, fixup_reorder_chain,
11992 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
11993 of rbi.
11994 (cfg_layout_initialize_rbi): New function.
11995 (cfg_layout_initialize): Use it.
11996 (cfg_layout_finalize): Clear rbi fields.
11997 * cfglayout.h (RBI): Kill.
11998 (cfg_layout_initialize_rbi): Declare.
11999 * cfgloopmanip.c (copy_bbs): Use rbi.
12000 (record_exit_edges): Likewise.
12001 (duplicate_loop_to_header_edge): Likewise.
12002 * cfgrtl.c (cfg_layout_create_basic_block): Use
12003 cfg_layout_initialize_rbi.
12004 (cfg_layout_split_block): Use rbi.
12005 (cfg_layout_delete_block): Likewise.
12006 * loop-init.c (loop_optimizer_finalize): Likewise.
12007 * loop-unswitch.c (unswitch_loop): Likewise.
12008 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
12009
12010 * cfgrtl.c: Update comments.
12011 (try_redirect_by_replacing_jump): New argument.
12012 (redirect_branch_edge): Break out from ...
12013 (rtl_redirect_edge_and_branch): ... this one.
12014 (update_cfg_after_block_merging): Break out from ...
12015 (rtl_merge_blocks): ... this one.
12016 (cfg_layout_split_edge): New.
12017 (cfg_layout_merge_blocks): New.
12018 (cfg_layout_can_merge_blocks_p): New.
12019 (cfg_layout_redirect_edge_and_branch): Reorganize.
12020 (cfg_layout_rtl_cfg_hooks): Fill in.
12021 (cfg_layout_delete_block): Kill barriers.
12022 * cfganal.c (can_fallthru): Deal with exit blocks
12023 * cfglayout.c (cfg_layout_function_header): New function
12024 (record_effective_endpoints): Record function header.
12025 (fixup_reorder_chain): Fixup dead jumptables; place header
12026
12027 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
12028 * bb-reorder.c (cfg_layout_initialize): Update call.
12029 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
12030 edges in cfglayout mode.
12031 * cfglayout.c (cleanup_unconditional_jumps): Kill.
12032 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
12033 * cfglayout.h (cfg_layout_initialize): Update prototype.
12034 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
12035 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
12036 * flow.c (propagate_block): Do not crash when basic block ends
12037 by first insn in the chain.
12038 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
12039 do loop discovery.
12040 * tracer.c (tracer): Update call of cfg_layout_initialize.
12041
12042 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12043
12044 * Makefile.in: Use dependency variables in lieu of explicit
12045 files throughout.
12046
12047 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
12048
12049 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
12050 * tree.h: ...to here.
12051
12052 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
12053
12054 * config/s390/2064.md: Fix comment typos.
12055 * config/s390/2084.md: Likewise.
12056 * config/s390/s390.c: Likewise.
12057 * config/s390/s390.md: Likewise.
12058 * config/sh/sh.c: Likewise.
12059 * config/sh/sh.h: Likewise.
12060 * config/sh/sh.md: Likewise.
12061 * config/sparc/sparc.c: Likewise.
12062 * config/sparc/sparc.h: Likewise.
12063 * config/sparc/sparc.md: Likewise.
12064 * config/stormy16/stormy16.c: Likewise.
12065 * config/stormy16/stormy16.h: Likewise.
12066 * config/stormy16/stormy-abi: Fix a typo.
12067
12068 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
12069
12070 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
12071
12072 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12073
12074 * config/mips/mips.h (save_argv): Delete.
12075
12076 2003-07-03 Roger Sayle <roger@eyesopen.com>
12077
12078 PR target/10700
12079 * fold-const.c (extract_muldiv_1): There's nothing that can be done
12080 if the expression is a SAVE_EXPR.
12081
12082 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
12083
12084 * config/m32r/m32r.c: Fix comment typos.
12085 * config/m68hc11/m68hc11.c: Likewise.
12086 * config/m68hc11/m68hc11.h: Likewise.
12087 * config/m68k/m68k.c: Likewise.
12088 * config/mcore/mcore.c: Likewise.
12089 * config/mcore/mcore.h: Likewise.
12090 * config/mcore/mcore.md: Likewise.
12091 * config/mips/mips.c: Likewise.
12092 * config/mips/mips.h: Likewise.
12093 * config/mips/mips.md: Likewise.
12094 * config/mips/netbsd.h: Likewise.
12095 * config/mn10300/mn10300.c: Likewise.
12096
12097 2003-07-03 Andreas Schwab <schwab@suse.de>
12098
12099 * dbxout.c (pending_bincls): Move decl down inside
12100 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
12101
12102 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
12103
12104 * rtl.h (NOTE_DATA): Refer to whole union.
12105 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
12106
12107 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
12108
12109 PR optimization/11381
12110 * simplify-rtx.c (simplify_relational_operation): Check that
12111 two equal operands have no side-effects before simplifying
12112 the comparison.
12113
12114 2003-07-02 Jeff Law <law@redhat.com>
12115
12116 * expr.c (do_store_flag): Remove special case folding for
12117 single bit tests. Instead call back into the commonized folder
12118 routine.
12119 * fold-const.c (fold_single_bit_test): New function, mostly
12120 extracted from do_store_flag, with an additional case extracted
12121 from fold.
12122 (fold): Call fold_single_bit_test appropriately.
12123 * tree.h (fold_single_bit_test): Prototype.
12124
12125 2003-07-02 Zack Weinberg <zack@codesourcery.com>
12126
12127 * system.h: Include filenames.h.
12128 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
12129 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
12130 define based on HAVE_DOS_BASED_FILE_SYSTEM.
12131 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
12132 * config/i386/xm-mingw32.h: Don't define
12133 HAVE_DOS_BASED_FILE_SYSTEM,
12134 DIR_SEPARATOR, or DIR_SEPARATOR_2.
12135 * doc/hostconfig.texi: Update to match.
12136
12137 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
12138 config/i386/cygwin.h:
12139 Use IS_ABSOLUTE_PATH throughout.
12140 * gcc.c (DIR_UP): Delete, unused.
12141 * protoize.c (IS_SAME_PATH): Define in terms of
12142 FILENAME_CMP.
12143 (is_abspath): Delete.
12144
12145 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
12146
12147 * config/i386/emmintrin.h: Fix comment typos.
12148 * config/i386/i386.c: Likewise.
12149 * config/i386/i386.h: Likewise.
12150 * config/i386/sco5.h: Likewise.
12151 * config/ia64/ia64.c: Likewise.
12152 * config/ia64/itanium2.md: Likewise.
12153
12154 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
12155
12156 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
12157 DBX_USE_BINCL.
12158 (emit_bincl_stab): Same.
12159 (emit_pending_bincls): Same.
12160
12161 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
12162
12163 * config/h8300/h8300.c (compute_mov_length): Fix the length of
12164 loading CONST0_RTX (SFmode).
12165 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
12166 'G' to CONST0_RTX (SFmode).
12167 * config/h8300/h8300.md (movsf_h8300): Change the first
12168 constraint to 'G'.
12169 (movsf_h8300h): Likewise.
12170
12171 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
12172
12173 * c-common.h (c_common_init_options): New prototype.
12174 * c-opts.c (deferred_size): Remove.
12175 (defer_opt): Array is now pre-allocated.
12176 (c_common_init_options): Pre-allocate deferred_opts. Make
12177 lang_flags unsigned.
12178 (push_command_line_options): Free deferred_opts.
12179 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
12180 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
12181 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
12182 * langhooks.h (struct lang_hooks): New prototype for init_options.
12183 * main.c (main): Cast argv.
12184 * opts.c (handle_option, handle_options): Update prototypes.
12185 (decode_options): save_argc, save_argv are not global. Constify.
12186 * opts.h (decode_options): New prototype.
12187 * toplev.c (general_init): New protoype.
12188 (save_argv): Make static.
12189 (save_argc): Remove.
12190 (print_switch_values, general_init): Constify.
12191 (toplev_main): Save argv.
12192 * toplev.h (toplev_main): Update prototype.
12193 (save_argc, save_argv): Remove.
12194
12195 2003-07-02 David Edelsohn <edelsohn@gnu.org>
12196
12197 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
12198 (emit_bincl_stab): Same.
12199 (emit_pending_bincls): Same.
12200
12201 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
12202
12203 PR c++/11072
12204 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
12205
12206 2003-07-02 Andreas Schwab <schwab@suse.de>
12207
12208 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
12209
12210 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
12211
12212 PR optimization/11210
12213 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
12214 about the behaviour with regard to bitfields.
12215 * fold-const (decode_field_reference): Record outermost type in
12216 case the expression is a NOP. Strip all NOPs. Set the signedness
12217 to that of the outermost type (if any) when the bitsize is equal
12218 to the size of the type.
12219
12220 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
12221
12222 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
12223 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
12224 (adddi3_internal_3, addsi3_internal_2): Likewise.
12225
12226 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
12227
12228 * config/mips/mips.c (machine_function): Add new fields:
12229 ignore_hazard_length_p and all_noreorder_p.
12230 (mips_flag_delayed_branch): New variable.
12231 (override_options): Treat '/' as an operand punctuation character.
12232 Set up mips_flag_delayed_branch.
12233 (print_operand): Handle '/'.
12234 (mips_output_function_prologue): Put the whole function in
12235 .set noreorder and .set nomacro if all_noreorder_p is true.
12236 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
12237 (mips16_optimize_gp): Remove "first insn" parameter.
12238 (mips16_lay_out_constants): New function, split out from mips_reorg.
12239 (mips_avoid_hazard, mips_avoid_hazards): New functions.
12240 (mips_reorg): For mips16 code, call mips16_lay_out_constant
12241 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
12242 do delayed-branch scheduling followed by hazard detection.
12243 (mips_adjust_insn_length): Only account for hazards if
12244 !ignore_hazard_length_p.
12245 (mips_output_load_label): Add a nop to the o32 sequence if
12246 the target suffers from load delays.
12247 (mips_output_conditional_branch): Add %/ to the end of branches.
12248 (mips_output_division): Fill the branch delay slot with %#.
12249 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
12250 instructions. End all other %* branches with %/.
12251 (ffssi2, ffsdi2): Fix lengths.
12252 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
12253 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
12254 (fix_truncsfsi2_macro): Likewise.
12255 (mov_lwl): Set hazard to "none".
12256 (ashldi3_internal): Fill the branch delay slot with %#.
12257 (ashrdi3_internal, lshrdi3_internal): Likewise.
12258 (exception_receiver): Explicitly set $28.
12259 (hazard_nop): New pattern.
12260
12261 2003-07-02 Jan Hubicka <jh@suse.cz>
12262
12263 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
12264 before calling tree_inlinable_function_p.
12265
12266 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12267
12268 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
12269 <internal/stdio_core.h> too.
12270 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
12271 <internal/wchar_core.h> too.
12272 Substitute va_list uses in inline definition.
12273 * fixinc/fixincl.x: Regenerate.
12274
12275 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12276
12277 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
12278 Undef before redefinition.
12279 (LABEL_AFTER_LOC): Likewise.
12280 (DEFAULT_SIGNED_CHAR): Likewise.
12281 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
12282 Fix IRIX spelling.
12283
12284 * config/mips/iris3.h: Remove, unused.
12285 * config/mips/iris4.h: Likewise.
12286
12287 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
12288
12289 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
12290 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
12291 target_cpu_default.
12292
12293 * config/mips/iris5.h: Move explicit includes ...
12294 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
12295
12296 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
12297 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
12298 tm_defines.
12299
12300 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
12301 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
12302 target_cpu_default.
12303
12304 * config/mips/iris6.h: Fix IRIX spelling.
12305 (MULTILIB_DEFAULTS): Undef before redefinition.
12306
12307 * config/mips/iris6.h: Move explicit includes ...
12308 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
12309
12310 2003-07-02 Jan Hubicka <jh@suse.cz>
12311
12312 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
12313 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
12314 Use next_needed field instead of aux to maintain the queue.
12315 * cgraph.h (cgraph_node): Add next_needed.
12316 (cgraph_varpool_node): Add next_needed; remove aux.
12317 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
12318
12319 2003-07-02 Jan Hubicka <jh@suse.cz>
12320
12321 * cgraphunit.c (cgraph_finalize_function): Set finalized.
12322 (cgraph_finalize_function): Do not examine inlinablility.
12323 (cgraph_finalize_compilation_unit): Do it here.
12324 * cgraph.h (cgraph_local_info): Add finalized field.
12325
12326 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12327
12328 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
12329 (gt_pch_restore): Likewise.
12330
12331 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
12332
12333 * config/alpha/alpha.c: Fix comment typos.
12334 * config/alpha/elf.h: Likewise.
12335 * config/arm/arm.c: Likewise.
12336 * config/arm/arm.h: Likewise.
12337 * config/arm/arm.md: Likewise.
12338 * config/arm/t-arm-coff: Likewise.
12339 * config/arm/t-strongarm-pe: Likewise.
12340 * config/arm/xscale-elf.h: Likewise.
12341 * config/avr/avr.h: Likewise.
12342
12343 2003-07-01 Jeff Law <law@redhat.com>
12344
12345 * stmt.c (any_pending_cleanups): Remove another redundant test.
12346
12347 2003-07-01 David Edelsohn <edelsohn@gnu.org>
12348 J"orn Rennecke <joern.rennecke@superh.com>
12349
12350 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
12351 for MEM case.
12352
12353 2003-07-01 Devang Patel <dpatel@apple.com>
12354
12355 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
12356 (binclstatus): New.
12357 (struct dbx_file): New members - bincl_status, pending_bincl_name and
12358 prev.
12359 (pending_bincls): New.
12360 (dbxout_init): Initialize new dbx_file members.
12361 (dbxout_start_source_file): Same.
12362 (emit_bincl_stab): New function.
12363 (emit_pending_bincls): Same.
12364 (emit_pending_bincls_if_required): Same.
12365 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
12366 processed.
12367 (dbxout_begin_block): Emit pending BINCL stabs.
12368 (dbxout_end_block): Same.
12369 (dbxout_function_decl): Same.
12370 (dbxout_continue): Same.
12371 (dbxout_type): Same.
12372 (dbxout_class_name_qualifiers): Same.
12373 (dbxout_symbol): Same.
12374 (dbxout_symbol_location): Same.
12375 (dbxout_parms): Same.
12376
12377 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12378
12379 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
12380 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
12381
12382 2003-07-01 Andreas Jaeger <aj@suse.de>
12383
12384 * fold-const.c: Convert prototypes to ISO C90.
12385 * function.c: Likewise.
12386 * function.h: Likewise.
12387
12388 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
12389
12390 * doc/contrib.texi: Fix typos.
12391 * doc/invoke.texi: Likewise.
12392 * doc/passes.texi: Likewise.
12393 * doc/sourcebuild.texi: Likewise.
12394 * doc/tm.texi: Likewise.
12395
12396 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
12397
12398 * basic-block.h: Fix comment typos.
12399 * bb-reorder.c: Likewise.
12400 * c-format.c: Likewise.
12401 * cfgcleanup.c: Likewise.
12402 * cfghooks.h: Likewise.
12403 * cfgloop.c: Likewise.
12404 * cfgloopmanip.c: Likewise.
12405 * cfgrtl.c: Likewise.
12406 * cgraph.h: Likewise.
12407 * cgraphunit.c: Likewise.
12408 * combine.c: Likewise.
12409 * convert.c: Likewise.
12410 * dbxout.c: Likewise.
12411 * df.c: Likewise.
12412 * df.h: Likewise.
12413 * diagnostic.c: Likewise.
12414 * dwarf2out.c: Likewise.
12415 * et-forest.h: Likewise.
12416 * flow.c: Likewise.
12417 * fold-const.c: Likewise.
12418 * function.h: Likewise.
12419 * gcov-io.h: Likewise.
12420 * gcov.c: Likewise.
12421 * gcse.c: Likewise.
12422 * genautomata.c: Likewise.
12423 * ggc-common.c: Likewise.
12424 * ggc-page.c: Likewise.
12425 * loop-unroll.c: Likewise.
12426 * loop-unswitch.c: Likewise.
12427 * loop.c: Likewise.
12428 * mips-tfile.c: Likewise.
12429 * optabs.c: Likewise.
12430 * ra-build.c: Likewise.
12431 * ra-colorize.c: Likewise.
12432 * ra-rewrite.c: Likewise.
12433 * ra.h: Likewise.
12434 * regmove.c: Likewise.
12435 * reload.c: Likewise.
12436 * rtlanal.c: Likewise.
12437 * sched-ebb.c: Likewise.
12438 * sched-int.h: Likewise.
12439 * sched-vis.c: Likewise.
12440 * sreal.c: Likewise.
12441 * ssa-ccp.c: Likewise.
12442 * ssa.c: Likewise.
12443 * toplev.c: Likewise.
12444 * tree-inline.c: Likewise.
12445 * value-prof.c: Likewise.
12446 * value-prof.h: Likewise.
12447
12448 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
12449
12450 * rtl.h (emit_line_note_after): Remove.
12451 (emit_note_copy_after, emit_note_copy): New.
12452 * emit-rtl.c (reorder_insns_with_line_notes): Replace
12453 emit_line_note_after with emit_note_copy_after.
12454 (emit_insn_after_with_line_notes): Likewise.
12455 (emit_line_note_after): Kill.
12456 (emit_note_copy_after): New.
12457 (emit_note_copy): New.
12458 * function.c (emit_return_into_block): Use emit_note_copy_after.
12459 (thread_prologue_and_epilogue_insns): Likewise.
12460 * integrate.c (expand_inline_function): Use emit_note_copy.
12461 (copy_insn_list): Likewise.
12462 * unroll.c (copy_loop_body): Likewise.
12463 * cfglayout.c (duplicate_insn_chain): Likewise.
12464
12465 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
12466
12467 * c-tree.h (define_label): Replace filename and lineno arguments
12468 with a location_t.
12469 * c-decl.c (poplevel): Adjust define_label call.
12470 (pop_label_level): Likewise.
12471 (define_label): Replace filename and lineno arguments with a
12472 location_t.
12473 (store_parm_decls): Use DECL_SOURCE_LOCATION.
12474 * c-parse.in (label): Adjust define_label call.
12475
12476 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
12477
12478 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
12479 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
12480 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
12481 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
12482 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
12483
12484 2003-07-01 Andreas Jaeger <aj@suse.de>
12485
12486 * final.c: Convert prototypes to ISO C90.
12487 * flow.c: Likewise.
12488 * flags.h: Likewise.
12489 * gcov-io.c: Likewise.
12490 * gcov-io.h: Likewise.
12491
12492 See ChangeLog.9 for earlier changes.